/* ============================================================
   MALINDA AUTO CARE — booking.css
   HeavenCode Systems | Developed by Nilan Fernando | 2026
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --navy: #0a1628;
    --blue: #0d3b7a;
    --mid-blue: #1565c0;
    --light-blue: #42a5f5;
    --sky: #90caf9;
    --ice: #e3f2fd;
    --white: #ffffff;
    --black: #050d1a;
    --grey: #8fa3b8;
    --glass: rgba(255, 255, 255, 0.06);
    --glow: 0 0 40px rgba(66, 165, 245, 0.35);
    --transition: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--mid-blue);
    border-radius: 3px;
}

/* ── Animated Background ────────────────────────────── */
.booking-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--black);
    overflow: hidden;
}

.booking-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 59, 122, 0.4), transparent 65%);
    top: -300px;
    right: -200px;
    animation: bgFloat 12s ease-in-out infinite alternate;
}

.booking-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 101, 192, 0.2), transparent 65%);
    bottom: -200px;
    left: -150px;
    animation: bgFloat 15s ease-in-out infinite alternate-reverse;
}

@keyframes bgFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 20px) scale(1.05);
    }
}

/* Grid overlay */
.booking-bg-grid {
    display: none;
}

/* ── Navbar ─────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 13, 26, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(66, 165, 245, 0.12);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--light-blue);
    object-fit: cover;
}

.nav-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--white);
    line-height: 1;
}

.nav-subtitle {
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: var(--light-blue);
    text-transform: uppercase;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--sky);
    border: 1px solid rgba(66, 165, 245, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    transition: all var(--transition);
}

.nav-back:hover {
    background: rgba(66, 165, 245, 0.1);
    color: var(--white);
}

/* ── Page Hero ──────────────────────────────────────── */
.booking-hero {
    padding: 130px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.booking-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(66, 165, 245, 0.1);
    border: 1px solid rgba(66, 165, 245, 0.3);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--sky);
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease both;
}

.blink {
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.booking-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 12px;
    animation: fadeInUp 0.7s 0.15s ease both;
}

.booking-hero h1 span {
    background: linear-gradient(90deg, var(--light-blue), var(--sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-hero p {
    font-family: 'Inter', sans-serif;
    color: var(--grey);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.7s 0.3s ease both;
}

/* Steps indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    animation: fadeInUp 0.7s 0.4s ease both;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(66, 165, 245, 0.1);
    border: 2px solid rgba(66, 165, 245, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--grey);
    transition: all var(--transition);
}

.step-label {
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--grey);
    font-weight: 600;
    text-transform: uppercase;
    transition: color var(--transition);
}

.step-connector {
    width: 40px;
    height: 1px;
    background: rgba(66, 165, 245, 0.15);
}

.step-item.active .step-num {
    background: linear-gradient(135deg, var(--mid-blue), var(--light-blue));
    border-color: var(--light-blue);
    color: var(--white);
    box-shadow: var(--glow);
}

.step-item.active .step-label {
    color: var(--light-blue);
}

.step-item.done .step-num {
    background: var(--mid-blue);
    border-color: var(--mid-blue);
    color: var(--white);
}

.step-item.done .step-label {
    color: var(--sky);
}

/* ── Form Container ─────────────────────────────────── */
.booking-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

/* ── Form Steps ─────────────────────────────────────── */
.form-step {
    display: none;
    animation: fadeInUp 0.5s ease both;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form Card ──────────────────────────────────────── */
.form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
}

.form-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 6px;
}

.form-card-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.87rem;
    color: var(--grey);
    margin-bottom: 28px;
}

.form-divider {
    height: 1px;
    background: rgba(66, 165, 245, 0.1);
    margin-bottom: 28px;
}

/* ── Form Fields ────────────────────────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--sky);
    text-transform: uppercase;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    width: 100%;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--light-blue);
    background: rgba(66, 165, 245, 0.08);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(143, 163, 184, 0.5);
}

.form-group select option {
    background: var(--navy);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Service Cards ──────────────────────────────────── */
.service-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.service-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(66, 165, 245, 0.12);
    border-radius: 14px;
    padding: 16px 12px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.service-option:hover {
    border-color: rgba(66, 165, 245, 0.4);
    background: rgba(66, 165, 245, 0.06);
    transform: translateY(-2px);
}

.service-option.selected {
    border-color: var(--light-blue);
    background: rgba(66, 165, 245, 0.1);
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.1);
}

.service-option.selected::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.8rem;
    color: var(--light-blue);
    font-weight: 900;
}

.svc-icon {
    height: 32px;
    width: 32px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-icon img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.svc-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 2px;
    line-height: 1.2;
}

.svc-time {
    font-size: 0.68rem;
    color: var(--grey);
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* ── Time Slots ─────────────────────────────────────── */
.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 10px 20px;
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--grey);
    cursor: pointer;
    transition: all var(--transition);
}

.time-slot:hover {
    border-color: var(--light-blue);
    color: var(--sky);
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--mid-blue), var(--light-blue));
    border-color: var(--light-blue);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(66, 165, 245, 0.3);
}

.time-slot.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ── Navigation Buttons ─────────────────────────────── */
.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.btn-prev {
    background: transparent;
    border: 2px solid rgba(66, 165, 245, 0.3);
    color: var(--sky);
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev:hover {
    border-color: var(--light-blue);
    background: rgba(66, 165, 245, 0.08);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, var(--mid-blue), var(--light-blue));
    color: var(--white);
    padding: 14px 38px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: box-shadow var(--transition), transform var(--transition);
    flex: 1;
    justify-content: center;
    max-width: 300px;
}

.btn-next:hover,
.btn-submit:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

/* ── Summary Card ───────────────────────────────────── */
.summary-card {
    background: rgba(13, 59, 122, 0.18);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(66, 165, 245, 0.08);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.82rem;
    letter-spacing: 1px;
    color: var(--grey);
    text-transform: uppercase;
}

.summary-value {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
}

.summary-value.highlight {
    color: var(--light-blue);
}

/* ── Success Screen ─────────────────────────────────── */
.success-screen {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.success-screen.show {
    display: block;
    animation: fadeInUp 0.7s ease both;
}

.success-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    animation: successPop 0.6s 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(66, 165, 245, 0.4));
}

@keyframes successPop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 12px;
}

.success-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--grey);
    max-width: 460px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.success-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366;
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 2px;
    transition: box-shadow var(--transition), transform var(--transition);
    margin-bottom: 16px;
    text-decoration: none;
}

.success-wa-btn:hover {
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    transform: translateY(-3px);
}

/* ── Info Chips ─────────────────────────────────────── */
.info-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.info-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(66, 165, 245, 0.08);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--sky);
}

/* ── Footer strip ───────────────────────────────────── */
.mini-footer {
    text-align: center;
    padding: 20px 5% 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(143, 163, 184, 0.5);
}

.mini-footer span {
    color: var(--light-blue);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 800;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px 20px;
    }

    .booking-hero {
        padding: 110px 5% 40px;
    }

    .service-selector {
        grid-template-columns: 1fr 1fr;
    }

    .steps-indicator {
        gap: 0;
    }

    .step-connector {
        width: 20px;
    }

    .step-label {
        display: none;
    }

    .form-nav {
        flex-direction: column;
    }

    .btn-next,
    .btn-submit {
        max-width: 100%;
    }
}