#elumina-form {
  font-family: 'aktiv-grotesk', 'Montserrat', sans-serif !important;
  text-align: center;
  background: white;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  color: #1D1D1B;
}

#elumina-form .title-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 60px 0;
}

.step-1-img {
  width: 150px !important;
}

#elumina-form .title {
  font-size: 32px !important;
  font-weight: 900 !important;
  margin: 0 !important;
  max-width: 450px !important;
}

#elumina-form h1.title {
  color: #005291 !important;
  align-text: center;
}

#elumina-form .subtitle-big {
  font-size: 32px !important;
  margin-bottom: 10px !important;
  align-text: center;
}

#elumina-form .subtitle {
  font-size: 18px !important;
  max-width: 450px !important;
  align-text: center;
}

#elumina-form .form-step {
  display: none;
  border-radius: 12px;
  padding: 40px;
  padding-top: 60px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 600px !important;
}

#elumina-form .form-step.active {
  display: flex;
  animation: fadeIn .4s ease;
}

#elumina-form .form-step p {
  font-size: 16px;
  margin-bottom: 25px;
}

#elumina-form .form-step input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

#elumina-form .form-step .form-header {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

#elumina-form .form-step .form-header .title {
  margin-bottom: 30px !important;
}

#elumina-form .btn {
  padding: 12px 30px;
  border-radius: 100px;
  border: 4px solid #005291;
  background: #005291;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease;
  line-height: 1;
}

#elumina-form .btn:hover {
  background: #005291 !important;
}

#elumina-form .prev-step {
  color: #005291 !important;
  padding: 0 !important;
  border: none !important;
  font-weight: 900;
}

#elumina-form .prev-step:hover {
  background: unset !important;
}

#elumina-form .btn-primary {
  background: #005291;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Step 2 */

#elumina-form .step-label {
  font-size: 14px;
  font-weight: 900 !important;
  color: #00B9F3;
  margin-bottom: 10px !important;
}

#elumina-form .form-step.step-2 {
  justify-content: space-between;
}

#elumina-form .step-2-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#elumina-form .range-container {
  width: 100%;
}

#elumina-form input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 100px;
  background: linear-gradient(90deg, #00aaff 0%, #005291 100%);
  outline: none;
  cursor: pointer;
  padding: 0 38px !important;
}

.form-note {
  font-size: 25px !important;
}

.step-btns {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Thumb */
#elumina-form input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #005291;
  cursor: pointer;
}
#elumina-form input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 10px;
  border-radius: 100px;
  background: #fff;
  border: 2px solid #005291;
  cursor: pointer;
}

#elumina-form .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #005291;
  font-weight: 600;
  text-align: center;
}

#elumina-form .summary {
  color: #005291;
  margin: 30px 0 !important;
  max-width: 400px !important;
  font-size: 28px !important;
}

#elumina-form .options-container {
  display: flex;
  gap: 70px;
  justify-content: center;
  margin: 30px 0;
}

#elumina-form .option-card {
  flex: 1;
  min-width: 200px;
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#elumina-form .option-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  color: #222;
}

#elumina-form .option-card p {
  font-size: 16px;
  margin: 0;
}

#elumina-form .option-card .check {
  width: 25px;
  height: 25px;
}

#elumina-form .option-card .check-selected {
  display: none;
}

#elumina-form .option-card.selected {
  background: #004a99;
  color: #fff;
}

#elumina-form .option-card.selected h3,
#elumina-form .option-card.selected p {
  color: #fff;
}

#elumina-form .option-card.selected .check {
  display: none;
}

#elumina-form .option-card.selected .check-selected {
  display: block;
}

/* --- Paso 4 (vista final) --- */
#elumina-form .plan-kicker{
  font-size:14px;
  font-weight:800;
  letter-spacing:.04em;
  color:#00A3E0;
  margin:10px 0 6px;
  text-transform:uppercase;
}

#elumina-form .plan-summary{
  display:flex;
  align-items:center;
  gap:40px;
}

#elumina-form .plan-col {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items: center;
  gap:20px;
  flex:1;
  max-width: 280px;
}

#elumina-form .plan-text {
  font-size:18px;
  line-height:1.35;
  margin:0 !important;
}

#elumina-form .plan-text strong{
  font-weight: 700 !important;
}

#elumina-form .plan-arrow{
  display:grid;
  place-items:center;
}

#elumina-form .plan-arrow span{
  width:64px;
  height:64px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:2px solid #00A3E0;
  font-size:28px;
  font-weight:800;
  color:#00A3E0;
}

#elumina-form .step-4-img{
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#elumina-form .plan-illu-grad{ 
  background:linear-gradient(180deg,#E8F5FF 0%,#F4F8FF 100%) 
}

#elumina-form .plan-actions{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items: center;
  justify-content: end;
}

#elumina-form .btn-link{
  background:transparent;
  color:#0057C2;
  border:0;
  padding-left:8px;
  padding-right:8px;
}

#elumina-form .btn-outline{
  background:#fff;
  color:#005291;
}

#elumina-form .btn-outline:hover{
  background: #fff !important;
}

#elumina-form #gotoInscripcion{ 
  text-decoration:none 
}

#elumina-form .form-grid {
  width: 100%;
}

#elumina-form .form-grid input {
  background: #F1F1F1;
  border: none;
  outline: none;
  color: #1D1D1B;
}

#elumina-form .form-grid input::placeholder {
  opacity: 1;
  color: #1D1D1B;
}

#elumina-form .form-grid .grid-2{
  display: flex;
  gap: 20px;
}

#elumina-form .chk {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: left;
  margin-top: 40px;
  gap: 10px;
}

#no_beneficiary {
  width: fit-content !important;
  margin: 0 !important;
}

.hidden {
  display: none !important;
}


/* Paso 7 */
.form-step.thanks-message {
  justify-content: center !important;
  gap: 20px;
}

@media (max-width: 767px){
  #elumina-form .plan-title{
    font-size:32px
  }

  #elumina-form .plan-summary{
    grid-template-columns:1fr;
    gap:16px
  }

  #elumina-form .plan-arrow{
    order:-1
  }

  #elumina-form .form-step {
    padding: 40px 12px;
  }

  #elumina-form .options-container {
    flex-direction: column;
    gap: 20px;
  }
}


/* ====== PDF A4 ====== */
.pdf-a4 { /* se muestra solo para generar el PDF */
  position: fixed; inset: 0; z-index: 9999; background: #f0f0f0; 
  padding: 24px; overflow: auto;
}
.pdf-a4.hidden { 
  display: none !important; 
}

.pdf-sheet {
  width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 18mm 15mm;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #212529;
}
.pdf-header { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14mm; }
.pdf-brand .pdf-logo { font-size: 26px; font-weight: 800; color: #1f78d1; line-height: 1; }
.pdf-brand .pdf-sub { font-weight: 600; margin-top: 2px; }
.pdf-meta { font-size: 12px; line-height: 1.6; }
.pdf-note { grid-column: 1 / -1; margin-top: 8mm; font-size: 12px; text-align: center; }
.pdf-note strong { color: #0a4c9a; }

.pdf-table-wrap { border: 1px solid #d9dee3; border-radius: 6px; padding: 8mm; background: #f6f8fb; }
.pdf-table { width: 100%; border-collapse: collapse; font-size: 11px; border: 1px solid #bbbcbd }
.pdf-table th, .pdf-table td { padding: 6px 8px; border-bottom: 1px solid #e7ebf0; }
.pdf-table th { text-align: left; color: #0a4c9a; font-weight: 700; }
.pdf-table tbody tr:last-child td { border-bottom: 0; }
.pdf-table td.is-yes { color: #0a7b26; font-weight: 700; }

.pdf-footer { display:flex; justify-content: space-between; align-items: center; margin-top: 10mm; font-size: 10px; color:#6c757d; }
.pdf-contact span { margin-right: 10px; }

/* ===== PRINT SOLO EL TEMPLATE, SIN SCROLL Y CON SALTO DE PÁGINA ===== */
/* ===== PRINT: solo #pdfTemplate, sin scroll y con saltos de página ===== */
@media print {
  @page { size: A4; margin: 12mm; }

  /* Ocultar TODO lo que sea hijo directo del body, excepto el template */
  body.printing > :not(#pdfTemplate) { display: none !important; }

  /* Asegurar que el template ocupe la página y no tenga sombras ni scroll */
  #pdfTemplate {
    display: block !important;
    position: static !important;
    width: auto !important; margin: 0 !important; padding: 0 !important;
    background: #fff !important;
  }
  .pdf-a4, .pdf-sheet {
    width: auto !important; min-height: auto !important;
    margin: 0 !important; padding: 0 !important;
    box-shadow: none !important; background: #fff !important;
    overflow: visible !important;        /* sin barras de scroll */
  }

  /* Tabla en múltiples hojas (encabezado repetido) */
  .pdf-table { width: 100%; page-break-inside: auto; }
  .pdf-table thead { display: table-header-group; }
  .pdf-table tfoot { display: table-footer-group; }
  .pdf-table tr    { page-break-inside: avoid; }
  .pdf-table td,
  .pdf-table th    { break-inside: avoid; }

  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
