/* GDY intake form, in the design language of gdyhousing.com:
   navy #2b4e78 / #355d8f, light grey #f7f7f7, coral accent #f26554,
   Poppins for headings, DM Sans for text, crisp square corners.
   Fonts and logo are served from this server: the page loads nothing
   from anywhere else. */
@font-face {
  font-family: "DM Sans";
  src: url(/static/fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url(/static/fonts/poppins-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url(/static/fonts/poppins-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #2b4e78;
  --blue: #355d8f;
  --coral: #f26554;
  --grey: #f7f7f7;
  --line: #dde2e8;
  --text: #313131;
  --muted: #626262;
  --white: #ffffff;
  --error: #c0392b;
  --error-bg: #fdefed;
  --heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grey);
  color: var(--text);
  font: 16px/1.6 var(--body);
}
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* Header: the logo's own background is #355d8f, so it melts into the bar
   and hangs down over the hero like a tab. */
.top { background: var(--blue); height: 64px; position: relative; z-index: 2; }
.top-row { position: relative; height: 64px; }
.logo { position: absolute; top: 0; left: 16px; width: 80px; height: auto; display: block; }

.hero { background: var(--navy); color: var(--white); padding: 64px 0 40px; }
.hero h1 {
  font: 600 36px/1.2 var(--heading);
  margin: 0 0 12px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, .25);
}
.hero .kicker {
  font: 500 13px/1 var(--heading);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--coral);
}
.hero .intro { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .85); }

main.wrap { padding-top: 32px; padding-bottom: 48px; }

h2 { font: 600 20px/1.3 var(--heading); color: var(--navy); margin: 0 0 6px; }
.help { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

.card {
  background: var(--white);
  border-top: 3px solid var(--blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  padding: 28px;
  margin: 0 0 20px;
}
.card h2 + .grid, .card h2 + .services { margin-top: 18px; }
.message p { margin: 0 0 12px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.label { font-size: 14px; font-weight: 500; color: var(--text); }
.req { color: var(--coral); }

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 12px;
  transition: border-color .15s;
}
input[type="text"]:hover, input[type="email"]:hover, input[type="tel"]:hover {
  border-color: #b9c4d1;
}
input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 93, 143, .18);
}
.money { text-align: right; }

.choice { display: flex; gap: 28px; padding-top: 4px; }
.choice label, .check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] {
  width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none;
}
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }

.total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
}
.total span { font: 500 15px var(--heading); color: var(--muted); }
.total strong { font: 600 22px var(--heading); color: var(--navy); }

.has-error input[type="text"], .has-error input[type="email"], .has-error input[type="tel"] {
  border-color: var(--error);
}
.error { color: var(--error); font-size: 13px; }
.notice {
  background: var(--error-bg);
  border-left: 4px solid var(--coral);
  padding: 14px 18px;
  margin: 0 0 20px;
}

button, .button {
  display: inline-block;
  margin-top: 24px;
  font: 500 15px/1 var(--heading);
  letter-spacing: .03em;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 2px;
  padding: 16px 34px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
button:hover, .button:hover { background: var(--blue); }
button:focus-visible, .button:focus-visible { outline: 3px solid rgba(53, 93, 143, .35); outline-offset: 2px; }
button:disabled { opacity: .65; cursor: wait; }

a { color: var(--blue); }

.foot { background: var(--navy); color: rgba(255, 255, 255, .75); font-size: 13px; padding: 22px 0; }

/* The honeypot: off-screen for people, still in the page for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .grid, .services { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .hero { padding: 56px 0 32px; }
  .hero h1 { font-size: 28px; }
  .logo { width: 64px; }
  button { width: 100%; }
}
