/* v4.22 Registo — mesmo visual da página de vendas (fundo escuro, verde Kontrolo) */
:root {
  --rg-bg: #07111f; --rg-bg2: #0d1726; --rg-card: #101d2e; --rg-card2: #132338;
  --rg-text: #f8fafc; --rg-muted: #9fb0c3; --rg-line: rgba(255,255,255,.10);
  --rg-primary: #28c76f; --rg-primary2: #18a95c; --rg-radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rg-body {
  margin: 0; min-height: 100vh; color: var(--rg-text);
  background: radial-gradient(900px 500px at 85% -10%, rgba(40,199,111,.14), transparent 60%), var(--rg-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.rg-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.rg-top { position: sticky; top: 0; z-index: 20; padding: 14px 0; padding-top: max(14px, env(safe-area-inset-top)); background: rgba(7,17,31,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rg-line); }
.rg-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rg-body [hidden] { display: none !important; }
.rg-logo { display: inline-flex; padding: 6px 10px; border-radius: 12px; background: #fff; }
.rg-logo img { height: 26px; width: auto; display: block; }
.rg-top-login { font-size: 14px; color: var(--rg-muted); }
.rg-top-login a { color: #fff; font-weight: 800; text-decoration: none; margin-left: 4px; }

.rg-main { padding: 26px 0 60px; }

.rg-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; }
.rg-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--rg-line); border-radius: 14px; background: rgba(255,255,255,.02); color: var(--rg-muted); font-size: 13.5px; font-weight: 700; min-width: 0; }
.rg-steps b { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; }
.rg-steps li.is-current { border-color: rgba(40,199,111,.55); background: rgba(40,199,111,.10); color: #fff; }
.rg-steps li.is-current b { background: var(--rg-primary); color: #04120a; }

.rg-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }

/* Oferta */
.rg-offer { position: sticky; top: 86px; padding: 26px; border-radius: var(--rg-radius); background: linear-gradient(180deg, var(--rg-card2), var(--rg-card)); border: 1px solid rgba(40,199,111,.35); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.rg-kicker { margin: 0 0 10px; color: #5ce49a; font-size: 11.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rg-offer-title { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 800; }
.rg-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; }
.rg-price strong { font-size: 46px; line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.rg-price span { color: var(--rg-muted); font-size: 16px; font-weight: 700; }
.rg-perday { margin: 6px 0 0; color: var(--rg-muted); font-size: 14px; }
.rg-founder { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(40,199,111,.10); border: 1px solid rgba(40,199,111,.25); font-size: 13.5px; line-height: 1.5; color: #d9f7e6; }
.rg-founder b { display: block; margin-top: 4px; color: #5ce49a; }
.rg-included { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.rg-included li { position: relative; padding-left: 24px; font-size: 14px; color: #dbe5ef; }
.rg-included li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 999px; background: var(--rg-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.4L12 5.4' fill='none' stroke='%2304120a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.rg-pay { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rg-line); }
.rg-pay-chip { display: inline-block; margin-right: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 900; }
.rg-mpesa { background: #e60000; color: #fff; }
.rg-emola { background: #f7a600; color: #1d1300; }
.rg-pay p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: #dbe5ef; }
.rg-note { margin: 14px 0 0; font-size: 12.5px; color: var(--rg-muted); line-height: 1.5; }

/* Formulário */
.rg-card { padding: 26px; border-radius: var(--rg-radius); background: #fff; color: #0f1720; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.rg-card h2 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.rg-card-sub { margin: 6px 0 18px; color: #5b6774; font-size: 14px; }
.rg-google { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 1px solid #d9dee3; border-radius: 14px; font-weight: 800; text-decoration: none; color: #0f1720; }
.rg-google span { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: #f1f3f4; color: #4285f4; font-weight: 900; }
.rg-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #8a96a3; font-size: 13px; }
.rg-divider::before, .rg-divider::after { content: ""; flex: 1; height: 1px; background: #e3e7ea; }
.rg-form { display: grid; gap: 14px; }
.rg-hidden-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.rg-form [data-rg-business] { display: grid; gap: 14px; }
.rg-form [data-rg-business][hidden] { display: none; }
.rg-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: #26313c; border: 0; margin: 0; padding: 0; min-width: 0; }
.rg-field legend { padding: 0; margin-bottom: 6px; }
.rg-field input[type=text], .rg-field input[type=tel], .rg-field input[type=email], .rg-field input[type=password] {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #d3d9df; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 500; color: #0f1720; background: #fff;
}
.rg-field input:focus { outline: none; border-color: var(--rg-primary2); box-shadow: 0 0 0 4px rgba(40,199,111,.18); }
.rg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rg-type-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-type { position: relative; }
.rg-type input { position: absolute; opacity: 0; pointer-events: none; }
.rg-type span { display: inline-block; padding: 9px 14px; border: 1px solid #d3d9df; border-radius: 999px; font-size: 14px; font-weight: 700; color: #26313c; cursor: pointer; background: #fff; }
.rg-type input:checked + span { background: #0f1720; border-color: #0f1720; color: #fff; }
.rg-type input:focus-visible + span { box-shadow: 0 0 0 4px rgba(40,199,111,.25); }
.rg-pass { position: relative; display: block; }
.rg-pass input { padding-right: 90px !important; }
.rg-pass button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: #f1f3f5; font: inherit; font-size: 13px; font-weight: 800; color: #26313c; cursor: pointer; }
.rg-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fde8e8; color: #b42318; font-size: 14px; font-weight: 700; }
.rg-submit { min-height: 56px; border: 0; border-radius: 14px; background: linear-gradient(180deg, var(--rg-primary), var(--rg-primary2)); color: #04120a; font: inherit; font-size: 16.5px; font-weight: 900; cursor: pointer; box-shadow: 0 12px 28px rgba(40,199,111,.25); }
.rg-submit:disabled { opacity: .7; cursor: wait; }
.rg-next { margin: -4px 0 0; text-align: center; font-size: 13px; color: #5b6774; }
.rg-next span { font-weight: 800; color: #0f1720; }
.rg-switch { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #edf0f2; text-align: center; font-size: 14px; color: #5b6774; }
.rg-switch button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: #0f8f3d; text-decoration: underline; cursor: pointer; }
.rg-forgot { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: #5b6774; }
.rg-forgot a { font-weight: 800; color: #0f8f3d; }
.rg-legal { margin: 12px 0 0; text-align: center; font-size: 12px; color: #8a96a3; }
.rg-legal a { color: #5b6774; }

/* Mensagens do servidor (partial flash) */
.rg-card .alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.rg-card .alert-success { background: #e3f6ec; color: #0a7a43; }
.rg-card .alert-error, .rg-card .alert-danger { background: #fde8e8; color: #b42318; }
.rg-card .alert-info { background: #e8f0fe; color: #1d4ed8; }
.rg-card .alert ul { margin: 0; padding-left: 18px; }
.rg-card .alert button { border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; }

@media (max-width: 899px) {
  .rg-main { padding: 16px 0 40px; }
  .rg-grid { grid-template-columns: 1fr; gap: 14px; }
  .rg-offer { position: static; padding: 20px; }
  .rg-price strong { font-size: 40px; }
  .rg-steps { gap: 6px; margin-bottom: 14px; }
  .rg-steps li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 10px; font-size: 12px; line-height: 1.25; }
  .rg-card { padding: 20px; }
  .rg-card h2 { font-size: 21px; }
  .rg-note { display: none; }
  .rg-offer-title { font-size: 19px; }
}
@media (max-width: 520px) {
  .rg-shell { width: calc(100% - 24px); }
  .rg-two { grid-template-columns: 1fr; }
  .rg-included { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .rg-included li { font-size: 13px; }
  .rg-top-login { font-size: 13px; }
}
