* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neuton', serif;
    background-color: white;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Search Bar Styles */
.search-container {
    position: absolute;
    top: 44px;
    right: 20px;
    width: 367px;
    z-index: 10;
}

.search-input {
    width: 100%;
    height: 57px;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 20px;
    padding: 0 60px 0 20px;
    color: white;
    font-size: 16px;
    box-shadow: 10px 10px 4px 5px rgba(12, 168, 221, 0.11);
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 12px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

/* Books Grid */
.books-grid {
    margin-top: 131px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 80px;
    max-width: 1135px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-image {
    width: 152px;
    height: 241px;
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.book-image:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.book-title {
    font-family: 'Neuton', serif;
    font-weight: 700;
    font-size: 24px;
    color: black;
    margin-bottom: 8px;
    line-height: 1.2;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-price {
    font-family: 'Neuton', serif;
    font-weight: 700;
    font-size: 20px;
    color: black;
    margin-bottom: 16px;
}

.buy-btn {
    width: 170px;
    height: 60px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: none;
    font-family: 'Neuton', serif;
    font-weight: 700;
    font-size: 20px;
    color: rgb(255, 255, 255);
    background-color: black;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 20px;
}

.buy-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.buy-btn:active {
    transform: scale(0.98);
}

/* Form Section */
.form-section {
    margin-top: 80px;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    font-family: 'Neuton', serif;
    font-weight: 700;
    font-size: 32px;
    color: black;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Neuton', serif;
    font-weight: 700;
    font-size: 18px;
    color: black;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Neuton', serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ca8dd;
    box-shadow: 0 0 0 3px rgba(12, 168, 221, 0.1);
}

.form-group input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.submit-btn {
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, #0ca8dd, #0891c7);
    border: none;
    border-radius: 15px;
    font-family: 'Neuton', serif;
    font-weight: 700;
    font-size: 20px;
    color: white;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 168, 221, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Hidden class for search functionality */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .search-container {
        width: 300px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 100px;
    }
    
    .search-container {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 10px;
    }
    
    .form-section {
        margin-top: 40px;
        padding: 20px;
    }
}

/* Success message styles */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    border: 1px solid #c3e6cb;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
