:root {
  --navy: #172855;
  --blue-100: #e7f4f8;
  --blue-200: #c5e5f1;
  --peach-100: #f8d2bd;
  --peach-200: #f8b895;
  --yellow: #ffdf54;
  --coral: #ff555a;
  --paper: #fffaf7;
  --shadow: rgba(23, 40, 85, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--blue-100);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-nav {
  top: 12px;
  left: 50%;
  width: min(1180px, calc(100% - 24px));
  transform: translateX(-50%);
  border: 2px solid rgba(23, 40, 85, 0.12);
  border-radius: 28px;
  background: rgba(255, 250, 247, 0.96);
  box-shadow: 0 12px 28px var(--shadow);
}

.navbar-brand {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
  padding-left: 2rem;
}

.nav-link {
  margin: 2px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 900;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--navy);
  background: var(--yellow);
}

.nav-cta {
  margin: 2px 0 2px 8px;
  padding: 8px 16px;
}

.section-space {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.hero {
  padding-top: 144px;
  background:
    linear-gradient(150deg, transparent 0 55%, rgba(255, 250, 247, 0.38) 55%),
    linear-gradient(var(--blue-100) 0 150px, var(--peach-200) 150px);
}

.section-peach {
  background:
    linear-gradient(150deg, transparent 0 52%, rgba(255, 250, 247, 0.35) 52%),
    var(--peach-200);
}

.section-blue {
  background:
    linear-gradient(rgba(255, 255, 255, 0.32), transparent),
    var(--blue-200);
}

.section-contacts {
  background:
    linear-gradient(150deg, transparent 0 52%, rgba(255, 250, 247, 0.36) 52%),
    var(--peach-100);
}

.bunting {
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  border-top: 7px solid var(--yellow);
  transform: rotate(1deg);
  pointer-events: none;
}

.bunting span {
  width: 52px;
  height: 86px;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
}

.bunting span:nth-child(3n + 2) {
  background: var(--coral);
}

.bunting span:nth-child(3n) {
  background: var(--yellow);
}

h1,
h2 {
  width: fit-content;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 20px;
  color: var(--navy);
  background: var(--paper);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: 3.6rem;
}

h2 {
  margin: 0 0 28px;
  font-size: 2.45rem;
}

.pill-note {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: 1.75rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.lead-copy,
.section-copy {
  max-width: 760px;
  font-size: 1.32rem;
  line-height: 1.55;
}

.section-copy {
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  border-radius: 999px;
  font-weight: 900;
}

.btn-coral {
  border-color: var(--coral);
  color: var(--paper);
  background: var(--coral);
}

.btn-coral:hover,
.btn-coral:focus {
  border-color: #e84348;
  color: var(--paper);
  background: #e84348;
}

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus,
.btn-navy {
  border-color: var(--navy);
  color: var(--paper);
  background: var(--navy);
}

.btn-navy:hover,
.btn-navy:focus {
  border-color: #0f1c42;
  color: var(--paper);
  background: #0f1c42;
}

.child-panel {
  display: grid;
  min-height: 360px;
  margin: 0;
  padding: 24px;
  place-items: end center;
}

.child-panel img {
  width: min(100%, 430px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 0 rgba(23, 40, 85, 0.08));
}

.hero-child {
  min-height: 410px;
}

.section-head {
  display: flex;
  justify-content: center;
  text-align: center;
}

.info-card,
.contact-card,
.cta-box {
  height: 100%;
  border: 3px solid rgba(23, 40, 85, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 247, 0.94);
  box-shadow: 0 10px 0 rgba(23, 40, 85, 0.08);
}

.info-card {
  padding: 24px;
  font-size: 1.18rem;
  line-height: 1.45;
}

.contact-card {
  padding: 20px;
}

.contact-card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  font-weight: 900;
}

.contact-card p {
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-card a {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.contact-child {
  min-height: 300px;
  margin-bottom: 20px;
}

.contact-child img {
  width: min(70%, 240px);
}

.cta-box {
  height: auto;
  padding: 20px;
}

.cta-box p {
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.cta-box .btn {
  margin: 4px 8px 4px 0;
}

.registration-modal {
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  background: var(--paper);
  overflow: hidden;
}

.registration-modal form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 56px);
  min-height: 0;
}

.registration-modal .modal-header,
.registration-modal .modal-footer {
  flex: 0 0 auto;
  border-color: rgba(23, 40, 85, 0.16);
  background: var(--blue-100);
}

.registration-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.registration-modal .modal-title {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.9rem;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-intro,
.form-section,
.form-thanks {
  padding: 22px;
  border: 2px solid rgba(23, 40, 85, 0.1);
  border-radius: 8px;
  background: #fff;
}

.form-intro,
.form-section {
  margin-bottom: 18px;
}

.form-intro h3,
.form-section legend {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 900;
}

.form-intro p,
.form-section p,
.form-thanks p {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.form-section legend {
  float: none;
  width: auto;
}

.form-label,
.form-check-label {
  font-weight: 800;
}

.form-control {
  border: 2px solid rgba(23, 40, 85, 0.18);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
}

.form-control:focus {
  border-color: #bfc6cf;
  box-shadow: 0 0 0 0.2rem rgba(191, 198, 207, 0.28);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  min-height: 38px;
  align-items: center;
}

.results-page {
  min-height: 100vh;
  background: var(--blue-200);
}

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.results-container {
  max-width: none;
  padding-right: 24px;
  padding-left: 24px;
}

.login-panel,
.results-panel {
  padding: 24px;
  border: 3px solid rgba(23, 40, 85, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 247, 0.96);
  box-shadow: 0 10px 0 rgba(23, 40, 85, 0.08);
}

.password-form {
  max-width: 520px;
}

.table-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.table-toolbar h2 {
  margin-bottom: 0;
}

.table-toolbar p {
  margin: 12px 0 0;
}

.results-settings {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.settings-card {
  padding: 18px;
  border: 2px solid rgba(23, 40, 85, 0.1);
  border-radius: 8px;
  background: rgba(231, 244, 248, 0.86);
}

.settings-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 900;
}

.results-table {
  width: 100%;
  min-width: 1680px;
}

.results-table th {
  white-space: nowrap;
}

.results-table th a {
  color: var(--navy);
  text-decoration: none;
}

.results-table th a:hover,
.results-table th a:focus {
  text-decoration: underline;
}

.row-action-form {
  display: inline-block;
  margin: 2px 4px 2px 0;
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 86px;
  }

  .site-nav {
    border-radius: 22px;
  }

  .navbar-collapse {
    padding-top: 10px;
  }

  .nav-cta {
    margin: 8px 0 0;
  }

  .section-space {
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-copy {
    font-size: 1.38rem;
  }

  .lead-copy,
  .section-copy {
    font-size: 1.16rem;
  }

  .child-panel,
  .hero-child {
    min-height: 320px;
  }

  .child-panel img {
    width: min(80%, 390px);
  }

  .registration-modal .modal-title {
    font-size: 1.55rem;
  }

  .results-header,
  .table-toolbar {
    flex-direction: column;
  }

  .results-container {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 575.98px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-nav {
    top: 8px;
    width: calc(100% - 16px);
  }

  .navbar-brand {
    font-size: 1.12rem;
  }

  .section-space {
    padding: 64px 0;
  }

  .hero {
    padding-top: 116px;
  }

  .bunting {
    top: 18px;
  }

  .bunting span {
    width: 30px;
    height: 52px;
  }

  h1,
  h2 {
    border-radius: 16px;
  }

  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-copy {
    font-size: 1.15rem;
  }

  .lead-copy,
  .section-copy,
  .info-card {
    font-size: 1.05rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .child-panel,
  .hero-child {
    min-height: 250px;
    padding: 16px;
    background-size: 95px 95px;
  }

  .child-panel img,
  .contact-child img {
    width: min(92%, 320px);
  }

  .form-intro,
  .form-section,
  .form-thanks {
    padding: 16px;
  }

  .registration-modal .modal-title {
    font-size: 1.35rem;
  }
}

@media print {
  .site-nav,
  .bunting,
  .child-panel,
  .btn,
  button {
    display: none !important;
  }

  html,
  body {
    background: #fff !important;
  }

  .section-space,
  .hero {
    padding: 24px 0 !important;
    background: #fff !important;
  }

  .info-card,
  .contact-card,
  .cta-box,
  .login-panel,
  .results-panel,
  .form-intro,
  .form-section,
  .form-thanks {
    box-shadow: none !important;
  }
}
