/* Candidate Journey: recruitment "Apply" form styles
   Extracted/trimmed from `recruitment/candidate/apply/index.html` inline <style>. */

.apply-grid {
  display: grid;
  /* Design-system: match .ie-form-shell (0.9fr 1.1fr) */
  grid-template-columns: 0.9fr 1.1fr;
  /* Design-system spacing rhythm */
  gap: 2.25rem;
}

/* Only step containers live inside apply-grid:
   span across both columns to avoid empty/uneven whitespace on desktop. */
.apply-grid > [data-step] {
  grid-column: 1 / -1;
}

.apply-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.apply-steps-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--brand-text-muted);
}

.apply-steps-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.apply-step-pill {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--brand-gold-border);
  color: var(--brand-text-muted);
  background: rgba(0, 0, 0, 0.35);
}

.apply-step-pill--active {
  border-color: var(--brand-gold);
  color: #0f172a;
  background: linear-gradient(135deg, #facc6b, var(--brand-gold));
  font-weight: 600;
}

.apply-progress {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.apply-progress-bar {
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(
    to right,
    var(--brand-gold),
    rgba(248, 250, 252, 0.9)
  );
  transform-origin: left center;
  transition: transform 220ms ease-out;
}

.apply-section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.apply-section-hint {
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.ie-apply-form .profile-group.ie-form-card {
  margin-bottom: 1.5rem;
}

.profile-group-title {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--brand-gold-border);
  padding-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entry-card.ie-form-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.entry-card.ie-form-card:hover {
  border-color: var(--brand-gold-border-strong);
}

.entry-card-remove {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: rgba(239, 68, 68, 0.1);
  color: rgba(248, 113, 113, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.entry-card-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.entry-card .field-group {
  margin-bottom: 0.8rem;
}

.entry-card .field-group:last-child {
  margin-bottom: 0;
}

.field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.1rem;
}

.field-group--single {
  grid-template-columns: minmax(0, 1fr);
}

.field-group--compact {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
}

.field-group--compact > .apply-field {
  flex: 1;
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ie-apply-form .apply-field > .ie-form-label {
  margin-bottom: 0;
}

.field-hint {
  font-size: 0.7rem;
  color: var(--brand-text-muted);
}

.file-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.file-pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--brand-gold) 40%, transparent);
  color: var(--brand-text-body);
}

.file-pill-empty {
  color: var(--brand-text-muted);
  border-style: dotted;
}

.apply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--brand-gold-border);
}

@media (max-width: 640px) {
  .apply-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

.apply-actions-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--brand-text-muted);
  flex-wrap: wrap;
}

.apply-actions-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.apply-actions-right .ie-btn-primary,
.apply-actions-right .ie-btn-outline {
  min-width: 8.5rem;
}

.btn-ghost--add {
  border-style: dashed;
  color: var(--brand-gold);
  border-color: var(--brand-gold-border);
  background: var(--brand-gold-soft);
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-ghost--add:hover {
  background: color-mix(in srgb, var(--brand-gold) 14%, var(--brand-obsidian));
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn-file {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: color-mix(in srgb, var(--brand-obsidian) 92%, var(--brand-surface));
  color: var(--brand-text-body);
  border: 1px solid var(--brand-gold-border-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease,
    transform 80ms ease;
}

.btn-file:hover {
  border-color: var(--brand-gold);
  background: color-mix(in srgb, var(--brand-obsidian) 88%, var(--brand-gold-soft));
}

.btn-file:active {
  transform: translateY(1px);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--brand-text-body);
  line-height: 1.5;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.1rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.3rem;
  border: 1px solid var(--brand-gold-border-strong);
  background: color-mix(in srgb, var(--brand-obsidian) 92%, var(--brand-surface));
  accent-color: var(--brand-gold);
  cursor: pointer;
}

.checkbox-row a {
  color: var(--brand-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apply-errors {
  margin-bottom: 1.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(153, 27, 27, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: rgb(254, 242, 242);
  font-size: 0.78rem;
  display: none;
}

.apply-errors ul {
  margin: 0.15rem 0 0 1rem;
  padding: 0;
  list-style: disc;
}

.apply-errors strong {
  font-weight: 600;
}

.apply-success {
  display: none;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(34, 197, 94, 0.95);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 1rem;
  border-radius: 12px;
}

.honeypot-group {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .apply-step-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .apply-steps-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .apply-steps-badges {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .apply-step-pill {
    white-space: nowrap;
  }

  .apply-section-title {
    font-size: 1.12rem;
  }

  .apply-section-hint {
    font-size: 0.76rem;
    margin-bottom: 1.1rem;
  }

  .profile-group.ie-form-card {
    margin-bottom: 1rem;
  }

  .profile-group-title {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.9rem;
  }

  .field-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .entry-card.ie-form-card {
    padding: 0.95rem 0.85rem 0.85rem;
  }

  .entry-card-remove {
    top: 0.7rem;
    right: 0.7rem;
    font-size: 0.62rem;
    padding: 0.22rem 0.46rem;
  }

  .field-hint {
    font-size: 0.68rem;
  }

  .btn-ghost--add,
  .btn-file {
    width: 100%;
    justify-content: center;
  }

  .apply-actions-right {
    width: 100%;
    flex-direction: column;
  }

  .apply-actions-right .ie-btn-primary,
  .apply-actions-right .ie-btn-outline {
    width: 100%;
    min-width: 0;
  }

  .apply-actions-left {
    width: 100%;
    justify-content: center;
  }
}

