/* ==========================================================================
   INVERPLUS — formularios propios (Contacto, Compra de terrenos y cotización de
   Essenziale y ÉCLAT). Los envía js/formularios.js a enviar-contacto.php.
   ========================================================================== */
.cform{display:flex;flex-direction:column;gap:16px;width:502px;font-family:"DM Sans",Arial,Helvetica,sans-serif}
.cform input,.cform select,.cform textarea{width:100%;height:31px;padding:0 12px;border:1px solid #C9CCCF;border-radius:4px;background:#fff;color:#2B2B2B;font:400 14px/1.3 "DM Sans",Arial,Helvetica,sans-serif}
.cform textarea{height:49px;padding:7px 12px;resize:vertical}
.cform ::placeholder{color:#999;opacity:1}
.cform select{color:#999;appearance:none;-webkit-appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:11px 7px}
.cform select.tiene-valor{color:#2B2B2B}
.cform option{color:#1E1E1E}
.cform input:focus,.cform select:focus,.cform textarea:focus{outline:2px solid #E7273A;outline-offset:1px}
.cform .is-mal{border-color:#E7273A;box-shadow:0 0 0 1px #E7273A}
.cform__trampa{position:absolute!important;left:-9999px;width:1px!important;height:1px!important;opacity:0}
.cform__pie{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px}
.cform__nota{flex:1;color:var(--gris-linea);font:300 12px/16px "DM Sans",Arial,Helvetica,sans-serif;text-align:center}
.cform__nota a{text-decoration:underline}
.cform__btn{flex:none;width:75px;height:39px;border:1px solid #fff;border-radius:10px;background:#E7273A;color:#fff;font:500 14px/1 "DM Sans",Arial,Helvetica,sans-serif;transition:filter .2s ease}
.cform__btn:hover{filter:brightness(1.12)}
.cform__btn[disabled]{opacity:.6;cursor:default}
.cform__msg{min-height:18px;color:#fff;font-size:13px;line-height:18px;text-align:center}
.cform__msg.is-ok{color:#B7E0A0}

/* Formulario de cotización de un proyecto (va dentro de una columna angosta) */
.cform--cotiza{gap:12px;width:100%;color:inherit;text-align:left}
.cform__acepto{display:flex;align-items:flex-start;gap:8px;margin-top:4px;font:400 12px/16px "DM Sans",Arial,sans-serif;cursor:pointer}
.cform__acepto input{flex:none;width:14px;height:14px;margin:1px 0 0;padding:0;accent-color:var(--cform-btn,#52545F)}
.cform__acepto a{text-decoration:underline}
.cform .cform__acepto.is-mal{box-shadow:none;color:#9C0018}
.cform--cotiza .cform__btn{align-self:center;width:auto;min-width:86px;height:38px;margin-top:10px;padding:0 20px;border:0;border-radius:10px;background:var(--cform-btn,#52545F);font-weight:500}
.cform--cotiza .cform__btn--ancho{align-self:stretch;height:42px;border-radius:10px;font-size:16px}
.cform--cotiza .cform__msg{position:static!important;min-height:0;margin:0!important;padding:0!important;color:inherit;font-size:13px!important;line-height:18px!important;font-weight:500;text-align:center}

@media (max-width:749px){
  .cform{width:100%;gap:calc(12 * var(--u))}
  .cform input,.cform select,.cform textarea{height:calc(38 * var(--u));padding:0 calc(12 * var(--u));border-radius:calc(4 * var(--u));font-size:16px}
  .cform textarea{height:calc(70 * var(--u));padding:calc(8 * var(--u)) calc(12 * var(--u))}
  .cform__pie{gap:calc(12 * var(--u));margin-top:calc(6 * var(--u))}
  .cform__nota{font-size:calc(11 * var(--u));line-height:calc(15 * var(--u));text-align:left}
  .cform__btn{width:calc(72 * var(--u));height:calc(40 * var(--u));font-size:calc(14 * var(--u))}
  .cform__msg{font-size:calc(12 * var(--u));line-height:calc(16 * var(--u))}
  .cform--cotiza{gap:calc(12 * var(--u))}
  .cform__acepto{gap:calc(8 * var(--u));margin-top:calc(4 * var(--u));font-size:calc(12 * var(--u));line-height:calc(16 * var(--u))}
  .cform__acepto input{width:calc(16 * var(--u));height:calc(16 * var(--u))}
  .cform--cotiza .cform__btn{min-width:calc(90 * var(--u));height:calc(40 * var(--u));margin-top:calc(10 * var(--u));padding:0 calc(22 * var(--u));border-radius:10px}
  .cform--cotiza .cform__btn--ancho{height:calc(44 * var(--u));border-radius:10px;font-size:calc(16 * var(--u))}
}
