﻿
:root {
    --bg: #f7f8fb;
    --panel: #ffffff;
    --ink: #0b1220;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #2563eb;
    --brand-ink: #ffffff;
    --chip: #f4f6fb;
    --danger: #ef4444;
    --ok: #16a34a;
}

body {
    background: var(--bg);
    color: var(--ink);
}

.c {
    width: min(1120px,94%);
    margin: 0 auto;
}

/* ---------- Header / Hero ---------- */
.apply-hero {
    padding: 32px 0 12px;
}

.apply-title {
    font-size: clamp(24px,4vw,34px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.apply-sub {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
}

.role-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--chip);
    border: 1px solid var(--line);
    font-size: 12px;
    margin-top: 10px;
}

/* ---------- Card Layout ---------- */
.apply-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0 40px;
    width:100%;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 24px;
}


/* ---------- Form ---------- */
.form-row {
    display: flex;
    gap: 12px;
    /*grid-template-columns: 1fr 1fr;*/
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width:50%;
}

.form-col-full {
    width:100%;
}

.label {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

.txt, .sel, .area {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    outline: none;
}

    .txt:focus, .sel:focus, .area:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    }

.area {
    min-height: 120px;
    resize: vertical;
}

/* ---------- File Drop ---------- */
.file-drop {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 16px;
    background: #fafbff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .file-drop .hint {
        color: var(--muted);
        font-size: 13px;
    }

    .file-drop input[type=file] {
        display: none;
    }

.file-name {
    font-size: 13px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.btn, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn {
    margin-top:20px;
    background: var(--mdb);
    color: var(--brand-ink);
}

    .btn:hover {
        filter: brightness(0.98);
    }

.btn-secondary {
    background: #fff;
    color: #0f172a;
    border-color: var(--line);
}

/* ---------- Side Panel ---------- */
.side {
    background: #fbfcff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}

    .side h3 {
        margin: 0 0 10px;
        font-size: 16px;
        font-weight: 700;
    }

    .side p {
        color: var(--muted);
        font-size: 13px;
        margin: 6px 0;
    }

    .side .chips {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

.chip {
    background: var(--chip);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #0f172a;
}

/* ---------- Footer / Alerts ---------- */
.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.msg {
    display: none;
    font-size: 14px;
}

    .msg.ok {
        color: var(--ok);
    }

    .msg.err {
        color: var(--danger);
    }

.req {
    color: var(--danger);
    margin-left: 2px;
}


@media (max-width: 48rem) {
    .apply-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-wrap: wrap;
    }

    .form-col{
        width:100%;
    }

    .btn, .btn-secondary {
    margin-top:20px;
     width:100%;
    }
}