/* ========================================
   CONTACT PAGE — contact.css
   Requires: variables.css, styles.css
   ======================================== */

/* ── HERO ─────────────────────────────── */
.contact-hero {
    position: relative;
    padding: calc(var(--nav-height) + var(--space-20)) var(--section-padding-h) var(--space-20);
    overflow: hidden;
    background: linear-gradient(145deg, #0d0b22 0%, #1a1838 100%);
    text-align: center;
}

.contact-hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center,
        rgba(76, 201, 240, 0.15) 0%,
        rgba(67, 97, 238, 0.10) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

/* Section label — matches .section-label in styles.css exactly */
.contact-hero-inner .section-label {
    margin-bottom: var(--space-3);
}

/* Hero title — gradient text, matches h1 in styles.css */
.contact-hero-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero subtitle — matches .hero-sub in styles.css */
.contact-hero-sub {
    font-size: var(--text-md);
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── MAIN SECTION ─────────────────────── */
.contact-section {
    padding: var(--section-padding-v) var(--section-padding-h);
    background: linear-gradient(145deg, #100e28 0%, #1e1c45 100%);
    position: relative;
    z-index: 1;
}

/* ── TWO-COLUMN GRID ──────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-12);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* ── FORM WRAPPER — matches .feature-card ── */
.contact-form-wrap {
    background: rgba(15, 20, 45, 0.5);
    backdrop-filter: blur(8px);
    border: 0.5px solid rgba(76, 201, 240, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition);
}

/* ── FORM GROUPS ──────────────────────── */
.cf-group {
    margin-bottom: var(--space-5);
}

/* Label — matches .feature-card p pattern, muted + semibold */
.cf-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    letter-spacing: 0.01em;
}

.cf-required-star {
    color: var(--accent);
}

.cf-required-badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--bg-dark);
    background: var(--accent);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cf-optional-badge {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-weight-regular);
}

/* ── INPUTS ───────────────────────────── */
.cf-input,
.cf-select,
.cf-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-family: var(--font-family);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.cf-input::placeholder,
.cf-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
    border-color: var(--accent);
    background: rgba(76, 201, 240, 0.04);
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.1);
}

.cf-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* ── SELECT WRAPPER ───────────────────── */
.cf-select-wrap {
    position: relative;
}

.cf-select {
    cursor: pointer;
    padding-right: var(--space-10);
}

.cf-select-arrow {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-xs);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.cf-select-wrap:focus-within .cf-select-arrow {
    color: var(--accent);
}

.cf-select option {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* ── HINT & CHAR COUNT ────────────────── */
.cf-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-2);
    line-height: 1.5;
}

.cf-char-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: right;
    margin-top: var(--space-1);
    transition: color var(--transition-fast);
}

/* ── STATUS MESSAGE ───────────────────── */
.cf-status {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: var(--space-4);
}

.cf-status--success {
    background: rgba(76, 201, 240, 0.08);
    border: 0.5px solid rgba(76, 201, 240, 0.3);
    color: var(--accent);
}

.cf-status--error {
    background: rgba(239, 68, 68, 0.06);
    border: 0.5px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* ── SUBMIT — inherits btn-primary fully ── */
.cf-submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-3);
}

.cf-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cf-submit-icon {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.cf-submit:not(:disabled):hover .cf-submit-icon {
    transform: translateX(4px);
}

/* ── PRIVACY NOTE ─────────────────────── */
.cf-privacy-note {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-4);
    line-height: 1.5;
}

/* ── CONDITIONAL FIELD ────────────────── */
.cf-conditional {
    animation: cfFadeIn 0.25s ease forwards;
}

@keyframes cfFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RIGHT COLUMN — sticky like .faq-left ── */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: 100px;
}

/* ── CALLOUT CARD — missing report ───────
   Slightly differentiated with primary tint
   to draw the eye first                    */
.info-callout {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: rgba(67, 97, 238, 0.08);
    border: 0.5px solid rgba(67, 97, 238, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-fast);
}

.info-callout:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.info-callout-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-callout-title {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.info-callout-body {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-3);
}

.info-callout-link {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.info-callout-link:hover {
    opacity: 0.75;
}

/* ── INFO CARDS — matches .who-card exactly ── */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border: 0.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(76, 201, 240, 0.05);
    box-shadow: var(--shadow-glow);
}

.info-card-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Title — matches .who-card h3 */
.info-card-title {
    font-size: var(--text-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

/* Body — matches .who-card p */
.info-card-body {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.65;
}

.info-card-body strong {
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    /* Right col: unstick and move above form on mobile */
    .contact-info-col {
        position: static;
        order: -1;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: calc(var(--nav-height) + var(--space-12)) var(--section-padding-h) var(--space-12);
    }

    .contact-hero-title {
        font-size: var(--text-2xl);
    }

    .contact-form-wrap {
        padding: var(--space-6);
        border-radius: var(--radius-lg);
    }
}