/* GoFlyAdventure Careers: a light job-application portal in the portal's palette
   (cream canvas, white panels, deep-teal text, coral actions). No dark surfaces anywhere. */
:root {
  --bg: #F7F2E8;
  --panel: #FFFFFF;
  --soft: #FBF8F2;
  --line: #E6DFD1;
  --line-strong: #CFC6B5;
  --ink: #123840;
  --ink-soft: #55676B;
  --ink-faint: #8A9699;
  --coral: #F97171;
  --coral-ink: #E45A5A;
  --coral-tint: #FDECEA;
  --teal-tint: #E7F0F0;
  --green: #1F7A5A;
  --green-tint: #E3F3EC;
  --danger: #C0352B;
  --radius: 16px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-ink); }
.btn--outline { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--submit { min-height: 52px; min-width: 220px; }
.btn[disabled] { opacity: .6; cursor: progress; }
:focus-visible { outline: 3px solid rgba(249, 113, 113, .45); outline-offset: 2px; }

/* ── top bar ── */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 30px; width: auto; }
.brand__sub { padding-left: 12px; border-left: 1px solid var(--line-strong); font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.topbar__link { font-size: 14px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.topbar__link:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 480px) { .topbar__link { display: none; } }

.page { padding: 28px 0 64px; }
@media (min-width: 720px) { .page { padding: 40px 0 88px; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ── careers index ── */
.intro { padding: 12px 0 28px; max-width: 720px; }
.page-title { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px; }
.page-lede { color: var(--ink-soft); font-size: 17px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel__title { font-size: 18px; font-weight: 700; }
.count { font: 500 12px/1 var(--mono); color: var(--ink-soft); background: var(--soft); border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; }
.job-list { list-style: none; padding: 0; }
.job-row { display: grid; gap: 12px; padding: 20px; text-decoration: none; transition: background-color .15s ease; border-radius: 0 0 var(--radius) var(--radius); }
.job-row:hover { background: var(--soft); }
.job-row:hover .job-row__title { color: var(--coral-ink); }
@media (min-width: 760px) { .job-row { grid-template-columns: 1.2fr 1.4fr auto; align-items: center; } }
.job-row__main { display: grid; gap: 2px; }
.job-row__title { font-size: 19px; font-weight: 700; transition: color .15s ease; }
.job-row__dept { font-size: 14px; color: var(--ink-soft); }
.job-row__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-row__go { font-weight: 600; font-size: 14px; color: var(--coral-ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-soft); }
.tag svg { width: 15px; height: 15px; }
.tag--open { background: var(--green-tint); border-color: transparent; color: var(--green); font-weight: 600; }
.note { margin-top: 20px; color: var(--ink-soft); font-size: 14px; }
.note a { color: var(--ink); font-weight: 600; }

/* ── job posting ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-faint); margin-bottom: 16px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.job-head { display: grid; overflow: hidden; }
@media (min-width: 800px) { .job-head { grid-template-columns: 240px 1fr; } }
.job-head__cover { margin: 0; background: var(--soft); aspect-ratio: 16 / 7; }
@media (min-width: 800px) { .job-head__cover { aspect-ratio: auto; min-height: 100%; } }
.job-head__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.job-head__body { padding: 22px 20px 24px; display: grid; gap: 14px; align-content: center; min-width: 0; }
@media (min-width: 800px) { .job-head__body { padding: 32px; } }
.job-head__dept { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink); }
.job-title { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.facts-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-soft); font-size: 15px; }
.facts-row li { display: inline-flex; align-items: center; gap: 7px; }
.facts-row svg { color: var(--coral-ink); }
.job-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.job-layout { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 960px) { .job-layout { grid-template-columns: 1fr 320px; align-items: start; } }

.job-desc { padding: 8px 20px; }
@media (min-width: 720px) { .job-desc { padding: 8px 32px; } }
.job-desc section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.job-desc section:last-child { border-bottom: 0; }
.job-desc h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.job-desc p { color: var(--ink-soft); }
.bullets { padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-soft); }
.bullets li { position: relative; padding-left: 22px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.timeline { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 12px; color: var(--ink-soft); }
.timeline li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral-tint); color: var(--coral-ink); font: 600 13px/28px var(--font); text-align: center; }
.timeline strong { color: var(--ink); }

.side { display: grid; gap: 16px; }
@media (min-width: 960px) { .side { position: sticky; top: 20px; } }
.summary { padding: 22px; display: grid; gap: 16px; }
.summary__title { font-size: 17px; font-weight: 700; }
.summary__list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.summary__list dt { color: var(--ink-faint); }
.summary__list dd { font-weight: 600; text-align: right; }
.help { padding: 18px 22px; font-size: 14px; display: grid; gap: 4px; }
.help__title { color: var(--ink-soft); }
.help a { font-weight: 600; overflow-wrap: anywhere; }

/* ── application form ── */
.application { margin-top: 20px; scroll-margin-top: 16px; }
.application__head { padding: 22px 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .application__head { padding: 26px 32px; } }
.application__title { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.015em; }
.application__sub { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.req { color: var(--coral-ink); }
.opt { font-weight: 400; font-size: 13px; color: var(--ink-faint); margin-left: 4px; }

.form { display: grid; }
.step { padding: 24px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.step:last-of-type { border-bottom: 0; }
@media (min-width: 760px) {
  .step { padding: 28px 32px; display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; }
  .step > :not(.step__title) { grid-column: 2; }
}
.step__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
@media (min-width: 760px) { .step__title { grid-column: 1; grid-row: 1 / span 8; align-self: start; margin: 0; } }
.step__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral-tint); color: var(--coral-ink); font-size: 14px; font-weight: 700; flex: none; }
.step__hint { color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; }
.video-pane .step__hint { margin: 8px 0 0; }

.grid2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
input:not([type=checkbox]):not([type=file]), select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--panel); color: var(--ink);
  font: 400 16px/1.3 var(--font); appearance: none; -webkit-appearance: none;
}
select { background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355676B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; padding-right: 40px; }
input::placeholder { color: var(--ink-faint); }
input:hover, select:hover { border-color: var(--ink-faint); }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 56, 64, .08); }
.is-invalid input, .is-invalid select, .drop.is-invalid { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: 13px; font-weight: 600; }
.err:empty { display: none; }
.step > .err { margin-top: 8px; }

.drop { position: relative; display: grid; place-items: center; min-height: 190px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--soft); cursor: pointer; overflow: hidden; text-align: center; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-drag { border-color: var(--coral); background: var(--coral-tint); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop__empty { display: grid; gap: 6px; justify-items: center; padding: 22px; font-size: 14px; color: var(--ink-soft); pointer-events: none; max-width: 440px; }
.drop__empty strong { color: var(--ink); font-size: 15px; }
.drop__icon { width: 34px; height: 34px; color: var(--coral-ink); margin-bottom: 4px; }
.drop__preview { width: 100%; height: 300px; object-fit: contain; background: var(--soft); pointer-events: none; }
.drop.has-file { border-style: solid; border-color: var(--line-strong); }
.drop.has-file::after { content: "Change photo"; position: absolute; right: 10px; bottom: 10px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-strong); font: 600 13px/1 var(--font); padding: 8px 12px; border-radius: 8px; pointer-events: none; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 12px; max-width: 100%; }
.seg__btn { border: 0; background: transparent; color: var(--ink-soft); font: 600 14px/1 var(--font); padding: 10px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.seg__btn.is-on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 56, 64, .15); }

.file { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--soft); cursor: pointer; }
.file:hover { border-color: var(--coral); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file__btn { background: var(--panel); border: 1.5px solid var(--line-strong); color: var(--ink); padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; pointer-events: none; }
.file__name { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; min-width: 0; pointer-events: none; }
.file.has-file { border-style: solid; }
.file.has-file .file__name { color: var(--ink); font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral); cursor: pointer; }
.consent a { color: var(--ink); font-weight: 600; }

.form-error { background: var(--coral-tint); color: var(--danger); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 14px; margin-top: 16px; }
.submit { display: grid; gap: 12px; margin-top: 20px; justify-items: start; }
@media (max-width: 559px) { .submit, .btn--submit { width: 100%; } }
.progress { width: 100%; max-width: 420px; }
.progress__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--coral); transition: width .2s ease; }
.progress__label { font: 500 12px/1 var(--mono); color: var(--ink-soft); margin-top: 8px; }

.done { display: grid; gap: 12px; justify-items: start; padding: 32px 20px 36px; outline: none; }
@media (min-width: 720px) { .done { padding: 40px 32px 44px; } }
.done__check { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.done__check svg { width: 26px; height: 26px; stroke-width: 2.6; }
.done__title { font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.done p { color: var(--ink-soft); max-width: 36em; }
.done p strong { color: var(--ink); }
.done__ref { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.done__ref strong { font-family: var(--mono); letter-spacing: .04em; }
.done .btn { margin-top: 6px; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--panel); padding: 22px 0; font-size: 14px; color: var(--ink-soft); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
