/* Comfortek Tienda — form.css
   Estilos compartidos para formularios Formspree (éxito, error, loading).
   Importado en producto.css y kit-landing.css; también puede ir en style.css.
*/

/* ── Estado del formulario ─────────────────────────────────────────── */
.ck-form-status {
  display: block;
  margin-top: var(--s2);
  padding: var(--s2) var(--s3);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  outline: none;
}
.ck-form-status[hidden] { display: none; }

.ck-form-status--success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.ck-form-status--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.ck-form-status a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ── Campos del formulario (se heredan de producto.css/.form-row) ─── */
.ck-form .form-row { margin-bottom: var(--s2); }
.ck-form .form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ck-form .form-row input,
.ck-form .form-row textarea,
.ck-form .form-row select {
  width: 100%;
  padding: 10px 12px;
  min-height: 48px; /* R033 — tap target ≥44px; 48px alinea con el sistema del resto del sitio */
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-main, #111);
  box-sizing: border-box;
  transition: border-color .15s;
}
.ck-form .form-row input:focus,
.ck-form .form-row textarea:focus,
.ck-form .form-row select:focus {
  outline: none;
  border-color: var(--color-action, #E86830);
  box-shadow: 0 0 0 3px rgba(232,104,48,.15);
}
.ck-form .form-row textarea { resize: vertical; min-height: 80px; }

.ck-form .form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
}
@media (max-width: 480px) {
  .ck-form .form-row-half { grid-template-columns: 1fr; }
}

.ck-form .form-submit {
  margin-top: var(--s2);
  width: 100%;
}
.ck-form .form-note {
  margin-top: var(--s1);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Variante kit (fondo oscuro, texto claro) ─────────────────────── */
.ck-form--dark .form-row label { color: #c0bbb2; }
.ck-form--dark .form-row input,
.ck-form--dark .form-row textarea,
.ck-form--dark .form-row select {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.ck-form--dark .form-row input::placeholder,
.ck-form--dark .form-row textarea::placeholder { color: rgba(255,255,255,.4); }
.ck-form--dark .form-row input:focus,
.ck-form--dark .form-row textarea:focus,
.ck-form--dark .form-row select:focus {
  border-color: var(--color-action, #E86830);
  box-shadow: 0 0 0 3px rgba(232,104,48,.25);
}
.ck-form--dark .form-note { color: rgba(255,255,255,.5); }
