/* Contact page — uses tokens.css + landing.css base. */

.contact-main { padding: 80px 0 120px; }

.contact-hero {
    text-align: center;
    max-width: 720px;
    padding: 60px 24px 40px;
}
.contact-hero h1 {
    margin: 18px auto 16px;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}
.contact-hero .lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 36px;
    margin-top: 48px;
    align-items: start;
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card {
    padding: 22px 22px 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
}
.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 10px;
    color: #0b0e14;
    background: linear-gradient(180deg, #d6fbe9 0%, #88e6c5 60%, #67d8ff 100%);
}
.contact-card h3 {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
}
.contact-card p {
    margin: 0 0 6px;
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.55;
}
.contact-card p a {
    color: var(--accent-aqua, #67d8ff);
    text-decoration: none;
    font-weight: 600;
}
.contact-card p a:hover { text-decoration: underline; }
.contact-card small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

/* Form */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255,255,255,0.05);
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-field span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(8, 11, 16, 0.78);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: var(--text-muted);
}
.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--border-focus, #67d8ff);
    box-shadow: 0 0 0 3px rgba(111, 190, 255, 0.16);
}

.contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.contact-form-actions .btn {
    padding-left: 22px;
    padding-right: 22px;
}
.contact-fine {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.contact-fine a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.contact-fine a:hover { color: var(--text-primary); }

.contact-status {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid transparent;
}
.contact-status.success {
    background: rgba(149, 241, 209, 0.06);
    border-color: rgba(149, 241, 209, 0.24);
    color: #c8f4dd;
}
.contact-status.error {
    background: rgba(255, 99, 125, 0.08);
    border-color: rgba(255, 99, 125, 0.30);
    color: #ffb2bf;
}

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

/* ── Field labels with meta + per-field errors ─────────────────────── */
.contact-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.contact-label-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.contact-label-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.contact-label-meta.warn { color: #ffb866; font-weight: 600; }

.contact-error {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #ffb2bf;
    min-height: 0;
    transition: min-height 200ms ease;
}
.contact-error:not(:empty) { min-height: 16px; }

.contact-field.invalid input,
.contact-field.invalid textarea {
    border-color: rgba(255, 99, 125, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 99, 125, 0.12);
}

/* ── Honeypot — visible to bots, hidden from humans + AT ───────────── */
.contact-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Submit button disabled state ──────────────────────────────────── */
#contact-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: saturate(0.6);
}
