@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/public-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/public-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/public-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: Merriweather;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/merriweather-400.woff2") format("woff2");
}

@font-face {
  font-family: Merriweather;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/merriweather-700.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #1b1b1b;
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
p,
ul,
ol,
dl,
figure,
fieldset {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.75rem, 4.4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

p,
li,
dd {
  overflow-wrap: break-word;
}

a {
  color: #005ea2;
}

a:hover {
  color: #1a4480;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #005ea2;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: #fff;
  color: #1b1b1b;
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

.skip:focus {
  top: 0.5rem;
}

.bar,
.top-grid,
.sheet {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 3.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dfe1e2;
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand a {
  color: #1b1b1b;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: underline;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #1b1b1b;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid #1b1b1b;
  border-radius: 2px;
  background: #fff;
  color: #1b1b1b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle:hover {
  background: #f0f0f0;
}

.nav-toggle:active {
  background: #dfe1e2;
}

.lede {
  font-family: Merriweather, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-copy {
  padding-top: 1.25rem;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
}

.button,
button.button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 2px solid #005ea2;
  border-radius: 2px;
  background: #005ea2;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

a.button:hover,
button.button:hover {
  background: #1a4480;
  border-color: #1a4480;
  color: #fff;
}

a.button:active,
button.button:active {
  background: #162e51;
  border-color: #162e51;
}

button.button:disabled,
button.button[aria-busy="true"] {
  background: #c9c9c9;
  border-color: #c9c9c9;
  color: #1b1b1b;
  cursor: not-allowed;
}

.tool,
.limit,
.inputs,
.visible,
.question,
.policies,
.sheet {
  padding-top: 1.5rem;
}

.section-lead,
.form-note,
.help {
  margin-bottom: 0.75rem;
}

.tool-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-photo {
  margin: 0;
  width: 7.5rem;
}

.tool-photo img {
  width: 7.5rem;
  height: 10rem;
  object-fit: cover;
}

.step {
  border: 0;
  border-top: 1px solid #dfe1e2;
  margin: 0;
  padding: 1.1rem 0 0.25rem;
}

legend {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0;
}

.step-num {
  color: #005ea2;
  font-weight: 700;
}

.field {
  margin: 0 0 0.9rem;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 2px solid #1b1b1b;
  border-radius: 2px;
  background: #fff;
  color: #1b1b1b;
  font: inherit;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: #b50909;
}

.tool-action {
  margin: 0.5rem 0 1rem;
}

.figures {
  margin-top: 0.5rem;
}

.empty-state,
.figure {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 2px solid #1b1b1b;
}

.figure-label,
.rate-line {
  display: block;
  font-weight: 600;
}

.figure strong {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
}

.rate-line {
  margin: 0;
  padding-bottom: 0.5rem;
  font-weight: 400;
}

.input-list {
  margin: 0;
}

.input-list div {
  padding: 0.85rem 0;
  border-top: 1px solid #dfe1e2;
}

.input-list dt {
  font-weight: 700;
}

.input-list dd {
  margin: 0.25rem 0 0;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visible-photo {
  margin: 0;
  width: min(100%, 14rem);
}

.visible-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.form-errors {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #b50909;
}

.form-errors a {
  color: #b50909;
}

.notice-list {
  margin: 0;
  padding-left: 1.2rem;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid #dfe1e2;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 0 2.5rem;
}

.site-footer .nav-list {
  flex-direction: column;
  gap: 0.4rem;
}

.contact-block p {
  margin: 0.15rem 0;
}

.sheet h2 {
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav.is-open .nav-list {
    flex-direction: column;
    padding-bottom: 0.75rem;
  }
}

@media (min-width: 375px) and (max-width: 767px) {
  .bar,
  .top-grid,
  .sheet {
    width: min(40rem, calc(100% - 2.25rem));
  }
}

@media (min-width: 768px) {
  .bar,
  .top-grid,
  .sheet {
    width: min(44rem, calc(100% - 3rem));
  }

  .split {
    flex-direction: row;
    align-items: flex-start;
  }

  .visible-photo {
    flex: 0 0 14rem;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .bar,
  .sheet {
    width: min(72rem, calc(100% - 4rem));
  }

  .top-grid {
    display: grid;
    width: min(72rem, calc(100% - 4rem));
    grid-template-columns: minmax(0, 42rem) minmax(16rem, 22rem);
    column-gap: 2.5rem;
    align-items: start;
  }

  .hero {
    display: contents;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .tool { grid-column: 1; grid-row: 2; }
  .limit { grid-column: 1; grid-row: 3; }
  .inputs { grid-column: 1; grid-row: 4; }
  .visible { grid-column: 1; grid-row: 5; }
  .question { grid-column: 1; grid-row: 6; }
  .policies { grid-column: 1; grid-row: 7; }

  .hero-photo {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 1.25rem;
    position: sticky;
    top: 1rem;
  }
}

@media (min-width: 1440px) {
  .bar,
  .sheet,
  .top-grid {
    width: min(76rem, calc(100% - 6rem));
  }
}

@media (max-width: 1023px) {
  .top-grid {
    display: flex;
    flex-direction: column;
  }

  .hero {
    display: contents;
  }

  .hero-copy { order: 1; }
  .tool { order: 2; }
  .limit { order: 3; }
  .inputs { order: 4; }
  .visible { order: 5; }
  .question { order: 6; }
  .policies { order: 7; }
  .hero-photo { order: 8; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.footer-label {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.footer-groups {
  display: grid;
  gap: 1.25rem 1.5rem;
}

.site-footer .footer-grid {
  flex-direction: column;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1b1b1b;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  width: auto;
}

.text-button:hover {
  color: #1a4480;
  text-decoration: underline;
}

.button-outline,
button.button-outline {
  background: #fff;
  color: #005ea2;
}

.button-outline:hover,
button.button-outline:hover {
  background: #f0f0f0;
  color: #1a4480;
}

.result-note {
  margin: 0 0 0.75rem;
}

.privacy-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #fff;
  border-top: 2px solid #1b1b1b;
  max-height: 70vh;
  overflow: auto;
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner-inner {
  padding: 1rem 0 1.1rem;
}

.privacy-banner h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.consent-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.55rem 0;
}

.consent-option input {
  width: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin-top: 0.2rem;
}

@media (min-width: 768px) {
  .footer-groups {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
