
:root {
  --primary: #1677ff;
  --primary-dark: #0f5fe0;
  --primary-soft: #eaf2ff;
  --text: #0f172a;
  --text-soft: #5b6b7f;
  --line: rgba(22, 119, 255, 0.12);
  --card: rgba(255,255,255,0.96);
  --shadow: 0 20px 50px rgba(15, 95, 224, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22, 119, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

a { color: inherit; text-decoration: none; }

.cadastro-shell {
  min-height: 100vh;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.cadastro-hero,
.cadastro-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.cadastro-hero {
  padding: 34px;
  position: sticky;
  top: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.cadastro-badge {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cadastro-hero h1,
.cadastro-head h2,
.pagamento-topo h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.cadastro-hero h1 {
  margin: 18px 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.cadastro-hero p,
.cadastro-head p,
.payment-note {
  color: var(--text-soft);
  line-height: 1.7;
}

.plano-resumo-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #1677ff 0%, #0f5fe0 100%);
  color: #fff;
  display: grid;
  gap: 14px;
}

.plano-resumo-card small {
  display: block;
  font-size: 12px;
  opacity: 0.84;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.plano-resumo-card strong {
  font-size: 34px;
  line-height: 1;
}

.plano-resumo-card strong span {
  font-size: 16px;
  font-weight: 600;
  margin-left: 4px;
  opacity: 0.9;
}

.plano-status {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 700;
}

.cadastro-card {
  padding: 34px;
}

.cadastro-head {
  margin-bottom: 22px;
}

.cadastro-head h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 600;
}

.alert-error {
  background: #fff1f2;
  color: #b42318;
  border: 1px solid #fecdd3;
}

.cadastro-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

label span {
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid rgba(15, 95, 224, 0.14);
  background: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus {
  border-color: rgba(22, 119, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.10);
}

.pagamento-box {
  margin-top: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(234,242,255,0.6) 100%);
}

.pagamento-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pagamento-topo h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.valor-pill {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 800;
}

.metodos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.metodo-option {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 95, 224, 0.12);
  background: #fff;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.metodo-option:hover,
.metodo-option.ativo {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.34);
  box-shadow: 0 16px 30px rgba(15, 95, 224, 0.10);
}

.metodo-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.metodo-texto {
  display: block;
  font-weight: 800;
}

.payment-summary {
  margin-top: 18px;
  border-top: 1px solid rgba(15, 95, 224, 0.10);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-row span {
  color: var(--text-soft);
}

.payment-note {
  margin: 16px 0 0;
  font-size: 14px;
}

.submit-btn {
  border: 0;
  border-radius: 18px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #1677ff 0%, #0f5fe0 100%);
  box-shadow: 0 18px 34px rgba(22, 119, 255, 0.22);
  cursor: pointer;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .cadastro-shell {
    grid-template-columns: 1fr;
  }

  .cadastro-hero {
    position: static;
  }
}

@media (max-width: 640px) {
  .cadastro-shell {
    padding: 18px 14px 28px;
    gap: 18px;
  }

  .cadastro-hero,
  .cadastro-card {
    padding: 22px;
    border-radius: 22px;
  }

  .cadastro-hero h1 {
    font-size: 32px;
  }

  .cadastro-head h2 {
    font-size: 26px;
  }

  .form-grid,
  .metodos-grid,
  .pagamento-topo {
    grid-template-columns: 1fr;
    display: grid;
  }

  .submit-btn {
    width: 100%;
  }
}
