:root {
  --thermomix-green: #4a9b3e;
  --thermomix-green-dark: #3d8233;
  --thermomix-green-light: #e8f3e5;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --border-focus: #4a9b3e;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --error: #d70d0d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.5;
}

.top-banner {
  background: var(--thermomix-green);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
}

.top-nav {
  padding: 20px 40px;
  border-bottom: 1px solid #f0f0f0;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--thermomix-green);
  letter-spacing: -0.5px;
}

.layout {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 40px;
}

.steps {
  position: sticky;
  top: 40px;
  align-self: start;
}

.brand-large {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--thermomix-green);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 38px;
  bottom: -4px;
  width: 1px;
  background: var(--border);
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #fff;
  flex-shrink: 0;
}

.step.active {
  color: var(--text-dark);
  font-weight: 500;
}

.step.active .step-num {
  border-color: #3b82f6;
  color: #3b82f6;
}

h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 32px;
}

.group {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

.group legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lock-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--thermomix-green-dark);
  background: var(--thermomix-green-light);
  padding: 2px 8px;
  border-radius: 999px;
}

.field-stack {
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #101828;
}

.field-stack input {
  border: none;
  border-bottom: 1px solid #101828;
}


.field-stack input:last-child {
  border: none;
}


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

.field-row input {
  border-radius: 6px;
}

.field-row-3 {
  display: flex;
  gap: 0;
}

/* ----------------------------------------------------------------
   Border system for the stacked input boxes inside .form-section
   - 2px on the OUTER edges of each stack (external frame)
   - 1px between adjacent inputs (internal divider)
   --------------------------------------------------------------- */

/* Base 1px frame on every form input, with 2px on the outer sides. */
.form-section input,
.form-section select,
.phone-input-container .phone-prefix {
  border: 1px solid #101828;
  border-left-width: 2px;
  border-right-width: 2px;
}

/* Top + bottom of each stack (2px external) */
.form-section .top-input    { border-top-width: 2px; }
.form-section .bottom-input { border-bottom-width: 2px; }

/* Inputs marked .no-top-border share the bottom edge of the input above
   so the internal divider stays at 1px. */
.form-section .no-top-border { border-top: 0; }

/* Phone row: prefix (left) + input (right) share a 1px internal border */
.phone-input-container .phone-prefix {
  border-top: 0;
  border-right-width: 1px;
}
.phone-input-container .phone-input-with-prefix {
  border-left: 0;
}

/* City / State / ZIP row sits inside the stack — top is shared with street,
   bottom is shared with college (both 1px internal). */
.field-row-3 input,
.field-row-3 select {
  border: 1px solid #101828;
  border-top: 0;
}
.field-row-3 #city-input {
  border-left-width: 2px;
  border-right-width: 1px;
}
.field-row-3 #state-input {
  border-left: 0;
  border-right-width: 1px;
}
.field-row-3 #zip-input {
  border-left: 0;
  border-right-width: 2px;
}

/* Standalone date input — 2px all around */
#dob {
  border: 2px solid #101828;
  border-radius: 6px;
}

/* Bank "name" row: each input is its own 2px box */
.field-row input {
  border: 2px solid #101828;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.group > input[type="date"] {
  border-radius: 6px;
}

input:focus {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 3px rgba(74, 155, 62, 0.15);
  position: relative;
  z-index: 1;
}

/* Keep the show/hide toggle above the password input even when the input
   is focused (focused inputs get z-index:1 from the rule above). */
#toggle-password-visibility {
  z-index: 2;
}

input::placeholder {
  color: #9ca3af;
}

input[aria-invalid="true"] {
  border-color: var(--error) !important;
}

.tinErrorLabel {
  color: red;
  padding: 4px 10px;
  border-radius: 3px;
}

.enrollment-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10rem;
}

.help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
}

.agreements {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
}

.check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0 0;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  accent-color: var(--thermomix-green);
  opacity: 1;
  visibility: visible;
  display: inline-block;
}


.check a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--bg-soft);
}

.btn-primary {
  background: var(--thermomix-green);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--thermomix-green-dark);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fineprint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.fineprint a {
  color: var(--thermomix-green-dark);
  text-decoration: underline;
}

/* Defined locally (line 94) */
  .top-input { box-sizing: border-box !important; }

  /* Not defined locally — must live in the global stylesheet.
     Reasonable equivalents to fuse the two inputs visually: */
  .top-input         { border-radius: 4px 4px 0 0; }
  .bottom-input      { border-radius: 0 0 4px 4px; }
  .no-top-border     { border-top: 0; }
  .margin-error-label{ margin: 4px 0 10px; }
  .hidden            { display: none; }

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px auto;
    padding: 0 15px;
  }
  .steps {
    position: static;
  }
  .brand-large {
    display: none;
  }

  .field-row {
    display: flex;
    flex-direction: column;
  }

  .field-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .field-row-3 #city-input {
    grid-column: 1 / -1;
    border-left: 2px solid #101828;
    border-right-width: 2px;
  }
  .field-row-3 #state-input {
    border-left: 2px solid #101828;
    border-right-width: 1px;
  }
  .field-row-3 #zip-input {
    border-left: 0;
    border-right-width: 2px;
  }
}

.btn-spinner{
  display:inline-block;
  width:14px;
  height:14px;
  border:2px solid rgba(255,255,255,0.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:btn-spin .7s linear infinite;
  vertical-align:-2px;
  margin-right:6px
}
@keyframes btn-spin{to{transform:rotate(360deg)}};
#enrollment-loading{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    width:100%;
  }

  .spinner{
    width:40px;
    height:40px;
    border:3px solid rgba(74,155,62,0.2);
    border-top-color:var(--thermomix-green);
    border-radius:50%;
    animation:btn-spin .8s linear infinite;
  }
