/* SAFARI EMERGENCY FIX - Must be first */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {

        /* Keep error containers and other elements that should be hidden */
        .global-errors-compact[style*="display: none"],
        .group-errors-compact[style*="display: none"],
        [style*="display: none"] {
            display: none !important;
        }

        /* Preserve normal layout for social inputs and multi-select */
        .at-input {
            display: flex !important;
        }

        .multi-select-display .placeholder {
            display: none !important;
        }

        /* Preserve flex layout for form actions */
        .form-actions {
            display: flex !important;
        }

        /* Preserve inline display for buttons and form elements */
        .form-actions button,
        .btn-primary,
        .btn-secondary,
        .btn-danger,
        button {
            display: inline-block !important;
        }

        .navbar {
            position: fixed !important;
            top: 0 !important;
        }

        section,
        nav,
        footer {
            display: block !important;
        }
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #111827 !important;
    background-color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Safari-specific overrides */
body.safari-compatible * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
}

body.safari-compatible .navbar,
body.safari-compatible .hero-section,
body.safari-compatible .features-section,
body.safari-compatible .trusted-by-section,
body.safari-compatible .how-it-works-section,
body.safari-compatible .cta-section,
body.safari-compatible .footer {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* Ensure all major sections are always visible */
section,
nav,
footer,
.container,
.hero-section,
.features-section,
.trusted-by-section,
.how-it-works-section,
.cta-section,
.footer {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Social accounts selector */
.social-accounts {
    margin-top: 8px;
}

.social-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.social-btn {
    border: 1.5px solid #CBD5E1;
    background: #fff;
    color: #1F2937;
    border-radius: 8px;
    height: 36px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}

.social-btn:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.social-btn[aria-pressed="true"],
.social-btn.selected {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.social-btn .social-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.social-btn.selected .social-svg {
    filter: invert(1);
}

.social-inputs {
    display: grid;
    gap: 8px;
}

.at-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.at-input .social-inline-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    display: block;
}

.at-input .at-prefix {
    color: #9CA3AF;
    margin-right: 6px;
}

.at-input input {
    border: none;
    outline: none;
    width: 100%;
    font: inherit;
    color: #111827;
    background: transparent;
}

.at-input input::placeholder {
    color: #9CA3AF;
}

/* Ensure social inputs are always visible */
#social-inputs .at-input {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

#social-inputs .at-input input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Password Toggle Styles */
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* === Custom Toggle: Safari-proof native checkbox hiding === */
label.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

label.switch>input[type="checkbox"] {
    /* Visually hidden but accessible; :checked continue de fonctionner */
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    /* override body.safari-compatible * */
    appearance: none !important;
    -webkit-appearance: none !important;
    pointer-events: none !important;
    /* le clic passe par le <label> */
    clip: rect(0 0 0 0) !important;
    clip-path: inset(100%) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    outline: none !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #6B7280;
    transition: color 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 0;
    /* remove inline baseline spacing so SVG centers precisely */
}

.password-toggle-btn:hover {
    color: #374151;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.password-toggle-btn:focus {
    outline: none;
    color: #1F2937;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.password-field-container input[type="password"],
.password-field-container input[type="text"] {
    padding-right: 45px !important;
}

/* Eye icon SVG styles */
.eye-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
    /* ensure SVG doesn't sit on text baseline */
    transform: translateY(-1px);
    /* small nudge to correct visual vertical alignment */
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
.text-accent {
    color: #1A2634;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #1A2634 0%, #0F1419 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0F1419 0%, #0A0E13 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 38, 52, 0.3);
}

.btn-secondary {
    border: 2px solid #1A2634;
    color: #1A2634;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-style: normal;
}

.btn-secondary:hover {
    background: #E8EBF0;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary:focus {
    text-decoration: none;
}

.btn-cta-primary {
    background: white;
    color: #1A2634;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-cta-primary:hover {
    background: #F5F6F8;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
    background: white;
    color: #1A2634;
    transform: translateY(-2px);
}

/* Danger Button (confirm deletion) */
.btn-danger {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.25);
}

.btn-danger:disabled,
.btn-danger[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: 2px solid #1A2634;
}

.logo-icon span {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

.logo-text-footer {
    font-size: 1.25rem;
    font-weight: bold;
    color: whitesmoke;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #1A2634;
}

.nav-button {
    background: #1A2634;
    color: white;
    padding: 0.5rem 1rem;
    /* match login button width */
    border-radius: 0.375rem;
    /* match login button radius */
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: #0F1419;
    transform: scale(1.05);
}

.nav-login-btn {
    color: #1A2634;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #1A2634;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-login-btn:hover {
    background: #1A2634;
    color: white;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: #111827;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #f3f4f6;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #1A2634;
}

.mobile-nav-button {
    background: #1A2634;
    color: white;
    padding: 0.5rem 1rem;
    /* match mobile login button */
    border-radius: 0.375rem;
    /* match mobile login button */
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    /* align with mobile login button */
    transition: background 0.2s ease;
}

.mobile-nav-button:hover {
    background: #0F1419;
}

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }

    .mobile-menu-toggle:hover {
        background-color: #F3F4F6;
    }

    .mobile-menu-content {
        padding: 1rem 0;
    }

    .mobile-nav-link,
    .mobile-nav-login,
    .mobile-nav-button,
    .mobile-nav-logout {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        text-align: center;
        display: block;
        width: 100%;
    }

    .mobile-nav-link:hover,
    .mobile-nav-login:hover {
        background-color: #F3F4F6;
    }

    .mobile-nav-logout {
        background-color: #EF4444;
        color: white;
        border: none;
        font-weight: 500;
        cursor: pointer;
        margin-top: 0.5rem;
    }

    /* Hide logout button when user is logged out */
    body.user-logged-out .mobile-nav-logout {
        display: none !important;
    }

    /* Show logout button when user is logged in */
    body.user-logged-in .mobile-nav-logout {
        display: block !important;
    }

    .mobile-nav-logout:hover {
        background-color: #DC2626;
    }

    .mobile-language-switcher {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #E5E7EB;
        margin-bottom: 0.5rem;
    }

    .mobile-language-switcher .language-btn {
        padding: 0.5rem 1rem;
        border: 1px solid #E5E7EB;
        border-radius: 6px;
        background: white;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-language-switcher .language-btn.active {
        background: #1A2634;
        color: white;
        border-color: #1A2634;
    }
}

/* ===== Mobile Date Range Picker Enhancements ===== */
@media (max-width: 768px) {

    /* Flight booking-style date picker mobile adaptations */
    .date-range-picker {
        flex-direction: column;
        min-height: 60px;
        padding: 8px;
    }

    .date-input-container {
        padding: 8px 12px;
        min-width: 100px;
        text-align: center;
    }

    .date-input-container input {
        font-size: 14px;
        text-align: center;
    }

    .date-input-container label {
        font-size: 10px;
        left: 12px;
    }

    .date-separator {
        padding: 4px 0;
        font-size: 14px;
    }

    .date-picker-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 350px;
        border-radius: 8px;
        margin-top: 0;
    }

    .date-picker-header {
        padding: 12px 16px;
    }

    .date-picker-content {
        padding: 0 16px 16px;
    }

    .nav-btn {
        padding: 12px;
        font-size: 18px;
    }

    .month-year {
        font-size: 14px;
    }

    .weekday {
        font-size: 11px;
        padding: 6px 2px;
    }

    .date-cell {
        font-size: 14px;
        padding: 8px 4px;
        border-radius: 6px;
    }

    /* Mobile-specific date picker backdrop */
    .date-picker-dropdown.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* ===== Mobile Touch Improvements ===== */
@media (max-width: 768px) {

    /* Improve touch responsiveness */
    button,
    .btn-primary,
    .btn-secondary,
    .nav-button,
    .mobile-nav-button {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* Remove 300ms click delay on mobile */
    a,
    button,
    input,
    textarea,
    select {
        touch-action: manipulation;
    }

    /* Improve input focus on mobile */
    input:focus,
    textarea:focus,
    select:focus {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }

    /* Mobile-specific modal improvements */
    .modal.show {
        padding: 0;
    }

    .modal-content {
        min-height: 100vh;
        border-radius: 0;
        max-height: none;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid #E8EBF0;
    }

    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    /* Improve checkbox and radio button touch targets */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    /* Mobile-friendly language switcher */
    .language-switcher {
        display: none;
    }

    /* Mobile-specific form validation styling */
    .field-error {
        font-size: 14px;
        margin-top: 4px;
        display: block;
    }
}

.mobile-nav-login {
    color: #1A2634;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #1A2634;
    border-radius: 0.375rem;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-nav-login:hover {
    background: #1A2634;
    color: white;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.25rem;
    margin-right: 1rem;
}

.language-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.language-btn.active {
    background: #1A2634;
    border-color: #1A2634;
    color: white;
}

.mobile-language-switcher {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.mobile-language-switcher .language-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 4rem !important;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%) !important;
    display: block !important;
    visibility: visible !important;
}

.hero-grid {
    display: grid !important;
    gap: 3rem;
    align-items: center;
    opacity: 1 !important;
    transform: none !important;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem;
    }
}

.hero-content {
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #4b5563;
}

@media (min-width: 1024px) {
    .hero-features {
        justify-content: flex-start;
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border: 1px solid #f3f4f6;
}

.hero-card-bg-1 {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background: #E8EBF0;
    border-radius: 50%;
    opacity: 0.5;
}

.hero-card-bg-2 {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    width: 8rem;
    height: 8rem;
    background: #F5F6F8;
    border-radius: 50%;
    opacity: 0.3;
}

/* Center the CTA button in the Features section */
.features-cta {
    text-align: center;
    /* center inline/inline-flex children */
}

.features-cta .btn-primary {
    display: inline-flex;
    /* allows centering via text-align */
    margin: 0 auto;
    /* fallback for block contexts */
}

.hero-card-content {
    position: relative;
    z-index: 10;
}

.hero-card-demo {
    background: #f3f4f6;
    border-radius: 0.5rem;
    height: 12rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.hero-card-icon {
    width: 4rem;
    height: 4rem;
    background: #1A2634;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.hero-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-card-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-dot {
    width: 0.75rem;
    height: 0.75rem;
    background: #1A2634;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Features Section */
.features-section {
    padding: 5rem 0 !important;
    background: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    background: white;
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: #E8EBF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #1A2634;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #4b5563;
    line-height: 1.6;
}

.features-cta {
    background: linear-gradient(135deg, #F5F6F8 0%, #E8EBF0 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .features-cta {
        padding: 3rem;
    }
}

.features-cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .features-cta-title {
        font-size: 1.875rem;
    }
}

.features-cta-description {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Trusted By Section */
.trusted-by-section {
    padding: 4rem 0;
    background: #1A2634;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.trusted-by-section .section-header {
    margin-bottom: 2.5rem;
}

.trusted-by-section .section-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
}

.trusted-by-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5eead4;
    margin-bottom: 0.5rem;
}

.trusted-logos-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.trusted-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    height: 100px;
    min-width: 160px;
    transition: all 0.3s ease;
}

.trusted-logo-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.trusted-logo-item img {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

/* Exception for la-paniolade which needs different treatment */
.trusted-logo-item img[src*="la-paniolade"] {
    filter: brightness(1.2) contrast(1.1);
    opacity: 0.9;
}

.trusted-logo-item:hover img {
    opacity: 1;
}

.trusted-logo-item:hover img[src*="la-paniolade"] {
    opacity: 1;
    filter: brightness(1.3) contrast(1.2);
}

@media (max-width: 768px) {
    .trusted-by-section {
        padding: 3rem 0;
    }

    .trusted-logos-track {
        gap: 1.5rem;
    }

    .trusted-logo-item {
        padding: 1rem 1.25rem;
    }

    .trusted-logo-item img {
        max-height: 45px;
        max-width: 110px;
    }

    .trusted-by-section .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .trusted-logos-track {
        gap: 1rem;
    }

    .trusted-logo-item {
        padding: 0.75rem 1rem;
    }

    .trusted-logo-item img {
        max-height: 36px;
        max-width: 90px;
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0 !important;
    background: #f9fafb !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.steps-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    text-align: center;
    position: relative;
}

.step-connector {
    display: none;
    position: absolute;
    top: 2rem;
    left: 100%;
    width: 100%;
    height: 2px;
    background: #E8EBF0;
    transform: translateX(1rem);
}

.step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 8px;
    background: #5eead4;
    border-radius: 50%;
    transform: translate(4px, -3px);
}

@media (min-width: 1024px) {
    .step-card:not(:last-child) .step-connector {
        display: block;
    }
}

.step-content {
    position: relative;
    z-index: 10;
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background: #1A2634;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.step-number {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
    background: #E8EBF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A2634;
    font-weight: bold;
    font-size: 0.875rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.step-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
}

.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-card {
        padding: 3rem;
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #1A2634;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: #4b5563;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0 !important;
    background: linear-gradient(135deg, #1A2634 0%, #0F1419 100%) !important;
    color: white !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cta-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .cta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: #E8EBF0;
    margin-bottom: 2rem;
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #F5F6F8;
}

.cta-benefit i {
    color: #E8EBF0;
    flex-shrink: 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-visual {
    position: relative;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cta-card-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cta-card-header p {
    color: #E8EBF0;
}

.cta-card-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-step {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-step-title {
    font-weight: 500;
}

.cta-step-time {
    color: #E8EBF0;
    font-size: 0.875rem;
}

.cta-card-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.cta-card-footer p {
    color: #E8EBF0;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: #111827 !important;
    color: white !important;
    padding: 4rem 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #5eead4;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-contact-item i {
    color: #5eead4;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #5eead4;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

/* Intersection Observer Animation Classes */
.animations-ready .fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    animation: fallbackFadeIn 0.1s ease-out 3s forwards;
}

.animations-ready .fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
    animation: fallbackFadeIn 0.1s ease-out 3s forwards;
}

.animations-ready .fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
    animation: fallbackFadeIn 0.1s ease-out 3s forwards;
}

.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 1 !important;
    transform: none !important;
}

.animations-ready .fade-in-up.visible,
.animations-ready .fade-in-left.visible,
.animations-ready .fade-in-right.visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Fallback animation in case JavaScript doesn't load */
@keyframes fallbackFadeIn {
    to {
        opacity: 1 !important;
        transform: translate(0) !important;
    }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        margin-bottom: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-feature {
        justify-content: center;
        font-size: 0.875rem;
    }

    .hero-card {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .hero-card-content {
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .section-description {
        font-size: 1.125rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-title {
        font-size: 1.125rem;
    }

    .step-card {
        padding: 1.25rem;
    }

    .container {
        padding: 0 1rem;
    }
}

.section-title {
    font-size: 1.75rem;
}

.cta-title {
    font-size: 1.75rem;
}

/* Safari Desktop Fix - Ensure everything stays visible */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    * {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .navbar,
    .hero-section,
    .features-section,
    .trusted-by-section,
    .how-it-works-section,
    .cta-section,
    .footer,
    body,
    html {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* Additional Safari-only fixes */
@supports (-webkit-appearance: none) {
    body {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    * {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .navbar {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 50 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    section {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 38, 52, 0.8);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #E8EBF0;
}

.modal-header h2 {
    color: #1A2634;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #F3F4F6;
    color: #1A2634;
}

/* Form Styles */
.restaurant-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #1A2634;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E8EBF0;
}

.form-section h4 {
    color: #1A2634;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s;
    background-color: #ffffff;
    color: #374151;
    line-height: 1.5;
}

/* Custom select styling */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1A2634;
    box-shadow: 0 0 0 3px rgba(26, 38, 52, 0.1);
}

/* Select hover state */
.form-group select:hover {
    border-color: #D1D5DB;
}

/* Opening Hours Styles */
.opening-hours-container {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 1rem;
    background-color: #F9FAFB;
}

.day-schedule {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

.day-schedule:last-child {
    margin-bottom: 0;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.day-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.day-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #1A2634;
}

.add-time-slot {
    background-color: #1A2634;
    color: #ffffff;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-time-slot:hover {
    background-color: #0F1419;
}

.time-slots {
    margin-top: 0.5rem;
}

.time-slots.hidden {
    display: none;
}

.time-slot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #F9FAFB;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

.time-slot:last-child {
    margin-bottom: 0;
}

.time-slot input[type="time"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.875rem;
    background-color: #ffffff;
    max-width: 120px;
}

.time-slot input[type="time"]:focus {
    outline: none;
    border-color: #1A2634;
    box-shadow: 0 0 0 2px rgba(26, 38, 52, 0.1);
}

.time-slot span {
    color: #6B7280;
    font-weight: 500;
}

.remove-time-slot {
    background-color: #ef4444;
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.remove-time-slot:hover {
    background-color: #dc2626;
}

.day-schedule.disabled {
    opacity: 0.5;
}

.day-schedule.disabled .time-slots {
    display: none;
}

.day-schedule.disabled .add-time-slot {
    opacity: 0.5;
    cursor: not-allowed;
}

.day-schedule.disabled .add-time-slot:hover {
    background-color: #1A2634;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Multi-select dropdown styles */
.multi-select-wrapper {
    position: relative;
}

.multi-select-container {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.multi-select-display {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 1rem;
    color: #374151;
    min-height: 48px;
    max-height: 120px;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    overflow-y: auto;
}

/* Styles pour la barre de défilement */
.multi-select-display::-webkit-scrollbar {
    width: 4px;
}

.multi-select-display::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.multi-select-display::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.multi-select-display::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.multi-select-display:hover {
    border-color: #D1D5DB;
}

.multi-select-display.focused {
    border-color: #1A2634;
    box-shadow: 0 0 0 3px rgba(26, 38, 52, 0.1);
}

.multi-select-display.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.multi-select-display .placeholder {
    color: #9CA3AF;
    font-style: italic;
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    margin: 0;
    line-height: 1;
    z-index: 1;
}

/* Hide placeholder when there are tags */
.multi-select-display:has(.selected-tags .multi-select-tag) .placeholder,
.multi-select-display .selected-tags:not(:empty)~.placeholder {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Force hide placeholder when explicitly hidden */
.multi-select-display .placeholder[hidden],
.multi-select-display .placeholder[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    padding-right: 24px;
    align-items: flex-start;
    max-height: none;
    overflow: visible;
    box-sizing: border-box;
    flex-direction: row;
    flex-grow: 0;
    flex-shrink: 1;
    cursor: pointer;
    user-select: none;
    font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.multi-select-tag {
    background-color: rgb(26, 38, 52) !important;
    color: rgb(255, 255, 255) !important;
    padding: 3.2px 6.4px !important;
    border-radius: 4px !important;
    font-size: 12.8px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    animation: tagAppear 0.2s ease-out;
    margin: 2px 0px !important;
    line-height: 20.48px !important;
    height: auto !important;
    border: none !important;
    cursor: pointer !important;
    user-select: none !important;
    font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
    flex-wrap: nowrap !important;
    -webkit-font-smoothing: antialiased !important;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.multi-select-tag .remove,
.selected-tags .multi-select-tag .remove,
span.multi-select-tag button.remove {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    padding: 0px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    font-size: 11.2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0px !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s ease;
    box-sizing: border-box !important;
}

.multi-select-tag .remove:hover,
.selected-tags .multi-select-tag .remove:hover,
span.multi-select-tag button.remove:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.multi-select-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 0.75rem;
    top: 16px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    pointer-events: none;
}

.multi-select-container.open .multi-select-arrow {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 2px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.multi-select-container.open .multi-select-dropdown {
    display: block;
}

.multi-select-search {
    padding: 0.5rem;
    border-bottom: 1px solid #E5E7EB;
    background-color: #F9FAFB;
}

.multi-select-search .search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.875rem;
    background-color: #ffffff;
    color: #374151;
    outline: none;
    transition: border-color 0.2s ease;
}

.multi-select-search .search-input:focus {
    border-color: #1A2634;
    box-shadow: 0 0 0 2px rgba(26, 38, 52, 0.1);
}

.multi-select-search .search-input::placeholder {
    color: #9CA3AF;
}

.multi-select-options {
    max-height: 150px;
    overflow-y: auto;
}

.multi-select-option {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #374151;
}

.multi-select-option:hover {
    background-color: #F9FAFB;
    color: #1A2634;
}

.multi-select-option:last-child {
    border-bottom: none;
}

.multi-select-option.selected {
    background-color: #E5E7EB;
    color: #6B7280;
    cursor: default;
    position: relative;
}

.multi-select-option.selected::after {
    content: "✓";
    position: absolute;
    right: 1rem;
    color: #1A2634;
    font-weight: bold;
}

.multi-select-option.selected:hover {
    background-color: #E5E7EB;
    color: #6B7280;
}

/* Multi-select search with integrated control buttons */
.multi-select-search-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.multi-select-search-wrapper input {
    width: 100%;
    padding: 8px 80px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.multi-select-controls {
    position: absolute;
    right: 8px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.multi-select-control-btn {
    padding: 2px 6px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

.multi-select-control-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.multi-select-control-btn.select-all {
    color: #1a73e8;
}

.multi-select-control-btn.select-all:hover {
    background: rgba(26, 115, 232, 0.08);
}

.multi-select-control-btn.clear-all {
    color: #ea4335;
}

.multi-select-control-btn.clear-all:hover {
    background: rgba(234, 67, 53, 0.08);
}

/* Responsive adjustments for multi-select */
@media (max-width: 768px) {
    .multi-select-dropdown {
        max-height: 150px;
    }

    .multi-select-tag {
        background-color: rgb(26, 38, 52) !important;
        color: rgb(255, 255, 255) !important;
        padding: 3.2px 6.4px !important;
        border-radius: 4px !important;
        font-size: 12.8px !important;
        margin: 2px 0px !important;
        line-height: 20.48px !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        border: none !important;
        cursor: pointer !important;
        user-select: none !important;
        font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif !important;
        box-sizing: border-box !important;
        flex-direction: row !important;
        flex-grow: 0 !important;
        flex-shrink: 1 !important;
        flex-wrap: nowrap !important;
        -webkit-font-smoothing: antialiased !important;
    }
}

.policy-section,
.form-section.policy-section,
section.policy-section {
    display: block !important;
    flex-direction: row !important;
    gap: normal !important;
    padding: 24px !important;
    margin: 24px 0px !important;
    box-sizing: border-box !important;
}

/* Mobile specific rules for policy section */
@media (max-width: 768px) {

    .policy-section,
    .form-section.policy-section,
    section.policy-section {
        padding: 16px !important;
        margin: 16px 0px !important;
    }
}

/* Ensure policy section elements are not affected by multi-select styles */
.policy-section * {
    gap: normal !important;
}

.policy-section .form-checkbox-group {
    display: block !important;
    flex-direction: row !important;
    align-items: normal !important;
}

.policy-section .checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: normal !important;
    flex-wrap: wrap !important;
    line-height: 1.5 !important;
}

/* Fix text flow in checkbox labels */
.checkbox-label span,
.checkbox-label a {
    display: inline !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Ensure links flow naturally with surrounding text */
.checkbox-label a {
    text-decoration: underline !important;
    color: #3B82F6 !important;
    white-space: nowrap !important;
    margin: 0 2px !important;
}

/* Container for text content after checkbox */
.checkbox-label .checkmark~span,
.checkbox-label .checkmark~a {
    flex: 1 !important;
    display: inline !important;
}

.form-checkbox-group {
    margin-top: 1.5rem;
    display: block !important;
    gap: normal !important;
    align-items: normal !important;
    flex-direction: row !important;
}

.checkbox-label {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem;
    cursor: pointer;
    color: #374151;
    font-weight: normal;
    flex-direction: row !important;
    gap: 8px !important;
    line-height: 1.5 !important;
}

/* Create a text container after checkbox and checkmark */
.checkbox-label input[type="checkbox"]+.checkmark {
    flex-shrink: 0 !important;
}

/* Wrap all text content after checkmark in a single flowing container */
.checkbox-label .checkmark~span,
.checkbox-label .checkmark~a {
    display: inline !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: inherit !important;
}

/* Remove extra spacing from links */
.checkbox-label a {
    color: #3B82F6 !important;
    text-decoration: underline !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* Fix the specific issue with line breaks around links */
.checkbox-label span:not(.checkmark) {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure text flows continuously and handle &nbsp; issues */
.checkbox-label .checkmark+span {
    display: inline !important;
}

/* Override any white-space issues from &nbsp; */
.checkbox-label a[data-i18n*="terms-link"],
.checkbox-label a[data-i18n*="privacy-link"] {
    white-space: nowrap !important;
    margin-left: 3px !important;
    margin-right: 3px !important;
}

/* Force continuous text flow for all text elements */
.checkbox-label span[data-i18n],
.checkbox-label a[data-i18n] {
    display: inline !important;
    white-space: normal !important;
}

/* Create a text wrapper after the checkmark */
.checkbox-label {
    position: relative !important;
}

.checkbox-label .checkmark~span:first-of-type {
    margin-right: 0 !important;
}

.checkbox-label .checkmark~a {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Prevent awkward breaks by treating link content as atomic */
.checkbox-label a {
    display: inline !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #1A2634;
}

/* Terms and Conditions Specific Styling */
.terms-conditions {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.terms-conditions .checkbox-label {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terms-conditions .checkbox-label.required {
    font-weight: 500;
}

.terms-conditions .terms-link {
    color: #1A2634;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.terms-conditions .terms-link:hover {
    color: #0F1419;
    text-decoration: none;
}

.terms-conditions .checkbox-label:last-child {
    margin-bottom: 0;
}

/* Policy Section Styling */
.policy-section {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.policy-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
}

.policy-section .checkbox-label {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.policy-section .checkbox-label:last-child {
    margin-bottom: 0;
}

label a {
    margin: 0 0.25ch;
}

.policy-section .checkbox-label a {
    color: #1A2634;
    text-decoration: underline;
    transition: color 0.2s;
}

.policy-section .checkbox-label a:hover {
    color: #0F1419;
    text-decoration: none;
}

/* Custom checkmark styling for policy checkboxes */
.policy-section .checkmark {
    /* This span acts as a visual indicator, but we'll use the native checkbox for now */
    display: none;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E8EBF0;
}

.form-actions .btn-secondary {
    background-color: #F3F4F6;
    color: #374151;
    border: 2px solid #E5E7EB;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-secondary:hover {
    background-color: #E5E7EB;
    border-color: #D1D5DB;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #1A2634 0%, #0F1419 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0F1419 0%, #0A0E13 100%);
    transform: translateY(-1px);
}

/* Header buttons size normalization */
.nav-button,
.nav-login-btn {
    font-size: 1rem;
    line-height: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    /* consistent height (40px) */
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .modal-content {
        max-height: 95vh;
        width: 100%;
        margin: 0;
        border-radius: 8px;
    }

    .modal-header {
        padding: 1rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .restaurant-form {
        padding: 1rem 1.5rem;
    }

    /* Mobile Form Responsiveness */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
    }

    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
        padding: 0.875rem 1rem;
        justify-content: center;
    }

    /* Mobile Multi-select Improvements */
    .multi-select-dropdown {
        max-height: 200px;
        font-size: 14px;
        /* Use absolute positioning to stay attached to container */
        position: absolute !important;
        z-index: 10000 !important;
        transform: none !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        max-width: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        /* Optimize scrolling */
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        /* Ensure it doesn't get clipped */
        margin-top: 0 !important;
        border-radius: 0 0 8px 8px !important;
    }

    /* Custom scrollbar for mobile dropdown */
    .multi-select-dropdown::-webkit-scrollbar {
        width: 6px !important;
    }

    .multi-select-dropdown::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 3px !important;
    }

    .multi-select-dropdown::-webkit-scrollbar-thumb {
        background: #c1c1c1 !important;
        border-radius: 3px !important;
    }

    .multi-select-dropdown::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8 !important;
    }

    .multi-select-container {
        font-size: 14px;
        /* Ensure container doesn't cause layout shifts */
        position: relative !important;
        overflow: visible !important;
        /* Prevent any size changes when dropdown opens */
        min-height: 48px !important;
        /* Create stacking context for absolute positioned dropdown */
        z-index: 1 !important;
    }

    .selected-tag,
    .multi-select-tag {
        font-size: 0.75rem;
        padding: 0.1875rem 0.375rem;
        margin: 0.125rem 0.125rem 0.125rem 0;
        border-radius: 12px;
        background-color: #e5e7eb;
        color: #374151;
        border: 1px solid #d1d5db;
    }

    /* Prevent the multi-select from causing page jumps or scrolling issues */
    .multi-select-container.open {
        overflow: visible !important;
        /* Don't change container when open */
        min-height: 48px !important;
        z-index: 1 !important;
    }

    .multi-select-wrapper {
        position: relative !important;
        overflow: visible !important;
        /* Prevent wrapper from changing size */
        min-height: 48px !important;
        /* Ensure wrapper creates proper stacking context */
        z-index: auto !important;
    }

    /* Ensure form group doesn't resize when dropdown opens */
    .form-group:has(.multi-select-container.open) {
        overflow: visible !important;
        position: relative !important;
    }

    /* Prevent any scrolling when dropdown opens */
    .modal-content:has(.multi-select-container.open) {
        overflow-y: auto !important;
        scroll-behavior: auto !important;
    }

    /* Ensure dropdowns don't affect document scroll */
    body:has(.multi-select-container.open) {
        overflow: auto !important;
    }

    /* Mobile Opening Hours */
    .day-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
        border: 1px solid #E5E7EB;
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }

    .day-label {
        font-weight: 600;
        color: #374151;
    }

    .time-range {
        width: 100%;
        justify-content: flex-start;
    }

    .time-range input[type="time"] {
        flex: 1;
        max-width: 120px;
    }

    .pause-btn {
        margin-top: 0.5rem;
        width: 100%;
        max-width: 150px;
    }

    /* Mobile Social Media */
    .social-selector {
        justify-content: center;
        gap: 12px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-inputs {
        gap: 12px;
    }

    .at-input {
        padding: 10px 12px;
    }

    /* Mobile File Upload */
    .file-upload-container {
        margin-bottom: 1rem;
    }

    .file-label {
        padding: 1rem;
        font-size: 14px;
        text-align: center;
    }

    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .preview-image {
        height: 80px;
    }

    /* Mobile Exceptions */
    .exception-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .exception-form input,
    .exception-form select,
    .exception-form button {
        width: 100%;
        padding: 0.75rem;
        font-size: 14px;
    }

    .exceptions-list {
        max-height: 150px;
    }

    .exception-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .exception-item .remove-exception {
        align-self: flex-end;
        margin-top: 0.5rem;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    /* Opening hours responsive */
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .add-time-slot {
        align-self: flex-end;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .time-slot {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .time-slot input[type="time"] {
        max-width: 100px;
    }
}

/* Form Messages */
.form-success-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    margin: 1rem 0;
}

.form-success-message .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-success-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.form-success-message p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.form-error-message {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 12px;
    margin: 1rem 0;
}

.form-error-message .error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-error-message p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    opacity: 0.9;
}

/* Loading state for submit button */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6b7280;
}

button[type="submit"]:disabled:hover {
    background: #6b7280;
    transform: none;
}

/* Advanced Schedule Builder Styles */
.schedule-builder {
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: #f9fafb;
}

.schedule-groups {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.schedule-group {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E5E7EB;
}

.group-header h4 {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1rem;
}

.group-actions {
    display: flex;
    gap: 0.5rem;
}

.duplicate-group,
.remove-group {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.375rem 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.duplicate-group:hover {
    background: #e5e7eb;
}

.remove-group:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Time Slots Container */
.time-slots-container {
    margin-bottom: 1.5rem;
}

.time-slot-row {
    margin-bottom: 0.75rem;
}

.time-slot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.time-slot input[type="time"] {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.time-slot span {
    color: #6b7280;
    font-weight: 500;
}

.remove-time-slot {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    margin-left: auto;
}

.remove-time-slot:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.add-time-slot {
    padding: 0.5rem 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.add-time-slot:hover {
    background: #2563eb;
}

/* Days Selection */
.days-selection h5 {
    margin: 0 0 0.75rem 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
}

.days-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.day-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid #E5E7EB;
}

.day-checkbox:hover {
    background: #f3f4f6;
}

.day-checkbox.disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #f3f4f6;
}

.day-checkbox.disabled input {
    cursor: not-allowed;
}

.day-checkbox input[type="checkbox"] {
    margin: 0;
}

.day-checkbox input[type="checkbox"]:disabled {
    opacity: 0.5;
}

.day-checkbox span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Quick Select Buttons */
.quick-select {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-select-btn {
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-select-btn:hover {
    background: #e5e7eb;
}

.quick-select-btn[data-action="none"]:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Add Schedule Group Button */
.add-schedule-group {
    width: 100%;
    padding: 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.add-schedule-group:hover {
    background: #059669;
}

/* Error Messages */
.group-errors,
.global-errors {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 4px;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.error-message:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .schedule-builder {
        padding: 0.75rem;
    }

    .schedule-group {
        padding: 1rem;
    }

    .group-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .time-slot {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .days-checkboxes {
        grid-template-columns: 1fr;
    }

    .quick-select {
        flex-direction: column;
    }
}

/* ===== SCHEDULE BUILDER COMPACT ===== */
.schedule-builder-compact {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 8px;
}

.schedule-group-compact {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.group-header-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.group-number {
    background: #007bff;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.time-slots-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.time-slot-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.time-slot-compact.time-slot-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    animation: pulse-error 1s ease-in-out;
}

@keyframes pulse-error {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.time-slot-compact input[type="time"] {
    border: none;
    background: transparent;
    font-size: 13px;
    padding: 2px;
    width: 70px;
}

.time-slot-compact span {
    color: #6c757d;
    font-size: 12px;
}

.remove-time-slot-compact {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
}

.add-time-slot-compact {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.group-actions-compact {
    display: flex;
    gap: 4px;
    align-items: center;
}

.duplicate-group-compact,
.remove-group-compact {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.remove-group-compact {
    background: #dc3545;
}

.days-selection-compact {
    margin-top: 8px;
}

.days-row {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.day-compact {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-width: 36px;
    height: 28px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.day-compact:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.day-compact.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.day-compact.disabled {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.day-compact.disabled:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.quick-actions-compact {
    display: flex;
    gap: 4px;
}

.quick-btn-compact {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 10px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-btn-compact:hover {
    background: #e9ecef;
}

.add-schedule-group-compact {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.add-schedule-group-compact:hover {
    background: #0056b3;
}

.group-errors-compact,
.global-errors-compact {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    font-size: 12px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .group-header-compact {
        flex-direction: column;
        align-items: stretch;
    }

    .time-slots-inline {
        justify-content: flex-start;
    }

    .days-row {
        justify-content: space-between;
    }

    .day-compact {
        min-width: 32px;
        height: 24px;
        font-size: 10px;
        padding: 0 2px;
    }
}

/* Photo Upload Styles */
.file-upload-container {
    position: relative;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}

.file-label:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

.file-label.has-file {
    background: #ecfdf5;
    border-color: #22c55e;
    color: #16a34a;
}

/* Error state for required photo fields */
.file-label.has-error {
    background: #fef2f2;
    border-color: #ef4444;
    border-style: solid;
    color: #dc2626;
}

/* Error state for hours manager */
#hours-manager.has-error,
.schedule-groups-compact.has-error {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 12px;
}

/* Disabled state when max files reached */
.file-label.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.upload-icon {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-preview {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.preview-info {
    padding: 8px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.preview-name {
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
    line-height: 1.3;
}

.preview-size {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Dish Photos Specific Styles */
.dish-photos-container {
    display: grid;
    gap: 20px;
}

.dish-photo-item {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafafa;
}

.dish-names {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.dish-name-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.dish-name-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.dish-name-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dish-name-input::placeholder {
    color: #9ca3af;
}

.dish-name-input:disabled::placeholder {
    color: #d1d5db;
}

/* Photo Section Spacing */
.form-section:has(.dish-photos-container) {
    border-top: 2px solid #f1f5f9;
    padding-top: 30px;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .dish-names {
        grid-template-columns: 1fr;
    }

    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .preview-image {
        height: 100px;
    }

    .dish-photo-item {
        padding: 15px;
    }
}

/* RESET-PASSWORD PAGE STYLES */
.auth-body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 40px;
    max-width: 420px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.logo img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a2634;
}

.logo-text-footer {
    font-size: 24px;
    font-weight: 700;
    color: whitesmoke;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    color: #1a2634;
    text-align: center;
    margin-bottom: 8px;
}

p.subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

input[type="password"]:focus {
    outline: none;
    border-color: #1A2634;
    box-shadow: 0 0 0 3px rgba(26, 38, 52, 0.1);
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
}

.auth-card .btn-primary {
    width: 100%;
}

.info {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.password-requirements {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.req-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
}

.requirement.valid {
    color: #059669;
}

.requirement.valid .req-icon {
    color: #059669;
}

.requirement.invalid {
    color: #dc2626;
}

.requirement.invalid .req-icon {
    color: #dc2626;
}

/* Simple spacing utility to replace inline style */
.mt-12 {
    margin-top: 12px;
}

/* Language switch */
.lang-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.lang-switch button {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.lang-switch button+button {
    margin-left: 8px;
}

.lang-switch button.active {
    background: #1A2634;
    color: #fff;
    border-color: #1A2634;
}

/* ===== COOKIE CONSENT STYLES ===== */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cookie-icon {
    font-size: 1.5rem;
    color: #1A2634;
    margin-top: 0.25rem;
}

.cookie-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A2634;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie-customize {
    background: transparent;
    border: 2px solid #1A2634;
    color: #1A2634;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-cookie-customize:hover {
    background: #F8FAFC;
}

.btn-cookie-reject {
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    color: #4B5563;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-cookie-reject:hover {
    background: #E5E7EB;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #1A2634 0%, #0F1419 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-cookie-accept:hover {
    background: linear-gradient(135deg, #0F1419 0%, #0A0E13 100%);
    transform: translateY(-1px);
}

/* Cookie Preferences Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.cookie-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A2634;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.cookie-modal-close:hover {
    background: #F3F4F6;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-body>p {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1A2634;
    margin-bottom: 0.5rem;
}

.cookie-category-info p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-toggle {
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #CBD5E1;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-switch.active {
    background: #1A2634;
}

.toggle-switch.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #E5E7EB;
    background: #F8FAFC;
}

.cookie-policy-link {
    color: #1A2634;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.cookie-policy-link:hover {
    color: #0F1419;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-cookie-cancel {
    background: transparent;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-cookie-cancel:hover {
    background: #F3F4F6;
}

.btn-cookie-save {
    background: linear-gradient(135deg, #1A2634 0%, #0F1419 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-cookie-save:hover {
    background: linear-gradient(135deg, #0F1419 0%, #0A0E13 100%);
    transform: translateY(-1px);
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    top: 100px;
    right: 1rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.cookie-notification.show {
    transform: translateX(0);
}

.cookie-notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-notification-content i {
    color: #10B981;
    font-size: 1.25rem;
}

.cookie-notification-content span {
    color: #1A2634;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-banner-text {
        text-align: left;
    }

    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .cookie-banner-actions button {
        flex: 1;
        min-width: 100px;
    }

    .cookie-modal-content {
        width: 95vw;
        margin: 1rem;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .cookie-notification {
        right: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
}

/* =====================================================
   HOW-IT-WORKS — FORCE EQUAL HEIGHTS FOR STEP CARDS
   This makes all step cards in the How it Works section
   the same height across the row, regardless of content.
   ===================================================== */

/* Ensure the steps container stretches items to equal height */
.how-it-works-section .steps-grid,
.how-it-works-section .how-grid,
.how-it-works-section .steps,
.how-it-works-section .cards-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    /* key for equal heights */
}

@media (min-width: 768px) {

    .how-it-works-section .steps-grid,
    .how-it-works-section .how-grid,
    .how-it-works-section .steps,
    .how-it-works-section .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {

    .how-it-works-section .steps-grid,
    .how-it-works-section .how-grid,
    .how-it-works-section .steps,
    .how-it-works-section .cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Make each card fill the available track height */
.how-it-works-section .step-card,
.how-it-works-section .how-card,
.how-it-works-section .card,
.how-it-works-section .steps-grid>*,
.how-it-works-section .how-grid>*,
.how-it-works-section .steps>*,
.how-it-works-section .cards-grid>* {
    height: 100%;
    display: flex;
    /* allows inner content to stretch */
    flex-direction: column;
}

/* Optional: let body/content area expand so footers/CTAs align */
.how-it-works-section .step-body,
.how-it-works-section .card-body,
.how-it-works-section [class*="card"] [class*="body"],
.how-it-works-section [class*="step"] [class*="body"] {
    flex: 1 1 auto;
}

/* Hide Terms/Privacy on dashboard modal for authenticated users (Safari first paint) */
.feen-authed #registration-modal .terms-conditions,
.feen-authed #registration-modal .policy-section {
    display: none !important;
}

/* --- File upload label alignment fixes --- */
/* Ensure all file upload labels are left-aligned like other photo fields */
#restaurant-form .file-upload-container .file-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* left alignment */
    text-align: left;
    width: 100%;
}

/* Stronger selector specifically for the Menu photos field */
#restaurant-form #menuPhoto+.file-label {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Keep a small gap between the icon and text */
#restaurant-form .file-label .upload-icon {
    margin-right: 8px;
}

/* Hours Manager Styles */
.hours-manager {
    margin: 1rem 0;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #F8FAFC;
}

.day-label {
    min-width: 80px;
    font-weight: 500;
    color: #374151;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: 0.2s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: #059669;
}

input:disabled+.slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.time-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-range input[type="time"] {
    padding: 0.375rem 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.time-range input[type="time"]:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.time-range input[type="time"]:disabled {
    background-color: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

.pause-btn {
    padding: 0.375rem 0.75rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.pause-btn:hover:not(:disabled) {
    background: #2563EB;
}

.pause-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.extra-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: auto;
}

.extra-slots .slot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
}

.extra-slots .slot input[type="time"] {
    padding: 0.25rem 0.375rem;
    border: 1px solid #D1D5DB;
    border-radius: 3px;
    font-size: 0.75rem;
}

.extra-slots .slot .rm {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
}

.extra-slots .slot .rm:hover {
    background: #DC2626;
}

/* Exceptions Styles */
.exceptions-section {
    margin-top: 2rem;
}

.exceptions-list {
    margin: 1rem 0;
    max-height: 200px;
    overflow-y: auto;
}

.exception-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.875rem;
}

.exception-item .del {
    background: #EF4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.exception-item .del:hover {
    background: #DC2626;
}

.exception-form {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.exception-form input,
.exception-form select {
    padding: 0.375rem 0.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 0.875rem;
}

.exception-form button {
    padding: 0.375rem 0.75rem;
    background: #059669;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}

.exception-form button:hover {
    background: #047857;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    /* CRITICAL MOBILE FIX: Hide pause labels and optimize space */
    .pause-label,
    .extra-slots .pause-label,
    #hours-manager .day-row .extra-slots .pause-label,
    #hours-manager .day-row .extra-slots .time-range .pause-label {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* CRITICAL MOBILE FIX: Small remove buttons */
    .modal-content .restaurant-form #hours-manager .day-row .extra-slots .time-range .remove-slot,
    #restaurant-form #hours-manager .day-row .extra-slots .time-range .remove-slot,
    .hours-manager .day-row .extra-slots .time-range .remove-slot,
    .time-range .remove-slot,
    .rm {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        font-size: 8px !important;
        border-radius: 2px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ef4444 !important;
        color: white !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    /* MOBILE OPTIMIZATION: Better pause section layout */
    .hours-manager .day-row .extra-slots .time-range {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 6px 0 !important;
        padding: 4px !important;
        gap: 2px !important;
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        min-height: 36px !important;
        /* CRITICAL: Remove any positioning that causes overflow */
        left: 0 !important;
        position: static !important;
        transform: none !important;
    }

    /* MOBILE: Ultra-compact cross button */
    .hours-manager .day-row .extra-slots .time-range .rm,
    .hours-manager .day-row .extra-slots .time-range .remove-slot {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        padding: 0 !important;
        margin: 0 0 0 4px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: 16px !important;
    }

    /* MOBILE: Optimized time inputs */
    .hours-manager .day-row .extra-slots .time-range input[type="time"] {
        width: 60px !important;
        max-width: 60px !important;
        min-width: 60px !important;
        height: 28px !important;
        font-size: 10px !important;
        padding: 2px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        box-sizing: border-box !important;
        border: 1px solid #d1d5db !important;
        border-radius: 3px !important;
    }

    /* MOBILE: Ultra-compact separators */
    .hours-manager .day-row .extra-slots .time-range span:not(.pause-label) {
        font-size: 10px !important;
        margin: 0 1px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        min-width: 8px !important;
        max-width: 8px !important;
        text-align: center !important;
    }

    .day-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .day-label {
        min-width: auto;
        width: 100%;
    }

    .time-range {
        width: 100%;
    }

    .extra-slots {
        width: 100%;
        margin-left: 0;
    }

    .exception-form {
        flex-direction: column;
        align-items: stretch;
    }

    /* Additional mobile modal constraints */
    .modal-content {
        width: 95% !important;
        max-width: 500px !important;
        margin: 20px auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: relative !important;
        padding: 16px !important;
    }

    /* Exception: modal content needs visible overflow when multi-select is open */
    .modal-content.has-open-dropdown {
        overflow: visible !important;
    }

    .form-section {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: relative !important;
        padding: 0 !important;
    }

    /* Exception: form sections with multi-select need visible overflow */
    .form-section.has-open-dropdown {
        overflow: visible !important;
    }

    .form-group {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        position: relative !important;
        padding: 0 !important;
    }

    /* Exception: form groups with multi-select need visible overflow */
    .form-group.has-open-dropdown {
        overflow: visible !important;
    }

    /* Ensure all children respect container boundaries - but exclude multi-select dropdowns */
    .hours-manager,
    .hours-manager *:not(.multi-select-dropdown):not(.multi-select-dropdown *),
    .extra-slots,
    .extra-slots *:not(.multi-select-dropdown):not(.multi-select-dropdown *),
    .modal-content,
    .modal-content *:not(.multi-select-dropdown):not(.multi-select-dropdown *),
    .form-section,
    .form-section *:not(.multi-select-dropdown):not(.multi-select-dropdown *),
    .form-group,
    .form-group *:not(.multi-select-dropdown):not(.multi-select-dropdown *) {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Aggressive mobile containment */
    .hours-manager .day-row .extra-slots {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin: 12px 16px 0 16px !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .hours-manager .day-row .extra-slots .time-range {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Prevent any elements from extending beyond viewport - but exclude multi-select dropdowns */
    *:not(.multi-select-dropdown):not(.multi-select-dropdown *) {
        max-width: 100vw !important;
    }

    /* Override any desktop fixed positioning that might cause overflow */
    .hours-manager .day-row .extra-slots .time-range {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
    }

    /* Hours Manager Mobile Optimization */
    .hours-manager {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    /* Complete override of desktop grid layout for mobile */
    .hours-manager .day-row {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-column: none !important;
        grid-row: none !important;
        padding: 16px !important;
        margin: 0 0 16px 0 !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .hours-manager .day-row .day-label {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        color: #374151 !important;
        border-bottom: 1px solid #f3f4f6 !important;
        padding-bottom: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        grid-column: none !important;
        grid-row: none !important;
    }

    .hours-manager .day-row .day-controls {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        grid-column: none !important;
        grid-row: none !important;
    }

    .hours-manager .day-row .toggle-time-container {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        grid-column: none !important;
        grid-row: none !important;
    }

    .hours-manager .day-row .switch {
        flex-shrink: 0 !important;
    }

    .hours-manager .day-row .time-range {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .hours-manager .day-row .time-range input[type="time"] {
        width: 90px !important;
        max-width: 90px !important;
        height: 40px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 4px !important;
        padding: 6px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        background: white !important;
        color: #374151 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    .hours-manager .day-row .time-range input[type="time"]:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }

    .hours-manager .day-row .time-range span {
        font-size: 14px !important;
        color: #6b7280 !important;
        flex-shrink: 0 !important;
        min-width: 16px !important;
        text-align: center !important;
    }

    .hours-manager .day-row .pause-btn {
        width: 100% !important;
        height: 44px !important;
        background: #10b981 !important;
        color: white !important;
        border: none !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        margin-top: 8px !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    .hours-manager .day-row .pause-btn:disabled {
        background: #d1d5db !important;
        color: #9ca3af !important;
    }

    .hours-manager .day-row .extra-slots {
        margin-top: 12px !important;
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        overflow: hidden !important;
        grid-column: none !important;
        grid-row: none !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hours-manager .day-row .extra-slots .time-range {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 6px !important;
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        grid-column: none !important;
        grid-row: none !important;
        flex: none !important;
    }

    .hours-manager .day-row .extra-slots .time-range:last-child {
        margin-bottom: 0 !important;
    }

    .hours-manager .day-row .extra-slots .time-range input[type="time"] {
        width: 65px !important;
        max-width: 65px !important;
        min-width: 65px !important;
        height: 32px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 4px !important;
        padding: 2px 4px !important;
        font-size: 11px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        background: white !important;
        color: #374151 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }

    .hours-manager .day-row .extra-slots .time-range input[type="time"]:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
    }

    .hours-manager .day-row .extra-slots .time-range span {
        font-size: 10px !important;
        color: #6b7280 !important;
        flex-shrink: 0 !important;
        min-width: 6px !important;
        max-width: 6px !important;
        text-align: center !important;
        margin: 0 1px !important;
    }

    .hours-manager .day-row .extra-slots .time-range .remove-slot {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        min-height: 16px !important;
        background: #ef4444 !important;
        color: white !important;
        border: none !important;
        border-radius: 2px !important;
        font-size: 8px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        padding: 0 !important;
        transition: all .15s ease !important;
    }
}

@media (max-width: 768px) {

    /* Date picker mobile styles */
    .date-range-picker {
        flex-direction: column !important;
        padding: 12px !important;
        min-height: auto !important;
    }

    .date-input-container {
        min-width: 100% !important;
        margin-bottom: 8px !important;
    }

    .date-separator {
        align-self: center !important;
        margin: 4px 0 !important;
    }

    .date-picker-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
        max-width: 350px !important;
        z-index: 10000 !important;
    }

    .date-picker-dropdown::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: -1 !important;
    }

    /* Exceptions mobile styles */
    .exceptions-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .exceptions-header h4 {
        margin-bottom: 0 !important;
    }

    .exception-form .form-row {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .exception-form .form-row input,
    .exception-form .form-row select,
    .exception-form .form-row button {
        width: 100% !important;
        min-height: 48px !important;
    }

    .exception-form .ex-hours {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .exception-form .ex-hours .time-range {
        grid-column: 1 !important;
        width: 100% !important;
    }

    .exception-form .ex-hours .pause-btn {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .exception-form .ex-hours .extra-slots {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
    }

    .exception-item {
        padding: 12px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .exception-item .remove-exception {
        min-width: 36px !important;
        min-height: 36px !important;
        align-self: flex-end !important;
    }
}

/* Date picker visibility fix (all breakpoints): force overlay when open */
#exception-date-picker .date-picker-dropdown.show {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10000 !important;
}

#exception-date-picker .date-picker-dropdown.show::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: -1 !important;
}

/* Ensure visibility even when portaled to <body> */
#date-picker-dropdown.show {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100000 !important;
    background: #fff !important;
    width: min(420px, 90vw) !important;
    max-height: 80vh !important;
    overflow: auto !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}