/* BmoreHH root-site alignment for public pages inside /submission/. */
:root {
  --black: #000;
  --gray: #5b5d60;
  --line-dark: rgba(23, 25, 27, 0.16);
  --line-light: rgba(246, 241, 231, 0.18);
  --shadow: 10px 10px 0 rgba(238, 150, 17, 0.34);
}

body {
  line-height: 1.65;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
  width: 1.2em;
}

/* Match the root-site header and navigation. */
.site-header {
  align-items: center;
  background: var(--black);
  border-bottom: 1px solid var(--line-light);
  color: var(--bone);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  min-height: 84px;
  padding: 0 4vw;
  position: relative;
  top: auto;
  z-index: 50;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  width: fit-content;
}

.brand img {
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong,
.footer-brand strong {
  font-family: Anton, Impact, sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: rgba(246, 241, 231, 0.68);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 0;
  text-transform: uppercase;
}

.site-header .desktop-nav {
  align-items: center;
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 2.2rem);
}

.site-header .desktop-nav a,
.footer-links a {
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0;
  text-transform: uppercase;
}

.site-header .desktop-nav a,
.site-header .desktop-nav a:last-child {
  border-bottom: 2px solid transparent;
  padding: 1.85rem 0;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible,
.site-header .desktop-nav a.active {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}

.header-cta,
.button {
  align-items: center;
  display: inline-flex;
  font-size: 0.71rem;
  font-weight: 700;
  gap: 0.75rem;
  letter-spacing: 0.09em;
  padding: 0.95rem 1.2rem;
  text-transform: uppercase;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.header-cta {
  background: var(--orange);
  color: var(--black);
  justify-self: end;
  text-decoration: none;
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
  box-shadow: 5px 5px 0 currentColor;
  transform: translate(-3px, -3px);
}

.mobile-menu {
  display: none;
  justify-self: end;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  background: var(--bone);
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 27px;
}

.site-header .mobile-menu nav {
  background: var(--black);
  border-top: 1px solid var(--line-light);
  display: grid;
  left: 0;
  padding: 1rem 4vw 2rem;
  position: absolute;
  right: 0;
  top: 83px;
}

.site-header .mobile-menu nav a,
.site-header .mobile-menu nav a:last-child {
  background: transparent;
  border-bottom: 1px solid var(--line-light);
  color: var(--bone);
  font-weight: 700;
  padding: 0.9rem 0;
  text-transform: uppercase;
}

.site-header .mobile-menu nav a:hover,
.site-header .mobile-menu nav a:focus-visible {
  color: var(--orange);
}

/* Give submission and update pages the same interior-page hero treatment. */
.form-page {
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.form-hero {
  align-items: end;
  background: var(--black);
  color: var(--bone);
  display: grid;
  gap: 0 clamp(3rem, 8vw, 8rem);
  grid-template-areas:
    "eyebrow copy"
    "title copy";
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  min-height: 470px;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) 4vw;
  position: relative;
}

.form-hero::after {
  color: rgba(238, 150, 17, 0.1);
  content: "410";
  font-family: Anton, sans-serif;
  font-size: clamp(10rem, 25vw, 29rem);
  line-height: 0.7;
  position: absolute;
  right: 1%;
  top: 15%;
}

.form-hero > * {
  position: relative;
  z-index: 2;
}

.form-hero > .eyebrow {
  grid-area: eyebrow;
}

.form-hero h1 {
  font-size: clamp(4.8rem, 9vw, 10rem);
  grid-area: title;
  line-height: 0.94;
  margin: 0;
}

.form-hero > p:last-child {
  align-self: end;
  border-left: 4px solid var(--orange);
  color: rgba(246, 241, 231, 0.66);
  font-size: 1rem;
  grid-area: copy;
  margin: 0;
  max-width: 620px;
  padding-left: 1.4rem;
}

.submission-form,
.form-card,
.form-errors {
  width: min(1120px, calc(100% - 2rem));
}

.submission-form {
  margin-top: clamp(3rem, 5vw, 5rem);
}

.form-card {
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--orange);
  box-shadow: none;
  margin-top: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
}

.form-section-heading {
  align-items: start;
  border-bottom: 1px solid var(--line-dark);
  gap: 1.1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

.form-section-heading > span {
  color: var(--orange);
  font-size: 1.8rem;
}

.form-section-heading h2 {
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.form-section-heading p {
  color: var(--gray);
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

.form-grid {
  gap: 1.2rem 1.5rem;
}

.form-card label > span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.form-card input,
.form-card textarea,
.form-card select {
  background: var(--bone);
  border: 1px solid rgba(23, 25, 27, 0.34);
  border-radius: 0;
  color: var(--charcoal);
  padding: 0.9rem 1rem;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 4px var(--orange);
  outline: 0;
}

.confirmation-list label {
  background: var(--bone);
  border: 1px solid var(--line-dark);
  padding: 0.9rem 1rem;
}

.submit-button {
  margin-top: 2rem;
}

.form-errors {
  margin-top: 2rem;
}

.success-card {
  margin-top: clamp(3rem, 5vw, 5rem);
}

/* Match the root-site footer while preserving the small agency icon fix. */
.site-footer {
  align-items: end;
  background: var(--black);
  color: var(--bone);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto 1fr;
  padding: 3rem 4vw;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.footer-brand > img {
  height: 58px;
  width: 58px;
}

.footer-brand div {
  display: grid;
}

.footer-brand span,
.site-footer > p {
  color: rgba(246, 241, 231, 0.58);
  font-size: 0.64rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}

.site-footer .footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
}

.site-footer > p {
  grid-column: auto;
  justify-self: end;
  margin: 0;
  text-align: right;
}

.agency-credit {
  align-items: center;
  color: rgba(246, 241, 231, 0.56);
  display: inline-flex;
  font-size: 0.56rem;
  gap: 0.5rem;
  grid-column: 1 / -1;
  justify-self: end;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-credit strong {
  color: var(--bone);
}

.site-footer .agency-credit img {
  display: block;
  flex: 0 0 14px;
  height: 14px !important;
  max-height: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  min-width: 14px !important;
  object-fit: contain;
  width: 14px !important;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 0;
    grid-template-columns: 1fr auto;
    min-height: 72px;
    padding: 0 1rem;
  }

  .brand img {
    height: 42px;
    width: 42px;
  }

  .brand-copy strong {
    font-size: 1.35rem;
  }

  .site-header .mobile-menu nav {
    gap: 0;
    top: 71px;
  }

  .form-hero {
    align-items: start;
    gap: 1.5rem;
    grid-template-areas:
      "eyebrow"
      "title"
      "copy";
    grid-template-columns: 1fr;
    min-height: 440px;
    padding: 4rem 1rem;
  }

  .form-hero h1 {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  .form-hero > p:last-child {
    align-self: start;
  }

  .submission-form,
  .form-card,
  .form-errors {
    width: min(1120px, calc(100% - 2rem));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card .wide {
    grid-column: auto;
  }

  .site-footer {
    align-items: start;
    grid-template-columns: 1fr;
    padding: 2.5rem 1rem;
  }

  .site-footer .footer-links {
    justify-content: start;
  }

  .site-footer > p,
  .agency-credit {
    grid-column: auto;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
