/*
 * [doutor_form_contacto] (inc/forms/class-doutor-form-contacto.php).
 * Paleta/tipografía de las variables globales de style.css — mismo patrón
 * de variables locales por sección que el resto del tema.
 */

#doutor-form-ctx {
  --azul-oscuro: var(--color-azul-oscuro, #0a1444);
  --azul-digital: var(--color-azul-digital, #2c3fcd);
  --linea: rgba(10, 20, 68, 0.10);
  --muted: rgba(10, 20, 68, 0.6);
  --fuente-display: var(--font-universo, 'Literata', serif);
  --ease: cubic-bezier(.16, 1, .3, 1);
  padding: clamp(1rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  display: flex;
  justify-content: center;
}
#doutor-form-ctx,
#doutor-form-ctx *,
#doutor-form-ctx *::before,
#doutor-form-ctx *::after {
  box-sizing: border-box;
}

.df-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 20px 55px rgba(10,20,68,.08);
  text-align: center;
}

.df-aviso-admin {
  margin: 0 0 1.25rem;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(234, 179, 8, .12);
  border: 1px solid rgba(234, 179, 8, .35);
  color: #92660a;
  font-size: .8rem;
  line-height: 1.5;
  text-align: left;
}
.df-aviso-admin a { color: inherit; font-weight: 700; }

.df-card__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft, #F4F8FB);
  display: flex;
  align-items: center;
  justify-content: center;
}
.df-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.df-card__titulo {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--azul-oscuro);
  margin: 0 0 .4rem;
}
.df-card__sub {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.df-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.df-field { display: flex; flex-direction: column; gap: .4rem; }
.df-field label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--azul-oscuro);
}
.df-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--linea);
  background: var(--bg-soft, #F4F8FB);
  color: var(--azul-oscuro);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.df-field input::placeholder { color: rgba(10,20,68,.35); }
.df-field input:focus {
  outline: none;
  border-color: var(--azul-digital);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44,63,205,.12);
}

.df-field--recaptcha { align-items: center; }
.df-field--recaptcha > div { transform-origin: center; }

.df-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
  font-size: .82rem;
  font-weight: 600;
}
.df-error-whatsapp {
  margin: -.4rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}
.df-error-whatsapp a {
  color: var(--azul-digital);
  font-weight: 700;
  text-decoration: underline;
}
.df-exito {
  margin: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(23, 195, 132, 0.1);
  border: 1px solid rgba(23, 195, 132, 0.35);
  color: #0f7a52;
  font-size: .82rem;
  font-weight: 600;
}

.df-btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 15px 26px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  color: #fff;
  background: var(--azul-digital);
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(44,63,205,.5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}
.df-btn svg { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.df-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(44,63,205,.6); }
.df-btn:hover:not(:disabled) svg { transform: translateX(3px); }
.df-btn:disabled { opacity: .6; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .df-btn, .df-btn svg, .df-field input { transition: none !important; }
}
