:root {
    --primary:#2F8C7D;
    --primary-gradient: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    --primary-dark:#246d61;
    --primary-light: #f0fdfa;
    --accent:#FF6B35;
    --text-main: #0f172a;
    --text-muted:#6B7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(13, 148, 136, 0.1), 0 4px 6px -4px rgba(13, 148, 136, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 1rem;
    --primary-soft: rgba(47, 140, 125, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
     --shadow-3d: 0 20px 40px -10px rgba(13, 148, 136, 0.2), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
     --light: #14b8a6;
}

/* Modern Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-left: 5px solid var(--primary);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    width: 350px;
    min-width: 300px;
    max-width: calc(100vw - 40px);
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 2px solid var(--glass-border);
}

.toast.error {
    border-left-color: #ef4444; /* Red for errors */
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { transform: translateY(-20px); opacity: 0; }
}

@keyframes pageEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flying {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.nav-link{
font-size:.8rem;
font-weight:800;
letter-spacing:.1rem;
text-transform:uppercase;
color:rgba(255,255,255,.85);
position:relative;
}

.nav-link:hover { 
    color: white; 
}

.navbar{
position:fixed;
top:0;
left:0;
width:100%;
z-index:100;
background: radial-gradient(circle at top right, rgba(9, 225, 189, 0.686), transparent),
                radial-gradient(circle at bottom left, rgba(47, 140, 125, 0.1), transparent),
                #000000cb;
backdrop-filter:blur(10px);
transition:all 0.3s ease;
padding:1rem 0;
}

.booking-page-content {
    padding-top: 100px;
    background: radial-gradient(circle at top right, rgba(17, 235, 199, 0.484), transparent),
                radial-gradient(circle at bottom left, rgba(47, 140, 125, 0.1), transparent),
                #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    animation: pageEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.booking-page-content::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.05;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.booking-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.booking-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.booking-header .badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(13, 148, 136, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 0.6rem 1.2rem;
    margin-bottom: 2rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.booking-header .badge:hover {
    transform: translateY(-2px);
    border: 2px solid rgba(255, 166, 0, 0.515);
}

.badge-container {
    width: 14px;
    height: 14px;
    margin-right: 8px;
}

.booking-header h1 {
    font-size: clamp(2.8rem, 10vw, 5rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.booking-header h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #1e5c52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 0 0 20px rgba(47, 140, 125, 0.3);
}

.booking-header h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.1;
    z-index: -1;
}

.booking-header p {
    font-size: 1.35rem;
    max-width: 700px;
    font-weight: 400;
    margin: 0 auto;
    color: var(--text-muted); 
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.step-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--primary-soft);
    color: var(--primary);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(47, 140, 125, 0.2);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}


.step-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.booking-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr; 
    gap: 2.5rem;
    width: 100%;
    align-items: flex-start;
}

.booking-grid > section:nth-child(2) {
    animation-delay: 1.5s;
}

.card {
    animation: flying 6s ease-in-out infinite;
    will-change: transform;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-3d);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.card:hover {
    animation-play-state: paused;
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 0 60px -15px var(--primary);
}

.section-title {
    font-size: 0.875rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
}


.flatpickr-calendar.inline {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    width: 100% !important;
}

.flatpickr-months {
    margin-bottom: 20px;
    margin-top: -35px;
}

.flatpickr-innerContainer, 
.flatpickr-days, 
.dayContainer {
    gap: 4px;
}

.flatpickr-day {
    border-radius: 12px !important;
    height: 45px !important;
    line-height: 45px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.flatpickr-day.selected {
    background: var(--primary-gradient) !important;
    border: none !important;
    transform: scale(1.1) translateZ(20px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3) !important;
}

.flatpickr-weekday {
    font-weight: 800 !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    font-size: 0.7rem !important;
}

/* Time Slots 3D */
.slots-container {
    display: none;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.slot-btn {
    padding: 1.25rem;
    border: 1px solid rgba(13, 148, 136, 0.1);
    background: white;
    border-radius: 1rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.slot-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.slot-btn span {
    position: relative;
    z-index: 1;
}

.slot-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.slot-btn:hover:not(:disabled) {
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(13, 148, 136, 0.2);
}

.slot-btn.selected {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.3);
}

.slot-btn:disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #f1f5f9;
    text-decoration: line-through;
}

.show-more-btn {
    margin-top: 2rem;
    width: 100%;
    padding: 1.25rem;
    background: var(--primary-light);
    border: 1px dashed var(--primary);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-style: solid;
}

/* Form Inputs */

.booking-form-container {
    display: none;
    padding: 4rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem;
    border-radius: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:hover {
    border: 1px solid var(--primary);
}

.form-control:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem;
}


.book-btn {
    background: var(--primary-gradient);
    padding: 1.5rem 4rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 900;
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(13, 148, 136, 0.4);
    color: white;
}

/* Success Modal */
#success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-card {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
}

.success-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.success-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.home-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    overflow: hidden; 
    border: 2px solid var(--primary);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.home-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    z-index: -1;
    transition: opacity 0.6s ease;
    opacity: 1;
}

.home-link:hover {
    transform: translateY(-5px);
    color: var(--primary);
    box-shadow: 0 0 25px rgba(13, 148, 136, 0.4);
}


.home-link:hover::after {
    opacity: 0;
}



/* --- RESPONSIVE OPTIMIZATION --- */

@media (max-width: 1024px) {
    .booking-container {
        max-width: 900px;
        padding: 4rem 2rem;
    }

    .booking-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .booking-page-content {
        padding-top: 50px;
    }

    .booking-container {
        padding: 3rem 1.5rem;
    }

    .booking-header {
        margin-bottom: 4rem;
    }

    .booking-header h1 {
        font-size: 3.2rem;
        line-height: 1.1;
        letter-spacing: -0.03em;
    }

    .booking-header p {
        font-size: 1.15rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .booking-page-content::before {
        width: 400px;
        height: 400px;
        filter: blur(80px);
    }

    
}

@media (max-width: 480px) {
    .booking-header h1 {
        font-size: 3.5rem;
    }

    .booking-header p {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .booking-header .badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .flatpickr-innerContainer, 
.flatpickr-days, 
.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    gap: 4px;
}

.form-row {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
}

.form-group {
        margin-bottom: 1rem; /* Resets spanning on mobile */
    }

    .book-btn {
        padding: 1.5rem 2rem;
    }

    .toast-container {
        right: 50%;
        transform: translateX(50%); /* Centers the container */
        width: 100%;
        padding: 0 20px;
        align-items: center;
    }

    .toast {
        width: 100%; /* Take full available width inside padding */
        animation: slideInMobile 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@keyframes slideInMobile {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}