/* ============================================================
   Solliciteren — sollicitatieformulier pagina
   Gebruikt KwikFit design tokens uit styles.css
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.apply-page {
    padding-top: 0;
    background: var(--light-gray);
    min-height: 100vh;
}

/* ── Hero ─────────────────────────────────────────────────── */
.apply-hero {
    margin-top: 104px;
    background: var(--kwikfit-donkerblauw);
    color: var(--white);
    padding: 4rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.apply-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: var(--kwikfit-knalblauw);
    transform: skewX(-15deg);
    opacity: 0.12;
    pointer-events: none;
}

.apply-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kwikfit-geel);
}

.apply-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.apply-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.apply-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.apply-breadcrumb a:hover {
    color: var(--kwikfit-geel);
}

.apply-breadcrumb .material-symbols-outlined {
    font-size: 16px;
}

.apply-hero .overline {
    color: var(--kwikfit-geel);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.apply-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
}

.apply-hero h1 span {
    color: var(--kwikfit-geel);
}

.apply-hero .subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 72ch;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.apply-hero .hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.apply-hero .hero-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apply-hero .hero-stat .material-symbols-outlined {
    font-size: 32px;
    color: var(--kwikfit-geel);
}

.apply-hero .hero-stat-content {
    display: flex;
    flex-direction: column;
}

.apply-hero .hero-stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .apply-hero {
        padding: 2rem 1.25rem 1.5rem;
    }
    .apply-hero h1 {
        font-size: 2rem;
    }
    .apply-hero .subtitle {
        font-size: 1rem;
    }
}

/* ── Layout ───────────────────────────────────────────────── */
.apply-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 960px) {
    .apply-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem;
    }
    .apply-sidebar {
        order: -1;
    }
}

/* ── Apply card (form container) ──────────────────────────── */
.apply-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.apply-card-header {
    background: var(--kwikfit-donkerblauw);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.apply-card-header .material-symbols-outlined {
    color: var(--kwikfit-geel);
    font-size: 26px;
}

.apply-card-header h2 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.apply-card-body {
    padding: 2rem 1.75rem;
}

/* ── Form ─────────────────────────────────────────────────── */
.apply-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kwikfit-knalblauw);
    border-bottom: 2px solid #e8f4fd;
    padding-bottom: 0.5rem;
    margin: 0;
}

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

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-field label .req {
    color: var(--kwikfit-rood_orig);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--kwikfit-knalblauw);
    box-shadow: 0 0 0 3px rgba(0, 159, 238, 0.15);
}

.form-field input.error,
.form-field select.error,
.form-field textarea.error {
    border-color: var(--kwikfit-rood_orig);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-field .hint {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.field-error {
    font-size: 0.8rem;
    color: var(--kwikfit-rood_orig);
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 1.1em;
}

.field-error .material-symbols-outlined {
    font-size: 14px;
}

/* ── File upload zone ─────────────────────────────────────── */
.file-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #f9fafb;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--kwikfit-knalblauw);
    background: #eff8ff;
}

.file-upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
}

.file-upload-zone .upload-icon {
    font-size: 32px;
    color: var(--text-gray);
}

.file-upload-zone p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0.25rem 0;
}

.file-upload-zone .file-name {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--kwikfit-donkerblauw);
    font-weight: 600;
    display: none;
}

/* ── Checkbox ─────────────────────────────────────────────── */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.checkbox-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--kwikfit-donkerblauw);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-row label {
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-row label a {
    color: var(--kwikfit-knalblauw);
    text-decoration: underline;
}

/* ── Submit button (reuse .btn .btn-primary styling) ──────── */
.apply-form .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
}

.apply-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.apply-form .btn-submit .material-symbols-outlined {
    font-size: 20px;
}

/* ── Spinner ──────────────────────────────────────────────── */
@keyframes apply-spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: apply-spin 0.6s linear infinite;
    display: none;
}

/* ── Success state ────────────────────────────────────────── */
.success-state {
    display: none;
    text-align: center;
    padding: 3rem 1.75rem;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.success-icon .material-symbols-outlined {
    font-size: 38px;
    color: #059669;
}

.success-state h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.success-state p {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 380px;
    margin: 0 auto 1.5rem;
}

.success-state .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kwikfit-knalblauw);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.success-state .btn-back:hover {
    color: var(--kwikfit-donkerblauw);
}

/* ── Error banner ─────────────────────────────────────────── */
.form-error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #991b1b;
    display: none;
}

.form-error-banner.visible {
    display: flex;
}

.form-error-banner .material-symbols-outlined {
    flex-shrink: 0;
}

/* ── Test mode ribbon ─────────────────────────────────────── */
.test-ribbon {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #92400e;
    margin-bottom: 1.25rem;
}

.test-ribbon .material-symbols-outlined {
    color: #d97706;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.apply-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.apply-sidebar .sidebar-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.apply-sidebar .sidebar-card h3 {
    font-size: 1.3rem;
    color: var(--kwikfit-donkerblauw);
    margin: 0 0 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apply-sidebar .sidebar-card h3 .material-symbols-outlined {
    color: var(--kwikfit-knalblauw);
    font-size: 24px;
}

/* Procedure steps */
.process-step {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--kwikfit-donkerblauw);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.step-text span {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Contact blocks in sidebar */
.contact-block {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.contact-block:last-child {
    margin-bottom: 0;
}

.contact-block .material-symbols-outlined {
    color: var(--kwikfit-knalblauw);
    font-size: 20px;
}

.contact-block a {
    color: var(--kwikfit-donkerblauw);
    text-decoration: none;
    font-weight: 600;
}

.contact-block a:hover {
    color: var(--kwikfit-knalblauw);
}

/* Vacancy reference card (pre-filled vacancy info) */
.vacancy-ref-card {
    background: linear-gradient(135deg, var(--kwikfit-donkerblauw), var(--kwikfit-knalblauw));
    border-radius: 8px;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 68, 137, 0.18);
}

.vacancy-ref-card h4 {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vacancy-ref-card p {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.vacancy-ref-card a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.vacancy-ref-card a:hover {
    color: var(--kwikfit-geel);
}

.vacancy-ref-card .material-symbols-outlined {
    font-size: 18px;
}
