/* contact.css — contact page section, form, alerts, turnstile, honeypot */

/* ── Contact section layout ──────────────────────────────────────── */
.contact-section {
    padding: 100px 0 120px;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 70px;
    align-items: start;
}

.contact-details {
    position: sticky;
    top: 30px;
}

.contact-details h2 {
    font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.contact-details > p:not(.eyebrow) {
    margin: 24px 0 0;
    color: var(--muted);
}

.detail-block {
    margin-top: 38px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.detail-block > span {
    color: #277FA8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.detail-block address {
    margin-top: 10px;
    color: var(--navy);
    font-style: normal;
    font-weight: 700;
    line-height: 1.7;
}

.response-note {
    display: flex;
    gap: 13px;
    margin-top: 34px;
    padding: 18px;
    color: var(--muted);
    background: rgba(183, 226, 248, 0.28);
    border-left: 3px solid var(--blue);
}

.response-note span {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--navy);
    font-size: 0.77rem;
    font-weight: 900;
    line-height: 22px;
    text-align: center;
    background: var(--sky);
    border-radius: 50%;
}

.response-note p {
    margin: 0;
    font-size: 0.83rem;
}

/* ── Form panel + alerts ─────────────────────────────────────────── */
.form-panel {
    padding: 42px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.alert {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
    padding: 15px 18px;
    border-left: 4px solid;
}

.alert strong {
    color: var(--navy);
}

.alert span {
    color: var(--muted);
    font-size: 0.91rem;
}

.alert-success {
    background: #E9F7F0;
    border-color: var(--success);
}

.alert-error {
    background: #FFF0F1;
    border-color: var(--error);
}

/* ── Form ────────────────────────────────────────────────────────── */
.contact-form {
    display: grid;
    gap: 23px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label,
.turnstile-row .turnstile-label {
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 800;
}

.field label span,
.turnstile-row .turnstile-label span {
    color: #277FA8;
}

.field input,
.field textarea {
    width: 100%;
    color: var(--ink);
    background: var(--off-white);
    border: 1px solid #C9D8E2;
    border-radius: 7px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.field input {
    min-height: 50px;
    padding: 10px 13px;
}

.field textarea {
    min-height: 170px;
    padding: 12px 13px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    background: var(--white);
    border-color: #318BB4;
    box-shadow: 0 0 0 4px rgba(91, 192, 232, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.field-meta {
    min-height: 18px;
    display: flex;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 0.75rem;
}

.field-error {
    color: var(--error);
    font-size: 0.77rem;
    font-weight: 700;
}

/* ── Turnstile widget container ──────────────────────────────────── */
.turnstile-row {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    background: rgba(183, 226, 248, 0.25);
    border: 1px solid rgba(91, 192, 232, 0.45);
}

.turnstile-label {
    margin: 0;
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 800;
}

.turnstile-label span {
    color: #277FA8;
}

.cf-turnstile {
    min-height: 65px;
    display: flex;
    justify-content: center;
}

.turnstile-row .field-error {
    text-align: center;
}

/* ── Submit row + honeypot ───────────────────────────────────────── */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 2px;
}

.form-submit p {
    max-width: 400px;
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.form-submit .button {
    flex: 0 0 auto;
    border: 0;
}

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