/*
 * The contact form, /contact/ and /es/contact/. Shared by both so the two languages cannot
 * drift apart in how they look; the words are in each page. Same palette as /setup/.
 */
:root {
  --bg: #FFFFFF;
  --surface: #F5F8FD;
  --line: #E4EAF3;
  --field: #CBD5E3;
  --text: #0E1A2B;
  --muted: #56677F;
  --accent: #2F62E8;
  --bad: #B42318;
}
* { box-sizing: border-box; }
/* The form is display:flex, which beats the browser's own [hidden] rule — without this the form
   stays on screen above "Message sent". */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
.wrap { max-width: 560px; margin: 0 auto; padding: 28px 18px 48px; }

.home {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}
.home:hover { color: var(--text); }

h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.app-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
}
.app-note b { color: var(--text); }

form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 700; }
input, textarea {
  font: inherit;
  font-size: 16px; /* 16px or more, or iOS zooms the page when the field is tapped */
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--field);
  border-radius: 10px;
  padding: 12px 13px;
  width: 100%;
}
input { min-height: 48px; }
textarea { resize: vertical; min-height: 150px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #7A889C; }
[aria-invalid="true"] { border-color: var(--bad); }
.error { color: var(--bad); font-size: 13.5px; margin: 0; }
.error:empty { display: none; }

button {
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  min-height: 50px;
  cursor: pointer;
}
button[disabled] { opacity: .7; cursor: default; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }

/* Off-screen, not display:none — some form bots skip fields that are hidden that way. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.sent {
  background: #EEF8F1;
  border: 1px solid #CFEBD8;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.sent svg { flex: 0 0 26px; margin-top: 1px; }
.sent h2 { margin: 0 0 4px; font-size: 16.5px; color: #11331F; }
.sent p { margin: 0; font-size: 14.5px; color: #2E5A3D; overflow-wrap: anywhere; }
.again { display: inline-block; margin-top: 20px; font-size: 14.5px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
}
footer .here { color: var(--text); font-weight: 700; text-decoration: none; }
