/* Native careers application form — replaces the Wix iframe.
   Inherits dark theme from index.html. Class names are scoped under .apply-form
   to avoid colliding with any existing site styles. */

.apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-top: 16px;
}

.apply-form .apply-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.apply-form label {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #D6D6D6;
  text-transform: none;
}

.apply-form label .req {
  color: #F9D360;
  margin-left: 2px;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="url"],
.apply-form select {
  width: 100%;
  background-color: #0F0F0F;
  border: 1px solid #2B2B2B;
  color: #FFFFFF;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.apply-form input::placeholder {
  color: #5A5A5A;
}

.apply-form input:focus,
.apply-form select:focus {
  border-color: #F9D360;
}

.apply-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #B0B0B0 50%),
                    linear-gradient(135deg, #B0B0B0 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.apply-form select option {
  background-color: #141414;
  color: #FFFFFF;
}

/* Honeypot — visible to bots, invisible to humans. Do NOT use display:none. */
.apply-form .apply-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apply-form .apply-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.apply-form .apply-submit {
  background-color: #F9D360;
  color: #0A0A0A;
  border: 0;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.apply-form .apply-submit:hover:not(:disabled) {
  background-color: #FFFFFF;
}

.apply-form .apply-submit:disabled {
  background-color: #555555;
  cursor: not-allowed;
}

.apply-status {
  grid-column: 1 / -1;
  min-height: 22px;
  font-size: 13px;
  line-height: 1.5;
}

.apply-status.is-success {
  color: #7CC97F;
}

.apply-status.is-error {
  color: #E27676;
}

@media (max-width: 720px) {
  .apply-form {
    grid-template-columns: 1fr;
  }
}

/* ── Post-submission confirmation panel ─────────────────────────────────────
   On a successful submit, apply.js hides .career-layout (left rail + form)
   and reveals #applyConfirm in its place. Two copy variants are written by
   the script: handbook roles vs. roles with no handbook branch in n8n. */

/* .career-layout is declared `display: grid` in index.html, which overrides
   the UA stylesheet's [hidden] rule. Without this it will not hide. */
.career-layout[hidden] {
  display: none;
}

.apply-confirm {
  max-width: 620px;
  margin: 0 auto;
  background-color: #141414;
  border: 1px solid #232323;
  border-top: 2px solid #F9D360;
  padding: 40px 36px;
  text-align: center;
}

.apply-confirm[hidden] {
  display: none;
}

.apply-confirm-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border: 1px solid #F9D360;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-confirm-mark svg {
  width: 20px;
  height: 20px;
  display: block;
}

.apply-confirm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin: 0 0 14px;
  outline: none;
}

.apply-confirm-body {
  font-size: 14px;
  line-height: 1.75;
  color: #B0B0B0;
  margin: 0;
}

/* The deadline. Lifted to white so it reads as emphasis against the
   grey body copy without competing with the yellow accents. */
.apply-confirm-body strong {
  color: #FFFFFF;
  font-weight: 600;
}

.apply-confirm-again {
  font-size: 13px;
  line-height: 1.7;
  color: #7A7A7A;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #232323;
}

.apply-confirm-reload {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #F9D360;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.apply-confirm-reload:hover {
  color: #FFFFFF;
}

.apply-confirm-reload:focus-visible {
  outline: 2px solid #F9D360;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .apply-confirm {
    padding: 32px 22px;
  }

  .apply-confirm-title {
    font-size: 24px;
  }
}
