:root {
  --primary: #ff6900;
  --secondary: #3a72d3;
  --gray: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
  --danger: #ef4444;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(255,105,0,0.08),
    rgba(58,114,211,0.08)
  );
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  animation: fadeUp .5s ease-out;
}

/* ===== LOGO ===== */
.logo {
  text-align: center;
  margin-bottom: 24px;
}

/* Si usas imagen en vez de texto */
.logo img {
  max-width: 190px;
  width: 100%;
  height: auto;
  display: inline-block;
}

/* ===== HEADERS ===== */
.progress {
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 600;
}

h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 16px;
}

p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.small {
  font-size: 12px;
  color: var(--gray);
}

/* ===== INPUTS ===== */
input,
select {
  width: 100%;
  padding: 13px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  transition: all .2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(58,114,211,.15);
}

input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}

/* ===== BUTTONS ===== */
button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ff8533);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255,105,0,.25);
  opacity: .95;
}

button:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(255,105,0,.2);
}

button.secondary {
  background: #e5e7eb;
  color: #111;
}

button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .4s ease;
}

/* ===== SELECTION CARDS ===== */
.select-card,
.card-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  cursor: pointer;
  background: #fff;
  transition: all .2s ease;
}

.select-card:hover,
.card-option:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 24px rgba(58,114,211,.15);
  transform: translateY(-2px);
}

/* ===== HELPERS ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hidden {
  display: none;
}

.summary {
  margin: 20px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 600;
}

hr {
  margin: 24px 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ===== CARD BRAND ===== */
.card-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.footer-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 20px;
}

/* ===== RADIO DOT (reusable) ===== */
.radio-dot{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: all .2s ease;
}

.radio-dot::after{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
  opacity: 0;
  transform: scale(.85);
  transition: all .15s ease;
}

/* ===== RADIO TILES (Checking / Savings) ===== */
.radio-group{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.radio-tile{
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transition: all .2s ease;
}

.radio-tile input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-label{
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.radio-tile:hover{
  border-color: var(--secondary);
  background: rgba(58,114,211,.04);
  transform: translateY(-1px);
}

.radio-tile input:checked + .radio-dot{
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(58,114,211,.12);
}

.radio-tile input:checked + .radio-dot::after{
  opacity: 1;
  transform: scale(1);
}

.radio-tile:has(input:checked){
  border-color: var(--secondary);
  box-shadow: 0 12px 24px rgba(58,114,211,.12);
}

/* ===== AUTOPAY (radio rows bonitos) ===== */
.radio-stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.radio-row{
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  transition: all .2s ease;
}

.radio-row input[type="radio"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-desc{
  line-height: 1.35;
  font-size: 14px;
  color: #111827;
}

.inline-input{
  width: 120px !important;
  display: inline-block;
  margin: 0 6px !important;
  padding: 10px 12px !important;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.radio-row:hover{
  border-color: var(--secondary);
  background: rgba(58,114,211,.04);
  transform: translateY(-1px);
}

.radio-row:has(input:checked){
  border-color: var(--secondary);
  box-shadow: 0 12px 24px rgba(58,114,211,.12);
}

.radio-row input:checked + .radio-dot{
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(58,114,211,.12);
}

.radio-row input:checked + .radio-dot::after{
  opacity: 1;
  transform: scale(1);
}

/* ===== MSA checkbox (bonito) ===== */
.msa-check{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;

  cursor: pointer;
  user-select: none;
  text-align: left;

  transition: all .2s ease;
}

.msa-check:hover{
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(255,105,0,.12);
  transform: translateY(-1px);
}

.msa-check input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.msa-box{
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: all .2s ease;
  background: #fff;
}

.msa-box::after{
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity .15s ease;
}

.msa-check input:checked + .msa-box{
  background: var(--primary);
  border-color: var(--primary);
}

.msa-check input:checked + .msa-box::after{
  opacity: 1;
}

.msa-text{
  flex: 1;
  line-height: 1.35;
  font-size: 14px;
  color: #111827;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
