/**
 * SMS opt-in page (page-sms-opt-in.php, TCR Call To Action URL).
 *
 * Reads the shared brand values from eh-brand-tokens.css (enqueued as a
 * dependency) with literal fallbacks, same as records-release.css. The
 * hard constraint here is TCR's reviewer viewport: the phone input, the
 * FULL consent disclosure, and the submit button must all sit above the
 * fold on a standard desktop screen with zero clicks — so the hero is a
 * single compact strip, not the 4rem records-release hero.
 */

.sms-page {
    background: #f8fafc;
    color: var(--eh-text, #334155);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.sms-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.sms-page h1,
.sms-page h2 {
    color: var(--eh-ink, #0f172a);
    line-height: 1.25;
}

/* --- Hero: compact on purpose (see file header) --- */

.sms-hero {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.sms-hero h1 {
    font-size: 1.875rem;
    margin: 0 0 0.5rem;
}

.sms-hero-sub {
    margin: 0 auto;
    max-width: 520px;
    color: var(--eh-muted, #5b6674);
}

/* --- Form --- */

.sms-form-section {
    padding: 1.75rem 0;
}

.sms-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--eh-radius, 16px);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sms-field {
    margin-bottom: 1rem;
}

.sms-field > label {
    display: block;
    font-weight: 600;
    color: var(--eh-ink, #0f172a);
    margin-bottom: 0.375rem;
}

.sms-required {
    font-weight: 400;
    color: var(--eh-muted, #5b6674);
    font-size: 0.9375rem;
}

.sms-field input[type="text"],
.sms-field input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--eh-text, #334155);
}

.sms-field input:focus {
    outline: 2px solid var(--eh-green, #047727);
    outline-offset: 1px;
}

/* Consent checkbox: the disclosure is the label, so the whole block is
   clickable and the checkbox lines up with the first text line. */
.sms-consent-label {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--eh-text, #334155);
    font-weight: 400;
    cursor: pointer;
}

.sms-consent-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--eh-green, #047727);
}

.sms-consent-label a {
    color: var(--eh-green, #047727);
    text-decoration: underline;
}

/* Honeypot: visually removed, still submittable by bots. */
.sms-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sms-submit {
    display: block;
    width: 100%;
    background: var(--eh-green, #047727);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
}

.sms-submit:hover,
.sms-submit:focus {
    background: var(--eh-green-dark, #035c1e);
}

.sms-submit[disabled] {
    opacity: 0.6;
    cursor: default;
}

.sms-error {
    color: #b91c1c;
    font-size: 0.9375rem;
    margin: 0 0 0.75rem;
}

.sms-confirmation {
    background: var(--eh-green-tint, #e8f8ed);
    border: 1px solid var(--eh-green, #047727);
    border-radius: 8px;
    padding: 1rem;
    color: var(--eh-ink, #0f172a);
    margin: 0;
}

/* --- Below-the-fold explainer --- */

.sms-details {
    padding: 1.5rem 0 3rem;
}

.sms-details h2 {
    font-size: 1.375rem;
    margin: 0 0 0.75rem;
}

.sms-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.sms-details li {
    margin-bottom: 0.5rem;
}

.sms-details a {
    color: var(--eh-green, #047727);
}
