/* Y1P native contact form — Diseño P0 2026-09-24
   Contact on Bone/Moor (NOT Signal full-bleed). Submit = Signal on Bone.
   Labels: IBM Plex Mono. NOT LIVE until Diseño re-GO + OM URL + IT FTP. */

/* P0.1 — section: Bone ground / Moor accents (override Signal full-bleed .contact) */
.y1p-form-contact.contact,
section.contact.y1p-form-contact {
  background: var(--bone, #F8F9FA);
  color: var(--ink, #111111);
}
.y1p-form-contact .eyebrow,
.y1p-form-contact .y1p-form-copy .eyebrow {
  color: var(--moor, #16465A);
}
.y1p-form-contact h2,
.y1p-form-contact .lead {
  color: var(--ink, #111111);
}

.y1p-native-form {
  --y1p-ink: var(--ink, #111111);
  --y1p-bone: var(--bone, #F8F9FA);
  --y1p-moor: var(--moor, #16465A);
  --y1p-signal: var(--signal, #D6F551);
  --y1p-line: var(--line, #dce3e6);
  --y1p-muted: var(--muted, #526774);
  --y1p-danger: #a33a3a;
  --y1p-danger-bg: #fff5f5;
  --y1p-danger-border: #c45c5c;
  max-width: 36rem;
  margin: 0;
  position: relative;
}

.y1p-native-form .y1p-field { margin: 0 0 1rem; }
.y1p-native-form .y1p-field-msg {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--y1p-danger);
}
.y1p-native-form .y1p-field.is-invalid .y1p-field-msg { display: block; }

/* P0.2 — labels IBM Plex Mono */
.y1p-native-form label.y1p-label {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--y1p-moor);
  margin: 0 0 0.4rem;
}
.y1p-native-form label.y1p-label .req { color: var(--y1p-moor); }

.y1p-native-form input[type="text"],
.y1p-native-form input[type="email"],
.y1p-native-form textarea {
  width: 100%;
  border: 1px solid var(--y1p-line);
  border-radius: 3px;
  background: #fff;
  color: var(--y1p-ink);
  font: 400 1rem/1.5 Inter, Arial, sans-serif;
  padding: 0.75rem 0.85rem;
  min-height: 48px;
}
.y1p-native-form textarea { min-height: 8rem; resize: vertical; }

/* P0.3 — focus + invalid */
.y1p-native-form input:focus-visible,
.y1p-native-form textarea:focus-visible,
.y1p-native-form input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--y1p-moor);
  outline-offset: 2px;
}
.y1p-native-form .y1p-field.is-invalid input,
.y1p-native-form .y1p-field.is-invalid textarea,
.y1p-native-form input:invalid:not(:focus):not(:placeholder-shown),
.y1p-native-form textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--y1p-danger-border);
}
.y1p-native-form.y1p-tried .y1p-field.is-invalid input,
.y1p-native-form.y1p-tried .y1p-field.is-invalid textarea {
  border-color: var(--y1p-danger-border);
}

/* Consent — class (P1 soft done with P0) */
.y1p-native-form .y1p-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.1rem;
  color: var(--y1p-muted);
}
.y1p-native-form .y1p-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--y1p-moor);
}
.y1p-native-form label.y1p-consent-label {
  text-transform: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--y1p-muted);
  line-height: 1.5;
  margin: 0;
}
.y1p-native-form .y1p-consent.is-invalid label.y1p-consent-label { color: var(--y1p-danger); }
.y1p-native-form .y1p-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--y1p-moor);
}

.y1p-native-form .y1p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}
/* Submit Signal on Bone = contrast OK (P0.1 invert path: section Bone, CTA Signal) */
.y1p-native-form button[type="submit"] {
  background: var(--y1p-signal);
  color: var(--y1p-ink);
  border: 1px solid transparent;
  border-radius: 3px;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font: 500 0.9375rem/1 Inter, Arial, sans-serif;
  cursor: pointer;
}
.y1p-native-form button[type="submit"]:hover { border-color: var(--y1p-moor); }
.y1p-native-form button[type="submit"]:focus-visible {
  outline: 3px solid var(--y1p-moor);
  outline-offset: 2px;
}
.y1p-native-form button[type="submit"]:disabled { opacity: 0.55; cursor: wait; }

.y1p-native-form .y1p-fallback { font-size: 0.875rem; color: var(--y1p-muted); margin: 0; }
.y1p-native-form .y1p-fallback a { color: var(--y1p-moor); text-decoration: underline; text-underline-offset: 3px; }

.y1p-native-form .y1p-error {
  display: none;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--y1p-danger-border);
  border-radius: 3px;
  color: #7a1f1f;
  background: var(--y1p-danger-bg);
  font-size: 0.875rem;
}
.y1p-native-form .y1p-error.is-visible { display: block; }
.y1p-native-form .y1p-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
