/* _contacto-form.css — FEA008 · formulario de contacto de /contacto
   Modulo nuevo. NUNCA editar _shared.css. Usa tokens de _tokens.css. */

.ct-form-section { background: var(--s1); padding: 80px 5vw; }
.ct-form-wrap { max-width: 780px; margin: 0 auto; }
.ct-form-intro { margin-bottom: 32px; }
.ct-form-intro .section-lead { margin-bottom: 0; }

.ct-form { display: grid; gap: 20px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field.full { grid-column: 1 / -1; }

.ct-field label,
.ct-legend {
  font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.ct-field label .req { color: var(--red); }
.ct-opt { color: var(--muted); font-weight: 600; letter-spacing: .06em; }

.ct-field input[type=text],
.ct-field input[type=tel],
.ct-field input[type=email],
.ct-field select,
.ct-field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 2px;
  transition: border-color .18s, box-shadow .18s;
}
.ct-field textarea { resize: vertical; min-height: 120px; }
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,54,54,.12);
}
.ct-field input.err,
.ct-field select.err,
.ct-field textarea.err { border-color: var(--red); background: rgba(217,54,54,.04); }

/* País: input como display del país elegido (el picker es el flag+search de iti).
   Sin readonly (rompía el click del mouse sobre el flag por un guard de iti v29);
   pointer-events:none evita tipear directo en el input — la interacción es vía el botón-bandera,
   que es un elemento aparte y sigue recibiendo el click. */
#ct_country { pointer-events: none; background: var(--bg); }

/* intl-tel-input: que el contenedor ocupe todo el ancho de la celda */
.ct-field .iti { width: 100%; }

.ct-hint { font-size: .78rem; color: var(--muted); }
.ct-count { font-size: .78rem; color: var(--muted); text-align: right; }
.ct-err { font-size: .78rem; color: var(--red); min-height: 1em; display: none; }
.ct-err.show { display: block; }

/* Radios "Medio preferido" */
.ct-radios { display: flex; gap: 12px; flex-wrap: wrap; }
.ct-radio {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 12px 18px; border: 1px solid var(--border); border-radius: 2px;
  background: var(--bg); font-weight: 600; transition: border-color .18s, background .18s;
}
.ct-radio input { accent-color: var(--red); }
.ct-radio:has(input:checked) { border-color: var(--red); background: rgba(217,54,54,.06); }

/* Consentimiento */
.ct-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); }
.ct-consent input { margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.ct-consent a { color: var(--red); text-decoration: underline; }

/* Honeypot: fuera de pantalla, inaccesible para humanos, invisible a lectores */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.ct-submit {
  justify-self: start; padding: 14px 34px; font-family: 'Oswald', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: var(--red); border: none; border-radius: 2px; cursor: pointer;
  transition: filter .18s, opacity .18s;
}
.ct-submit:hover { filter: brightness(1.08); }
.ct-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Estados de resultado (exito / error) y aviso de deshabilitado */
.ct-banner { padding: 20px 22px; border-radius: 3px; border-left: 4px solid; display: none; }
.ct-banner.show { display: block; }
.ct-banner h3 { font-family: 'Oswald', sans-serif; font-size: 1.15rem; margin: 0 0 6px; }
.ct-banner p { margin: 0; font-size: .94rem; color: var(--text); }
.ct-banner.ok { background: rgba(34,197,94,.08); border-color: #22c55e; }
.ct-banner.bad { background: rgba(217,54,54,.07); border-color: var(--red); }
.ct-banner.info { background: rgba(234,179,8,.08); border-color: #eab308; }

@media (max-width: 640px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-submit { justify-self: stretch; text-align: center; }
}
