:root {
  --g: #006837;
  --g2: #2b7a45;
  --gl: #edf7f0;
  --gold: #f4b400;
  --text: #27322c;
  --muted: #68736d;
  --white: #ffffff;
  --page: #f4f7f5;
  --border: #dbe5de;
  --shadow: 0 14px 34px rgba(0, 70, 38, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body.confirmation-overlay-open {
  overflow: hidden;
}

a {
  color: inherit;
}


/* =============================
   HEADER
   ============================= */

.portal-header {
  background: var(--g);
}

.topbar {
  width: min(1400px, calc(100% - 30px));
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.topbar a {
  text-decoration: none;
}

.topbar a:hover,
.topbar a:focus {
  text-decoration: underline;
}


/* =============================
   BANNER
   ============================= */

.banner-wrap {
  width: min(1700px, calc(100% - 30px));
  margin: auto;
  padding: 8px 0 15px;
}

.banner-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}


/* =============================
   GENERAL LAYOUT
   ============================= */

.shell {
  width: min(1100px, calc(100% - 28px));
  margin: auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}


/* =============================
   WELCOME SECTION
   ============================= */

.welcome {
  padding: 32px 0 18px;
}

.welcome-card {
  padding: 32px;
  border-top: 6px solid var(--gold);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--g);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.welcome h1,
.heading h2,
.help h2 {
  margin: 0;
  color: var(--g);
}

.welcome h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.lead {
  max-width: 870px;
  font-size: 19px;
}

.button {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 22px;
  background: var(--g);
  color: var(--white);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: #00542d;
}


/* =============================
   SERVICES
   ============================= */

.services {
  padding: 18px 0 30px;
}

.heading {
  margin-bottom: 18px;
  text-align: center;
}

.heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.heading > p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px auto 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  position: relative;
  min-height: 250px;
  padding: 25px;
}

.active {
  border-top: 5px solid var(--g);
}

.number {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
}

.service h3 {
  margin: 0 0 8px;
  color: var(--g);
  font-size: 22px;
}

.service p {
  color: var(--muted);
}

.service a {
  color: var(--g);
  font-weight: 800;
}

.status {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 9px;
  background: var(--gl);
  color: var(--g);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}


/* =============================
   FORM
   ============================= */

.form-section {
  padding: 10px 0 36px;
}

.form-card {
  overflow: hidden;
}

.google-form {
  display: block;
  width: 100%;
  height: 3100px;
  border: 0;
  background: var(--white);
}


/* =============================
   HELP SECTION
   ============================= */

.help {
  padding: 0 0 38px;
}

.help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 30px;
}

.help p {
  margin-bottom: 0;
}

.contacts {
  display: flex;
  min-width: 230px;
  flex-direction: column;
  gap: 8px;
}

.contacts a {
  color: var(--g);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.contacts a:hover,
.contacts a:focus {
  text-decoration: underline;
}


/* =============================
   FOOTER
   ============================= */

.site-footer {
  background: var(--g);
  color: var(--white);
  padding: 16px 24px;
  text-align: center;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 14px;
  line-height: 1.4;
}

.footer-top strong {
  font-size: 15px;
  font-weight: 700;
}

.footer-top span {
  color: #d9eee1;
}

.footer-top em {
  color: #d9eee1;
  font-style: italic;
}

.footer-divider {
  color: var(--gold) !important;
  font-size: 17px;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 5px;
  color: #d9eee1;
  font-size: 11px;
  line-height: 1.4;
}


/* =============================
   BACK TO TOP BUTTON
   ============================= */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--g);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 22px;
}

.back-to-top.visible {
  display: block;
}


/* =============================
   SUBMISSION CONFIRMATION OVERLAY
   ============================= */

.submission-confirmation-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 35, 20, 0.72);
  overflow-y: auto;
}

.submission-confirmation-overlay[hidden] {
  display: none;
}

.submission-confirmation-dialog {
  width: 100%;
  max-width: 620px;
  padding: 34px;
  border-top: 7px solid #c89200;
  border-radius: 12px;
  background-color: var(--white);
  color: #222222;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.submission-confirmation-dialog .confirmation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: var(--g);
  color: var(--white);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}

.submission-confirmation-dialog h2 {
  margin: 0 0 18px;
  color: var(--g);
  font-size: 30px;
  line-height: 1.2;
}

.submission-confirmation-dialog p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
}

.submission-confirmation-dialog p:last-child {
  margin-bottom: 0;
}

.confirmation-button {
  min-width: 150px;
  margin-top: 24px;
  padding: 13px 24px;
  border: 0;
  border-radius: 6px;
  background-color: var(--g);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.confirmation-button:hover,
.confirmation-button:focus {
  background-color: #005d33;
  outline: 3px solid rgba(200, 146, 0, 0.4);
  outline-offset: 3px;
}


/* =============================
   TABLET
   ============================= */

@media (max-width: 820px) {

  .grid {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: auto;
  }

  .help-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .contacts {
    min-width: 0;
  }

  .banner-wrap {
    width: calc(100% - 20px);
  }

  .footer-top {
    font-size: 13px;
  }

  .footer-top strong {
    font-size: 14px;
  }
}


/* =============================
   PHONE
   ============================= */

@media (max-width: 620px) {

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .banner-wrap {
    width: calc(100% - 10px);
  }

  .welcome-card {
    padding: 23px 18px;
  }

  .google-form {
    height: 3650px;
  }

  .help-card {
    padding: 24px 19px;
  }

  .site-footer {
    padding: 16px 18px;
  }

  .footer-top {
    flex-direction: column;
    gap: 3px;
  }

  .footer-divider {
    display: none;
  }

  .footer-bottom {
    margin-top: 7px;
  }

  .submission-confirmation-overlay {
    align-items: flex-start;
    padding: 18px;
  }

  .submission-confirmation-dialog {
    margin-top: 30px;
    padding: 26px 20px;
  }

  .submission-confirmation-dialog h2 {
    font-size: 25px;
  }

  .submission-confirmation-dialog p {
    font-size: 15px;
  }

  .submission-confirmation-dialog .confirmation-icon {
    width: 56px;
    height: 56px;
    font-size: 32px;
  }

  .confirmation-button {
    width: 100%;
  }
}