/* ==========================================================================
   ClearPath Landing Page — Careers Page Styles
   Uses the shared design-tokens.css palette and matches the about/help-center
   hero + content layout. No new color values — every accent comes from the
   token system so the page stays brand-consistent.
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyan: var(--accent-cyan);
    --green: var(--accent-green);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
}

h1 { font-size: var(--text-4xl); line-height: 1.3; margin-bottom: 1.5rem; color: var(--text-primary); font-weight: var(--font-bold); }
h2 { font-size: var(--text-2xl); line-height: 1.4; margin-bottom: 1.5rem; color: var(--text-primary); font-weight: var(--font-semibold); }
h3 { font-size: var(--text-lg); margin-bottom: 0.5rem; color: var(--text-primary); font-weight: var(--font-semibold); }
h4 { font-size: var(--text-base); margin: 1.5rem 0 0.5rem; color: var(--text-primary); font-weight: var(--font-semibold); }

p  { font-size: var(--text-base); margin-bottom: 1rem; }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ------- Hero ------- */
.hero-careers {
    padding: 7rem 0 3rem;
    background: var(--bg-primary);
    text-align: center;
}
.hero-careers h1 { margin-bottom: 0.75rem; }
.hero-careers .subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* ------- Sections ------- */
.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--border-default); }

/* ------- Role card ------- */
.role-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.role-card-header {
    margin-bottom: 1.25rem;
}

.role-title {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

.role-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.role-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    background: var(--bg-inset);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--border-default);
}

.role-card-body ul {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-secondary);
}

.role-card-body li {
    margin-bottom: 0.5rem;
    line-height: 1.55;
}

.role-card-body p {
    color: var(--text-secondary);
}


/* ------- Apply form ------- */
.apply-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.apply-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.careers-form .form-label {
    margin-bottom: 0.4rem;
}

.careers-form .req {
    color: var(--status-error);
    margin-left: 2px;
}

.careers-form .optional {
    color: var(--text-tertiary);
    font-weight: var(--font-normal);
    font-size: var(--text-xs);
    margin-left: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .apply-section { padding: 1.5rem; }
    .role-card { padding: 1.5rem; }
}

/* ------- File input ------- */
.file-input-wrapper { position: relative; }

.file-input {
    /* Visually hidden but still reachable for keyboard + screen readers via the linked label */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.file-input-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-md);
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.file-input-label:hover,
.file-input:focus + .file-input-label {
    border-color: var(--accent-cyan);
    background: var(--bg-surface-hover);
}

.file-input-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-cyan);
}

.file-input-text {
    font-size: var(--text-sm);
}

/* ------- Submit + status ------- */
.careers-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
}

.careers-error {
    font-size: var(--text-sm);
    color: var(--status-error);
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.careers-fine-print {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 0.75rem;
}

/* ------- Success state ------- */
.careers-success {
    text-align: center;
    padding: 1rem 0;
}

.careers-success-icon svg {
    width: 56px;
    height: 56px;
    fill: var(--accent-green);
    margin-bottom: 0.5rem;
}

.careers-success h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

.careers-success p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.careers-success a {
    color: var(--accent-cyan);
    text-decoration: underline;
}
