/* ——— Join the Crew page ——— */
.crew-page {
  background: var(--bg-page);
}

.crew-hero {
  padding-top: max(7rem, 12vw);
  padding-bottom: var(--section-space);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.crew-hero-fig {
  margin: 0;
  overflow: hidden;
  background: #e8e6e1;
  width: 100%;
  aspect-ratio: 4 / 3.4;
}

.crew-hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

@media (max-width: 991.98px) {
  .crew-hero-fig {
    aspect-ratio: 16 / 11;
  }
}

.crew-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 34rem;
}

.crew-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 38rem;
}

.crew-form-section {
  padding-top: var(--section-space);
}

/* Reuse form-sa field styling; fieldsets get the same reset as the rest of the form */
.crew-form-section fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.crew-form-section legend {
  float: none;
  width: auto;
}

/* Pill-style choice group for radios/checkboxes, matching the site's minimal aesthetic */
.crew-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.crew-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background-color: var(--bg-input);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.crew-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.crew-choice:hover {
  border-color: rgba(26, 26, 26, 0.3);
}

.crew-choice input:focus-visible ~ span {
  outline: 2px solid rgba(26, 26, 26, 0.35);
  outline-offset: 3px;
  border-radius: 999px;
}

.crew-choice input:checked ~ span {
  color: var(--white);
}

.crew-choice:has(input:checked),
.crew-choice.is-checked {
  background-color: var(--text);
  border-color: var(--text);
}

#crew-form-status.is-error {
  color: #8a2b2b;
}

#crew-form-status.is-success {
  color: var(--text);
}
