/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ===== SECTIONS ===== */
.booking-section,
.contacts-section {
    padding: 48px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-primary);
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

/* ===== PRODUCTS GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-card.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.category-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== ADDONS SECTION ===== */
.addons-section {
    margin-bottom: 40px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.addon-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.addon-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.addon-card.selected {
    border-color: var(--secondary-color);
    background: #ecfdf5;
}

.addon-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.addon-info {
    flex: 1;
}

.addon-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.addon-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== BOOKING FORM ===== */
.booking-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
}

/* ===== BOOKING INFO ===== */
.booking-info {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.booking-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.booking-info-item:last-child {
    border-bottom: none;
}

.booking-info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.booking-info-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== TOTAL PRICE ===== */
.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.total-label {
    font-weight: 600;
    color: var(--text-primary);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-submit {
    padding: 18px 32px;
    font-size: 1.1rem;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.success-message h3 {
    font-size: 1.5rem;
    color: var(--secondary-dark);
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay p {
    margin-top: 16px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== CONTACTS SECTION ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
}

.modal-content h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

#confirmDetails {
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.confirm-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
    padding-top: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions .btn {
    min-width: 120px;
}

/* ===== ERROR MESSAGE ===== */
#errorModal p {
    color: var(--danger-color);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
}

/* ===== FLATPICKR CUSTOMIZATION ===== */
.flatpickr-calendar {
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-md) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.inRange {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.flatpickr-day.today {
    border-color: var(--primary-color) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 20px;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .addons-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .booking-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .total-price {
        font-size: 1rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .total-amount {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 24px;
    }

    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 24px;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .booking-section,
    .contacts-section {
        padding: 32px 0;
    }

    .container {
        padding: 0 16px;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== AVAILABILITY INDICATORS ===== */
.availability-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.availability-badge.available {
    background: #d1fae5;
    color: var(--secondary-dark);
}

.availability-badge.limited {
    background: #fef3c7;
    color: #92400e;
}

.availability-badge.unavailable {
    background: #fee2e2;
    color: var(--danger-color);
}

/* ===== BOOKING HISTORY ===== */
.booking-history {
    margin-top: 48px;
}

.booking-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-item-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.booking-item-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.booking-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.booking-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.booking-status.confirmed {
    background: #d1fae5;
    color: var(--secondary-dark);
}

.booking-status.cancelled {
    background: #fee2e2;
    color: var(--danger-color);
}