@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #171B26;
  --slate: #68707E;
  --faint: #98A1AE;
  --line: #E6E1D6;
  --bg: #FAF8F3; /* Match website --paper */
  --white: #FFFFFF;
  --orange: #E4692C; /* Match website --orange-600 */
  --orange-dark: #B84E1A;
  --orange-bg: #FBE3D0; /* Match website --orange-100 */
  --green: #1E7A3D; /* Match website --success-text */
  --green-bg: #E9F7EE; /* Match website --success-bg */
  --red: #D1453B; /* Match website --error */
  --red-bg: #FBEAE9;
  
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lux: 0 12px 24px -8px rgba(228, 105, 44, 0.18), 0 4px 12px -4px rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER (matches website .navbar) ================= */
header.top {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 1px;
}

.brand-badge {
  background: linear-gradient(155deg, #16234A, #0D1730); /* Match website brand-mark */
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(13, 23, 48, 0.15);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 44px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .25s ease;
}

.header-nav a:hover {
  color: var(--orange-dark);
}

.header-nav a:hover::after {
  width: 100%;
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.header-signin:hover {
  color: var(--orange-dark);
}

.header-signin-icon {
  font-size: 13px;
}

.header-register {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--orange);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-register:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ================= PROFILE MENU (signed-in header state) ================= */
.header-profile {
  position: relative;
}

.header-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  border-radius: 20px;
}

.header-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-bg);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.header-profile-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.header-profile-caret {
  font-size: 10px;
  color: var(--slate);
}

.header-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  padding: 6px;
  z-index: 60;
}

.header-profile-menu a,
.header-profile-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.header-profile-menu a:hover,
.header-profile-menu button:hover {
  background: var(--bg);
}

.header-profile-menu .danger {
  color: var(--red);
}

.header-profile-menu .divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

/* ================= CHANGE PASSWORD MODAL ================= */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.cp-modal {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.cp-modal h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.cp-modal .cp-modal-sub {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 20px;
}

.cp-modal .cp-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ================= HERO (matches website .page-header) ================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0D1730, #16234A);
  padding: 64px 0 88px;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 105, 44, 0.22), transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero .eyebrow.hero-eyebrow {
  color: #F0925A;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 18px;
}

.hero-title .accent {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: #F0925A;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: #B9C2D6;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero-stats {
    gap: 24px;
  }
}

/* ================= MAIN CONTENT & GRID LAYOUT ================= */
main {
  padding: 56px 0 96px;
  background: radial-gradient(circle at 95% 5%, rgba(228, 105, 44, 0.04), transparent 45%);
}

.portal-grid {
  display: grid;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.portal-grid.sidebar-left {
  grid-template-columns: 280px 1fr;
}

.portal-grid.sidebar-right {
  grid-template-columns: 1fr 320px;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .portal-grid.sidebar-left,
  .portal-grid.sidebar-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.sub {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 600px;
  line-height: 1.65;
}

/* ================= SEARCH BAR ================= */
.search-bar {
  position: relative;
  max-width: 560px;
  margin-bottom: 32px;
}

.search-bar input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px 15px 46px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-bar input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 105, 44, 0.12);
}

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .5;
  pointer-events: none;
}

/* ================= CARDS ================= */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px; /* Match website card shape */
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.job-list-card {
  padding: 0;
  overflow: hidden;
}

.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.job-row:last-child {
  border-bottom: none;
}

.job-row:hover {
  background: var(--bg);
  border-left-color: var(--orange);
}

.job-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.job-meta {
  font-size: 13.5px;
  color: var(--slate);
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.job-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}

.job-arrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.job-row:hover .job-arrow {
  opacity: 1;
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .job-row {
    padding: 20px;
  }
}

/* ================= JOB FILTERS ================= */
.jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.filters-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-dark);
  cursor: pointer;
  font-family: inherit;
}

.filters-toggle-btn:hover {
  text-decoration: underline;
}

.jobs-count {
  font-size: 13.5px;
  color: var(--faint);
  font-weight: 600;
}

.jobs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.jobs-layout.filters-hidden {
  grid-template-columns: 1fr;
}

.jobs-layout.filters-hidden .filters-panel {
  display: none;
}

.filters-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 20px;
}

.jobs-main {
  min-width: 0;
}

.jobs-main .search-bar {
  max-width: none;
  margin-bottom: 24px;
}

.filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.filter-radio,
.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 10px;
}

.filter-radio:last-child,
.filter-check:last-child {
  margin-bottom: 0;
}

.filter-radio input,
.filter-check input {
  accent-color: var(--orange);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--orange);
}

.filter-chip.active {
  background: var(--orange-bg);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.filter-location-wrap {
  position: relative;
}

.filter-location-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--white);
  box-sizing: border-box;
}

.filter-location-input:focus {
  border-color: var(--orange);
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  overflow: hidden;
}

.location-suggestion-item {
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

.location-suggestion-item:hover {
  background: var(--bg);
  color: var(--orange-dark);
}

.filters-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters-actions .btn {
  padding: 11px 20px;
  font-size: 13.5px;
}

@media (max-width: 860px) {
  .jobs-layout {
    grid-template-columns: 1fr;
  }
}

/* ================= PILLS & METADATA ================= */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }

.job-applied-badge {
  vertical-align: middle;
  margin-left: 4px;
  font-size: 10px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 32px; /* Match website button shape */
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(228, 105, 44, 0.4); /* Match website shadow */
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -4px rgba(228, 105, 44, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--slate);
}

/* ================= FIELDS & INPUTS ================= */
.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=tel],
.field input[type=url],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--white);
  transition: all 0.2s ease;
}

.field select {
  appearance: auto;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 105, 44, 0.12);
  background: var(--white);
}

.dob-input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--white);
  transition: all 0.2s ease;
}

.dob-input-group:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 105, 44, 0.12);
}

/* Higher specificity than .field input[type=text] (which sets width:100%,
   a border, padding, etc.) so these three-in-a-row segments actually stay
   small instead of each stretching to fill the field. */
.field .dob-input-group input.dob-part {
  border: none;
  outline: none;
  padding: 0;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  text-align: center;
  width: 26px;
  flex-shrink: 0;
}

.field .dob-input-group input.dob-part.dob-year {
  width: 46px;
}

.dob-part::placeholder {
  color: var(--faint);
}

.dob-sep {
  color: var(--faint);
  flex-shrink: 0;
}

.dob-calendar-btn {
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.6;
  flex-shrink: 0;
}
.dob-calendar-btn:hover {
  opacity: 1;
}

/* Kept in-layout (not display:none) so showPicker()/click() work reliably
   across browsers, but visually invisible — the styled DD/MM/YYYY boxes
   are the only thing the candidate sees. */
.dob-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: none;
  padding: 0;
  pointer-events: none;
}

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

.field .hint {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}

.pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pwd-wrapper input[type=password],
.pwd-wrapper input[type=text] {
  padding-right: 44px;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  outline: none;
  transition: color 0.15s ease;
}

.pwd-toggle:hover {
  color: var(--slate);
}

.pwd-toggle svg {
  width: 18px;
  height: 18px;
}

/* Read-only resume review (Step 2) */
.readonly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 12px;
}
.readonly-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 14px;
}
.readonly-item .l {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.readonly-item .v {
  font-size: 14.5px;
  color: var(--ink);
}
.readonly-item .v.empty {
  color: var(--faint);
  font-style: italic;
}
.ro-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ro-entry:last-child { border-bottom: none; }
.ro-entry .ro-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.ro-entry .ro-sub {
  font-size: 13px;
  color: var(--slate);
  margin-top: 3px;
}

/* Consent checkbox row (Step 3) */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}
.consent-row input[type=checkbox] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ================= VERTICAL STEPPER SIDEBAR ================= */
.vertical-stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.v-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  position: relative;
}

.v-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  width: 2px;
  height: 20px;
  background: var(--line);
  z-index: 1;
}

.v-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  background: var(--white);
  z-index: 2;
  transition: all 0.2s ease;
}

.v-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ================= HORIZONTAL STEPPER ================= */
.horizontal-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 40px;
  box-shadow: var(--shadow-sm);
}

.horizontal-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
  z-index: 1;
}

.h-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 0 16px;
  z-index: 2;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.h-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  background: var(--white);
  z-index: 3;
  transition: all 0.2s ease;
}

.h-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Stepper state logic classes */
.h-step.active {
  opacity: 1;
}

.h-step.active .h-step-num {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px rgba(228, 105, 44, 0.15);
}

.h-step.done {
  opacity: 0.85;
}

.h-step.done .h-step-num {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

@media (max-width: 600px) {
  .horizontal-stepper {
    padding: 16px 20px;
  }
  .horizontal-stepper::before {
    left: 40px;
    right: 40px;
  }
  .h-step {
    padding: 0 4px;
    gap: 6px;
  }
  .h-step-label {
    display: none;
  }
}

/* Stepper state logic classes */
.v-step.active {
  opacity: 1;
}

.v-step.active .v-step-num {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px rgba(228, 105, 44, 0.15);
}

.v-step.done {
  opacity: 0.85;
}

.v-step.done .v-step-num {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.v-step.done:not(:last-child)::after {
  background: var(--green);
}

/* ================= SCORE BOX & DETAILS ================= */
.error-box {
  background: var(--red-bg);
  color: var(--red);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(209, 69, 59, 0.2);
  display: none;
  animation: shake 0.4s ease;
}

.error-box.show {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.divider-or {
  text-align: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 24px 0;
  letter-spacing: .08em;
  position: relative;
}

.divider-or::before,
.divider-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--line);
}

.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 2px solid var(--green);
  box-shadow: 0 4px 14px rgba(30, 122, 61, 0.2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  background: var(--orange-bg);
  color: var(--orange);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(228, 105, 44, 0.1);
}

/* ═══════════════════════════════════════════════
   APPLY WIZARD — STRUCTURED FORM STYLES
═══════════════════════════════════════════════ */

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 32px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--orange); }

/* Card section header (icon + title + subtitle) */
.card-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.card-section-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.card-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}
.card-section-sub {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.5;
}

/* Toggle auth text */
.toggle-auth-text {
  font-size: 13.5px;
  text-align: center;
  margin-top: 18px;
  color: var(--slate);
}

.returning-note {
  font-size: 13.5px;
  color: var(--slate);
  background: var(--orange-bg);
  border: 1px solid rgba(228, 105, 44, 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.returning-note a {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.returning-note a:hover {
  text-decoration: underline;
}
.toggle-auth-text a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}
.toggle-auth-text a:hover { text-decoration: underline; }

/* File drop enhanced */
.file-drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all 0.25s ease;
}
.file-drop:hover,
.file-drop.drag-over {
  border-color: var(--orange);
  background: var(--orange-bg);
}
.file-drop.has-file {
  border-color: var(--green);
  background: var(--green-bg);
  border-style: solid;
}
.file-drop-icon { font-size: 36px; margin-bottom: 12px; }
.file-drop-primary { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.file-drop-secondary { font-size: 12.5px; color: var(--faint); }
.file-drop-name { font-size: 13.5px; font-weight: 700; color: var(--green); margin-top: 10px; }

/* Score box */
.score-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.score-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  min-width: 80px;
}
.score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  margin-top: 4px;
}
.score-divider {
  width: 1px;
  height: 52px;
  background: var(--line);
  margin: 0 28px;
  flex-shrink: 0;
}
.score-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  min-width: 0;
}

/* Form section card */
.form-section {
  margin-bottom: 20px;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-bg);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.form-section-desc {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 20px;
  line-height: 1.6;
  padding-left: 40px;
}

/* Tag variants */
.tag-green {
  background: var(--green-bg) !important;
  color: var(--green) !important;
  border: 1px solid rgba(30, 122, 61, 0.15) !important;
}
.tag-red {
  background: var(--red-bg) !important;
  color: var(--red) !important;
  border: 1px solid rgba(209, 69, 59, 0.15) !important;
}

/* ================= FOOTER (matches website footer-grid) ================= */
.site-footer {
  background: #0D1730;
  color: #8FA0C7;
  padding: 56px 0 0;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--white);
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
  color: #7C88A3;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #B9C2D6;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col a {
  font-size: 14px;
  color: #8FA0C7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #F0925A;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12.5px;
  color: #7C88A3;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
}

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

