/* ================================================================
   WillWill Booking Form Styles
   Theme: Salmon (#FE9292), Cyan (#00ADEF), Navy (#1C1C4A)
   Fonts: Figtree (headings), Inter (body)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
.wlb-booking-wrapper {
    font-family: 'Inter', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #1C1C4A;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    -webkit-font-smoothing: antialiased;
}

.wlb-booking-wrapper *,
.wlb-booking-wrapper *::before,
.wlb-booking-wrapper *::after {
    box-sizing: border-box;
}

/* ---- Layout: Form + Sidebar ---- */
.wlb-booking-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: flex-start;
}

.wlb-form-column {
    min-width: 0;
}

/* ---- Sections ---- */
.wlb-form-section {
    background: #ffffff;
    border: 1px solid #E8EBF0;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.wlb-form-section:hover {
    border-color: #D0D5E0;
    box-shadow: 0 2px 12px rgba(28, 28, 74, 0.04);
}

.wlb-hidden {
    display: none !important;
}

.wlb-section-title {
    font-family: 'Figtree', 'Inter', -apple-system, sans-serif !important;
    font-size: 20px;
    font-weight: 800 !important;
    color: #1C1C4A;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #F0F2F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- Guest Notice ---- */
.wlb-guest-notice {
    background: #F0FAFF;
    border: 1px solid #00ADEF66;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    color: #1C1C4A;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 173, 239, 0.05);
}

.wlb-guest-notice p {
    margin: 0;
}

.wlb-auth-link {
    color: #00ADEF;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.wlb-auth-link:hover {
    border-bottom-color: #00ADEF;
    color: #0088BC;
}

.wlb-required {
    color: #FE9292;
    font-weight: 600;
    font-size: 14px;
}

.wlb-field-optional {
    color: #8A91A8;
    font-weight: 400;
    font-size: 13px;
    font-style: italic;
}

/* ---- Service Cards Grid ---- */
.wlb-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wlb-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    border: 2px solid #E8EBF0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #FAFBFC;
    min-height: 100px;
    text-align: center;
}

.wlb-service-card:hover {
    border-color: #00ADEF;
    background: #F0FAFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 173, 239, 0.12);
}

.wlb-service-card.active {
    border-color: #00ADEF;
    background: linear-gradient(135deg, #F0FAFF 0%, #E6F7FF 100%);
    box-shadow: 0 4px 16px rgba(0, 173, 239, 0.15);
}

.wlb-service-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.wlb-service-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: #1C1C4A;
    line-height: 1.3;
    display: block;
}

.wlb-field-hint {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

.wlb-fields-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wlb-field-group-wrapper.col-span-full {
    grid-column: span 2;
}

.wlb-field-group-wrapper.col-span-half {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .wlb-fields-grid-dynamic {
        grid-template-columns: 1fr !important;
    }
    .wlb-field-group-wrapper.col-span-full,
    .wlb-field-group-wrapper.col-span-half {
        grid-column: span 1 !important;
    }
}

/* ---- Package Options ---- */
.wlb-package-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wlb-package-card {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid #E8EBF0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #FAFBFC;
}

.wlb-package-card:hover {
    border-color: #00ADEF;
    background: #F0FAFF;
}

.wlb-package-card.active {
    border-color: #00ADEF;
    background: #F0FAFF;
    box-shadow: 0 2px 8px rgba(0, 173, 239, 0.12);
}

.wlb-package-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #00ADEF;
    flex-shrink: 0;
}

.wlb-package-info {
    flex: 1;
}

.wlb-package-name {
    font-size: 14px;
    font-weight: 600;
    color: #1C1C4A;
    display: block;
}

.wlb-package-detail {
    font-size: 12px;
    color: #8A91A8;
    margin-top: 2px;
}

.wlb-package-price {
    font-size: 18px;
    font-weight: 700;
    color: #00ADEF;
    white-space: nowrap;
}

/* ---- Checkbox / Radio Cards ---- */
.wlb-checkbox-group,
.wlb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wlb-checkbox-card,
.wlb-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid #E8EBF0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #FAFBFC;
}

.wlb-checkbox-card:hover,
.wlb-radio-card:hover {
    border-color: #00ADEF;
    background: #F0FAFF;
}

.wlb-checkbox-card input:checked ~ .wlb-check-label,
.wlb-radio-card input:checked ~ .wlb-radio-label {
    color: #1C1C4A;
    font-weight: 600;
}

.wlb-checkbox-card:has(input:checked),
.wlb-radio-card:has(input:checked) {
    border-color: #00ADEF;
    background: #F0FAFF;
}

.wlb-checkbox-card input[type="checkbox"],
.wlb-radio-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #00ADEF;
    flex-shrink: 0;
}

.wlb-check-label,
.wlb-radio-label {
    flex: 1;
    font-size: 14px;
    color: #3A4268;
}

.wlb-check-price,
.wlb-radio-price {
    font-size: 15px;
    font-weight: 700;
    color: #00ADEF;
    white-space: nowrap;
}

/* ---- Appliance Rows ---- */
.wlb-appliance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F2F5;
}

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

.wlb-appliance-label {
    font-size: 14px;
    font-weight: 500;
    color: #1C1C4A;
    flex: 1;
}

.wlb-appliance-select {
    width: 220px;
    padding: 10px 14px;
    border: 2px solid #E8EBF0;
    border-radius: 10px;
    font-size: 13px;
    color: #1C1C4A;
    background: #FAFBFC;
    cursor: pointer;
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}

.wlb-appliance-select:focus {
    outline: none;
    border-color: #00ADEF;
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.1);
}

/* ---- Field Groups ---- */
.wlb-field-group {
    margin-bottom: 16px;
}

.wlb-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1C1C4A;
    margin-bottom: 6px;
}

.wlb-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wlb-field-group input[type="text"],
.wlb-field-group input[type="email"],
.wlb-field-group input[type="tel"],
.wlb-field-group input[type="date"],
.wlb-field-group input[type="time"],
.wlb-field-group input[type="number"],
.wlb-field-group select,
.wlb-input-full,
textarea.wlb-input-full {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E8EBF0;
    border-radius: 10px;
    font-size: 14px;
    color: #1C1C4A;
    background: #FAFBFC;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.wlb-field-group input:focus,
.wlb-field-group select:focus,
.wlb-input-full:focus,
textarea.wlb-input-full:focus {
    outline: none;
    border-color: #00ADEF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.1);
}

.wlb-field-hint {
    font-size: 12px;
    color: #8A91A8;
    margin-top: 6px;
    line-height: 1.5;
}

/* ---- Stepper ---- */
.wlb-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #E8EBF0;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    background: #FAFBFC;
}

.wlb-stepper-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: #1C1C4A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wlb-stepper-btn:hover {
    background: #00ADEF;
    color: #fff;
}

.wlb-stepper input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #E8EBF0;
    border-right: 1px solid #E8EBF0;
    font-size: 16px;
    font-weight: 700;
    color: #1C1C4A;
    background: transparent;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}

.wlb-stepper input:focus {
    outline: none;
}

/* ---- Stripe Card Element ---- */
.wlb-stripe-element {
    padding: 14px 16px;
    border: 2px solid #E8EBF0;
    border-radius: 10px;
    background: #FAFBFC;
    transition: border-color 0.2s;
}

.wlb-stripe-element.StripeElement--focus {
    border-color: #00ADEF;
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.1);
}

.wlb-stripe-errors {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
}

.wlb-payment-notice {
    padding: 16px 20px;
    background: #FFF8F0;
    border: 1px solid #FFE0C0;
    border-radius: 10px;
    color: #3A4268;
    font-size: 14px;
}

/* ---- Attention Box ---- */
.wlb-attention-box {
    background: linear-gradient(135deg, #FFF0F0 0%, #FFF5F5 100%);
    border: 1px solid #FFD4D4;
    border-radius: 12px;
    padding: 20px 24px;
}

.wlb-attention-title {
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FE9292;
    margin: 0 0 8px 0;
}

.wlb-attention-box p {
    font-size: 13px;
    color: #3A4268;
    line-height: 1.6;
    margin: 0;
}

/* ---- Submit Button ---- */
.wlb-btn-book {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FE9292 0%, #FF7B7B 100%);
    color: #1C1C4A;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(254, 146, 146, 0.35);
}

.wlb-btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(254, 146, 146, 0.45);
    background: linear-gradient(135deg, #FF7B7B 0%, #FE9292 100%);
}

.wlb-btn-book:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Summary Sidebar ---- */
.wlb-summary-column {
    position: sticky;
    top: 100px;
}

.wlb-summary-card {
    background: #1C1C4A;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(28, 28, 74, 0.2);
}

.wlb-summary-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wlb-summary-header h3 {
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.wlb-summary-body {
    padding: 16px 24px;
    min-height: 80px;
    max-height: 400px;
    overflow-y: auto;
}

.wlb-summary-body::-webkit-scrollbar {
    width: 4px;
}

.wlb-summary-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.wlb-summary-empty {
    text-align: center;
    padding: 24px 0;
}

.wlb-summary-empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.wlb-summary-empty p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

.wlb-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wlb-summary-item:last-child {
    border-bottom: none;
}

.wlb-summary-item-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
    padding-right: 12px;
}

.wlb-summary-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #00ADEF;
    white-space: nowrap;
}

.wlb-summary-footer {
    padding: 16px 24px 24px;
    background: rgba(0, 0, 0, 0.15);
}

.wlb-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.wlb-summary-line span:last-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.wlb-summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 8px 0;
}

.wlb-summary-total {
    padding: 12px 0 8px;
}

.wlb-summary-total span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.wlb-summary-total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: #FE9292;
    font-family: 'Figtree', sans-serif;
}

.wlb-summary-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.wlb-badge-stripe,
.wlb-badge-guarantee {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Success Modal ---- */
.wlb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wlb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 28, 74, 0.6);
    backdrop-filter: blur(4px);
}

.wlb-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: wlb-modal-in 0.3s ease;
}

.wlb-modal-lg {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.wlb-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #8A91A8;
    cursor: pointer;
    transition: color 0.2s;
}

.wlb-modal-close:hover {
    color: #1C1C4A;
}

.wlb-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.wlb-modal-content h2 {
    font-family: 'Figtree', sans-serif;
    font-size: 24px;
    color: #1C1C4A;
    margin-bottom: 12px;
}

.wlb-modal-content p {
    color: #3A4268;
    font-size: 14px;
    line-height: 1.6;
}

.wlb-booking-ref {
    margin-top: 16px;
    padding: 12px;
    background: #F0FAFF;
    border-radius: 8px;
    font-size: 15px;
}

.wlb-modal-actions {
    margin-top: 20px;
    text-align: center;
}

@keyframes wlb-modal-in {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- Buttons ---- */
.wlb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #FE9292 0%, #FF7B7B 100%);
    color: #1C1C4A;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(254, 146, 146, 0.3);
}

.wlb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(254, 146, 146, 0.4);
    color: #1C1C4A;
    text-decoration: none;
}

.wlb-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: transparent;
    color: #00ADEF;
    border: 2px solid #00ADEF;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.wlb-btn-secondary:hover {
    background: #00ADEF11;
    color: #0088BC;
    border-color: #0088BC;
    text-decoration: none;
}

/* ---- Spinner ---- */
.wlb-spinner {
    width: 20px;
    height: 20px;
    animation: wlb-spin 0.8s linear infinite;
}

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .wlb-booking-layout {
        grid-template-columns: 1fr;
    }

    .wlb-summary-column {
        position: relative;
        top: 0;
        order: -1;
    }

    .wlb-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .wlb-form-section {
        padding: 20px;
    }
}

@media (max-width: 540px) {
    .wlb-service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .wlb-service-card {
        padding: 14px 8px;
        min-height: 80px;
    }

    .wlb-service-icon {
        font-size: 22px;
    }

    .wlb-service-label {
        font-size: 11px;
        font-weight: 700 !important;
    }

    .wlb-package-options {
        flex-direction: column;
    }

    .wlb-package-card {
        min-width: auto;
    }

    .wlb-appliance-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wlb-appliance-select {
        width: 100%;
    }
}
