/* 
   Booking Page Styles - Dustless Cleaning
   Premium multi-step wizard design
*/

/* ── Keyframes ── */
@keyframes gradient-slow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.animate-slide-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Hero Banner ── */
.booking-hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #295f88 0%, #1a4060 40%, #295f88 100%);
}

.booking-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.booking-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #ffffff, transparent);
}

.booking-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.booking-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.booking-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.booking-hero h1 span {
    color: #68a351;
}

.booking-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}

.hero-trust-badges > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Progress Bar ── */
.booking-progress {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: -40px auto 0;
    padding: 0 24px;
}

.booking-progress-inner {
    background: white;
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    overflow-x: auto;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.35;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.7;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    background: #f1f5f9;
    color: #94a3b8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #68a351, #7eb765);
    color: white;
    box-shadow: 0 8px 20px -4px rgba(104, 163, 81, 0.4);
}

.progress-step.completed .step-number {
    background: #295f88;
    color: white;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.progress-step.active .step-label {
    color: #295f88;
    font-weight: 700;
}

.progress-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    min-width: 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-connector.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #68a351, #7eb765);
    border-radius: 2px;
    animation: shimmer 2s ease infinite;
    background-size: 200% 100%;
}

/* ── Form Container ── */
.booking-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.08);
}

/* ── Form Header ── */
.form-header {
    text-align: center;
    margin-bottom: 16px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #295f88;
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 15px;
}

/* ── Section Headers ── */
.form-section-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.form-section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #68a351, #7eb765);
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .form-section-header::after {
    width: 100px;
}

.form-section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #68a351;
    margin-bottom: 8px;
}

.form-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #295f88;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ── Form Inputs ── */
.form-group {
    position: relative;
}

.form-floating-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #295f88;
    margin-bottom: 8px;
    margin-left: 4px;
    opacity: 0.7;
}

.form-input,
.form-input-area {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.form-input::placeholder,
.form-input-area::placeholder {
    color: #94a3b8;
}

.form-input:hover,
.form-input-area:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.form-input:focus,
.form-input-area:focus {
    border-color: #68a351;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(104, 163, 81, 0.1), 0 8px 24px -8px rgba(104, 163, 81, 0.12);
}

.form-select {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 48px 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: pointer;
    appearance: none;
    font-family: 'Poppins', sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2368a351' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.form-select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.form-select:focus {
    border-color: #68a351;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(104, 163, 81, 0.1);
}

/* ── Frequency Option Cards ── */
.option-card {
    position: relative;
    cursor: pointer;
    height: 100%;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 100%;
}

.option-content:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
}

.option-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(104, 163, 81, 0.08);
}

.option-card input:checked + .option-content {
    border-color: #68a351;
    background: #ffffff;
    box-shadow: 0 12px 40px -8px rgba(104, 163, 81, 0.2), inset 0 0 0 1px rgba(104, 163, 81, 0.1);
    transform: translateY(-2px);
}

.option-card input:checked + .option-content .option-icon-wrapper {
    background: linear-gradient(135deg, #68a351 0%, #7eb765 100%);
    box-shadow: 0 10px 24px -6px rgba(104, 163, 81, 0.5);
    transform: scale(1.08);
}

.option-card input:checked + .option-content .option-icon-wrapper i {
    color: white !important;
}

/* ── Add-on Cards ── */
.addon-card {
    position: relative;
    cursor: pointer;
}

.addon-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.addon-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.addon-content:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.06);
}

.addon-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(239, 181, 75, 0.08);
    flex-shrink: 0;
}

.addon-card input:checked + .addon-content {
    border-color: #68a351;
    background: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(104, 163, 81, 0.15);
}

.addon-card input:checked + .addon-content .addon-icon {
    background: linear-gradient(135deg, #efb54b 0%, #68a351 100%);
    box-shadow: 0 6px 16px -4px rgba(104, 163, 81, 0.3);
}

.addon-card input:checked + .addon-content .addon-icon i {
    color: white !important;
}

/* ── Submit Button ── */
.book-button {
    width: 100%;
    color: white;
    font-weight: 700;
    font-size: 20px;
    padding: 22px 32px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #68a351 0%, #7eb765 50%, #68a351 100%);
    background-size: 200% 200%;
    animation: gradient-slow 6s ease infinite;
    box-shadow: 0 16px 48px -12px rgba(104, 163, 81, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.01em;
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 56px -12px rgba(104, 163, 81, 0.6);
}

.book-button:active {
    transform: translateY(0) scale(0.99);
}

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .booking-hero {
        padding: 80px 0 60px;
    }

    .booking-progress-inner {
        padding: 16px 20px;
        gap: 2px;
        border-radius: 16px;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .progress-connector {
        min-width: 12px;
    }

    .option-content {
        padding: 20px 12px;
    }

    .option-icon-wrapper {
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .form-section-title {
        font-size: 1.4rem;
    }

    .book-button {
        font-size: 17px;
        padding: 18px 24px;
    }
}