/* ============================================
   CONTACT PAGE (Phase 4)
   Uses base.css design tokens — never modifies them.
   ============================================ */

.contact-section {
    padding: 60px 0 80px;
}

/* ---------- Form card ---------- */

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-pale);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-base, 0 4px 6px rgba(0, 0, 0, 0.05));
    padding: 2.25rem;
    height: 100%;
}

.contact-card .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.contact-card .form-control {
    border-radius: var(--radius-lg);
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--gray-pale);
}

.contact-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
}

.cf-counter {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: right;
    margin-top: 0.25rem;
    min-height: 1em;
}

.cf-counter.cf-counter-warn {
    color: var(--danger);
}

/* Inline status line under the button (errors + hints). */
.cf-status {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    min-height: 1.2em;
    text-align: center;
}

.cf-status.cf-status-error {
    color: var(--danger-dark);
}

.cf-status.cf-status-ok {
    color: var(--primary-dark);
}

/* ---------- Honeypot: visually and semantically removed from the page,
     but still present in the DOM for bots to trip over. Not display:none,
     because some bots skip display:none fields. ---------- */

.cf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Side info panel ---------- */

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-ghost) 0%, #dbeafe 100%);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    height: 100%;
}

.contact-info-icon {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.1rem;
    color: var(--dark);
    word-break: break-word;
}

.contact-info-item i {
    color: var(--primary-dark);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-info-item a {
    color: var(--primary-dark);
    text-decoration: none;
    word-break: break-all;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-info-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    color: var(--gray);
}

.contact-info-note i {
    color: var(--success-dark, var(--primary-dark));
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ---------- Mobile ---------- */

@media (max-width: 576px) {
    .contact-card,
    .contact-info-card {
        padding: 1.5rem;
    }
    .contact-section {
        padding: 40px 0 60px;
    }
}
