/*
  Styled to match footprintnj.com/contact. Tokens read directly off the live
  site's computed styles rather than eyeballed:

    Teal (buttons):  rgba(29,181,201,0.97)  ->  #1DB5C9
    Brand teal:      #2ec4b6  (site-wide accent)
    Headings:        Georgia serif, weight 100, letter-spacing 1px
    Buttons:         border-radius 300px, padding 18px 45px, 18px,
                     weight 300, letter-spacing 1px, UPPERCASE
    Body font:       proxima-nova on the live site. That's a paid Adobe
                     font Squarespace licenses and we can't embed it, so
                     Nunito Sans stands in -- closest freely-available
                     humanist sans with the same open, rounded feel.

  Per request, form fields are pill-shaped here. Note the live contact page
  actually uses square inputs (border-radius: 0) with pill buttons; pills
  throughout is a deliberate departure that ties the fields to the buttons.
*/

:root {
  --teal: #2ec4b6;
  --teal-btn: #1db5c9;
  --teal-deep: #1a8f9c;
  --ink: #1a1d21;
  --muted: #6b7178;
  --line: #e4e8ea;
  --field-bg: #fafafa;
  --field-border: #d4d9dc;
  --radius-pill: 300px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Nunito Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
}

a { color: var(--teal-deep); }

/* --- Hero -----------------------------------------------------------------
   Full-bleed photo with a teal wash, mirroring the contact page banner.
   The image is served from the practice's own Squarespace CDN.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: url("https://images.squarespace-cdn.com/content/v1/559a8084e4b0dd60321fc0a6/6dacd792-44d8-42ff-95db-189edac5484b/iStock-935990660.jpg?format=2500w") center 38% / cover no-repeat,
              var(--teal-deep);
  padding: 56px 24px 72px;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,143,156,0.86), rgba(46,196,182,0.80));
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-logo { display: inline-block; margin-bottom: 30px; }
.hero-logo img { width: 260px; max-width: 62vw; height: auto; display: block; }
.hero h1 { color: #fff; font-size: 54px; line-height: 1.15; }
.hero-sub {
  color: rgba(255,255,255,0.95);
  font-size: 17px; font-weight: 300;
  max-width: 620px; margin: 16px auto 0;
}

/* --- Layout ---------------------------------------------------------------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 44px 24px 72px; }

.banner {
  background: #fff8e1; border: 1px solid #f2dfa8; color: #6b5a24;
  padding: 11px 20px; border-radius: 14px; font-size: 14px; margin-bottom: 26px;
}

.card { margin-bottom: 34px; }
.card h2 { font-size: 26px; margin-bottom: 4px; }
.hint { font-size: 14px; color: var(--muted); margin: 0 0 18px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  color: rgba(0,0,0,0.5);
  margin-bottom: 16px;
}

/* Pill-shaped fields, matching the button geometry. */
input, select {
  display: block; width: 100%; margin-top: 7px;
  height: 52px; padding: 0 22px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-pill);
  font-family: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,0.18);
  background: #fff;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7178' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  padding-right: 46px;
  cursor: pointer;
}

/* --- Insurance carrier type-ahead ------------------------------------------ */
.payer-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  margin-top: 6px; max-height: 290px; overflow-y: auto;
  background: #fff; border: 1px solid var(--field-border); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  padding: 7px;
}
.payer-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; background: none; border: none;
  padding: 11px 16px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 15px; color: var(--ink); cursor: pointer;
}
.payer-option:hover, .payer-option.active { background: #eaf7f6; }
.payer-name { flex: 1; min-width: 0; }
.payer-flag {
  flex-shrink: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #8a6d1f; background: #fdf3d8; border-radius: var(--radius-pill); padding: 3px 10px;
}
.payer-empty { padding: 11px 16px; font-size: 13px; color: var(--muted); }

/* --- Buttons: pill, uppercase, exactly the contact page's geometry --------- */
.submit-row { text-align: center; margin-top: 8px; }
button[type="submit"] {
  background: var(--teal-btn); color: #fff; border: none;
  padding: 18px 45px; border-radius: var(--radius-pill);
  font-family: inherit; font-size: 18px; font-weight: 300;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: background 0.15s ease;
}
button[type="submit"]:hover { background: var(--teal-deep); }
button[type="submit"]:disabled { background: #a9d9d4; cursor: not-allowed; }

/* --- Result ---------------------------------------------------------------- */
.result { margin-top: 12px; }
.error { color: #b3261e; font-size: 15px; }

.plain-summary {
  background: #f7fafb; border: 1px solid var(--line);
  border-radius: 20px; padding: 32px;
}
.cost-figures { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 20px; }
.cost-amount { font-family: Georgia, serif; font-size: 44px; line-height: 1.05; color: var(--teal-deep); }
.cost-caption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cost-arrow { font-size: 13px; color: var(--muted); font-style: italic; padding-top: 20px; }
.cost-sentence { font-size: 16px; margin: 0 0 12px; color: #2a2f35; }
.cost-fineprint { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 24px 40px; text-align: center;
  font-size: 13px; color: var(--muted);
}
.site-footer p { margin: 4px 0; }

.hp { position: absolute; left: -9999px; }

@media (max-width: 640px) {
  .hero { padding: 40px 20px 52px; }
  .hero h1 { font-size: 34px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .cost-amount { font-size: 36px; }
  .plain-summary { padding: 24px; }
}

@media print {
  .hero, form, .banner, .site-footer { display: none; }
  .plain-summary { border: none; padding: 0; background: none; }
}
