:root {
    --navy-deep: #001a33;
    --navy-primary: #003366;
    --accent-blue: #2563eb;
    --accent-light: #dbeafe;
    --border: #e2e8f0;
    --bg-light: #f8fbff;
    --text-muted: #64748b;
    --danger: #dc2626;
    --success: #15803d;
}

body {
    background: var(--bg-light);
}

.form-hero {
    padding: 72px 20px 48px;
    background: linear-gradient(125deg, #001a33 0%, #003366 55%, #0a4e86 100%);
    color: #ffffff;
    text-align: center;
}

.form-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
}

.form-hero p {
    margin: 14px auto 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 18px;
}

.hero-back-link {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 2px;
}

.form-page {
    max-width: 980px;
    margin: -30px auto 70px;
    padding: 0 20px;
}

.form-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 55px rgba(0, 51, 102, 0.08);
    padding: 32px;
}

.form-card h2 {
    margin: 0;
    color: var(--navy-primary);
    font-size: 1.65rem;
}

.form-card .subtitle {
    margin: 8px 0 26px;
    color: var(--text-muted);
    font-size: 0.96rem;
    font-weight: 500;
}

.selected-job {
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 600;
}

.careers-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid > * {
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
    color: var(--navy-primary);
    font-size: 0.92rem;
}

input,
select,
textarea {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    outline: none;
}

.radio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.radio-list label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.radio-list input[type='radio'] {
    width: auto;
    margin: 0;
}

.help-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: -3px;
}

.error-text {
    min-height: 16px;
    font-size: 0.8rem;
    color: var(--danger);
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #f87171;
}

.form-feedback {
    border-radius: 10px;
    padding: 12px 14px;
    display: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-feedback.success {
    display: block;
    color: var(--success);
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.form-feedback.error {
    display: block;
    color: var(--danger);
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.submit-btn {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    justify-self: start;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .form-card {
        padding: 22px;
    }

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

@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
