
/* R30 — campos de cotización TEST: cápsula verde e iconos ya usados por WhatsApp. */
.ctpi-test-page .quote-form--enhanced .form-field{position:relative;min-width:0}
.ctpi-test-page .quote-form--enhanced .ctpi-field-shell{position:relative;min-width:0}
.ctpi-test-page .quote-form--enhanced .ctpi-field-shell::before{
  content:"";position:absolute;z-index:2;top:50%;left:14px;transform:translateY(-50%);
  width:19px;height:19px;background:#0a9b59;pointer-events:none;
  -webkit-mask-image:var(--ctpi-field-icon);mask-image:var(--ctpi-field-icon);
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
}
.ctpi-test-page .ctpi-field--name{--ctpi-field-icon:url('../icons/whatsapp-cotizartu/user-round.svg')}
.ctpi-test-page .ctpi-field--phone{--ctpi-field-icon:url('../icons/whatsapp-cotizartu/phone.svg')}
.ctpi-test-page .ctpi-field--email{--ctpi-field-icon:url('../icons/whatsapp-cotizartu/mail.svg')}
.ctpi-test-page .ctpi-field--age{--ctpi-field-icon:url('../icons/whatsapp-cotizartu/users-round.svg')}
.ctpi-test-page .ctpi-field--income{--ctpi-field-icon:url('../icons/whatsapp-cotizartu/credit-card.svg')}
.ctpi-test-page .ctpi-field--clinic{--ctpi-field-icon:url('../icons/whatsapp-cotizartu/hospital.svg')}
.ctpi-test-page .quote-form--enhanced .form-field .form-label,
.ctpi-test-page .quote-form--enhanced .form-field:focus-within .form-label,
.ctpi-test-page .quote-form--enhanced .form-field.has-value .form-label,
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid .form-label{
  position:absolute!important;z-index:3;top:-.43rem!important;left:43px!important;
  width:auto;max-width:calc(100% - 55px);margin:0;padding:0 6px;
  overflow:hidden;transform:none!important;background:#fff!important;
  color:#08784f!important;font-size:.72rem!important;font-weight:800!important;
  line-height:1.15;text-overflow:ellipsis;white-space:nowrap;
  pointer-events:auto;transition:none;
}
.ctpi-test-page .quote-form--enhanced .form-field.ctpi-field--phone .form-label,
.ctpi-test-page .quote-form--enhanced .form-field.ctpi-field--phone:focus-within .form-label,
.ctpi-test-page .quote-form--enhanced .form-field.ctpi-field--phone.has-value .form-label,
.ctpi-test-page .quote-form--enhanced .form-field.ctpi-field--phone.is-invalid .form-label{
  left:99px!important;max-width:calc(100% - 111px);
}
.ctpi-test-page .quote-form--enhanced .ctpi-field-shell>.form-control,
.ctpi-test-page .quote-form--enhanced .ctpi-phone-input{
  width:100%;min-height:54px;border:1px solid #69c899!important;
  border-radius:14px!important;background:#fff!important;
  box-shadow:none!important;transition:border-color .16s ease,box-shadow .16s ease;
}
.ctpi-test-page .quote-form--enhanced .ctpi-field-shell>.form-control{
  padding:1.04rem .85rem .52rem 43px!important;
  background-image:none!important;background-color:#fff!important;
  color:#173247!important;line-height:1.3;
}
.ctpi-test-page .quote-form--enhanced .form-field .form-control::placeholder{opacity:.8!important}
.ctpi-test-page .quote-form--enhanced .ctpi-field-shell>.form-control:focus-visible,
.ctpi-test-page .quote-form--enhanced .ctpi-phone-input:focus-within{
  outline:2px solid rgba(10,155,89,.42)!important;outline-offset:2px!important;
  border-color:#0a9b59!important;
}
.ctpi-test-page .quote-form--enhanced .ctpi-phone-input{display:flex;align-items:stretch;min-width:0;overflow:visible}
.ctpi-test-page .quote-form--enhanced .ctpi-phone-prefix{
  flex:0 0 58px;display:grid;place-items:center;border:0;border-right:1px solid #bce7d0;
  border-radius:13px 0 0 13px;padding:0;background:#f7fbf9;color:#173247;
  font-size:.88rem;font-weight:850;
}
.ctpi-test-page .quote-form--enhanced .ctpi-field--phone .ctpi-field-shell::before{left:72px}
.ctpi-test-page .quote-form--enhanced .ctpi-phone-input .form-control{
  flex:1 1 auto;min-width:0;min-height:52px;width:100%;border:0!important;
  border-radius:0 13px 13px 0!important;
  padding:1.04rem .65rem .52rem 42px!important;
  background:#fff!important;background-image:none!important;
  box-shadow:none!important;color:#173247!important;
  outline:none!important;line-height:1.3;
}
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid .ctpi-field-shell>.form-control,
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid .ctpi-phone-input{border-color:#d92d20!important}
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid .form-label{color:#b42332!important}
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid .ctpi-field-shell::before{background:#b42332}
@media(max-width:380px){
  .ctpi-test-page .quote-form--enhanced .form-field .form-label{font-size:.69rem!important}
  .ctpi-test-page .quote-form--enhanced .form-field.ctpi-field--phone .form-label{font-size:.69rem!important}
}
/* Alinea el nombre en el espacio libre entre avatar y CTA, incluso al partir en dos líneas. */
.ctpi-test-page .ci-wa-launcher .ci-wa-launcher-title{
  display:flex!important;align-items:center!important;justify-content:center!important;
  align-self:stretch!important;text-align:center!important;
  line-height:1.2!important;
}

/* CTPI TEST R31: estados de etiquetas, títulos en ancho disponible y texto launcher. */
/* En vacío, cada etiqueta permanece dentro de su campo. El prefijo telefónico
   conserva su columna; el texto empieza después del icono. */
.ctpi-test-page .quote-form--enhanced .form-field:not(.has-value):not(:focus-within) .form-label,
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid:not(.has-value):not(:focus-within) .form-label{
  top:27px!important;transform:translateY(-50%)!important;
  padding:0!important;background:transparent!important;
  color:#294858!important;font-size:.88rem!important;font-weight:700!important;
  line-height:1.25!important;
}
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid:not(.has-value):not(:focus-within) .form-label{color:#b42332!important}
/* Los ejemplos se muestran cuando el campo está enfocado; la etiqueta ocupa
   el lugar del ejemplo al iniciar y evita que dos textos compitan por espacio. */
.ctpi-test-page .quote-form--enhanced .form-field:not(.has-value):not(:focus-within) .form-control::placeholder{opacity:0!important}
.ctpi-test-page .quote-form--enhanced .form-field.has-value .form-control::placeholder{opacity:0!important}
.ctpi-test-page .quote-form--enhanced .form-field:focus-within:not(.has-value) .form-control::placeholder{opacity:.8!important}
/* En error vacío, la etiqueta continúa dentro; los detalles de validación
   se presentan en el mensaje propio de cada campo, sin colisión con +569. */
.ctpi-test-page .quote-form--enhanced .form-field.is-invalid:not(.has-value):not(:focus-within) .ctpi-field-shell::before{background:#b42332}
/* Las reglas heredadas imponían un max-width de 20ch y producían tres líneas
   aunque la tarjeta ofreciera espacio horizontal. */
.ctpi-test-page .form-intro__title,
.ctpi-test-page .ctpi-bottom-form .form-intro__title,
.ctpi-test-page .ctpi-guidance .form-intro__title{
  width:100%!important;max-width:100%!important;
  text-wrap:balance!important;overflow-wrap:normal;
  line-height:1.16!important;letter-spacing:-.018em!important;
}
@media(max-width:680px){
  .ctpi-test-page .form-intro__title,
  .ctpi-test-page .ctpi-bottom-form .form-intro__title,
  .ctpi-test-page .ctpi-guidance .form-intro__title{
    font-size:clamp(1.18rem,4.55vw,1.62rem)!important;
  }
}
/* Aumenta la legibilidad del título dentro del espacio central disponible. */
.ctpi-test-page .ci-wa-launcher .ci-wa-launcher-title{
  font-family:"Nunito Sans",Inter,system-ui,sans-serif!important;
  font-size:15.5px!important;font-weight:700!important;
  letter-spacing:.012em!important;line-height:1.22!important;
  text-align:center!important;white-space:normal!important;
}
@media(max-width:820px){
  .ctpi-test-page .ci-wa-launcher .ci-wa-launcher-title{
    font-size:clamp(13.5px,3.5vw,16px)!important;
  }
}

/* R32 · 2026-09-24
   Ajustes visuales solicitados por usuario para la landing TEST:
   - elimina cápsula superior en ambos formularios
   - unifica título y bajada
   - recolorea barra de progreso al sistema magenta del sitio
*/

.ctpi-test-page .form-intro__pill{
  display:none !important;
}

.ctpi-test-page .form-intro{
  gap:.55rem;
}

.ctpi-test-page .form-intro__title{
  margin-bottom:.18rem;
  color:var(--action-magenta,#de1c5d) !important;
  text-wrap:balance;
}

.ctpi-test-page .form-intro__text{
  max-width:34ch;
  margin-bottom:0;
}

.ctpi-test-page .form-progress__row span,
.ctpi-test-page [data-progress-text]{
  color:var(--action-magenta-dark,#b9154b) !important;
  font-weight:800;
}

.ctpi-test-page .form-progress__track{
  background:rgba(222,28,93,.14) !important;
}

.ctpi-test-page .form-progress__bar{
  background:linear-gradient(90deg,var(--action-magenta,#de1c5d) 0%, #f36f97 100%) !important;
}

@media (max-width:680px){
  .ctpi-test-page .form-intro__text{
    max-width:30ch;
  }
}
