/* ==========================================
   CareerPilot Contact Page V2
   ========================================== */

body {
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
}

/* Navigation */

.contact-nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.contact-logo {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 25px;
    font-weight: 700;
}

.contact-nav-links {
    display: flex;
    gap: 30px;
}

.contact-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-nav-links a:hover,
.contact-nav-links .active {
    color: var(--primary);
}

.contact-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-login {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-signup {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-medium);
    font-weight: 600;
}

.contact-theme-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
}

/* Hero */

.contact-hero {
    padding: 110px 24px;
    text-align: center;
    background:
        radial-gradient(circle at top,
        rgba(37,99,235,.12),
        transparent 45%),
        var(--background);
}

.contact-hero-content {
    max-width: 850px;
    margin: auto;
}

.contact-label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
    font-weight: 700;
}

.contact-hero h1 {
    font-size: clamp(48px,6vw,72px);
    margin: 20px 0;
}

.contact-hero p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 19px;
}

/* Main */

.contact-main-section {
    padding: 100px 24px;
}

.contact-layout {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* Form */

.contact-form-wrapper {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-large);
    border: 1px solid var(--border);
}

.contact-form-wrapper h2 {
    margin-top: 0;
}

.contact-form-intro {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    padding: 14px;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border);
    font-size: 15px;
    font-family: inherit;
}

.contact-form-group textarea {
    resize: vertical;
}

.contact-submit-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 28px;
    border-radius: var(--radius-medium);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.contact-form-message {
    margin-top: 18px;
    color: #16a34a;
    font-weight: 600;
}

/* Info */

.contact-info h2 {
    margin-top: 0;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.contact-info-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface);
}

.contact-info-icon {
    font-size: 28px;
}

.contact-info-card h3 {
    margin: 0 0 8px;
}

.contact-info-card p {
    color: var(--text-secondary);
}

.contact-info-card a {
    color: var(--primary);
    text-decoration: none;
}

.contact-response-note {
    margin-top: 30px;
    padding: 24px;
    border-radius: var(--radius-large);
    background: rgba(37,99,235,.08);
}

/* FAQ */

.contact-faq {
    padding: 100px 24px;
}

.contact-section-heading {
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.contact-faq-grid {
    max-width: 1200px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
}

.contact-faq-card {
    background: var(--surface);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
}

/* CTA */

.contact-cta {
    padding: 120px 24px;
    background: linear-gradient(135deg,#2563EB,#1D4ED8);
    text-align: center;
}

.contact-cta-content {
    max-width: 760px;
    margin: auto;
}

.contact-cta h2 {
    color: white;
    font-size: clamp(40px,5vw,60px);
}

.contact-cta p {
    color: rgba(255,255,255,.9);
    line-height: 1.8;
}

.contact-cta .btn-primary {
    background: white;
    color: var(--primary);
}

/* Responsive */

@media (max-width:1000px){

    .contact-layout{
        grid-template-columns:1fr;
    }

    .contact-faq-grid{
        grid-template-columns:1fr;
    }

}

@media (max-width:700px){

    .contact-form-row{
        grid-template-columns:1fr;
    }

    .contact-nav{
        flex-wrap:wrap;
        padding:20px;
        gap:20px;
    }

    .contact-nav-links{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }

}

/* ==========================================
   CareerPilot Contact Page — launch fixes
   Dark mode + authenticated CTA spacing
   ========================================== */

/* The global theme script changes this button's text to
   "🌙 Dark" / "☀️ Light", so it must not be a fixed 42px circle. */
.contact-theme-button {
    width: auto;
    min-width: 92px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-medium);
    color: var(--text-primary);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
}

/* Keep the authenticated/public CTA in the normal document flow.
   This protects the Contact CTA from any global .btn-primary rules. */
.contact-cta .btn-primary {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 180px;
    min-height: 52px;
    margin: 26px auto 0 !important;
    padding: 14px 28px;
    border-radius: var(--radius-medium);
    text-decoration: none;
    line-height: 1.2;
}

.contact-cta p {
    margin: 18px auto 0;
    max-width: 760px;
}

.contact-cta h2 {
    margin: 0;
}

/* Contact page dark theme.
   theme.js already toggles body.dark-mode and html[data-theme="dark"].
   These rules make this page visually respond to that state even when
   the shared design tokens remain light. */
html[data-theme="dark"] body,
body.dark-mode {
    background: #081426;
    color: #f8fafc;
}

html[data-theme="dark"] .contact-nav,
body.dark-mode .contact-nav {
    background: #0b1728;
    border-color: #26364c;
}

html[data-theme="dark"] .contact-logo,
html[data-theme="dark"] .contact-nav-links a,
html[data-theme="dark"] .contact-login,
body.dark-mode .contact-logo,
body.dark-mode .contact-nav-links a,
body.dark-mode .contact-login {
    color: #f8fafc;
}

html[data-theme="dark"] .contact-nav-links a:hover,
html[data-theme="dark"] .contact-nav-links .active,
body.dark-mode .contact-nav-links a:hover,
body.dark-mode .contact-nav-links .active {
    color: #60a5fa;
}

html[data-theme="dark"] .contact-theme-button,
body.dark-mode .contact-theme-button {
    background: #111f33;
    border-color: #334155;
    color: #f8fafc;
}

html[data-theme="dark"] .contact-hero,
body.dark-mode .contact-hero {
    background:
        radial-gradient(circle at top, rgba(37,99,235,.22), transparent 45%),
        #081426;
}

html[data-theme="dark"] .contact-main-section,
html[data-theme="dark"] .contact-faq,
body.dark-mode .contact-main-section,
body.dark-mode .contact-faq {
    background: #081426;
}

html[data-theme="dark"] .contact-form-wrapper,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .contact-faq-card,
body.dark-mode .contact-form-wrapper,
body.dark-mode .contact-info-card,
body.dark-mode .contact-faq-card {
    background: #0f1d30;
    border-color: #2a3a50;
    color: #f8fafc;
}

html[data-theme="dark"] .contact-hero p,
html[data-theme="dark"] .contact-form-intro,
html[data-theme="dark"] .contact-info-card p,
body.dark-mode .contact-hero p,
body.dark-mode .contact-form-intro,
body.dark-mode .contact-info-card p {
    color: #b8c4d6;
}

html[data-theme="dark"] .contact-form-group input,
html[data-theme="dark"] .contact-form-group select,
html[data-theme="dark"] .contact-form-group textarea,
body.dark-mode .contact-form-group input,
body.dark-mode .contact-form-group select,
body.dark-mode .contact-form-group textarea {
    background: #091729;
    border-color: #334155;
    color: #f8fafc;
    color-scheme: dark;
}

html[data-theme="dark"] .contact-form-group input::placeholder,
html[data-theme="dark"] .contact-form-group textarea::placeholder,
body.dark-mode .contact-form-group input::placeholder,
body.dark-mode .contact-form-group textarea::placeholder {
    color: #8795a8;
}

html[data-theme="dark"] .contact-response-note,
body.dark-mode .contact-response-note {
    background: rgba(59,130,246,.14);
    color: #e5edf8;
}

html[data-theme="dark"] .contact-info-card a,
body.dark-mode .contact-info-card a {
    color: #60a5fa;
}

@media (max-width:700px) {
    .contact-theme-button {
        min-width: 84px;
        padding: 0 10px;
        font-size: 14px;
    }

    .contact-cta .btn-primary {
        min-width: 0;
        width: 100% !important;
        max-width: 280px;
    }
}

