/* ═══════════════════════════════════════════════════════════
   iTamsLink — Registration CSS
   Green wave hero at top, multi-step wizard below
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #197f4c;
  --green-dark:  #0a7846;
  --green-deep:  #007a4d;
  --green-light: #e8f5ed;
  --gold:        #ffba00;
  --gold-dark:   #e5a510;
  --amber:       #945e0a;
  --text:        #101828;
  --muted:       #4a5565;
  --cream:       #fffbf3;
  --white:       #ffffff;
  --border:      #d1d5db;
  --red:         #ef4444;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.12);
  --radius:      14px;
  --radius-sm:   8px;
  --radius-pill: 50px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  background: var(--cream);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   HERO — Full-width green wave banner at top
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a3a24 0%, #197f4c 45%, #0e6638 100%);
  padding: 52px 72px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  min-height: 240px;
}

/* Decorative circles in the background */
.hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -160px;
  right: -80px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  bottom: -100px;
  left: 120px;
  pointer-events: none;
}

/* SVG wave clipped to bottom of hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Left side: title + subtitle */
.hero-left {
  position: relative;
  z-index: 1;
  flex: 1;
}

.reg-title {
  font-size: 2.8rem;
  font-weight: 800;
  font-style: italic;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.reg-subtitle {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

/* Right side: "already have an account?" card */
.hero-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-card {
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px 40px;
  text-align: center;
  min-width: 260px;
}

.blob-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.blob-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 18px;
}

.btn-login {
  background: var(--gold);
  color: #2f2c20;
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 36px;
  font-size: .92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: background .18s, transform .15s, box-shadow .15s;
}
.btn-login:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* ═══════════════════════════════════════════════════════════
   STEP INDICATOR
═══════════════════════════════════════════════════════════ */
.wiz-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 28px;
  background: var(--cream);
}

.wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
  max-width: 170px;
}

.wiz-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--border);
  z-index: 0;
  border-radius: 2px;
  transition: background .3s;
}
.wiz-step.done:not(:last-child)::after { background: var(--green); }

.wiz-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
  color: #9ca3af;
  position: relative;
  z-index: 1;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}

.wiz-step.active .wiz-dot {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(25,127,76,.35);
}
.wiz-step.done .wiz-dot {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.wiz-label {
  font-size: .72rem;
  font-weight: 700;
  color: #9ca3af;
  text-align: center;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .2s;
}
.wiz-step.active .wiz-label { color: var(--green-deep); }
.wiz-step.done .wiz-label   { color: var(--green); }

/* ═══════════════════════════════════════════════════════════
   WIZARD WRAPPER
═══════════════════════════════════════════════════════════ */
.wiz-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 72px;
}

/* ── Step panels ── */
.wiz-panel { display: none; }
.wiz-panel.active { display: block; }

/* ═══════════════════════════════════════════════════════════
   SECTION CARDS
═══════════════════════════════════════════════════════════ */
.wiz-card {
  background: var(--white);
  border: 2px solid #d4e8dc;
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.wiz-card:hover { box-shadow: var(--shadow-md); }

.wiz-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-deep);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.wiz-card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }

.form-label {
  font-size: .75rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .87rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25,127,76,.1);
}
.form-input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.08);
}
.form-input::placeholder { color: #b0bec5; }

/* Validation message */
.val-msg {
  font-size: .72rem;
  color: var(--red);
  margin-top: 2px;
  display: none;
  font-weight: 600;
}
.val-msg.show { display: block; }

/* Password wrapper */
.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-right: 46px; width: 100%; }
.pw-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: #9ca3af;
  transition: color .15s;
}
.pw-eye:hover { color: var(--green); }

/* ═══════════════════════════════════════════════════════════
   RADIO / QUESTION BLOCKS
═══════════════════════════════════════════════════════════ */
.q-block { margin-bottom: 24px; }
.q-block:last-child { margin-bottom: 0; }

.q-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.radio-group { display: flex; flex-direction: column; gap: 9px; }

.radio-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}
.radio-opt:hover {
  background: var(--green-light);
  border-color: #c0ddc9;
}
.radio-opt:has(input:checked) {
  background: #eaf5ee;
  border-color: var(--green);
}
.radio-opt input[type=radio] {
  accent-color: var(--green-deep);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Two-column question grid */
.two-col-q {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* ═══════════════════════════════════════════════════════════
   GRADE INPUTS
═══════════════════════════════════════════════════════════ */
.grade-inputs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.grade-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}
.grade-input-group input {
  width: 78px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .83rem;
  color: var(--text);
  outline: none;
  transition: border-color .18s;
}
.grade-input-group input:focus { border-color: var(--green); }

/* ═══════════════════════════════════════════════════════════
   PROGRAM SECTION
═══════════════════════════════════════════════════════════ */
.prog-cat {
  font-size: .72rem;
  font-weight: 800;
  color: var(--green-deep);
  margin: 18px 0 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.prog-cat:first-child { margin-top: 0; }

.prog-sub {
  font-size: .73rem;
  font-weight: 700;
  color: var(--muted);
  margin: 8px 0 4px 10px;
  font-style: italic;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--text);
  padding: 5px 8px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.radio-item:hover { background: var(--green-light); border-color: #c0ddc9; }
.radio-item:has(input:checked) { background: #eaf5ee; border-color: var(--green); }
.radio-item input {
  accent-color: var(--green-deep);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.radio-item-ind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--text);
  padding: 5px 8px 5px 22px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.radio-item-ind:hover { background: var(--green-light); border-color: #c0ddc9; }
.radio-item-ind:has(input:checked) { background: #eaf5ee; border-color: var(--green); }
.radio-item-ind input {
  accent-color: var(--green-deep);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   PSGC SELECTS
═══════════════════════════════════════════════════════════ */
.psgc-group { display: flex; flex-direction: column; gap: 16px; }

.psgc-row { display: flex; flex-direction: column; gap: 5px; }

.psgc-label {
  font-size: .72rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.psgc-select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .87rem;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.psgc-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25,127,76,.1);
}
.psgc-select:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }

/* Conditional enrolled field */
.cond-field { margin-top: 12px; display: none; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION BUTTONS
═══════════════════════════════════════════════════════════ */
.wiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.btn-next {
  background: var(--green-deep);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 44px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,122,77,.3);
  transition: background .18s, transform .15s, box-shadow .15s;
  letter-spacing: .01em;
}
.btn-next:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,122,77,.35);
}

.btn-back {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 40px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .15s;
}
.btn-back:hover {
  border-color: var(--green);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

.btn-submit {
  background: var(--gold);
  color: #1a1200;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 52px;
  font-size: .95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,186,0,.35);
  transition: background .18s, transform .15s, box-shadow .15s;
  letter-spacing: .01em;
}
.btn-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,186,0,.4);
}

/* ═══════════════════════════════════════════════════════════
   TOAST (error messages)
═══════════════════════════════════════════════════════════ */
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FEF2F2;
  color: #991B1B;
  border: 1.5px solid #FECACA;
  padding: 13px 28px;
  border-radius: 10px;
  z-index: 9999;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  text-align: center;
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   LEGACY CLASSES (kept for backward compat if referenced)
═══════════════════════════════════════════════════════════ */
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 600px; }
.field-wrap { background: var(--white); border: 1.5px solid var(--green); border-radius: 10px; padding: 10px 16px; box-shadow: var(--shadow-sm); }
.field-wrap input { width: 100%; border: none; outline: none; font-family: inherit; font-size: .85rem; color: var(--text); background: transparent; }
.field-wrap input::placeholder { color: #94a3b8; }
.sec-title { font-size: 2.6rem; font-weight: 800; color: var(--amber); margin-bottom: 20px; }
.card { background: var(--white); border: 2px solid var(--green); border-radius: 20px; padding: 28px 36px; margin-bottom: 20px; }
.card-label { font-size: 1.2rem; font-weight: 800; color: rgba(83,76,7,.8); text-align: center; margin-bottom: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.q { margin-bottom: 18px; }
.q-title-legacy { font-size: .92rem; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.r { display: flex; align-items: center; gap: 8px; font-size: .83rem; font-weight: 500; color: #000; cursor: pointer; }
.r input { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.iline { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .83rem; font-weight: 500; }
.iinput { padding: 6px 10px; border: 2px solid #94a3b8; border-radius: 6px; font-family: inherit; font-size: .83rem; width: 110px; outline: none; }
.iinput:focus { border-color: var(--green); }
.indent { padding-left: 18px; }
.sel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sel-grp { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.sel-label { font-size: .7rem; font-weight: 700; color: #3a4b43; }
.sel { padding: 8px 12px; border: 2px solid var(--green); border-radius: 8px; font-family: inherit; font-size: .82rem; color: var(--text); background: var(--white); outline: none; cursor: pointer; }
.submit { display: flex; justify-content: center; margin-top: 40px; }
.btn-signup { background: var(--green-deep); color: var(--white); border: none; border-radius: var(--radius-pill); padding: 18px 0; width: 680px; font-size: 1.1rem; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); transition: background .18s, transform .15s; }
.btn-signup:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { padding: 40px 28px 90px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-card { width: 100%; min-width: 0; }
  .wiz-wrap { padding: 0 20px 60px; }
  .two-col-q { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .wiz-card { padding: 24px 20px; }
  .wiz-stepper { padding: 24px 12px 20px; }
  .wiz-step { max-width: 100px; }
  .wiz-label { font-size: .65rem; }
  .fields-grid, .two-col, .sel-row { grid-template-columns: 1fr; }
  .sections { padding: 32px 24px 48px; }
  .btn-signup { width: 100%; }
}