/* Onboarding (onboarding.php): only what Vas's sheets don't already have. From the onboarding
   demo he approved (22 Oct).

   The page is his login (login.css) without the photo, centred (Vas, 19 Oct): one step at a
   time, 400px wide. Everything else on it is a piece of his from another page, unchanged:
     - fields, password eye and rules, banners, "Check your email"   login.css / style.css
     - the step numbers                                              newsletter-wizard.css (.wizard-steps)
     - plan price, agreement length                                  app.css (Subscription; its Monthly/Yearly switch)
     - the choice rows (plans, card or invoice)                      app.css (.lg-school, the login's school chooser)
   New, and approved in the demo: the summary rows on the last step (.ob-done-list). */

/* Several of the sheets set display on classes this page also hides (.lg-who, .lg-layout...),
   which beats the hidden attribute (the mockup's design.md, "[hidden] vs display"). */
.ob-page [hidden] {
  display: none !important;
}

.lg-step h1:focus {
  outline: none;
}

/* ---------- No photo: the login's form column on its own, centred ---------- */

.ob-layout {
  grid-template-columns: minmax(0, 1fr);
}

.ob-layout .lg-main {
  padding: 56px 24px;
}

/* ---------- Step numbers: the send flow's, numbers only (as it is below 980px) ---------- */

.ob-steps {
  margin: -12px 0 28px;
}

.ob-steps .step-label {
  display: none;
}

.ob-steps .step-connector {
  flex: 1;
  width: auto;
}

.ob-steps[hidden] {
  display: none;
}

/* ---------- Under the main button: Back on the left, Skip on the right ---------- */

.ob-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.ob-foot .lg-back {
  margin-top: 0;
}

.ob-foot--end {
  justify-content: flex-end;
}

.ob-small {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-faint);
}

.ob-small .lg-link {
  font-size: inherit;
}

.ob-center {
  text-align: center;
}

.lg-step .modal-field-row {
  margin: 0;
}

.lg-step .modal-field-row .modal-field {
  margin-bottom: 18px;
}

.lg-step .modal-field select.has-error {
  border-color: var(--danger);
  background-color: #FFF8F8;
}

.lg-step .modal-field-hint {
  margin-top: 8px;
}

.lg-submit:disabled {
  cursor: not-allowed;
}

/* ---------- Choose a plan ---------- */

.ob-interval-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.ob-interval-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.ob-plan {
  align-items: flex-start;
  gap: 14px;
}

.ob-plan input {
  margin-top: 3px;
}

.ob-plan-text {
  flex: 1;
  min-width: 0;
}

.ob-plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.ob-plan-name .status-pill {
  padding: 2px 9px;
  font-family: var(--font-body);
  font-size: 11px;
}

.ob-plan-line {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.ob-plan-price {
  flex-shrink: 0;
  text-align: right;
}

.ob-plan-price .plan-amount {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.ob-plan-price .plan-per {
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Payment: card (Stripe's own page) or invoice ---------- */

.lg-step > .ob-order {
  margin: 0 0 14px;
}

.ob-pay {
  gap: 14px;
}

.ob-pay-text {
  flex: 1;
  min-width: 0;
}

.ob-pay-text strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy);
}

.ob-pay-text small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.ob-pay-icon {
  flex-shrink: 0;
  color: var(--ink-faint);
}

.ob-pay:has(input:checked) .ob-pay-icon {
  color: var(--purple);
}

/* A section inside a step (the invoice's School details, Accounts / Finance contact for invoicing). */
.ob-section-title {
  margin: 4px 0 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.ob-section-title + .modal-field {
  margin-top: 0;
}

* + .ob-section-title {
  margin-top: 10px;
}

.ob-order {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--navy);
}

/* ---------- You're all set ---------- */

.ob-done-icon {
  background: rgba(103, 199, 195, 0.18);
  color: #2C7A76;
}

.ob-done-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ob-done-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ob-done-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.ob-done-item.is-waiting .ob-done-mark {
  background: rgba(253, 181, 21, 0.2);
  color: #8A5A00;
}

.ob-done-item.is-todo .ob-done-mark {
  background: var(--surface);
  border: 2px solid var(--border-strong);
}

.ob-done-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.ob-done-text small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.ob-done-item .lg-link {
  flex-shrink: 0;
  font-size: 13px;
}

.ob-second {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  font-size: 14.5px;
  padding: 12px 24px;
}

@media (max-width: 420px) {
  .lg-step .modal-field-row {
    flex-direction: column;
    gap: 0;
  }

  .ob-plan-price .plan-amount {
    font-size: 18px;
  }
}
