/* ── Contact page styles ── */
.contact-hero {
    background: linear-gradient(135deg, var(--brand-deep) 0%, #163d35 100%);
    color: #fff;
    padding: 56px 0 48px;
    text-align: center;
}
.contact-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.contact-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 540px;
    margin: 0 auto;
}

/* ── Layout ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    padding: 48px 0 64px;
    align-items: start;
}
@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-sidebar { order: -1; }
}

/* ── Card ── */
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 40px;
}
@media (max-width: 600px) {
    .contact-card { padding: 24px 20px; }
}

/* ── Form ── */
.contact-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
}

.field {
    margin-bottom: 20px;
}
.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.field label .req {
    color: var(--brand);
    margin-left: 2px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cde4dc;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #f9fdfc;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(78,179,154,0.15);
    background: #fff;
}
.field textarea {
    resize: vertical;
    min-height: 140px;
}
.field-error {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 5px;
}
.field input.is-invalid,
.field textarea.is-invalid {
    border-color: #e74c3c;
    background: #fff8f8;
}

/* ── Honeypot ── */
.hp-field { display: none !important; visibility: hidden; }

/* ── Submit button ── */
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 12px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, transform 0.12s;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}
.btn-submit:hover  { background: var(--brand-dark); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit svg    { flex-shrink: 0; }

/* ── Alerts ── */
.alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.93rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-success {
    background: #e8f9f3;
    border: 1px solid #a8dfc8;
    color: #176344;
}
.alert-error {
    background: #fdf0ef;
    border: 1px solid #f5b7b1;
    color: #922b21;
}

/* ── Char counter ── */
.char-count {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}
.char-count.near-limit { color: #e67e22; }
.char-count.at-limit   { color: #c0392b; }

/* ── Sidebar ── */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 20px;
}
.sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-icon svg { color: var(--brand); }
.contact-info-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.contact-info-text span,
.contact-info-text a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
}
.contact-info-text a:hover { color: var(--brand); }

.response-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    border: 1px solid rgba(78,179,154,0.3);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--brand-dark);
    font-weight: 500;
    margin-top: 16px;
}
.response-badge svg { flex-shrink: 0; }

.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.topic-chip {
    background: var(--accent-light);
    color: var(--brand-dark);
    border: 1px solid rgba(78,179,154,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
