:root {
  --clr-primary: #597dbf;
  --clr-secondary: #697488;
  --clr-tertiary: #364b71;
  --clr-quadiary: #91a1bd;
  --clr-quintiary: #1c293d;

  --clr-nav: black;
  --clr-background: var(--clr-secondary);
  /* --clr-background: rgb(110 110 112); */

  --decor-gradient: linear-gradient(
    126deg,
    rgba(28, 41, 61, 1) 0%,
    rgba(130, 52, 118, 1) 27%,
    rgba(255, 176, 41, 1) 80%
  );

  --header-height: 55px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--clr-background);
  font-family: montserrat, sans-serif;
  font-weight: 400;
  font-style: normal;
}

html:has(.home) {
  background-color: black;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  position: absolute;
  text-align: center;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--clr-nav);
  color: white;
}

header .logo a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 400px;
  padding-top: 3px;
  margin: auto;
  color: white;
  text-decoration: none;
}

.logo img {
  height: 40px;
}

.logo h1 {
  font-size: 2rem;
  font-family: sarah-script, sans-serif;
  font-weight: 400;
  font-style: normal;
}

nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  width: auto;
  padding-right: 3rem;
  padding-bottom: 1rem;
  background: var(--clr-nav);
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 250ms ease-out;
}

nav ul {
  list-style: none;
  text-align: left;
}

nav li {
  padding: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 100ms ease-in;
}

nav a:hover {
  color: var(--clr-primary);
}

.nav-toggle {
  position: absolute;
  top: -9999px !important;
  left: -9999px !important;
}

.nav-toggle:focus ~ .nav-toggle-label {
  outline: 2px solid var(--clr-quadiary);
}

.nav-toggle:checked ~ nav {
  transform: scale(1, 1);
}
.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in 250ms;
}

.menu-icon {
  width: 25px;
  height: 25px;
}

.nav-toggle-label {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  margin-left: 1em;
  height: 100%;
  align-items: center;
}

h1 {
  padding: 0.5rem 1rem;
}

h2 {
  margin-top: 1rem;
}

.page_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  margin-top: var(--header-height);
  padding-bottom: 1.5rem;
  margin-inline: 2rem;
  max-width: 100vw;
  min-height: calc(100vh - 115px);
  height: calc(100% - var(--header-height));
}

.center {
  align-items: center;
}
.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.results_container,
.reports_container,
.policy_container {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--clr-quadiary);
  width: 100%;
  min-width: 300px;
  min-height: 300px;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 0 30px rgb(0 0 0/0.5);
  font-size: 1rem;
}

.policy_container {
  text-align: left;
  margin-top: 3rem;
  font-size: 0.9rem;
  background-color: var(--clr-quintiary);
}

.policy_container h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.policy_container h3 {
  padding-top: 0.5rem;
}

.policy_container section {
  margin-top: 1rem;
}

.policy_container p,
.policy_container ul {
  margin: 0.5rem 0 0.5rem 1rem;
}

.policy_container li {
  margin-bottom: 0.2rem;
}

.policy_container a,
.policy_container a:visited {
  color: var(--clr-quadiary);
  text-decoration-line: underline;
  text-decoration-style: dotted;
}

.policy_container .center {
  text-align: center;
  margin: auto;
  padding-top: 1rem;
}

.results_container table {
  margin: auto;
  width: 80%;
  max-width: 700px;
}

.results_container.quotes table {
  max-width: fit-content;
}

.active_indicator {
  /* color: inherit; Inherit the color of surrounding text */
  color: white;
}

.quote_display {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  margin: 1rem;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--clr-tertiary);
  border: 2px solid rgb(255 255 255 /0.5);
  border-radius: 20px;
  /* box-shadow: inset offset-x offset-y blur-radius spread-radius color; */
  box-shadow: -5px 5px 5px 10px 10px var(--clr-quintiary);
}

.reports_container table {
  /* margin: auto; */
  margin-top: 1.3rem;
  width: 90%;
}

.reports_container .response {
  font-size: small;
}

.reports_container .origin {
  font-size: 10px;
}

.result_label {
  font-weight: bold;
  align-items: center;
  text-align: center;
}

.hidden {
  display: none;
}

body[data-hidden="false"] .hidden {
  display: block;
}

.result_table {
  display: grid;
  grid-template-columns: 20px 1fr 20px 2fr auto;
}

.result_row {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: 20px 1fr 20px 2fr auto;
  border: 1px solid var(--clr-quintiary);
  text-align: center;
  align-items: center;
  justify-content: center;
}

.result_data {
  padding-inline: 1rem;
}

.form_container {
  background: var(--clr-quadiary);
  max-width: 500px;
  width: 85%;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  box-shadow: 0 0 30px rgb(0 0 0/0.5);
  font-size: 1rem;
}

.form_container dl {
  margin-top: 1rem;
}

.form_container dt {
  /* color: var(--clr-quintiary); */
  font-weight: 500;
  padding-bottom: 0.5rem;
}

.form_container dd input,
.form_container dd select {
  font-size: 1rem;
  font-family: montserrat, sans-serif;
  min-width: 250px;
  border: none;
  outline: 2px solid rgba(55, 55, 55, 0.2);
  padding: 2px;
  border-radius: 2px;
}

.smalltext {
  font-size: 0.7rem;
}

input[type="text"],
input[type="password"] {
  /* max-width: 300px; */
  width: 100%;
}

input[type="submit"],
table a,
.actions a,
.actions button,
.reports_container button {
  border: none;
  text-decoration: none;
  background: var(--clr-quintiary);
  border-radius: 25px;
  color: white;
  padding: 0.4rem 1rem;
  cursor: pointer;
  text-align: center;
}

input[type="submit"]:hover,
table a:hover,
.actions a:hover {
  background: var(--clr-primary);
}

.actions button:hover {
  background-color: var(--clr-secondary);
}

.actions {
  display: flex;
  flex-direction: row;
  /* align-items: center; */
  justify-content: space-around;
  gap: 1rem;
  margin-top: 1.5rem;
}

td .actions {
  margin-top: 0;
}

table tr:not(:first-child):hover {
  background-color: var(--clr-secondary);
}

table td {
  --row-border-radius: 20px;
  padding: 0.5rem 1rem;
}

table td:first-child {
  padding-left: 2rem;
  border-top-left-radius: var(--row-border-radius);
  border-bottom-left-radius: var(--row-border-radius);
}

table td:last-child {
  padding-right: 2rem;
  border-top-right-radius: var(--row-border-radius);
  border-bottom-right-radius: var(--row-border-radius);
}

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

.left {
  grid-column: 1;
}

.right {
  grid-column: 2;
}

.welcome img {
  width: 100%;
  max-width: 500px;
}

.smallprint {
  font-size: 14px;
  text-transform: uppercase;
}

.decor {
  font-family: sarah-script, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 5rem;
  line-height: 0.8;
  background: var(--clr-tertiary);
  background: var(--decor-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page_title {
  margin-inline: auto;
  margin-top: 1rem;
}

@media screen and (min-width: 1120px) {
  .nav-toggle-label {
    display: none;
  }

  header {
    display: grid;
    grid-template-columns: 1fr auto minmax(600px 1fr) 1fr;
    /* align-items: center; */
    padding-top: 5px;
    text-align: left;
    justify-content: space-between;
  }

  .logo {
    all: unset;
    grid-column: 1;
    padding-left: 1.5rem;
  }

  nav {
    all: unset;
    grid-column: 3/4;
    display: flex;
    justify-content: flex-end;
    margin-right: 1rem;
  }

  nav ul {
    display: flex;
    gap: 1rem;
  }

  nav a {
    opacity: 1;
  }

  .split {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 580px) {
  .actions {
    flex-direction: column;
  }
  .results_container,
  .reports_container {
    width: 100%;
    border-radius: 0;
    margin: 0;
    margin-block: 1.5rem;
    box-shadow: none;
    font-size: 1rem;
  }
}

.home {
  background-color: black;
  background-image: url("/img/background.jpg");
  background-size: cover;
  background-position: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  width: 100vw;
  height: 100vh;
}

footer {
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: center;
  height: 60px;
  text-align: center;
  background-color: black;
  color: white;
}

footer span {
  font-size: small;
  opacity: 0.8;
  margin: 1rem;
}

#modalBackDrop {
  position: fixed;
  display: none;
  inset: 0;
  background-color: rgb(0 0 0/0.7);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.modal {
  position: fixed;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inset: 50px;
  margin: auto;
  max-width: 600px;
  max-height: 600px;
  padding: 1rem;
  background-color: var(--clr-primary);
  border: 4px solid var(--clr-quintiary);
  border-radius: 25px;
  box-shadow: 0px 0px 8px black;
  z-index: 20;
}

.modal h2 {
  justify-self: flex-start;
  /* margin: auto; */
  padding-bottom: 1.5rem;
}

.modal .details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-container {
  background: #fff;
  color: black;
  padding: 1em;
  max-height: 60vh;
  overflow: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1em;
}
