/* Shared contact/register form layout */
.register-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: start;
}

.register-intro h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    margin-bottom: 14px;
    color: #102a3d;
    letter-spacing: -.03em;
}

.register-intro > p:not(.eyebrow) {
    font-size: 18px;
    color: #4b5563;
    max-width: 620px;
}

.contact-layout {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.contact-direct-card {
    margin-top: 16px;
    border-color: rgba(31, 143, 166, .18);
    background: #f8fbfc;
}

.contact-direct-card a,
.checkbox-row a,
.form-footnote a {
    color: #1f8fa6;
    font-weight: 800;
    text-decoration: underline;
}

.contact-card textarea {
    min-height: 180px;
    resize: vertical;
}

.form-field input,
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #102a3d;
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    padding: 12px 13px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 0;
    border-color: #1f8fa6;
    box-shadow: 0 0 0 3px rgba(31, 143, 166, .16);
}

.form-field textarea {
    min-height: 130px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
    font-weight: 800;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-row input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.checkbox-error {
    margin-top: -10px;
    margin-bottom: 14px;
}

.form-alert-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.form-alert-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.register-submit {
    border: 0;
    cursor: pointer;
    font: inherit;
    margin-top: 4px;
}

.register-submit:hover {
    filter: brightness(.96);
}

.register-submit:focus-visible {
    outline: 3px solid rgba(31, 143, 166, .35);
    outline-offset: 3px;
}

.form-footnote {
    margin-top: 14px;
    color: #64748b;
    font-size: 14px;
}

.contact-security-note {
    margin-top: 8px;
    color: #718096;
}

.registration-closed p {
    margin-bottom: 12px;
    color: #4b5563;
}

.registration-closed-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .register-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .register-intro > p:not(.eyebrow) {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .register-intro h1 {
        font-size: 32px;
    }

    .register-submit {
        width: 100%;
        text-align: center;
    }

    .registration-closed-actions .btn {
        flex: 1 1 180px;
        text-align: center;
    }
}