/* =============================================
   ESWATINI FUNZONE — BOOKINGS PAGE STYLES
   Matches homepage color palette & typography
   ============================================= */

/* ---- Booking Hero ---- */
.booking-hero {
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 140px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.booking-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 145, 0, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(0, 210, 255, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(255, 51, 102, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.booking-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.booking-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.4rem 1.4rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.booking-hero h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 600;
}

/* ---- Active nav link ---- */
.active-link {
    color: var(--primary-purple) !important;
    font-weight: 700 !important;
}

.active-link::after {
    width: 100% !important;
}

/* ---- Step Headers ---- */
.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header:not(:first-child) {
    margin-top: 5rem;
}

.step-badge {
    display: inline-block;
    background: var(--gradient-warm);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 14px rgba(255, 51, 102, 0.3);
}

.step-header h2 {
    margin-bottom: 0.5rem;
}

/* ---- Service Selector Cards ---- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.service-card-btn {
    position: relative;
    background: var(--bg-white);
    border: 3px solid #ede8ff;
    border-radius: 24px;
    padding: 2.2rem 1.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(155, 81, 224, 0.08);
    font-family: var(--font-text);
    overflow: hidden;
}

.service-card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 21px;
}

.service-card-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(155, 81, 224, 0.25);
    border-color: var(--primary-purple);
}

.service-card-btn:hover .sc-icon,
.service-card-btn:hover h3,
.service-card-btn:hover p,
.service-card-btn:hover .sc-price {
    position: relative;
    z-index: 1;
}

/* Selected state */
.service-card-btn.selected {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, #f3eeff 0%, #ffeef4 100%);
    box-shadow: 0 0 0 4px rgba(155, 81, 224, 0.15), 0 16px 36px rgba(155, 81, 224, 0.2);
    transform: translateY(-6px) scale(1.03);
}

/* Card-specific accent colors */
#card-birthday.selected { border-color: var(--primary-red); background: linear-gradient(135deg, #fff0f4 0%, #ffe8f0 100%); }
#card-birthday.selected { box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.15), 0 16px 36px rgba(255, 51, 102, 0.2); }
#card-school.selected { border-color: var(--teal); background: linear-gradient(135deg, #e8fbff 0%, #d6f6ff 100%); }
#card-school.selected { box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.15), 0 16px 36px rgba(0, 210, 255, 0.2); }
#card-hourly.selected { border-color: var(--primary-purple); background: linear-gradient(135deg, #f3eeff 0%, #efe4ff 100%); }
#card-daycare.selected { border-color: var(--orange); background: linear-gradient(135deg, #fff8e8 0%, #fff0d0 100%); }
#card-daycare.selected { box-shadow: 0 0 0 4px rgba(255, 145, 0, 0.15), 0 16px 36px rgba(255, 145, 0, 0.2); }

/* Corporate card accent */
#card-corporate.selected { border-color: #3a7bd5; background: linear-gradient(135deg, #e8f0ff 0%, #d6e8ff 100%); }
#card-corporate.selected { box-shadow: 0 0 0 4px rgba(58,123,213,0.15), 0 16px 36px rgba(58,123,213,0.2); }

/* Fun & Fitness card accent */
#card-fitness.selected { border-color: #00c88c; background: linear-gradient(135deg, #e8fff6 0%, #d0ffed 100%); }
#card-fitness.selected { box-shadow: 0 0 0 4px rgba(0,200,140,0.15), 0 16px 36px rgba(0,200,140,0.2); }

/* ---- Upcoming Event booking card ---- */
.sc-event-card {
    background: linear-gradient(145deg, #fff8f0 0%, #fff0fa 100%);
    border: 3px dashed rgba(255, 51, 102, 0.35);
    animation: eventPulse 2.8s ease-in-out infinite;
}

.sc-event-card:hover {
    border-color: var(--primary-red);
    background: linear-gradient(145deg, #fff0f4 0%, #ffe8f7 100%);
    animation: none;
}

.sc-event-card.selected {
    border-style: solid;
    border-color: var(--primary-red);
    background: linear-gradient(135deg, #fff0f4 0%, #ffe8f0 100%);
    box-shadow: 0 0 0 4px rgba(255, 51, 102, 0.15), 0 16px 36px rgba(255, 51, 102, 0.2);
    animation: none;
}

.sc-event-card h3 { color: var(--primary-red); }
.sc-event-card .sc-price { background: rgba(255, 51, 102, 0.09); }
.sc-event-card .sc-price strong { color: var(--primary-red); }

@keyframes eventPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(255, 51, 102, 0.1); }
    50%       { box-shadow: 0 6px 32px rgba(255, 51, 102, 0.28); }
}

/* Live badge on event card */
.sc-event-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    background: var(--primary-red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    letter-spacing: 0.04em;
    animation: liveBlink 1.6s ease-in-out infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* Events page link inside the info panel card */
.info-events-link {
    display: inline-block;
    margin-top: 0.85rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 51, 102, 0.3);
    transition: border-color 0.2s ease;
}
.info-events-link:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.sc-icon {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.service-card-btn:hover .sc-icon,
.service-card-btn.selected .sc-icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-card-btn h3 {
    font-size: 1.4rem;
    color: var(--primary-purple);
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
}

.service-card-btn p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sc-price {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-dark);
    background: rgba(155, 81, 224, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.sc-price strong {
    color: var(--primary-purple);
}

.sc-select-indicator {
    position: absolute;
    top: 12px;
    right: 14px;
    background: var(--primary-purple);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    opacity: 0;
    transform: scale(0.7) translateY(-5px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card-btn.selected .sc-select-indicator {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.service-card-btn.selected .sc-select-indicator::before {
    content: '✓ Selected';
}

/* ---- Booking Form Wrapper ---- */
.booking-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

.booking-form-inner {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(155, 81, 224, 0.12);
    border: 3px solid #ede8ff;
}

/* Selected service summary bar */
.selected-service-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #f0e8ff 0%, #ffe8f0 100%);
    border: 2px solid rgba(155, 81, 224, 0.25);
    border-radius: 16px;
    padding: 0.9rem 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-dark);
}

#selected-service-icon {
    font-size: 1.5rem;
}

#selected-service-label {
    color: var(--primary-purple);
}

/* ---- Form Grid ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

.booking-form .form-group.full-width {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.booking-form label {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.label-icon {
    font-size: 1rem;
}

.optional-tag {
    font-family: var(--font-text);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form input[type="time"],
.booking-form input[type="number"],
.booking-form textarea {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: 2.5px solid #ede8ff;
    border-radius: 14px;
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #fcfaff;
    transition: all 0.3s ease;
    outline: none;
}

.booking-form input:focus,
.booking-form textarea:focus {
    border-color: var(--primary-purple);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(155, 81, 224, 0.1), 0 6px 20px rgba(155, 81, 224, 0.08);
}

.booking-form input.error,
.booking-form textarea.error {
    border-color: var(--primary-red);
    background: #fff5f7;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

.booking-form textarea {
    resize: vertical;
    min-height: 110px;
}

/* Field error messages */
.field-error {
    font-size: 0.82rem;
    color: var(--primary-red);
    font-weight: 700;
    font-family: var(--font-text);
    min-height: 1rem;
    display: block;
    margin-top: -0.2rem;
}

/* ---- Checkbox ---- */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-text);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    border: 2.5px solid var(--primary-purple);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
}

.inline-link {
    color: var(--primary-purple);
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s;
}

.inline-link:hover {
    color: var(--primary-red);
}

/* ---- Submit Button ---- */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.15rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(155, 81, 224, 0.35);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-purple) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(155, 81, 224, 0.5);
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit .btn-text-label {
    position: relative;
    z-index: 1;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: relative;
    z-index: 1;
}

.btn-submit.loading .btn-spinner {
    display: block;
}

.btn-submit.loading .btn-text-label {
    opacity: 0.7;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Side Info Panel ---- */
.booking-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: sticky;
    top: 90px;
}

.info-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 8px 24px rgba(155, 81, 224, 0.1);
    border: 3px solid #ede8ff;
    transition: all 0.4s ease;
}

.info-card.hidden {
    display: none;
}

.info-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.info-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem;
}

.info-card ul li {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.35rem 0;
    border-bottom: 1px dashed #ede8ff;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-price-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-top: 0.2rem;
}

/* Hours widget */
.hours-widget {
    background: linear-gradient(135deg, #1e272e 0%, #2d3436 100%);
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    color: #fff;
}

.hours-widget h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.hours-row:last-child {
    border-bottom: none;
}

.call-us-btn {
    display: block;
    text-align: center;
    background: var(--gradient-warm);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.call-us-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255, 51, 102, 0.45);
    color: #fff;
}

/* ---- Success Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 0, 60, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(155, 81, 224, 0.4);
    border: 4px solid var(--primary-purple);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-confetti {
    font-size: 2.2rem;
    letter-spacing: 0.3rem;
    margin-bottom: 0.8rem;
    animation: bounce 0.8s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

.modal-check {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.modal-box h2 {
    color: var(--primary-purple);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.modal-box p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-box p strong {
    color: var(--primary-purple);
}

.modal-details {
    background: linear-gradient(135deg, #f3eeff 0%, #ffe8f0 100%);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-heading);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-home-btn {
    display: block;
    margin-top: 0.8rem;
    font-size: 1rem;
}

/* ---- Booking main section bg ---- */
.booking-main {
    background: linear-gradient(180deg, var(--bg-white) 0%, #f5f0ff 50%, var(--bg-white) 100%);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .booking-info-panel {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .call-us-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .booking-hero h1 {
        font-size: 2.8rem;
    }

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

    .booking-form-inner {
        padding: 2rem 1.5rem;
    }

    .booking-info-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .service-cards {
        grid-template-columns: 1fr 1fr;
    }

    .booking-hero h1 {
        font-size: 2.2rem;
    }

    .modal-box {
        padding: 2rem 1.5rem;
    }
}
