/**
 * Surrey Fingerprint — Booking Wizard styles (Chunk 2)
 * Matches the theme palette: navy #1e3c72 / blue #2a5298 / gold #ffd700.
 */

.sfc-booking-wizard {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

/* Progress bar */
.sfc-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    counter-reset: sfc;
}
.sfc-steps li {
    flex: 1 1 0;
    min-width: 70px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9aa3b2;
    padding-bottom: 10px;
    border-bottom: 3px solid #e4e8ef;
}
.sfc-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e4e8ef;
    color: #fff;
    font-size: 0.85rem;
}
.sfc-steps li.is-active {
    color: #1e3c72;
    border-bottom-color: #2a5298;
}
.sfc-steps li.is-active span { background: #2a5298; }
.sfc-steps li.is-done {
    color: #1e3c72;
    border-bottom-color: #ffd700;
}
.sfc-steps li.is-done span { background: #ffd700; color: #1e3c72; }

/* Alert */
.sfc-booking-alert {
    background: #fde8e8;
    color: #b91c1c;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

/* Step titles */
.sfc-step-title {
    color: #1e3c72;
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}
.sfc-step-hint {
    color: #666;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

/* Step 1: service grid */
.sfc-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.sfc-service-option {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #dfe3ea;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    font-size: 0.95rem;
    color: #2c3140;
}
.sfc-service-option:hover { border-color: #2a5298; }
.sfc-service-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.sfc-service-option.is-selected,
.sfc-service-option:has(input:checked) {
    border-color: #2a5298;
    background: #f3f7ff;
    box-shadow: 0 2px 8px rgba(42,82,152,.15);
}
.sfc-service-option span { font-weight: 600; }

/* --- Price hover-flip (desktop) --- */
.sfc-service-option.has-price { transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease; }
.sfc-service-name  { transition: opacity .2s ease, transform .2s ease; }
.sfc-service-price {
    position: absolute;
    left: 16px; right: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3c72;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
/* On hover, lift the card, fade the name out and the price in. */
@media (hover: hover) {
    .sfc-service-option.has-price:hover {
        transform: translateY(-3px);
        background: #f3f7ff;
        box-shadow: 0 6px 16px rgba(42,82,152,.18);
    }
    .sfc-service-option.has-price:hover .sfc-service-name {
        opacity: 0;
        transform: translateY(-6px);
    }
    .sfc-service-option.has-price:hover .sfc-service-price {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Keep the price visible when the option is selected, even off-hover. */
.sfc-service-option.has-price.is-selected .sfc-service-price,
.sfc-service-option.has-price:has(input:checked) .sfc-service-price { opacity: 0; }

/* Step 2: date */
.sfc-date-input {
    width: 100%;
    max-width: 320px;
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid #dfe3ea;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.sfc-date-input:focus {
    outline: none;
    border-color: #2a5298;
}

/* Step 3: slots */
.sfc-slots { margin-bottom: 1.5rem; min-height: 60px; }
.sfc-slots-loading,
.sfc-slots-empty {
    color: #666;
    font-style: italic;
    padding: 14px 0;
}
.sfc-slot-group { margin-bottom: 1.25rem; }
.sfc-slot-group h4 {
    color: #1e3c72;
    font-size: 1rem;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sfc-slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}
.sfc-slot {
    padding: 10px 6px;
    border: 2px solid #dfe3ea;
    border-radius: 8px;
    background: #fff;
    color: #2c3140;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.sfc-slot:hover { border-color: #2a5298; }
.sfc-slot.is-selected {
    background: #2a5298;
    border-color: #2a5298;
    color: #fff;
}

/* Step 4: details */
.sfc-summary {
    background: #f3f7ff;
    border-left: 4px solid #2a5298;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}
.sfc-field { margin-bottom: 1.1rem; }
.sfc-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #2c3140;
}
.sfc-req { color: #b91c1c; }
.sfc-field input,
.sfc-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 2px solid #dfe3ea;
    border-radius: 8px;
    font-family: inherit;
}
.sfc-field input:focus,
.sfc-field textarea:focus {
    outline: none;
    border-color: #2a5298;
}

/* Honeypot — visually removed but still in the DOM for bots */
.sfc-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Navigation buttons */
.sfc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}
.sfc-btn {
    background: #2a5298;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease, opacity .2s ease;
}
.sfc-btn:hover:not(:disabled) { background: #1e3c72; }
.sfc-btn:active:not(:disabled) { transform: translateY(1px); }
.sfc-btn:disabled { opacity: .45; cursor: not-allowed; }
.sfc-btn--ghost {
    background: transparent;
    color: #2a5298;
    border: 2px solid #dfe3ea;
}
.sfc-btn--ghost:hover:not(:disabled) {
    background: #f3f7ff;
    color: #1e3c72;
}
.sfc-submit { background: #1e3c72; }
.sfc-submit:hover:not(:disabled) { background: #16305c; }

/* Success */
.sfc-done { text-align: center; padding: 1rem 0; }
.sfc-done-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #e6f7ec;
    color: #0a7d2c;
    font-size: 2rem;
    font-weight: 700;
}
.sfc-done h3 { color: #1e3c72; margin: 0 0 0.75rem; }
.sfc-done-contact { color: #666; font-size: 0.92rem; }

/* No-JS notice */
.sfc-booking-noscript {
    background: #fff8e1;
    border: 1px solid #ffe08a;
    border-radius: 6px;
    padding: 14px 18px;
    color: #5c4a00;
}

@media (max-width: 600px) {
    .sfc-steps li { font-size: 0.78rem; min-width: 56px; }
    .sfc-nav { flex-direction: column-reverse; }
    .sfc-nav .sfc-btn { width: 100%; }
}

/* Touch devices (no hover): show the price under the name, always visible. */
@media (hover: none) {
    .sfc-service-option.has-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .sfc-service-name { opacity: 1 !important; transform: none !important; }
    .sfc-service-price {
        position: static;
        opacity: 1;
        transform: none;
        font-size: 1.05rem;
        color: #2a5298;
    }
}

/* Narrow screens: same as above. This is a belt-and-suspenders rule because
   some mobile browsers incorrectly report (hover: hover). On a phone-width
   viewport we always show the price under the name. */
@media (max-width: 768px) {
    .sfc-service-option.has-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        transform: none !important;
        box-shadow: none !important;
        background: #fff !important;
    }
    .sfc-service-name { opacity: 1 !important; transform: none !important; }
    .sfc-service-price {
        position: static !important;
        opacity: 1 !important;
        transform: none !important;
        font-size: 1.05rem;
        color: #2a5298;
    }
}

/* --- Consent checkbox (step 4) --- */
.sfc-consent-field { margin-top: 4px; }
.sfc-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
    cursor: pointer;
    margin-bottom: 12px;
}
.sfc-consent:last-child { margin-bottom: 0; }
.sfc-consent-note {
    display: block;
    font-size: 0.78rem;
    color: #777;
    margin-top: 2px;
}
.sfc-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    cursor: pointer;
}
.sfc-consent a { color: #2a5298; text-decoration: underline; }
.sfc-btn.sfc-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
