/* Redesigned registration (frontend/site/register/*). Sits on top of the old register.css,
   which still styles the card, fields, stepper and buttons. */

/* The old site navbar is not part of this flow: the header below has Back and Help. */
.rp-page ~ nav, body > nav.navbar, body > header.navbar { display: none !important; }

.rs-head { max-width: 920px; margin: 0 auto; padding: 18px 16px 8px; color: #fff; }
.rs-head__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rs-head__back, .rs-head__help { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; }
.rs-head__back { color: #fff; background: rgba(255,255,255,.12); }
.rs-head__back:hover { color: #fff; background: rgba(255,255,255,.2); }
.rs-head__help { color: #fff; background: #25d366; }
.rs-head__help:hover { color: #fff; background: #1fb457; }
.rs-head__title { font-size: 28px; font-weight: 700; margin: 18px 0 12px; line-height: 1.2; color: #fff; }
.rs-head__title .f-sinhala { font-size: 16px; font-weight: 500; opacity: .85; margin-top: 4px; }
.rs-joining { background: #eaf1ec; color: #1a1c1a; border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.rs-joining--kids { background: #fbe7e5; }
.rs-joining__lbl { font-size: 13px; color: #4e574f; }
.rs-joining__name { font-size: 17px; font-weight: 700; }
.rs-joining__meta { font-size: 14px; color: #4e574f; }
.rs-joining__change { font-weight: 600; font-size: 15px; color: #1b4d2e; min-height: 44px; display: inline-flex; flex-direction: column; justify-content: center; text-align: right; text-decoration: underline; }
.rs-joining__change .f-sinhala { font-size: 12px; text-decoration: none; }

.rs-stepper--3 .rp-stepper__step { flex: 1 1 0; }

.rs-hint { background: #fff8e8; border: 1px solid #f0dca8; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: #5c4a20; }

.rs-choice__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.rs-opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1.5px solid #cfcabd; border-radius: 10px; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; line-height: 1.3; flex-wrap: wrap; }
.rs-opt input { width: 18px; height: 18px; accent-color: #1b4d2e; flex: 0 0 auto; }
.rs-opt .f-sinhala { font-weight: 500; font-size: 13px; color: #4e574f; width: 100%; padding-left: 28px; }
.rs-opt:has(input:checked) { border-color: #1b4d2e; background: #eaf1ec; }
.rs-other { background: #f7f6f3; border-radius: 12px; padding: 12px 12px 0; margin-bottom: 16px; }
@media (max-width: 520px) { .rs-choice__opts { grid-template-columns: minmax(0, 1fr); } }

.rs-review { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.rs-review__box { border: 1px solid #ebe8e0; border-radius: 12px; padding: 12px 16px; background: #fff; }
.rs-review__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.rs-review__edit { background: none; border: 0; color: #1b4d2e; font-weight: 600; text-decoration: underline; min-height: 40px; padding: 0 4px; cursor: pointer; }
.rs-review__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; font-size: 14px; padding: 4px 0; }
.rs-review__row span { color: #6b7268; }
.rs-review__row strong { font-weight: 600; word-break: break-word; }

.rs-confirm { background: #fff8e8; border: 1px solid #f0dca8; border-radius: 14px; padding: 16px; }
.rs-confirm__title { font-weight: 700; font-size: 16px; color: #6b4a00; }
.rs-confirm__title .f-sinhala { font-weight: 500; font-size: 14px; }
.rs-confirm__sub { font-size: 13px; color: #5c4a20; margin: 4px 0 6px; }
.rs-tick { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid #f0dca8; font-size: 15px; line-height: 1.45; cursor: pointer; margin: 0; }
.rs-tick input { width: 22px; height: 22px; margin-top: 2px; accent-color: #1b4d2e; }
.rs-tick .f-sinhala { font-size: 13px; color: #5c4a20; margin-top: 2px; }
.rs-tick a { font-size: 14px; font-weight: 600; color: #1b4d2e; text-decoration: underline; }
.rs-confirm__err { margin-top: 8px; font-weight: 600; }

.rs-submit { min-width: min(100%, 320px); }
.rs-submit--waiting { opacity: .55; }
.rs-after { text-align: center; font-size: 14px; color: #4e574f; margin: 12px 0 0; }
