/*
  06-forms.css — 224live
  Fase Contacto / Formularios. Se encola DESPUÉS de 05-responsive.css.
  Contiene:
    A) Teaser de contacto en Home (.contacto-teaser).
    B) Página Contacto (.contacto-page: pasos, zona de formulario, placeholder).
    C) PUENTE Fluent Forms → estética 224live (mapea el markup de FF a los tokens
       de 00-variables.css para que el formulario real se vea como el .cform validado).
  Sin tocar identidad: usa exclusivamente las variables del sistema.
*/

/* ════════════════════════════════════════════════════════════════════════
   A) TEASER DE CONTACTO (Home) — D-HOME=b
   La Home capta en breve y deriva el caso completo a /contacto/.
   ════════════════════════════════════════════════════════════════════════ */
.contacto-teaser {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 44px);
}

.ct-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 16px;
}

.ct-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.ct-text {
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--t2);
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 28px;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ct-actions .btn-orange { margin: 0; }
.ct-actions .wa-btn { margin-top: 0; }

.ct-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--t3);
}

.ct-note a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════════
   B) PÁGINA CONTACTO (/contacto/)
   ════════════════════════════════════════════════════════════════════════ */
.contacto-page .contacto-layout {
  align-items: start;
}

/* Pasos "qué pasa después de enviar" */
.contacto-steps {
  list-style: none;
  counter-reset: cstep;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacto-steps li {
  counter-increment: cstep;
  position: relative;
  padding-left: 44px;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--t2);
  line-height: 1.6;
}

.contacto-steps li::before {
  content: counter(cstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-steps strong {
  color: var(--text);
  font-weight: 700;
}

.c-legal-note {
  margin-top: 28px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--t3);
  line-height: 1.5;
}

.c-legal-note a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Placeholder visible mientras no hay formulario real de Fluent Forms */
.c-form-zone { min-height: 200px; }

.ff-placeholder {
  background: var(--bg-alt);
  border: 1.5px dashed var(--line);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 44px);
}

.ffp-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.ffp-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.ffp-text {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--t2);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════════════════════════════════
   C) PUENTE FLUENT FORMS → 224live
   Mapea el markup propio de Fluent Forms a la estética del .cform validado.
   Selectores con .fluentform como ámbito para no afectar a otros formularios.
   ════════════════════════════════════════════════════════════════════════ */
.fluentform {
  --ff-gap: 14px;
}

/* Grupos de campo: separación vertical como en .cform */
.fluentform .ff-el-group,
.fluentform .ff_form_group,
.fluentform .ff-el-form-control + .ff-el-group {
  margin-bottom: var(--ff-gap);
}

/* Etiquetas */
.fluentform .ff-el-input--label label,
.fluentform .ff-el-input--label > label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 6px;
  display: block;
  line-height: 1.3;
}

.fluentform .ff-el-input--label .text-danger,
.fluentform .ff-el-is-required-asterisk {
  color: var(--orange);
}

/* Campos de texto, email, teléfono, número, textarea y select */
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform input[type="url"],
.fluentform textarea,
.fluentform select,
.fluentform .ff-el-form-control {
  background: var(--bg);
  border: 1.5px solid var(--line);
  padding: 13px 15px;
  font-family: var(--lato);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  border-radius: 1px;
  width: 100%;
  line-height: 1.4;
  transition: border-color .2s;
  box-shadow: none;
}

.fluentform textarea,
.fluentform textarea.ff-el-form-control {
  min-height: 88px;
  resize: vertical;
}

/* Foco coherente con el acento naranja de marca */
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus,
.fluentform .ff-el-form-control:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: none;
}

/* Placeholder */
.fluentform ::placeholder { color: var(--t3); opacity: 1; }

/* Checkbox / radio (consentimiento RGPD) */
.fluentform .ff-el-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fluentform .ff-el-form-check-input,
.fluentform input[type="checkbox"],
.fluentform input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.fluentform .ff-el-form-check-label,
.fluentform .ff-el-form-check label {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--t2);
  line-height: 1.5;
}

.fluentform .ff-el-form-check-label a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

/* Botón de envío → como .csend (oscuro → naranja en hover) */
.fluentform .ff-btn-submit,
.fluentform button.ff-btn,
.fluentform .ff_btn_style {
  width: 100%;
  padding: 15px;
  background: var(--text);
  color: var(--bg);
  border: none;
  font-family: var(--lato);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 1px;
  transition: background .2s, transform .15s;
  box-shadow: none;
}

.fluentform .ff-btn-submit:hover,
.fluentform button.ff-btn:hover,
.fluentform .ff_btn_style:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

/* Estados de error */
.fluentform .ff-el-is-error input,
.fluentform .ff-el-is-error textarea,
.fluentform .ff-el-is-error select,
.fluentform .ff-el-is-error .ff-el-form-control {
  border-color: #C0392B;
}

.fluentform .error,
.fluentform .text-danger,
.fluentform .ff-el-is-error .error-text {
  color: #C0392B;
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 5px;
}

/* Mensaje de confirmación → como .cform-done (borde verde de marca) */
.fluentform .ff-message-success,
.ff-message-success,
.fluentform_wrapper .ff-message-success {
  padding: 32px 28px;
  background: var(--bg);
  border: 1.5px solid var(--green);
  border-radius: 1px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .contacto-page .contacto-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
