/* CE Records Authorization — brand styling.
   Palette: Cream #F2F0E9, Soft Black #231F20, Dark Blue #183887,
            Med Blue #2D6FE2, Light Blue #5594F9, Tan #CA9551.
   Type: Maison Mono (licensed — drop woff2 files in assets/fonts and the
   @font-face below picks them up; falls back to system mono) for eyebrow/labels,
   Plus Jakarta Sans for everything else. Mobile-first. */

@font-face {
  font-family: 'Maison Mono';
  src: url('../fonts/MaisonMono-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Maison Mono';
  src: url('../fonts/MaisonMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

.ce-ra-root {
  --ce-cream: #F2F0E9;
  --ce-black: #231F20;
  --ce-dark: #183887;
  --ce-med: #2D6FE2;
  --ce-light: #5594F9;
  --ce-tan: #CA9551;
  --ce-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ce-mono: 'Maison Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  font-family: var(--ce-sans);
  font-weight: 400;
  color: var(--ce-black);
  background: var(--ce-cream);
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.ce-ra-root *,
.ce-ra-root *::before,
.ce-ra-root *::after { box-sizing: border-box; }

/* ---------- header ---------- */
.ce-ra-header { padding: 1.25rem 0.25rem 1.5rem; }
.ce-ra-eyebrow {
  font-family: var(--ce-mono);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ce-tan);
  margin: 0 0 0.5rem;
}
.ce-ra-title {
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ce-dark);
  margin: 0 0 0.6rem;
}
.ce-ra-sub { font-weight: 300; font-size: 0.98rem; margin: 0; }

/* ---------- cards / sections ---------- */
.ce-ra-card {
  background: #fff;
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 14px;
  padding: 1.4rem 1.15rem;
  margin-bottom: 1rem;
}
.ce-ra-section-title {
  font-family: var(--ce-mono);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ce-dark);
  border-bottom: 1px solid var(--ce-cream);
  padding-bottom: 0.6rem;
  margin: 0 0 1rem;
}
.ce-ra-term-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ce-dark);
  margin: 1.1rem 0 0.25rem;
}
.ce-ra-req {
  font-family: var(--ce-mono);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ce-tan);
  margin-left: 0.35rem;
}

/* ---------- fields ---------- */
.ce-ra-field { margin-bottom: 1rem; }
.ce-ra-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.ce-ra-field input[type="text"],
.ce-ra-field input[type="email"],
.ce-ra-field input[type="date"],
.ce-ra-field input[type="tel"] {
  width: 100%;
  font-family: var(--ce-sans);
  font-size: 1rem;
  color: var(--ce-black);
  background: #fff;
  border: 1.5px solid rgba(35, 31, 32, 0.18);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  min-height: 48px; /* comfortable touch target */
  transition: border-color 0.15s;
}
.ce-ra-field input:focus {
  outline: none;
  border-color: var(--ce-med);
  box-shadow: 0 0 0 3px rgba(45, 111, 226, 0.15);
}
.ce-ra-field input.ce-ra-invalid { border-color: #c0392b; }
.ce-ra-field input.ce-ra-prefilled { background: #f4f8ff; border-color: var(--ce-light); }
.ce-ra-hint { font-size: 0.78rem; font-weight: 300; color: rgba(35, 31, 32, 0.6); margin: 0.3rem 0 0; }
.ce-ra-center { text-align: center; }

.ce-ra-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 560px) { .ce-ra-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- legal copy ---------- */
.ce-ra-legal { font-size: 0.9rem; font-weight: 300; margin: 0 0 0.75rem; }
.ce-ra-legal-strong { font-size: 0.95rem; font-weight: 500; margin: 0 0 0.25rem; }
.ce-ra-legal-list { font-size: 0.9rem; font-weight: 300; margin: 0 0 0.75rem; padding-left: 1.2rem; }
.ce-ra-legal-list li { margin-bottom: 0.4rem; }
.ce-ra-release-to {
  background: var(--ce-cream);
  border-left: 3px solid var(--ce-tan);
  border-radius: 0 10px 10px 0;
  padding: 0.8rem 1rem;
  margin-top: 0.5rem;
}

/* ---------- checkboxes / radios ---------- */
.ce-ra-checks { border: 0; padding: 0; margin: 0; }
.ce-ra-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  padding: 0.55rem 0.25rem;
  cursor: pointer;
}
.ce-ra-check input[type="checkbox"],
.ce-ra-check input[type="radio"] {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  accent-color: var(--ce-med);
  cursor: pointer;
}
.ce-ra-indent { margin-left: 2rem; }

/* sensitive info rows */
.ce-ra-sens-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ce-cream);
}
.ce-ra-sens-row:last-child { border-bottom: 0; }
.ce-ra-sens-label { font-size: 0.9rem; flex: 1 1 14rem; }
.ce-ra-sens-opts { display: flex; gap: 1.25rem; }
.ce-ra-sens-opts label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.ce-ra-sens-opts input { width: 1.25rem; height: 1.25rem; accent-color: var(--ce-med); }

/* ---------- E-SIGN + registry ---------- */
.ce-ra-esign span { font-size: 0.88rem; font-weight: 300; }

.ce-ra-registry { border: 1.5px solid var(--ce-light); }
.ce-ra-optional-badge {
  display: inline-block;
  font-family: var(--ce-mono);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ce-dark);
  background: rgba(85, 148, 249, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin: 0 0 0.75rem;
}
.ce-ra-registry-optin {
  background: var(--ce-cream);
  border-radius: 10px;
  padding: 0.8rem;
  margin-top: 0.4rem;
}
.ce-ra-registry-optin span { font-weight: 500; }
.ce-ra-microcopy { font-size: 0.8rem; font-weight: 300; color: rgba(35, 31, 32, 0.65); margin: 0.6rem 0 0; }

/* ---------- errors / actions ---------- */
.ce-ra-errors {
  background: #fdf0ee;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 10px;
  color: #8e2b20;
  font-size: 0.88rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.ce-ra-actions { padding: 0.5rem 0.25rem; }
.ce-ra-submit {
  display: block;
  width: 100%;
  font-family: var(--ce-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  background: var(--ce-dark);
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  min-height: 54px;
  cursor: pointer;
  transition: background 0.15s;
}
.ce-ra-submit:hover { background: var(--ce-med); }
.ce-ra-submit:disabled { background: rgba(35, 31, 32, 0.35); cursor: wait; }

/* ---------- signing + done ---------- */
.ce-ra-signing-note { font-size: 0.9rem; font-weight: 300; text-align: center; margin: 0.5rem 0 0.75rem; }
.ce-ra-signing-frame {
  width: 100%;
  height: min(78vh, 900px);
  border: 1px solid rgba(35, 31, 32, 0.12);
  border-radius: 14px;
  background: #fff;
}
.ce-ra-done { text-align: center; padding: 3rem 1rem; }
.ce-ra-done-next {
  max-width: 26rem;
  margin: 1.4rem auto 0.9rem;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: 14px;
  padding: 0.5rem 1.1rem;
}
.ce-ra-done-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.92rem;
  font-weight: 300;
  padding: 0.7rem 0;
}
.ce-ra-done-item + .ce-ra-done-item { border-top: 1px solid var(--ce-cream); }
.ce-ra-done-ico { flex: 0 0 auto; color: var(--ce-med); font-size: 1.05rem; line-height: 1.4; }
.ce-ra-done-tel { color: var(--ce-dark); font-weight: 500; white-space: nowrap; }
.ce-ra-done-mark {
  width: 3.4rem;
  height: 3.4rem;
  line-height: 3.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ce-dark);
  color: #fff;
  font-size: 1.6rem;
}

/* ---------- multi-step progress ---------- */
.ce-ra-progress { padding: 0 0.25rem 1rem; }
.ce-ra-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}
.ce-ra-progress-step {
  font-family: var(--ce-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ce-tan);
}
.ce-ra-progress-label { font-size: 0.86rem; font-weight: 500; color: var(--ce-dark); }
.ce-ra-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(35, 31, 32, 0.1);
  overflow: hidden;
}
.ce-ra-progress-fill {
  height: 100%;
  width: 17%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ce-med), var(--ce-light));
  transition: width 0.35s ease;
}

/* step reveal */
.ce-ra-card:not([hidden]) { animation: ce-ra-in 0.28s ease; }
@keyframes ce-ra-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ce-ra-card:not([hidden]) { animation: none; }
  .ce-ra-progress-fill { transition: none; }
}

/* step nav */
.ce-ra-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--ce-cream) 75%, rgba(242, 240, 233, 0));
  padding-top: 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 0.75rem;
  align-items: center;
}
.ce-ra-actions .ce-ra-trust { grid-column: 1 / -1; margin: 0 0 0.6rem; }
.ce-ra-back {
  font-family: var(--ce-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ce-dark);
  background: transparent;
  border: 1.5px solid rgba(24, 56, 135, 0.35);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  min-height: 54px;
  cursor: pointer;
}
.ce-ra-back:hover { border-color: var(--ce-dark); }
.ce-ra-back[hidden] { display: none; }
.ce-ra-back[hidden] + .ce-ra-submit { grid-column: 1 / -1; }

/* honeypot */
.ce-ra-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
