/**
 * Strategy-call form — styles for the parts the lettings form didn't have:
 * the sell/let intent choice and the in-form slot picker. Everything else
 * inherits the existing .property-search / .valuation-form styles from
 * main.css.
 *
 * Design language matches the rest of the form (main.css .valuation-form):
 * inputs = white rgba(255,255,255,.9), 8px radius, Poppins, #333 text;
 * primary pink = #ef4a81. Buttons need font-family: inherit because the
 * theme never sets a font on buttons (they'd fall back to Arial).
 */

/* --- Section labels (light on the dark glass card) --- */

#strategy-form .sc-intent-label,
#strategy-form .sc-dates-label {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    margin: 0 0 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

#strategy-form .sc-dates-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.85);
    margin: 14px 0 8px;
}

/* --- Sell / Let intent choice (radio-card pair, same skin as inputs) --- */

#strategy-form .sc-intent-group { margin-bottom: 16px; }

#strategy-form .sc-intent-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#strategy-form .sc-intent-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: rgba(51, 51, 51, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

#strategy-form .sc-intent-btn:hover {
    border-color: rgba(239, 74, 129, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 74, 129, 0.1);
}

#strategy-form .sc-intent-btn.active {
    background: rgba(239, 74, 129, 1);
    border-color: rgba(239, 74, 129, 0.3);
    color: #fff;
}

#strategy-form .sc-intent-missing .sc-intent-btn {
    border-color: rgba(220, 53, 69, 0.8);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

/* --- Slot picker (flat aligned grids, input skin) --- */

#strategy-form .sc-slots-group { margin: 4px 0 16px; }

#strategy-form .sc-dates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}

#strategy-form .sc-date-pill,
#strategy-form .sc-time-btn {
    width: 100%;
    padding: 11px 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(51, 51, 51, 0.9);
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

#strategy-form .sc-time-btn {
    font-variant-numeric: tabular-nums;
    padding: 10px 2px;
}

#strategy-form .sc-date-pill:hover,
#strategy-form .sc-time-btn:hover {
    border-color: rgba(239, 74, 129, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 74, 129, 0.1);
}

#strategy-form .sc-date-pill.active,
#strategy-form .sc-time-btn.active {
    background: rgba(239, 74, 129, 1);
    border-color: rgba(239, 74, 129, 0.3);
    color: #fff;
    font-weight: 600;
}

#strategy-form .sc-times {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Selected confirmation: solid readable chip, not bare text on the glass */
#strategy-form .sc-selected-slot {
    margin: 12px 0 0;
    padding: 11px 16px;
    border: 1px solid rgba(239, 74, 129, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: rgba(239, 74, 129, 1);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* --- Postcode coverage banner (under the postcode field) --- */

#strategy-form .sc-postcode-banner {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

#strategy-form .sc-postcode-banner:empty { display: none; }

#strategy-form .sc-postcode-checking {
    background: rgba(255, 255, 255, 0.85);
    color: rgba(51, 51, 51, 0.9);
}

#strategy-form .sc-postcode-supported {
    background: rgba(224, 250, 233, 0.95);
    border: 1px solid rgba(52, 168, 83, 0.35);
    color: #1d7a3d;
}

#strategy-form .sc-postcode-unsupported {
    background: rgba(255, 235, 235, 0.96);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #a32734;
}

/* --- Status text (light, readable on the glass) --- */

#strategy-form .sc-slots-loading {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 6px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

#strategy-form .sc-slots-error {
    font-size: 13px;
    font-weight: 500;
    color: #4a3200;
    background: rgba(255, 244, 214, 0.96);
    border: 1px solid rgba(240, 217, 168, 0.9);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 6px 0;
}

/* --- Responsive --- */

@media (max-width: 560px) {
    #strategy-form .sc-times { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 400px) {
    #strategy-form .sc-dates { grid-template-columns: repeat(2, 1fr); }
    #strategy-form .sc-intent-buttons { grid-template-columns: 1fr; }
}
