/* ============================================================
   register.css — two-step registration page & block (responsive)
   ============================================================ */
.rgp, .rgs, .rg-inline { --rg-coral: #FF7753; --rg-violet: #664CDF; --rg-ink: #0b0f2a; --rg-line: #E5E7F0; --rg-muted: #6B7090; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Page banner + step indicator */
.rgp { background: #F6F7FB; padding-bottom: clamp(48px, 7vw, 100px); font-family: Inter, system-ui, sans-serif; color: var(--rg-ink); }
.rgp__hero { position: relative; color: #fff; padding: calc(8.34vw + 56px) 20px 120px; overflow: hidden;
  background: radial-gradient(520px 360px at 92% 0%, rgba(255,179,0,.5), transparent 65%), radial-gradient(560px 420px at 0% 100%, rgba(242,63,16,.7), transparent 65%), linear-gradient(150deg, #2E1F96, #664CDF 55%, #8A4BCB); }
.rgp__hero-inner { max-width: 1080px; margin: 0 auto; }
.rgp__eyebrow { display: inline-block; font: 700 12.5px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: 9px 14px; border-radius: 999px; margin: 0 0 18px; }
.rgp__title { font: 800 clamp(36px, 5.6vw, 72px)/1.02 Inter, sans-serif; letter-spacing: -.035em; margin: 0 0 14px; }
.rgp__title .hl { color: #FFB300; }
.rgp__intro { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; max-width: 700px; opacity: .92; margin: 0 0 30px; }
.rgp__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rgp__steps li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.12); font: 600 14.5px/1 Inter, sans-serif; color: rgba(255,255,255,.75); transition: background .2s, color .2s; }
.rgp__steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font: 800 13px/1 Inter, sans-serif; }
.rgp__steps li.is-active { background: #fff; color: var(--rg-ink); }
.rgp__steps li.is-active span { background: var(--rg-coral); color: #fff; }
.rgp__steps li.is-done { color: #fff; }
.rgp__steps li.is-done span { background: #2BB673; color: #fff; }
.rgp__body { max-width: 1080px; margin: -80px auto 0; padding: 0 20px; position: relative; }

/* Step card */
.rgs { background: #fff; border-radius: 28px; border: 1px solid var(--rg-line); padding: clamp(22px, 4vw, 48px); font-family: Figtree, Inter, system-ui, sans-serif; color: var(--rg-ink); }
.rgs__pane[hidden] { display: none; }
.rgs__h { font: 800 clamp(24px, 3vw, 34px)/1.15 Inter, sans-serif; letter-spacing: -.02em; margin: 0 0 6px; }
.rgs__sub { color: var(--rg-muted); font-size: 16.5px; margin: 0 0 26px; }
.rgs__choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rgs__choice { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 22px; border: 2px solid var(--rg-line); border-radius: 22px; color: var(--rg-ink); text-decoration: none; background: #fff; transition: border-color .2s, transform .2s cubic-bezier(.2,.8,.2,1), background .2s; }
.rgs__choice:hover, .rgs__choice:focus-visible { border-color: var(--accent, var(--rg-coral)); transform: translateY(-4px); outline: none; }
.rgs__choice.is-selected { border-color: var(--accent, var(--rg-coral)); background: #FFF8F5; }
.rgs__choice--student { --accent: #FF7753; --tint: #FFF0EA; }
.rgs__choice--delegate { --accent: #664CDF; --tint: #F1EEFF; }
.rgs__choice--partner { --accent: #4D826F; --tint: #EAF4F0; }
.rgs__icon { display: block; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); -webkit-mask-size: 30px; mask-size: 30px; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; margin-bottom: 6px; }
.rgs__choice strong { font: 800 24px/1.1 Inter, sans-serif; letter-spacing: -.02em; }
.rgs__choice small { color: var(--rg-muted); font-size: 14.5px; line-height: 1.45; }
.rgs__choice ul { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 7px; }
.rgs__choice li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.4; }
.rgs__choice li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--tint); color: var(--accent); font: 800 11px/17px Inter, sans-serif; text-align: center; }
.rgs__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 14.5px/1 Inter, sans-serif; }
.rgs__as { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; margin-bottom: 22px; border-radius: 16px; background: #F6F7FB; font-size: 15.5px; }
.rgs__as strong { color: var(--rg-coral); }
.rgs__change { font: 700 14px/1 Inter, sans-serif; color: var(--rg-ink); text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--rg-line); background: #fff; }
.rgs__change:hover { border-color: var(--rg-coral); color: var(--rg-coral); }
.rgs__done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rgs--closed { text-align: center; }

/* Form */
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.rg-section { font: 700 12px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--rg-muted); padding-top: 12px; display: flex; align-items: center; gap: 12px; }
.rg-section::after { content: ""; flex: 1; height: 1px; background: var(--rg-line); }
.rg-section:first-child { padding-top: 0; }
.rg-field { display: grid; gap: 6px; font: 600 14px/1.2 Inter, sans-serif; min-width: 0; }
.rg-field[hidden] { display: none; }
.rg-field small { font-weight: 400; color: var(--rg-muted); }
.rg-field--wide { grid-column: 1 / -1; }
.rg-field input, .rg-field select, .rg-field textarea { width: 100%; min-width: 0; border: 2px solid var(--rg-line); border-radius: 14px; background: #F8F9FC; padding: 13px 14px; font: 500 16px Figtree, sans-serif; color: var(--rg-ink); transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.rg-field select { background-image: linear-gradient(45deg, transparent 50%, #8B90AA 50%), linear-gradient(135deg, #8B90AA 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.rg-field input:focus, .rg-field select:focus, .rg-field textarea:focus { outline: none; border-color: var(--rg-coral); background-color: #fff; }
.rg-field textarea { resize: vertical; min-height: 100px; }
.rg-consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font: 500 14.5px/1.45 Figtree, sans-serif; color: #3D4260; cursor: pointer; margin-top: 4px; }
.rg-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rg-coral); }
.rg-consent .rg-error { grid-column: 2; }
.rg-error { display: block; font: 600 12.5px/1.3 Inter, sans-serif; font-style: normal; color: #D2301B; margin: 0; }
.rg-error:empty, .rg-error--type:not(.has-error) { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: #E23722; background: #FFF5F3; }
.rg-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rg-submit { border: 0; border-radius: 999px; padding: 17px 30px; background: var(--rg-coral); color: #fff; font: 700 16px/1 Inter, sans-serif; cursor: pointer; transition: transform .15s, background .15s; }
.rg-submit:hover { background: #F2643E; transform: translateY(-1px); }
.rg-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.rg-msg { margin: 0; font: 600 14px/1.4 Inter, sans-serif; }
.rg-msg.is-error { color: #D2301B; }
.rg-success { text-align: center; padding: 30px 10px; }
.rg-success__icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #E8F7EF; color: #1F8F5A; font: 800 40px/1 Inter, sans-serif; }
.rg-success h2 { font: 800 32px/1.15 Inter, sans-serif; margin: 0 0 10px; }
.rg-success p { font-size: 17px; color: var(--rg-muted); max-width: 480px; margin: 0 auto 24px; }
.rg-again { display: inline-block; text-decoration: none; border: 2px solid var(--rg-line); background: #fff; border-radius: 999px; padding: 12px 22px; font: 700 14.5px Inter, sans-serif; cursor: pointer; color: var(--rg-ink); }
.rg-again:hover { border-color: var(--rg-coral); color: var(--rg-coral); }
.rg-closed { padding: 30px 10px; }
.rg-closed h2 { font: 800 26px/1.2 Inter, sans-serif; margin: 0 0 10px; }

/* Builder block */
.rg-inline { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.rg-inline .rgs__choices { grid-template-columns: 1fr; }
.rg-inline__card .rgs { padding: clamp(18px, 3vw, 32px); }

@media (max-width: 900px) {
  .rgp__hero { padding: 96px 18px 96px; }
  .rgp__body { margin-top: -64px; padding: 0 14px; }
  .rgs__choices { grid-template-columns: 1fr; gap: 12px; }
  .rgs__choice { padding: 20px; }
  .rgs__choice ul { margin-bottom: 4px; }
  .rg-inline { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rgp__steps li { font-size: 13px; padding: 6px 12px 6px 6px; }
  .rgp__steps li span { width: 24px; height: 24px; }
  .rgs { border-radius: 22px; }
  .rg-grid { grid-template-columns: 1fr; }
  .rg-submit { width: 100%; }
}
