/* ============================================================
   SIMBA - CAREERS PAGE
   Loaded after styles.css, which already provides the tokens,
   the header/nav, .cta, .shell, .section-label, .page-title,
   .rule, .copy and .inner-page. Only careers-specific pieces
   live here.
   ============================================================ */

:root {
  --line-soft: rgba(216, 163, 58, 0.22);
}

/* gold-bordered panel, in the spirit of the pricing cards */
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 42%, rgba(216, 163, 58, 0.09), transparent 19rem),
    linear-gradient(135deg, rgba(5, 14, 18, 0.94), rgba(3, 12, 16, 0.86));
  box-shadow: inset 0 0 80px rgba(216, 163, 58, 0.035);
}

/* ---------- HERO ---------- */
.a-hero {
  padding: 78px 0 0;
  text-align: center;
}

.a-hero .section-label {
  letter-spacing: 0.22em;
}

.a-hero__title {
  margin-top: 14px;
}

.a-hero__lead {
  max-width: 62ch;
  margin: 30px auto 0;
}

.a-hero__meta {
  margin: 34px 0 0;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.a-hero__meta div {
  padding: 18px 30px;
  border-right: 1px solid var(--line-soft);
}

.a-hero__meta div:last-child {
  border-right: 0;
}

.a-hero__meta dt {
  color: var(--dim);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.a-hero__meta dd {
  margin: 7px 0 0;
  font-family: var(--heading);
  font-size: 22px;
  color: var(--gold);
}

.a-hero__actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- PULL QUOTE ---------- */
.a-statement {
  padding: 76px 0 0;
  text-align: center;
}

.a-statement figure {
  margin: 0;
}

.a-statement blockquote {
  margin: 0 auto;
  max-width: 30ch;
  font-family: var(--heading);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.24;
  color: #f2eee8;
}

.a-statement figcaption {
  margin-top: 20px;
  color: var(--dim);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- THE BRIEF: dense two-column ---------- */
.a-groups {
  padding: 66px 0 0;
}

.group__label {
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.group__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.group__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.group__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.bf-dense {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 44px;
}

.bf-dense__group {
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.bf-dense__group .group__label {
  margin-bottom: 9px;
  font-size: 10px;
}

.bf-dense__group .group__list li {
  margin-bottom: 6px;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.bf-dense__group .group__list li::before {
  width: 5px;
  height: 5px;
  top: 0.52em;
}

.bf-dense__group--wide {
  grid-column: 1 / -1;
}

.bf-dense__group--wide .group__list {
  columns: 2;
  column-gap: 44px;
}

.bf-dense__group--wide .group__list li {
  break-inside: avoid;
}

/* ---------- APPLICATION ---------- */
.a-apply {
  padding: 70px 0 0;
}

.a-apply__panel {
  padding: clamp(28px, 4vw, 52px);
}

.a-apply__head {
  text-align: center;
  margin-bottom: 38px;
}

.a-apply__head .page-title {
  font-size: clamp(30px, 3.6vw, 44px);
}

.a-apply__head .copy {
  max-width: 54ch;
  margin: 16px auto 0;
}

.form {
  margin: 0;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 22px;
  /* start, not end: when a live error appears under one half-width field,
     its input must stay put and the message grow downward. */
  align-items: start;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field__req {
  color: var(--gold);
  margin-left: 0.25em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(2, 9, 12, 0.7);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(141, 149, 142, 0.8);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(2, 9, 12, 0.95);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23d8a33a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 11px;
  padding-right: 40px;
}

.field__hint {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 13px;
}

/* The row directly under a control: its error on the left, its word
   counter on the right. An empty error collapses, so a clean field keeps
   exactly the spacing it had before. */
.field__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.field__error {
  margin: 8px 0 0;
  color: #e2a3a3;
  font-size: 13px;
  line-height: 1.5;
}

.field__error:empty {
  display: none;
}

.field__count {
  margin: 8px 0 0 auto;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.field__count.is-over {
  color: #e2a3a3;
}

/* Driven by JS rather than :invalid - a required field is invalid the
   moment it renders, and nobody wants a form that is red before they
   have typed. The class and the message always appear together. */
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(226, 163, 163, 0.75);
}

.checkgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
}

.checkgrid label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  background: rgba(2, 9, 12, 0.55);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.checkgrid label:hover {
  border-color: var(--line);
  color: var(--ink);
}

.checkgrid input {
  width: 15px;
  height: 15px;
  accent-color: var(--gold);
  flex: none;
}

.checkgrid label:has(input:checked) {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(216, 163, 58, 0.08);
}

.form__actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form__note {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
}

.form__note.is-error {
  color: #e2a3a3;
}

.form button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* submitted state */
.a-apply__thanks {
  text-align: center;
}

.a-apply__thanks .page-title {
  font-size: clamp(30px, 3.6vw, 44px);
}

.a-apply__thanks .copy {
  max-width: 46ch;
  margin: 18px auto 0;
}

.a-apply__thanks .copy a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .a-hero {
    padding-top: 54px;
  }
}

@media (max-width: 620px) {
  .form__grid {
    grid-template-columns: 1fr;
  }

  .checkgrid {
    grid-template-columns: 1fr 1fr;
  }

  .a-hero__meta {
    flex-direction: column;
  }

  .a-hero__meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .a-hero__meta div:last-child {
    border-bottom: 0;
  }

  .bf-dense {
    grid-template-columns: 1fr;
  }

  .bf-dense__group--wide .group__list {
    columns: 1;
  }
}
