:root {
  --color-main-white      : #f9f4f4;
  --color-main-black      : #141414;
  --color-main-green      : #22372b;
  --color-main-light-green: #A3B2A4;
  --color-main-pink       : #EA3C71;
  --color-main-red        : #DD5665;
  --color-main-orange     : #FB6F3F;
  --color-contrast-green  : #bfde22;

  --wrapper-spacing-x: 2rem;

  --header-height-mobile : 3.5rem;
  --header-height-desktop: 5rem;
  --header-height        : var(--header-height-mobile);
  --button-height        : 3.5rem;
  --button-line-height   : 1.25rem;
  --button-font-size     : 1rem;
}

@media (min-width: 768px) {
  :root {
    --header-height: var(--header-height-desktop);
  }
}

@font-face {
  font-family : Volvo Novum;
  src         : url(/fonts/VolvoNovum3-Regular.woff2) format("woff2"), url(/fonts/VolvoNovum3-Regular.woff) format("woff");
  font-weight : 400;
  font-style  : normal;
  font-display: swap;
}

@font-face {
  font-family : Volvo Broad;
  src         : url(/fonts/VolvoBroad.woff2) format("woff2"), url(/fonts/VolvoBroad.woff) format("woff");
  font-weight : 400;
  font-style  : normal;
  font-display: swap
}

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

html,
body {
  font-family: 'Volvo Novum';
  font-weight: normal;
  font-style : normal;
  color      : var(--color-main-white);
  margin     : 0;
  background : var(--color-main-black);
  font-size  : 16px;
  line-height: 1.5rem;
}

html,
body {
  height: 100%;
  width : 100%;
}

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

#root {
  max-width: 1200px;
  margin   : 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-style : normal;

  max-width    : 100%;
  min-width    : 0;
  margin       : 0;
  overflow-wrap: break-word;
}

div.app {
  height        : fill-available;
  display       : flex;
  flex-direction: column;
}

main {
  display        : flex;
  justify-content: center;
  align-items    : center;

  height: 100%;
  width : 100%;
  margin: 0 auto;

  background: var(--color-main-green);

  @media (min-width: 768px) {
    height: calc(100% - var(--header-height));
  }

  /* Mac Captive portal window
  @media (aspect-ratio: 225/128) {
  }
  */
}

header {
  padding    : 0 var(--wrapper-spacing-x);
  height     : var(--header-height);
  min-height : var(--header-height);
  display    : flex;
  align-items: center;
  width      : 100%;
  max-width  : 1200px;
}

header div.logo {
  user-select: none;

  padding-top: 0.8rem;

  @media (min-width: 768px) {
    padding-top: 0;
  }
}

header div.logo br {
  display: none;

  @media (min-width: 768px) {
    display: block;
  }
}


header div.logo {
  font-size              : 1.3rem;
  font-family            : 'Volvo Novum';
  font-feature-settings  : normal;
  font-variation-settings: normal;
  line-height            : 1;
  text-transform         : uppercase;
  text-decoration        : none;
  color                  : var(--color-main-white) !important;
  min-width              : 50%;

  @media (min-width: 768px) {
    font-size: 1.5rem;
  }
}

main {
  position: relative;
}

button {
  height       : var(--button-height);
  line-height  : var(--button-line-height);
  border       : 0;
  border-radius: 4px;
  font-size    : var(--button-font-size);
  cursor       : pointer;
  width        : 100%;
  font-weight  : normal;
  font-family  : 'Volvo Novum';
}

button:disabled {
  opacity: 0.6;
  cursor : not-allowed;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-4px);
  }

  40% {
    transform: translateX(4px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }

  100% {
    transform: translateX(0);
  }
}

div.home {
  margin    : 0 auto;
  max-width : 465px;
  width     : 100%;
  padding   : var(--wrapper-spacing-x);
  background: var(--color-main-green);

  @media (min-width: 768px) {
    max-width            : 900px;
    display              : grid;
    grid-template-columns: 1fr 1fr;
    gap                  : 2rem;
    align-items          : start;
  }
}

div.home .heading {
  font-size    : 1.875rem;
  line-height  : 2.25rem;
  margin-bottom: 1.5rem;

  @media (min-width: 768px) {
    grid-column: 1 / -1;
  }
}

div.home .heading br {
  display: block;

  @media (min-width: 768px) {
    display: none;
  }
}

div.home p {
  margin-bottom: 1rem;
}

div.home div[role="alert"] {
  background-color: #ea6868;
  padding         : 0.5rem 0.7rem;
  margin          : 0 0 0.7rem;
  border-radius   : 4px;
}

div.home form {
  display       : flex;
  flex-direction: column;
  margin        : 0;
  max-width     : 400px;

  @media (min-width: 768px) {
    max-width: 100%;
  }
}

.sr-only {
  position   : absolute;
  width      : 1px;
  height     : 1px;
  padding    : 0;
  margin     : -1px;
  overflow   : hidden;
  clip       : rect(0, 0, 0, 0);
  white-space: nowrap;
  border     : 0;
}

div.home form .form-group {
  margin-bottom: 1rem;
}

div.home form label {
  font-weight: bold;
}


div.home form input[type="email"] {
  outline           : none;
  -webkit-box-shadow: none;
  box-shadow        : none;

  border-color: transparent;

  border-radius   : .25rem;
  border-width    : 2px;
  color           : var(--color-main-black);
  display         : block;
  font-size       : 1rem;
  line-height     : 1.5rem;
  padding         : .875rem 2.5rem .875rem 1rem;
  width           : 100%;
  background-color: #fff;

}

div.home form input[type="email"]:focus-visible {
  outline       : 3px solid var(--color-contrast-green);
  outline-offset: 2px;
}

div.home form input.invalid {
  box-shadow: var(--color-main-green) 0px 0px 0px 1px, var(--color-main-red) 0px 0px 0px 3px, var(--color-main-green) 0px 0px 0px 0px
}

div.home form span:has(input[type="email"]) {
  position: relative;
}

div.home form span:has(input[type="email"])::after {
  content : "*";
  position: absolute;
  width   : 2.5rem;
  height  : 100%;
  margin  : 0;
  border  : 0;

  color: var(--color-contrast-green);
  top  : 0;
  right: 0;

  font-size  : 16px;
  line-height: 2rem;
  text-align : center;
  padding    : .875rem 0 .875rem 0;
}

div.home form span:has(input[type="email"].invalid)::after {
  content    : "\24D8";
  color      : var(--color-main-red);
  line-height: 1.8rem;
}

div.home form input[type="radio"] {
  height      : 1.25rem;
  margin-right: .5rem;
  width       : 1.25rem;
}

div.home form input[type="radio"]:checked {
  accent-color: var(--color-contrast-green);
}

div.home form button {
  background: var(--color-contrast-green);
  color     : var(--color-main-black);
}

div.home form button:disabled {
  background: var(--color-main-light-green);
}

div.home form input[type="checkbox"] {
  cursor      : pointer;
  height      : 1.25rem;
  margin-right: 0.7rem;
  width       : 1.25rem;
  accent-color: var(--color-contrast-green)
}

div.home form label:has(input[type="checkbox"]) {
  align-items   : center;
  display       : flex;
  flex-direction: row;
  font-size     : 1rem;
  font-weight   : 500;
  line-height   : 1.25rem;
  margin-bottom : 0;
  padding-bottom: .75rem;
  padding-top   : .75rem;
}

div.home form label:has(input[type="checkbox"]) a {
  color          : #FFF !important;
  text-decoration: none;
  border         : 0;

  text-decoration          : underline;
  text-underline-offset    : 7px;
  text-decoration-color    : var(--color-contrast-green);
  text-decoration-thickness: 4px;
}


div.home a.info,
div.home a.info:visited,
div.home a.info:active {
  color          : var(--color-main-white);
  text-decoration: none;
  padding-left   : 5px;
}


div.home form label {
  display: flex;
  cursor : pointer;
}

div.home form label.form--column {
  flex-direction: column;
}

div.home form label.form--row {
  flex-direction: row;
}

div.home form fieldset {
  display       : flex;
  flex-direction: column;
  border        : none;
  padding       : 0;
}

div.home form fieldset label {
  align-items   : center;
  display       : flex;
  font-size     : 1rem;
  font-weight   : 500;
  line-height   : 1.25rem;
  margin-bottom : 0;
  padding-bottom: .75rem;
  padding-top   : .75rem;
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
#modal-backdrop {
  position  : fixed;
  inset     : 0;
  background: rgba(0, 0, 0, 0.6);
  z-index   : 100;
}

#modal-backdrop[hidden],
#policy-modal[hidden] {
  display: none;
}

#policy-modal {
  position       : fixed;
  inset          : 0;
  z-index        : 101;
  display        : flex;
  align-items    : center;
  justify-content: center;
  padding        : 1rem;
}

.modal-dialog {
  background    : var(--color-main-green);
  color         : var(--color-main-white);
  border-radius : 4px;
  max-width     : 600px;
  width         : 100%;
  max-height    : 85vh;
  display       : flex;
  flex-direction: column;
}

.modal-header {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 1rem 1.25rem;
  border-bottom  : 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink    : 0;
}

.modal-header h2 {
  font-size  : 1.25rem;
  line-height: 1.5rem;
}

#close-policy {
  background     : transparent;
  border         : none;
  color          : var(--color-main-white);
  cursor         : pointer;
  font-size      : 1.25rem;
  height         : 2rem;
  width          : 2rem;
  border-radius  : 4px;
  display        : flex;
  align-items    : center;
  justify-content: center;
  flex-shrink    : 0;
}

#close-policy:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  overflow-y : auto;
  padding    : 1.25rem;
  line-height: 1.6;
}

.modal-body h3 {
  font-size     : 1rem;
  font-weight   : 700;
  text-transform: uppercase;
  margin-top    : 1.25rem;
  margin-bottom : 0.5rem;
}

.modal-body p {
  margin-bottom: 0.75rem;
}

.modal-body ul {
  margin-left  : 1.25rem;
  margin-bottom: 0.75rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
}

.modal-body a {
  color: var(--color-contrast-green);
}