/* =========================================================
   BDTC Careers — Typeform-style form
   Fonts: Cinzel (headings), Montserrat (body)
   ========================================================= */

:root {
    --bdtc-blue:      #0b5cff;
    --bdtc-blue-dark: #0a3d91;
    --bdtc-navy:      #071b45;
    --bdtc-gold:      #d4af37;
    --ink:            #10233f;
    --muted:          #61708a;
    --bg:             #f4f7ff;
    --white:          #ffffff;
    --border:         #d9e2f5;
    --error:          #e0284d;
    --success:        #17a673;
    --radius:         14px;
    --shadow:         0 18px 50px rgba(9, 40, 100, .12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(11,92,255,.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(212,175,55,.10), transparent 60%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .cinzel {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    letter-spacing: .3px;
}

/* ---------- Top bar ---------- */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--bdtc-navy);
    font-size: 18px;
    text-decoration: none;
}
.brand .dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4a86ff, var(--bdtc-blue));
    box-shadow: 0 0 0 4px rgba(11,92,255,.15);
}
.brand small {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}
.topbar .loc {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

/* ---------- Progress bar ---------- */
.progress-wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: transparent;
    z-index: 50;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bdtc-blue), var(--bdtc-gold));
    transition: width .45s cubic-bezier(.4,0,.2,1);
    border-radius: 0 4px 4px 0;
}

/* ---------- Form shell ---------- */
.form-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 92px 24px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------- Slides ---------- */
.slide {
    display: none;
    animation: slideIn .5s cubic-bezier(.2,.7,.2,1);
}
.slide.active { display: block; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: translateY(0); }
}
.slide.leaving { animation: slideOut .35s ease forwards; }
@keyframes slideOut {
    to { opacity: 0; transform: translateY(-28px); }
}

.step-index {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bdtc-blue);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 14px;
}
.step-index svg { width: 14px; height: 14px; }

.q-title {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--bdtc-navy);
    font-weight: 700;
}
.q-sub {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 22px;
    max-width: 90%;
}
.q-sub .req { color: var(--error); font-weight: 600; }

/* ---------- Inputs ---------- */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="date"],
.field textarea,
.field select {
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--border);
    background: transparent;
    padding: 12px 4px;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}
.field textarea {
    resize: vertical;
    min-height: 64px;
    font-size: 18px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--bdtc-blue);
}
.field input::placeholder,
.field textarea::placeholder {
    color: #a9b6cf;
}
.field select {
    appearance: none;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230b5cff' stroke-width='2'><path d='M5 8l5 5 5-5'/></svg>")
        no-repeat right 6px center;
    cursor: pointer;
    padding-right: 32px;
}

/* Choice cards (radio) */
.choices { display: grid; gap: 12px; margin-top: 6px; }
.choice {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    cursor: pointer;
    background: var(--white);
    transition: all .18s;
    font-size: 17px;
    font-weight: 500;
}
.choice:hover { border-color: #a9c2ff; transform: translateX(3px); }
.choice input { display: none; }
.choice .key {
    width: 30px; height: 30px;
    flex: 0 0 30px;
    border: 2px solid var(--border);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
    background: #f6f9ff;
}
.choice.selected {
    border-color: var(--bdtc-blue);
    background: linear-gradient(0deg, rgba(11,92,255,.06), rgba(11,92,255,.06)), var(--white);
    box-shadow: 0 8px 22px rgba(11,92,255,.14);
}
.choice.selected .key {
    background: var(--bdtc-blue);
    border-color: var(--bdtc-blue);
    color: #fff;
}

/* File upload */
.file-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    background: var(--white);
    cursor: pointer;
    transition: all .2s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--bdtc-blue); background: #f3f7ff; }
.file-drop svg { width: 40px; height: 40px; color: var(--bdtc-blue); }
.file-drop p { margin: 10px 0 2px; font-weight: 600; }
.file-drop small { color: var(--muted); }
.file-name {
    margin-top: 12px;
    font-weight: 600;
    color: var(--success);
    display: none;
}

/* ---------- Errors ---------- */
.error-msg {
    color: var(--error);
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 10px;
    display: none;
    align-items: center;
    gap: 6px;
}
.error-msg.show { display: flex; }
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: var(--error); }

/* ---------- Nav buttons ---------- */
.nav-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border: 0;
    border-radius: 10px;
    padding: 13px 26px;
    font-size: 16px;
    cursor: pointer;
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--bdtc-blue), var(--bdtc-blue-dark));
    color: #fff;
    box-shadow: 0 10px 24px rgba(11,92,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11,92,255,.36); }
.btn-ghost {
    background: transparent;
    color: var(--muted);
    padding: 13px 12px;
}
.btn-ghost:hover { color: var(--bdtc-blue); }
.hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-left: 4px;
}
.hint kbd {
    background: #eef2fb;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 1px 6px;
    font-family: inherit;
    font-size: 11px;
    color: var(--ink);
}

/* ---------- Welcome / thank you ---------- */
.hero { text-align: center; }
.hero .eyebrow {
    color: var(--bdtc-blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(30px, 6vw, 52px);
    color: var(--bdtc-navy);
    margin: 0 0 16px;
    line-height: 1.15;
}
.hero h1 span { color: var(--bdtc-blue); }
.hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 10px; }
.hero .meta {
    display: flex;
    gap: 22px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 26px 0 30px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}
.hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero .meta svg { width: 17px; height: 17px; color: var(--bdtc-blue); }

.thankyou { text-align: center; }
.thankyou .check {
    width: 92px; height: 92px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #0f8a5f);
    display: grid; place-items: center;
    box-shadow: 0 14px 34px rgba(23,166,115,.35);
    animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
.thankyou .check svg { width: 46px; height: 46px; color: #fff; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.review-list {
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 6px;
    margin: 22px auto 0;
    max-width: 620px;
    box-shadow: var(--shadow);
}

/* ---------- Footer note ---------- */
.foot {
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    padding: 18px;
}
.foot a { color: var(--bdtc-blue); text-decoration: none; }

@media (max-width: 560px) {
    .topbar .loc { display: none; }
    .q-sub { max-width: 100%; }
    .nav-row { flex-wrap: wrap; }
}
