/*
 * Contact page - templates/contact.php
 *
 * A single utility surface: form + info card. No landing-page nested
 * rounded blocks. Everything scoped under .cwContactPage.
 */

main.cwContactPage {
    --ctcAccent:     var(--clrPrimary);
    --ctcAccentSoft: var(--clrPrimarySoft);
}

/* ──────────────────────────────────────────────
   Outer shell - holds the page within a comfortable
   reading width and gives the whole surface honest
   vertical breathing room.
   ────────────────────────────────────────────── */

main.cwContactPage > .ctcShell {
    max-width: 1100px;
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5.5rem);
}

/* ──────────────────────────────────────────────
   Header - small, utilitarian. Left-aligned to set
   the contact-page tone (forms are left-aligned).
   ────────────────────────────────────────────── */

.ctcHeader {
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
    max-width: 60ch;
}

.ctcEyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ctcAccent);
    margin: 0 0 0.65rem;
}

.ctcTitle {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--clrInk);
}

.ctcLead {
    margin: 0.85rem 0 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--clrInk70);
    max-width: 56ch;
}

/* ──────────────────────────────────────────────
   Grid - form (2fr) + info card (1fr)
   ────────────────────────────────────────────── */

.ctcGrid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: start;
}

@media (max-width: 880px) {
    .ctcGrid { grid-template-columns: 1fr; }
}

/* Shared card chrome - flat, framed surface (not a floating
   landing-page tile). Border is the boundary; no big shadow. */
.ctcCard {
    background: var(--clrSurface);
    border: 1px solid var(--clrBorder);
    border-radius: var(--radiusLg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.ctcCardHeading {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--clrInk);
    margin: 0 0 1.25rem;
}

/* ──────────────────────────────────────────────
   Alert banners (success / error / invalid)
   ────────────────────────────────────────────── */

.ctcAlert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radiusSm);
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
.ctcAlert svg { flex: none; margin-top: 2px; }

.ctcAlertOk {
    background: var(--clrSuccessSoft);
    color: var(--clrSuccessText);
    border: 1px solid color-mix(in srgb, var(--clrSuccess) 25%, transparent);
}
.ctcAlertErr {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.ctcAlertWarn {
    background: var(--clrWarnSoft);
    color: var(--clrWarnText);
    border: 1px solid color-mix(in srgb, var(--clrWarn) 30%, transparent);
}

/* ──────────────────────────────────────────────
   Form
   ────────────────────────────────────────────── */

.ctcForm {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.ctcFieldRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
@media (max-width: 560px) {
    .ctcFieldRow { grid-template-columns: 1fr; }
}

.ctcTextarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.5;
    font-family: inherit;
}

/* Honeypot - kept in the DOM but kept off-screen and inert. Real
   users never see it; bots that auto-fill every input get caught. */
.ctcHpField {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ctcFormFoot {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}
.ctcFormFoot .primaryButton { flex: none; }

.ctcFormPrivacy {
    margin: 0;
    font-size: 0.82rem;
    color: var(--clrMuted);
    line-height: 1.5;
}
.ctcFormPrivacy a {
    color: var(--clrInk70);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ctcFormPrivacy a:hover { color: var(--ctcAccent); }

.ctcAfter {
    margin: 0;
}

/* ──────────────────────────────────────────────
   Info sidebar
   ────────────────────────────────────────────── */

.ctcInfoCard {
    background: var(--clrPaperDeep);
    border-color: transparent;
}

.ctcInfoList {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}
.ctcInfoItem {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--clrBorder);
    padding-top: 1.1rem;
}
.ctcInfoItem:first-child {
    border-top: 0;
    padding-top: 0;
}
.ctcInfoItem dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clrMuted);
    margin: 0 0 0.25rem;
}
.ctcInfoItem dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--clrInk);
    line-height: 1.5;
    letter-spacing: -0.005em;
    word-break: break-word;
}
.ctcInfoItem dd a {
    color: var(--ctcAccent);
    text-decoration: none;
    font-weight: 600;
}
.ctcInfoItem dd a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ctcInfoHint {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--clrBorder);
}
.ctcInfoHintLabel {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clrMuted);
    margin: 0 0 0.65rem;
}
.ctcInfoHint ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}
.ctcInfoHint li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.ctcInfoHint a {
    color: var(--clrInk);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.ctcInfoHint a span {
    color: var(--ctcAccent);
    transition: transform 200ms var(--ease);
    display: inline-block;
}
.ctcInfoHint a:hover span { transform: translateX(3px); }
.ctcInfoHint li > span {
    font-size: 0.85rem;
    color: var(--clrInk70);
    line-height: 1.5;
}
