/* TAL-3896 — estilos BASE del módulo del form (estructurales + tipografía de
 * marca). El brief visual puede sobreescribir libremente vía las clases bf-*
 * o variables: --bf-accent, --bf-radius, --bf-border, --bf-bg, --bf-fg. */

.bf {
  --bf-accent: #6d28d9;
  --bf-radius: 0.75rem;
  --bf-border: #d4d4d8;
  --bf-bg: #ffffff;
  --bf-fg: #18181b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--bf-fg);
  max-width: 28rem;
}

.bf-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius);
  background: var(--bf-bg);
  font: 600 1rem "Space Grotesk", "Inter", sans-serif;
  cursor: pointer;
}

.bf-google:disabled,
.bf-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.bf-separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--bf-fg) 55%, transparent);
}

.bf-separator::before,
.bf-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bf-border);
}

.bf-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bf-label {
  font: 500 0.9rem "Space Grotesk", "Inter", sans-serif;
}

.bf-input,
.bf-country {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius);
  background: var(--bf-bg);
  color: var(--bf-fg);
  font: 400 1rem "Inter", sans-serif;
  min-width: 0;
}

.bf-input:focus-visible,
.bf-country:focus-visible {
  outline: 2px solid var(--bf-accent);
  outline-offset: 1px;
}

.bf-phone {
  display: grid;
  grid-template-columns: minmax(7rem, 40%) 1fr;
  gap: 0.5rem;
}

.bf-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.bf-consent input {
  margin-top: 0.2rem;
  accent-color: var(--bf-accent);
}

.bf-error {
  margin: 0;
  font-size: 0.9rem;
  color: #dc2626;
}

.bf-submit {
  padding: 1rem 1.4rem;
  border: 0;
  border-radius: var(--bf-radius);
  background: var(--bf-accent);
  color: #ffffff;
  font: 700 1.05rem "Unbounded", "Space Grotesk", sans-serif;
  cursor: pointer;
}

/* TAL-4012 — clickwrap discreto bajo el submit (color heredado atenuado:
 * funciona sobre el tema claro del módulo base y el oscuro del look v26). */
.bf-legal {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: inherit;
  opacity: 0.65;
}

.bf-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
