/* ============================================================
   Home Pro Guides — wizard.css
   Formulario tipo stepper: una pregunta por pantalla. Vive DENTRO
   del mismo .form-card que ya existía — no se toca la posición ni
   el tamaño de ese contenedor en la página de Contacto, solo su
   contenido interno.
   ============================================================ */

.wizard{ display:flex; flex-direction:column; min-height: 460px; }

/* ---- masthead navy: bleed to the .form-card edges ---- */
.wizard-masthead{
  background: var(--primary); margin: -40px -40px 28px; padding: 32px 40px 28px;
  border-radius: 20px 20px 0 0;
}
.wizard-masthead[hidden]{ display:none; }
.wizard-masthead-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.wizard-masthead-brand{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:14px; color:#fff; }
.wizard-masthead-brand svg{ flex-shrink:0; }
.wizard-masthead-step{ font-size:12.5px; color:rgba(255,255,255,.55); font-weight:600; }
.wizard-eyebrow{ display:block; font-size:12.5px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color: var(--gold); margin-bottom:8px; }
.wizard-masthead-title{ font-family: var(--font-head); margin:0; font-size:26px; line-height:1.3; font-weight:800; letter-spacing:-.2px; color:#fff; max-width:460px; }
.wizard-masthead-subtitle{ margin:8px 0 0; font-size:13.5px; color:rgba(255,255,255,.65); max-width:420px; line-height:1.5; }
.wizard-masthead-subtitle[hidden]{ display:none; }
.wizard-masthead .wizard-progress{ margin:18px 0 0; background: rgba(255,255,255,.14); }
@media (max-width:640px){ .wizard-masthead{ margin:-26px -26px 22px; padding:26px 26px 22px; } }

/* barra de progreso (vive dentro del masthead) */
.wizard-progress{ height:3px; background: rgba(12,49,102,0.08); border-radius:999px; overflow:hidden; flex-shrink:0; }
.wizard-progress-bar{ height:100%; background: var(--gold); width:0%; transition: width 320ms var(--ease-out); }

.wizard-body{ flex:1; display:flex; flex-direction:column; }

.wizard-step{ display:flex; flex-direction:column; flex:1; }

/* ---- option rows (single + multi select): fila completa, no grid de 2 columnas ---- */
.wizard-options{ display:flex; flex-direction:column; gap: 12px; }
.wizard-option{
  position:relative; display:flex; align-items:center; justify-content:space-between; gap: 14px;
  text-align:left; width:100%; padding: 16px 18px; border-radius: 10px; border: 1.5px solid rgba(12,49,102,0.16);
  background:#fff; cursor:pointer; font-family: var(--font-body);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.wizard-option:active{ transform: scale(.98); }
@media (hover:hover) and (pointer:fine){
  .wizard-option:hover{ border-color: var(--gold); background: rgba(255,99,57,0.06); }
}
.wizard-option.is-selected{ border-color: var(--gold); }
.wizard-option-label{ font-size: 15px; font-weight:700; color: var(--text-dark); line-height:1.3; }
.wizard-option-check{
  flex-shrink:0; width:20px; height:20px; border-radius:50%;
  border: 1.5px solid rgba(12,49,102,0.25); background:#fff;
  display:flex; align-items:center; justify-content:center; color:#fff;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.wizard-option.is-selected .wizard-option-check{ background: var(--gold); border-color: var(--gold); }
.wizard-option-check svg{ opacity:0; transition: opacity 120ms var(--ease-out); }
.wizard-option.is-selected .wizard-option-check svg{ opacity:1; }

/* opciones con imagen: vuelven a grid de 2 columnas, imagen arriba */
.wizard-options.is-images{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wizard-option.is-image{ flex-direction:column; align-items:stretch; padding:10px; }

/* ---- text-field steps ---- */
.wizard-fields{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.wizard-fields .field.full{ grid-column: 1 / -1; }
@media (max-width: 520px){ .wizard-fields{ grid-template-columns: 1fr; } }

/* ---- fixed nav row ---- */
.wizard-nav{ display:flex; align-items:center; justify-content:space-between; margin-top: 24px; flex-shrink:0; gap: 12px; }
.wizard-back{
  display:inline-flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer;
  font-size: 13.5px; font-weight:600; color: var(--text-dark-muted); padding: 10px 4px;
  transition: color 160ms var(--ease-out);
}
@media (hover:hover) and (pointer:fine){ .wizard-back:hover{ color: var(--text-dark); } }
.wizard-back[hidden]{ display:none; }
.wizard-next{ margin-left:auto; }
.wizard-hint{ font-size:12.5px; color: var(--text-dark-muted); text-align:center; margin-top:14px; }

.wizard-success{
  display:flex; flex-direction:column; align-items:flex-start; gap:14px; flex:1; justify-content:center;
}
.wizard-success svg{ color: var(--gold); }
.wizard-success h3{ font-family: var(--font-head); font-size: 24px; margin:0; color: var(--text-dark); }
.wizard-success p{ font-size: 14.5px; color: var(--text-dark-muted); margin:0; max-width: 400px; }

/* step transition: gentle fade+slide, matches the .reveal treatment used
   site-wide — occasional tier (a "modal-like" step change), not rare/first-time,
   so it stays subtle and short. */
.wizard-step{ animation: wizardStepIn 260ms var(--ease-out); }
@keyframes wizardStepIn{ from{ opacity:0; transform: translateY(8px);} to{ opacity:1; transform:translateY(0);} }
@media (prefers-reduced-motion: reduce){ .wizard-step{ animation: none; } }

@media (max-width: 560px){
  .wizard-option{ padding: 14px 12px; }
}

/* ---- formulario cargado desde el CRM (crm-form.js) ---- */
.wizard-loading{ color: var(--text-dark-muted); font-size: 15px; padding: 24px 0; }
.wizard-help{ font-size: 13.5px; color: var(--text-dark-muted); margin: -2px 0 10px; line-height:1.45; }
.wizard-check{ display:flex; align-items:flex-start; gap: 10px; cursor:pointer; font-size: 14.5px; color: var(--text-dark); line-height:1.45; }
.wizard-check input{ width: 18px; height: 18px; margin-top: 2px; flex-shrink:0; accent-color: var(--gold); }
.wizard-check a{ color: var(--primary); text-decoration: underline; }
.wizard-option.is-image img{ width:100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 8px; display:block; }
.wizard-files{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 10px; }
.wizard-file{ font-size: 13px; padding: 6px 10px; border-radius: 999px; background: rgba(12,49,102,0.08); color: var(--text-dark); }
.wizard-file.is-uploading{ opacity:.6; }
.wizard-file.is-error{ background: rgba(180,35,24,0.1); color:#b42318; }
.wizard-fields input[type="file"]{ font-size: 14px; padding: 10px 0; }
.wizard-submit-error{ color:#b42318; font-size:14px; margin-top:12px; }
.wizard-fallback{ padding: 8px 0; }
.wizard-fallback h3{ font-size: 22px; margin: 0 0 8px; color: var(--text-dark); }
.wizard-fallback p{ color: var(--text-dark-muted); margin: 0 0 18px; line-height:1.5; }
.wizard-fallback .btn{ margin: 0 8px 8px 0; }
.wizard-success h4{ font-size: 15px; font-weight: 600; color: var(--text-dark-muted); margin: 4px 0 10px; }
.wizard-success .btn{ margin-top: 14px; }
