/* Careers pages: role list, role facts and the application form. Builds on main.css tokens. */

/* Role list */
.jobs { display: grid; gap: 8px; }
.job-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 40px; gap: 20px; align-items: center; padding: 18px 20px 18px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--ease), background-color .3s; }
@media (hover: hover) { .job-row:hover { transform: translateX(6px); } .job-row:hover .bcard__go { background: var(--gold); border-color: var(--gold); transform: rotate(45deg); } }
.job-row .bcard__icon { width: 48px; height: 48px; }
.job-row .bcard__go { position: static; }
.job-row h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 400; letter-spacing: -.015em; margin: 0 0 6px; }
.job-row__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--fg-2); }
.job-row__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-row__meta .ico { width: 16px; height: 16px; color: var(--gold-deep); }
.job-row__cta { font-size: .85rem; font-weight: 700; color: var(--gold-deep); white-space: nowrap; }
.jobs-empty { padding: clamp(24px, 3.4vw, 40px); }
.jobs-empty p { margin: 0; color: var(--fg-2); max-width: 40em; }

/* Facts in the hero (dark frame) */
.job-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.job-facts li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(232,210,160,.22); color: #e9e1cf; font-size: .9rem; }
.job-facts .ico { width: 16px; height: 16px; color: var(--gold); }

.job-list li { font-size: 1.04rem; }

/* Application form */
.apply { padding: clamp(22px, 3.4vw, 44px); max-width: 880px; margin: 0 auto; }
.apply__title { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 360; letter-spacing: -.015em; margin: 0 0 10px; }
.apply__intro { color: var(--fg-2); font-size: .95rem; margin: 0 0 8px; max-width: 46em; }
.apply__group { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.apply__group legend { padding: 0; margin-bottom: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }

/* Select fields in the same style as text inputs (label sits raised) */
.input--select select { width: 100%; appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2394742f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center; border: 1px solid transparent; border-radius: 14px; padding: 24px 44px 10px 16px; outline: 0; font-size: 1rem; cursor: pointer; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.input--select select:focus { border-color: var(--gold-deep); background-color: #fff; box-shadow: 0 0 0 4px rgba(212,178,94,.18); }
.input--select label { transform: translateY(-10px); font-size: .72rem; color: var(--gold-deep); }
.input--select select:invalid { color: var(--fg-muted); }
.input--select option { color: var(--fg); }

/* Language checkboxes */
.choices { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 14px; background: var(--paper); border: 1px solid transparent; font-weight: 500; transition: border-color .25s, background-color .25s; }
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: #fff; transition: background-color .2s, border-color .2s; }
.choice input:checked + span { border-color: var(--gold-deep); background: #fff; }
.choice input:checked + span::before { border-color: var(--gold-deep); background: var(--gold-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(212,178,94,.3); }
.choice-other { flex: 1 1 220px; }

/* CV upload */
.drop { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--paper); cursor: pointer; transition: border-color .25s, background-color .25s; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(212,178,94,.18); }
.drop.is-over { border-color: var(--gold-deep); background: #fff; }
.drop.is-set { border-style: solid; border-color: var(--green); background: #fff; }
.drop.is-bad { border-style: solid; border-color: var(--red); }
.drop__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--gold-deep); }
.drop__icon .ico { width: 22px; height: 22px; }
.drop__text { display: grid; gap: 2px; min-width: 0; }
.drop__text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__text small { color: var(--fg-muted); font-size: .82rem; }
.drop__btn { pointer-events: none; }

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--paper); font-size: .88rem; color: var(--fg-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: #94742f; }
.consent a { color: var(--gold-deep); text-decoration: underline; }

.apply .form__foot p { max-width: 30em; }
.apply__progress { height: 6px; margin-top: 14px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.apply__progress i { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .2s; }

/* Result panels */
.apply-done, .apply-closed { max-width: 880px; margin: 0 auto; padding: clamp(26px, 4vw, 48px); text-align: center; }
.apply-done p, .apply-closed p { color: var(--fg-2); max-width: 36em; margin: 0 auto; }
.apply-done .h-sub, .apply-closed .h-sub { margin-bottom: 12px; }
.apply-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e5f3e8; color: #1f5a34; margin-bottom: 18px; }
.apply-done__icon svg { width: 30px; height: 30px; }
.apply-closed a { color: var(--gold-deep); text-decoration: underline; }

/* CV first: status line and fields filled in from the CV */
.apply__hint { margin: -2px 0 14px; color: var(--fg-2); font-size: .9rem; max-width: 46em; }
.cv-status { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.45; background: var(--paper); color: var(--fg-2); }
.cv-status::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--gold-deep); }
.cv-status.is-ok { background: #edf6ef; color: #1f4d2e; }
.cv-status.is-ok::before { background: #2f7a47; }
.cv-status.is-busy::before { animation: cv-pulse 1s ease-in-out infinite; }
@keyframes cv-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cv-status.is-busy::before { animation: none; } }
.input.is-auto > input, .input.is-auto > select, .input.is-auto > textarea { box-shadow: inset 0 0 0 1px rgba(212,178,94,.55); }
.input.is-auto::after, legend.is-auto::after { content: "From your CV"; position: absolute; top: 7px; right: 12px; padding: 2px 8px; border-radius: 999px; background: #f6edd4; color: #7a5d2e; font-size: .64rem; font-weight: 700; letter-spacing: .04em; pointer-events: none; }
.input--select.is-auto::after { right: 40px; }
legend.is-auto::after { position: static; display: inline-block; margin-left: 10px; vertical-align: 1px; letter-spacing: .04em; text-transform: none; }

@media (max-width: 720px) {
  .job-row { grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 14px; }
  .job-row__cta { display: none; }
  .drop { grid-template-columns: 44px minmax(0, 1fr); }
  .drop__btn { display: none; }
  .apply .form__foot .btn { width: 100%; }
}
