/* Onboarding forms · modal styles */

.enrol-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 9, 3, 0.62);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  z-index: 2147483645;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: enrol-fade-in 200ms ease;
}
@keyframes enrol-fade-in { from { opacity: 0; } to { opacity: 1; } }

.enrol-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 12px;
  border-top: 4px solid var(--accent, #4B8E1E);
  box-shadow: 0 30px 80px rgba(20, 9, 3, 0.50);
  padding: 36px 44px 32px;
  animation: enrol-pop 260ms cubic-bezier(.2, .8, .25, 1.05);
}
.signin-modal { max-width: 460px; --accent: #4B8E1E; }
@keyframes enrol-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.enrol-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: 0;
  font-size: 28px;
  font-weight: 300;
  color: #6F6356;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 160ms ease, color 160ms ease;
  line-height: 1;
}
.enrol-close:hover { background: rgba(20, 9, 3, 0.06); color: #1A1208; }

.enrol-head { margin-bottom: 22px; }
.enrol-eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.enrol-title {
  margin: 8px 0 8px;
  font-family: "Raleway", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1A1208;
  line-height: 1.15;
}
.enrol-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4A4035;
  max-width: 56ch;
}

.enrol-form { display: flex; flex-direction: column; gap: 22px; }
.enrol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.enrol-field-full { grid-column: 1 / -1; }
.enrol-field { display: flex; flex-direction: column; gap: 6px; }
.enrol-label {
  font-family: "Raleway", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4A4035;
}
.enrol-label em {
  font-style: normal;
  color: var(--accent);
  margin-left: 4px;
}
.enrol-field input,
.enrol-field select,
.enrol-field textarea {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(26, 18, 8, 0.18);
  background: #FFFFFF;
  border-radius: 6px;
  padding: 11px 14px;
  font-family: "Outfit", "Raleway", sans-serif;
  font-size: 14px;
  color: #1A1208;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.enrol-field textarea { resize: vertical; min-height: 90px; }
.enrol-field input:focus,
.enrol-field select:focus,
.enrol-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.enrol-field.has-error input,
.enrol-field.has-error select,
.enrol-field.has-error textarea {
  border-color: #C75441;
  box-shadow: 0 0 0 3px rgba(199, 84, 65, 0.18);
}
.enrol-err {
  font-family: "Raleway", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #C75441;
  letter-spacing: 0.04em;
}

.enrol-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 6px;
  border-top: 1px solid rgba(26, 18, 8, 0.08);
  padding-top: 18px;
  flex-wrap: wrap;
}
.enrol-fineprint {
  margin: 0;
  font-size: 11.5px;
  color: #6F6356;
  line-height: 1.55;
  max-width: 44ch;
}
.enrol-fineprint a { color: var(--accent); font-weight: 700; }
.enrol-fineprint strong { color: #1A1208; font-weight: 800; }
.enrol-submit {
  appearance: none;
  padding: 12px 24px;
  background: var(--accent);
  border: 0;
  color: #FFFFFF;
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(75, 142, 30, 0.25);
  transition: transform 160ms ease, filter 160ms ease;
}
.enrol-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.enrol-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* Confirmation state */
.enrol-done {
  text-align: center;
  padding: 18px 8px 4px;
}
.enrol-done-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  color: #4B8E1E;
}
.enrol-done-icon svg { width: 100%; height: 100%; }
.enrol-done h3 {
  margin: 0 0 12px;
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1A1208;
  letter-spacing: -0.01em;
}
.enrol-done p {
  margin: 0 auto 20px;
  font-size: 14px;
  color: #4A4035;
  line-height: 1.6;
  max-width: 42ch;
}
.enrol-done p strong { color: #1A1208; font-weight: 800; }

/* Topbar sign-in link */
.topbar-signin {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: "Raleway", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 140ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-signin:hover { opacity: 1; }
.topbar-signin .lock {
  display: inline-block;
  width: 12px; height: 12px;
}

@media (max-width: 720px) {
  .enrol-modal { padding: 24px 22px 20px; }
  .enrol-grid { grid-template-columns: 1fr; }
  .enrol-footer { flex-direction: column; align-items: stretch; }
  .enrol-submit { width: 100%; }
}


/* Checkbox rows · stacked above text */
.enrol-field-checkbox { padding: 6px 0; }
.enrol-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.enrol-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #4B8E1E);
  cursor: pointer;
}
.enrol-checkbox-lbl {
  font-family: "Outfit", "Raleway", sans-serif;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4A4035;
  letter-spacing: -0.005em;
}
.enrol-checkbox-lbl em {
  font-style: normal;
  color: var(--accent, #4B8E1E);
  margin-left: 2px;
}


/* Checkbox rows · compact + smaller boxes */
.enrol-field-checkbox {
  padding: 0 !important;
  margin-top: 4px !important;
}
.enrol-grid > .enrol-field-checkbox + .enrol-field-checkbox {
  margin-top: 2px !important;
}
.enrol-checkbox-row {
  gap: 8px !important;
  align-items: center !important;
}
.enrol-checkbox-row input[type="checkbox"] {
  width: 13px !important;
  height: 13px !important;
  margin-top: 0 !important;
}
.enrol-checkbox-lbl {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
}


/* Checkbox rows · even tighter and smaller boxes */
.enrol-field-checkbox { margin-top: 0 !important; padding: 1px 0 !important; }
.enrol-grid > .enrol-field-checkbox + .enrol-field-checkbox { margin-top: 0 !important; }
.enrol-checkbox-row { gap: 8px !important; }
.enrol-checkbox-row input[type="checkbox"] {
  width: 11px !important;
  height: 11px !important;
}
.enrol-checkbox-lbl {
  font-size: 11px !important;
  line-height: 1.25 !important;
}
.enrol-grid {
  row-gap: 12px !important;
}


/* Custom checkbox · hide native, show 14px box with green tick */
.enrol-checkbox-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.enrol-checkbox-row input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.enrol-checkbox-box {
  width: 14px;
  height: 14px;
  border: 1.4px solid rgba(26, 18, 8, 0.30);
  border-radius: 3px;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 140ms ease, background 140ms ease;
}
.enrol-checkbox-box svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: scale(0.55);
  transition: opacity 140ms ease, transform 200ms cubic-bezier(.2,.8,.25,1.4);
}
.enrol-checkbox-row input[type="checkbox"]:checked + .enrol-checkbox-box {
  border-color: #4B8E1E;
}
.enrol-checkbox-row input[type="checkbox"]:checked + .enrol-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}
.enrol-checkbox-row input[type="checkbox"]:focus + .enrol-checkbox-box {
  box-shadow: 0 0 0 3px rgba(75, 142, 30, 0.18);
}

/* Disclaimer (footer fineprint) · red warning band */
.enrol-fineprint-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(217, 119, 87, 0.06);
  border-left: 3px solid #D97757;
  padding: 10px 14px;
  border-radius: 4px;
  max-width: 56ch;
  margin: 0;
}
.enrol-fineprint-icon {
  color: #D97757;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}
.enrol-fineprint-warn p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #4A4035;
}
.enrol-fineprint-warn p strong {
  color: #1A1208;
  font-weight: 800;
}
