/* ==========================================================================
   Shared by the Personal services landing page and the OTP page
   Built for speed: no animation library, no scroll effects, no motion beyond
   simple hover/focus colour changes. Loads tokens.css, base.css, forms.css.
   ========================================================================== */
.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.lbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
}
.lbtn:hover { background: var(--brand-700); color: #fff; box-shadow: 0 12px 24px -12px rgba(11, 77, 140, 0.7); }
.lbtn svg { width: 18px; height: 18px; }
.lbtn--gold { background: var(--accent); }
.lbtn--gold:hover { background: #7e5a26; }
.lbtn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-100); }
.lbtn--ghost:hover { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand); }
.lbtn--block { width: 100%; }
.lbtn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.lbtn[aria-disabled="true"]:not([aria-busy="true"]) { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; }
.lbtn[aria-busy="true"] .spinner { display: block; animation: spin 0.8s linear infinite; }
.lbtn[aria-busy="true"] .lbtn__icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Smooth Button Lift & Glow Animation (Pixel Bloom) ---------- */
@keyframes ci-btn-smooth-lift {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 24px -10px rgba(11, 77, 140, 0.65);
  }
  50% {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 16px 32px -4px rgba(46, 125, 246, 0.45), 0 0 20px rgba(46, 125, 246, 0.35);
  }
}

.ci-btn--pulse {
  animation: ci-btn-smooth-lift 1.9s ease-in-out infinite !important;
  will-change: transform, box-shadow;
}

.lbtn,
.ps-btn,
.paybtn {
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color var(--t-fast, 0.2s), color var(--t-fast, 0.2s);
}

.paybtn.ci-btn--pulse::before {
  display: none;
}

.ci-btn--pulse[aria-busy="true"],
.ci-btn--pulse[aria-disabled="true"],
.ci-btn--pulse:disabled {
  animation: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .ci-btn--pulse {
    animation: none !important;
    transform: none !important;
  }
}

/* ---------- Top strip + header ---------- */
.strip { background: var(--grad-brand); color: #fff; font-size: var(--fs-sm); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; min-height: 44px; padding-block: 6px; text-align: center; }
.strip a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: #ecca92; font-weight: 700; text-decoration: none; }
.strip a:hover { color: #fff; text-decoration: underline; }
.strip svg { width: 16px; height: 16px; }
.lhead { background: #fff; border-bottom: 1px solid var(--line); }
.lhead .wrap { display: flex; align-items: center; justify-content: center; min-height: 84px; }
.lbrand { display: inline-flex; align-items: center; gap: 10px; padding: 6px; text-decoration: none; }
.lbrand__mark { width: auto; height: 58px; max-height: 64px; object-fit: contain; }
.lbrand__word { width: 168px; height: auto; }

/* ---------- Form parts (landing slip + OTP card) ---------- */
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.steps__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 12px; }
.steps .is-current { color: var(--ink); }
.steps .is-current .steps__n { background: var(--brand); color: #fff; }
.steps .is-done .steps__n { background: var(--green); color: #fff; }
.lform { display: grid; gap: 16px; margin-top: 22px; }
.req { color: var(--danger); }
.lform .consent { margin-top: 0; }
.lform [hidden] { display: none !important; }
html:not(.js) .lform { display: none; }
.noscript-note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--paper); color: var(--ink-2); font-size: var(--fs-sm); }
/* Status messages */
.lstatus { padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); }
.lstatus:focus-visible { box-shadow: var(--focus-ring); }
.lstatus h3 { font-size: var(--fs-base); font-weight: 700; }
.lstatus p { margin-top: 4px; color: var(--ink-2); font-size: var(--fs-sm); }
.lstatus a { font-weight: 600; }
.lstatus--info { border-color: rgba(165, 125, 69, 0.45); background: var(--accent-50); }
.lstatus--error { border-color: rgba(192, 48, 45, 0.4); background: var(--danger-50); }
.lstatus--ok { border-color: rgba(18, 112, 47, 0.35); background: #eef8f1; }

/* ---------- Footer ---------- */
.lfoot { background: var(--night); color: var(--on-night-muted); font-size: var(--fs-sm); }
.lfoot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 3vw, 4rem); padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.lfoot h2 { margin-bottom: 18px; color: #fff; font-size: var(--fs-md); font-weight: 700; }
.lfoot h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--grad-ember); }
.lfoot p { line-height: 1.7; }
.lfoot a { color: var(--on-night); text-decoration: none; }
.lfoot a:hover { color: #ecca92; text-decoration: underline; }
.lfoot__links { display: grid; gap: 4px; }
.lfoot__links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.lfoot__links a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.lfoot__contact { display: grid; gap: 16px; }
.lfoot__contact li { display: flex; gap: 14px; }
.lfoot__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #ecca92; }
.lfoot__icon svg { width: 18px; height: 18px; }
.lfoot__contact strong { display: block; color: #fff; font-weight: 600; }
.lfoot__contact a { display: inline-block; padding: 4px 0; font-weight: 600; }
.lfoot__bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: var(--fs-xs); }

/* ---------- OTP page ---------- */
.otp-page { min-height: 100vh; display: flex; flex-direction: column; background:
    radial-gradient(circle at 1px 1px, rgba(11, 77, 140, 0.08) 1.5px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--paper), #fff); }
.otp-main { flex: 1; padding: clamp(2rem, 1rem + 4vw, 4.5rem) 0; }
.otp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.otp-side h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.otp-side h1 span { color: var(--accent-text); }
.otp-side > p { margin-top: 14px; max-width: 30rem; color: var(--muted); font-size: var(--fs-md); }
.otp-points { display: grid; gap: 12px; margin-top: 24px; }
.otp-points li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.otp-points span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: #eaf6ee; color: var(--green); }
.otp-points svg { width: 18px; height: 18px; }
.otp-card { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 28px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-3); }
.otp-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad-ember); }
.otp-card__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 18px; background: var(--brand-50); color: var(--brand); }
.otp-card__icon svg { width: 30px; height: 30px; }
.otp-card h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.otp-card__to { margin-top: 6px; color: var(--muted); }
.otp-card__to b { color: var(--ink); white-space: nowrap; }
.otp-card__to a { margin-left: 6px; font-size: var(--fs-sm); font-weight: 600; }
.otp-form { display: grid; gap: 18px; margin-top: 24px; }
.otp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.otp-form legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.otp-boxes { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 12px); max-width: 420px; }
.otp-box {
  width: 100%;
  min-width: 0;
  height: clamp(52px, 12vw, 62px);
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 700;
  text-align: center;
  caret-color: var(--brand);
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.otp-box:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(11, 77, 140, 0.14); }
.otp-box.is-filled { border-color: var(--brand-100); background: #fff; }
.otp-boxes[aria-invalid="true"] .otp-box { border-color: var(--danger); background: var(--danger-50); }
.otp-box:disabled { opacity: 0.55; cursor: not-allowed; }
.otp-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: var(--fs-sm); }
.linkbtn { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.otp-form [hidden], .otp-card [hidden] { display: none !important; }
html:not(.js) .otp-form { display: none; }
.otp-done { text-align: center; }
.otp-done .otp-card__icon { margin-inline: auto; background: #eaf6ee; color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .otp-grid { grid-template-columns: minmax(0, 1fr); }
  .lfoot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lfoot__grid > :first-child { grid-column: 1 / -1; }
  .otp-side { order: 2; }
}
@media (max-width: 600px) {
  .lbrand__mark { width: 38px; }
  .lbrand__word { width: 140px; }
  .lfoot__grid { grid-template-columns: minmax(0, 1fr); }
  .steps li + li::before { width: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lbtn[aria-busy="true"] .spinner { animation-duration: 2s; }
}

/* ---------- Helpers ---------- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.img-off { background: radial-gradient(circle at 1px 1px, rgba(165, 125, 69, 0.35) 1.5px, transparent 0) 0 0 / 18px 18px, var(--grad-brand); }
/* Headings and messages that receive focus from script don't need a ring */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
