.cadastro-page-main {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
}

.cadastro-section {
  padding: 10px 0;
}

.cadastro-shell {
  max-width: 920px;
  margin: 0 auto;
}

.cadastro-shell-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.cadastro-topbar {
  display: grid;
  justify-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.cadastro-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}

.cadastro-topbar h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
}

.cadastro-subtitle {
  max-width: 100%;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.cadastro-voltar {
  flex-shrink: 0;
  color: var(--sky);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.cadastro-card {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

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

.cadastro-block {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
}

.cadastro-block:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}

.cadastro-block-header h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 22px;
}

.cadastro-block-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cadastro-planos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 100%;
  margin: 0;
}

.cadastro-plano-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
  justify-items: center;
}

.cadastro-plano-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cadastro-plano-card.is-selected {
  border-color: var(--sky);
  background: #eff6ff;
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.16);
  transform: translateY(-2px);
}

.cadastro-plano-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cadastro-plano-badge--featured {
  background: #dcfce7;
  color: #15803d;
}

.cadastro-plano-card strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}

.cadastro-plano-card strong span {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.cadastro-plano-card small {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.cadastro-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.cadastro-field input[type="text"],
.cadastro-field input[type="email"],
.cadastro-field input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
  font-family: "Inter", sans-serif;
}

.cadastro-field input:focus {
  border-color: var(--sky);
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.cadastro-doc-tipo {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cadastro-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.cadastro-acceptance {
  align-items: flex-start;
  line-height: 1.6;
}

.cadastro-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cadastro-legal-note {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.cadastro-legal-note a {
  color: var(--sky);
  font-weight: 700;
}

.cadastro-actions {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.cadastro-error-modal-box {
  max-width: 520px;
  position: relative;
}

.cadastro-error-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.cadastro-error-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cadastro-error-actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 320px) {
  .cadastro-section {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .cadastro-shell {
    max-width: 100%;
  }

  .cadastro-shell-actions {
    justify-content: center;
    margin-bottom: 10px;
  }

  .cadastro-topbar h1 {
    font-size: 28px;
  }

  .cadastro-subtitle {
    font-size: 14px;
  }

  .cadastro-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .cadastro-planos,
  .cadastro-grid-2 {
    grid-template-columns: 1fr;
  }

  .cadastro-plano-card {
    padding: 16px 14px;
  }

  .cadastro-plano-card strong {
    font-size: 26px;
  }
}

@media (min-width: 321px) and (max-width: 577px) {
  .cadastro-section {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .cadastro-shell-actions {
    justify-content: center;
  }

  .cadastro-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .cadastro-planos,
  .cadastro-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 578px) and (max-width: 767px) {
  .cadastro-section {
    padding-top: 28px;
    padding-bottom: 52px;
  }

  .cadastro-shell-actions {
    justify-content: center;
  }

  .cadastro-card {
    padding: 24px 20px;
  }

  .cadastro-planos,
  .cadastro-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .cadastro-shell {
    max-width: 760px;
  }

  .cadastro-card {
    max-width: 100%;
    padding: 28px 24px;
  }

  .cadastro-planos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .cadastro-shell {
    max-width: 900px;
  }

  .cadastro-card {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .cadastro-shell {
    max-width: 960px;
  }

  .cadastro-card {
    max-width: 860px;
  }
}
