/* ============================================================
   Dream Clean - Get a Quote page (/get-a-quote)
   Loaded ONLY on /get-a-quote alongside dcs-global.css
   (which provides the shared .dcs-form* including --dark).

   Multi-step quote wizard:
     .dcs-quote               - dark wizard card container
     .dcs-quote__step         - individual step, hidden unless is-active
     .dcs-quote__question     - centred H2 for each step
     .dcs-quote__hint         - small subtitle under each H2
     .dcs-quote-cards         - grid of selectable option cards
     .dcs-quote-card          - individual card (checkbox or radio inside)
     .dcs-quote-rooms         - 2-col grid of "count" selects
     .dcs-quote-extras        - toggle grid for optional extras
     .dcs-quote-nav           - Next / Previous button row
     .dcs-quote-progress      - dot progress indicator below the card
   ============================================================ */

/* --- Wizard container --- */

.dcs-quote {
    max-width: 960px;
    margin: 0 auto;
    background: #0d1613;
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Steps: only the active one is visible */
.dcs-quote__step {
    display: none;
    animation: dcsQuoteFade .25s ease-out;
}
.dcs-quote__step.is-active {
    display: block;
}

@keyframes dcsQuoteFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* --- Step headings --- */

.dcs-quote__question {
    color: var(--white);
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    margin: 0 0 0.75rem;
}

.dcs-quote__hint {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* --- Native select dropdown styled for dark bg (Step 1) --- */

.dcs-quote__select {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 2rem;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    background: var(--white);
    color: var(--charcoal);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23333'%3E%3Cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}
.dcs-quote__select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* --- Selectable cards (services, property types) --- */

.dcs-quote-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.dcs-quote-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
    min-height: 140px;
    position: relative;
}
.dcs-quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* Hide the actual input (still keyboard-focusable via the label) */
.dcs-quote-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* Selected state - :has() lets the whole card react to the input inside */
.dcs-quote-card:has(.dcs-quote-card__input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
    background: #f6fbf6;
}
/* Focus ring - shown when the input receives keyboard focus */
.dcs-quote-card:has(.dcs-quote-card__input:focus-visible) {
    outline: 2px dashed var(--brand);
    outline-offset: 2px;
}
.dcs-quote-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    font-size: 2rem;
}
.dcs-quote-card__icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.dcs-quote-card__label {
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
}

/* --- Room count grid (End of Tenancy step 3) --- */

.dcs-quote-rooms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 0 0 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 560px) {
    .dcs-quote-rooms {
        grid-template-columns: 1fr;
    }
}
.dcs-quote-rooms__field {
    display: flex;
    flex-direction: column;
}
.dcs-quote-rooms__label {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}
.dcs-quote-rooms__select {
    /* Same dropdown treatment as step 1 - just smaller max-width */
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    background: var(--white);
    color: var(--charcoal);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23333'%3E%3Cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 20px;
}
.dcs-quote-rooms__select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* --- Extras toggles (End of Tenancy step 4) --- */

.dcs-quote-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto 2rem;
}
.dcs-quote-extras__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
    cursor: pointer;
}
.dcs-quote-extras__label {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}
.dcs-quote-extras__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* Round toggle - unselected = grey, selected = brand green with tick */
.dcs-quote-extras__toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.dcs-quote-extras__item:hover .dcs-quote-extras__toggle {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.7);
}
.dcs-quote-extras__item:has(.dcs-quote-extras__input:checked) .dcs-quote-extras__toggle {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
    transform: scale(1.08);
}
.dcs-quote-extras__item:has(.dcs-quote-extras__input:focus-visible) .dcs-quote-extras__toggle {
    outline: 2px dashed var(--brand);
    outline-offset: 3px;
}

/* --- Contact-details step (uses shared .dcs-form* dark inputs) --- */

.dcs-quote__contact {
    max-width: 720px;
    margin: 0 auto;
}

/* --- Navigation buttons (Next / Previous) --- */

.dcs-quote-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Next button - full-width, prominent */
.dcs-quote-nav__next {
    width: 100%;
    max-width: 520px;
    padding: 1em 1.5em;
    font-size: 1rem;
    font-weight: 700;
    background: var(--brand);
    color: var(--white);
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    transition: background .18s var(--ease), transform .1s var(--ease);
}
.dcs-quote-nav__next:hover,
.dcs-quote-nav__next:focus {
    background: var(--brand-dark);
}
.dcs-quote-nav__next:active {
    transform: translateY(1px);
}
.dcs-quote-nav__next[disabled] {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Previous - subtle text link */
.dcs-quote-nav__prev {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color .18s var(--ease);
}
.dcs-quote-nav__prev:hover,
.dcs-quote-nav__prev:focus {
    color: var(--white);
}

/* --- Progress dots below the wizard card --- */

.dcs-quote-progress {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--grey-line);
    flex-wrap: wrap;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.dcs-quote-progress__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grey);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.dcs-quote-progress__dot.is-active {
    background: var(--charcoal);
    color: var(--white);
}
.dcs-quote-progress__dot.is-complete {
    background: var(--brand);
    color: var(--white);
}

/* --- Dark form fields inside the wizard use the shared dcs-form--dark
       styles (labels, inputs, textarea). Nothing extra needed. --- */

/* Contact-step field labels get a bit more space above the input */
.dcs-quote__contact .dcs-form__field {
    margin-bottom: 1.15rem;
}
