/* =====================================
   IBOSSIM – Apply form layout & styling
   ===================================== */

/* ---- Global ---- */

html,
body {
  height: 100%;
  margin: 0;
}

/* Page background + centering */
.apply-body {
  min-height: 100vh;
  margin: 0;
  background: #000;            /* match main site */
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;

  display: flex;
  align-items: center;         /* vertical center */
  justify-content: center;     /* horizontal center */
}

/* Card container */
.apply-shell {
  width: 100%;
  max-width: 600px;            /* width of the big card */
  padding: 4rem 3rem;
}

.apply-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: radial-gradient(circle at 30% 50%, #171717 0, #050505 40%, #000 100%);
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
}

/* Remove default form spacing */
.apply-card,
.apply-card * {
  box-sizing: border-box;
}

/* ---- Header: logo + step label ---- */

:root {
  /* Change this to control logo size globally */
  --apply-logo-max-width: 260px;
}

/* Header block (everything stays centered) */
.apply-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
}

/* Logo image */
.apply-logo img {
  max-width: var(--apply-logo-max-width);
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.75rem;      /* space below logo */
}

/* "Step 1 of 8" */
.apply-step-indicator {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0 auto 2.75rem;      /* space before the title */
}

/* ---- Steps ---- */

.apply-step {
  display: none;
  padding: 0 2.5rem 3.5rem;
}

.apply-step.is-active {
  display: block;
}

/* Step 1: everything centered */
.apply-step[data-step="1"] {
  text-align: center;
}

/* BEGIN YOUR JOURNEY */
.apply-title {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

/* Intro copy under the title */
.apply-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

/* "Takes about 1 minute" */
.apply-meta {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---- Buttons ---- */

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.8rem 2.8rem;
  border-radius: 999px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;

  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  cursor: pointer;
}

/* Center the primary button in Step 1 */
.apply-step[data-step="1"] .apply-btn-primary {
  margin: 0 auto;
}

/* Primary hover/focus */
.apply-btn-primary:hover,
.apply-btn-primary:focus-visible {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

/* Secondary style – if ever used later */
.apply-btn-secondary {
  border-color: #333333;
  color: #cccccc;
}

.apply-btn-secondary:hover,
.apply-btn-secondary:focus-visible {
  background-color: #333333;
  color: #ffffff;
}

/* ---- Generic field styles for later steps ---- */

.apply-step-title {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.apply-required {
  color: #f36;
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

/* Layout for "normal" form steps (2–8) */
.apply-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 36rem;
}

/* Field wrapper */
.apply-field {
  display: flex;
  flex-direction: column;
}

/* Label text */
.apply-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ----------------------------
   SPECIAL EMAIL FIELD COLOR
----------------------------- */

/* label wrapper for EMAIL input */
.apply-field input[type="email"] {
    color: #8ec5fc !important;      /* pastel blue text */
    border-color: #8ec5fc !important;
}

/* highlight border on focus */
.apply-field input[type="email"]:focus {
    border-color: #b3dbff !important;  /* slightly brighter pastel */
    box-shadow: 0 0 8px #8ec5fc55 !important;
}

/* email helper link color */
.apply-helper a[href^="mailto:"] {
    color: #8ec5fc !important;
    text-decoration: underline;
}

.apply-textarea {
  border-radius: 18px;
  min-height: 140px;
  resize: vertical;
}

/* Helper copy under labels */
.apply-helper {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0 0 1.25rem;
}

/* FORCE VERTICAL STACK FOR RADIO & CHECKBOX ANSWERS */
.apply-options.apply-options--stack {
  display: flex;
  flex-direction: column;   /* stack vertically */
  gap: 1.2rem;              /* spacing between options */
  align-items: flex-start;  /* left-align labels */
  width: 100%;
}

/* Each option block full-width */
.apply-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* Bigger touch area for inputs */
.apply-option input[type="radio"],
.apply-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
}

/* Label styling */
.apply-option-label {
  font-size: 1rem;
  line-height: 1.5;
}

/* Error messages (for JS to toggle) */
.apply-error {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #ff6666;
}

/* ---- Navigation buttons wrapper for later steps ---- */

.apply-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* A back button variant (if you add one later) */
.apply-btn-back {
  border-color: #333;
  color: #ccc;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .apply-shell {
    padding: 2.5rem 1.5rem;
  }

  .apply-card {
    border-radius: 32px;
  }

  .apply-header {
    padding: 2.5rem 1.5rem 2rem;
  }

  .apply-logo img {
    max-width: min(320px, 80vw);
    margin-bottom: 1.5rem;
  }

  .apply-step {
    padding: 0 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
  .apply-shell {
    padding: 2rem 1rem;
  }

  .apply-card {
    border-radius: 24px;
  }

  .apply-title {
    font-size: 1.4rem;
    letter-spacing: 0.16em;
  }

  .apply-intro {
    font-size: 0.9rem;
  }

  .apply-btn {
    width: 100%;
  }
}