/* Michael Miller | 19 July 2026
 * WHAT: Style the shared ITN 2.0 lead form in dealer-selected light or dark mode.
 * WHY: Profile, QR and embedded forms need one polished, mobile-friendly design.
 */

.lead-form-card {
    margin-top: 22px;
    padding: 30px;
    border: 1px solid var(--profile-line);
    border-radius: var(--profile-radius);
    background: var(--profile-surface);
    box-shadow: var(--profile-shadow);
}

.lead-form-heading { margin-bottom: 25px; }
.lead-form-heading h2 {
    margin: 0 0 8px;
    color: var(--profile-ink);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -0.025em;
}
.lead-form-heading p { margin: 0; }
.itn-lead-form { position: relative; }

.lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.lead-form-grid--location { grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr); }
.lead-field { display: grid; gap: 7px; }
.lead-field--wide { margin-top: 18px; }
.lead-field--first { margin-top: 0; }

.lead-field label {
    color: var(--profile-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--profile-line);
    border-radius: 8px;
    outline: 0;
    background: var(--profile-page);
    color: var(--profile-ink);
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lead-field textarea { min-height: 140px; resize: vertical; }
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    border-color: var(--profile-blue);
    box-shadow: 0 0 0 3px rgba(23, 99, 165, 0.16);
}

.lead-field-note {
    margin: 8px 0 0;
    color: var(--profile-muted);
    font-size: 0.82rem;
}

.lead-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
}

.lead-submit {
    min-width: 180px;
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--profile-yellow);
    color: #172026;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.lead-submit:hover,
.lead-submit:focus { background: #f1ce00; }
.lead-submit:disabled { cursor: wait; opacity: 0.65; }
.lead-privacy { margin: 0; color: var(--profile-muted); font-size: 0.82rem; }

.lead-form-status {
    display: none;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 8px;
    font-weight: 700;
}

.lead-form-status.is-visible { display: block; }
.lead-form-status.is-success { border: 1px solid #9bc584; background: #edf8e8; color: #234d1d; }
.lead-form-status.is-error { border: 1px solid #d99a9a; background: #fff0f0; color: #7b2020; }
.theme-dark .lead-form-status.is-success { border-color: #557c45; background: #1d3322; color: #d5f0cc; }
.theme-dark .lead-form-status.is-error { border-color: #8d5555; background: #3b2222; color: #ffd3d3; }

.lead-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

@media (max-width: 680px) {
    .lead-form-card { padding: 22px; }
    .lead-form-grid,
    .lead-form-grid--location { grid-template-columns: 1fr; }
    .lead-form-actions { align-items: stretch; flex-direction: column; }
    .lead-submit { width: 100%; }
}

