/* Lead form styles shared by the quiz contact step and /request-consultation:
   fields, the +1 phone input, the SMS consent block (from the sms-consent section), buttons and errors.
   Also holds the small page layout of /request-consultation. Colours come from base.css tokens. */

.rw-form { margin-top: 20px; }
.rw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 479px) { .rw-form-row { grid-template-columns: 1fr; } }

.rw-field { margin-top: 14px; }
.rw-field label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--ink); }
.rw-field input {
    width: 100%; min-height: 52px; padding: 12px 14px;
    font: inherit; font-size: 18px; color: var(--ink);
    background: var(--bg); border: 1.5px solid #7D8A9B; border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.rw-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rw-field.is-invalid input, .rw-field.is-invalid .rw-phone { border-color: var(--danger); }
.rw-field-error { margin-top: 6px; font-size: 16px; line-height: 1.4; color: var(--danger); }

.rw-phone {
    display: flex; align-items: center; min-height: 52px; padding: 0 14px;
    background: var(--bg); border: 1.5px solid #7D8A9B; border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.rw-phone span { padding-right: 10px; margin-right: 10px; border-right: 1.5px solid var(--line); font-size: 17px; font-weight: 600; color: var(--ink); }
.rw-phone input { min-height: 0; padding: 12px 0; border: 0; border-radius: 0; flex: 1; min-width: 0; }
.rw-phone input:focus { box-shadow: none; }
.rw-phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rw-field.is-invalid .rw-phone input { border: 0; }

/* SMS consent (markup owned by template/sections/sms-consent.html). */
.rw-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.rw-consent input { flex: none; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.rw-consent-fine { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.rw-consent-fine a { color: inherit; }

.rw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; padding: 14px 28px;
    font-family: var(--font-head); font-size: 17px; font-weight: 700; color: #fff; text-decoration: none;
    background: var(--accent); border: 0; border-radius: 12px; box-shadow: var(--shadow-sm);
    cursor: pointer; transition: background .15s, transform .08s;
}
.rw-btn:hover { background: var(--accent-strong); }
.rw-btn:active { transform: translateY(1px); }
.rw-btn:disabled { opacity: .7; cursor: progress; }
.rw-btn-block { width: 100%; margin-top: 22px; }
.rw-form-error { margin-top: 18px; padding: 10px 14px; font-size: 17px; color: var(--danger); background: #FDF1F0; border-radius: 8px; }

/* /request-consultation */
.rw-optin { padding: 48px 0 72px; background: var(--bg-soft); }
.rw-optin-card {
    max-width: 680px; margin: 0 auto; padding: 40px;
    background: var(--bg); border: 1px solid var(--line); border-top: 5px solid var(--gold);
    border-radius: 20px; box-shadow: var(--shadow-md);
}
.rw-optin-card h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.12; letter-spacing: -0.5px; }
.rw-optin-intro { margin-top: 12px; }
.rw-optin-thanks { margin-top: 28px; padding: 24px; background: var(--bg-tint); border-radius: 12px; }
.rw-optin-thanks:focus { outline: none; } /* focused only so screen readers announce it */
.rw-optin-thanks h2 { font-size: 26px; line-height: 1.2; }
.rw-optin-thanks p { margin-top: 10px; }
@media (max-width: 599px) {
    .rw-optin { padding: 24px 0 48px; }
    .rw-optin-card { padding: 28px 20px; border-radius: 16px; }
}
