:root {
  --container-max-width: 1240px;
  --container-gutter: 20px;

  /* Colors */
  --color-transparent: #00000000;

  --color-spotlight: #ffbe00;
  --color-air: #ebf8ff;
  --color-sky: #3091e2;
  --color-ocean: #003c72;
  --color-white: #ffffff;
  --color-light-gray: #f5f0f0;
  --color-mid-gray: #969691;
  --color-charcoal: #282828;
  --color-black: #000000;

  --color-gold-01: #fff4d7;
  --color-gold-02: #ffdc7c;
  --color-gold-03: #d28303;
  --color-green-01: #94d4b7;
  --color-green-02: #4ea383;
  --color-green-03: #015240;
  --color-red-01: #f7a48e;
  --color-red-02: #f06e60;
  --color-red-03: #883428;
  --color-violet-01: #dea9e1;
  --color-violet-02: #be7ddc;
  --color-violet-03: #622970;

  --color-emergency-red: #ed0000;
  --color-slate: #d7dee4;

  --color-headline: #003c72;

  --button-ocean-background-color: var(--color-ocean);
  --button-ocean-color: var(--color-white);
  --button-ocean-background-color-hover: #0057a5;

  --button-spotlight-background-color: var(--color-spotlight);
  --button-spotlight-color: var(--color-black);
  --button-spotlight-background-color-hover: #ffd866;
  --button-spotlight-box-shadow: 4px 4px 15px rgba(0, 60, 114, 0.15);

  --link-color: var(--color-ocean);
  --link-border-bottom-color: var(--color-sky);
  --link-border-bottom-color-hover: var(--color-spotlight);

  --ocean-box-shadow: 4px 4px 15px rgba(0, 60, 114, 0.15);
  --navigation-box-shadow: 0px 4px 20px 0px rgba(0, 60, 114, 0.15);

  --default-transition: all 300ms ease-in-out;

  --font-family-serif: 'ABC Arizona Serif', serif;
  --font-family-sans-serif: 'Public Sans', 'Open Sans', sans-serif;
  --font-family-font-awesome: 'Font Awesome 6 Pro';

  --h1-font-size: 2.375rem;
  --h1-line-height: 1.3;
  --h1-font-weight: 400;
  --h1-font-family: var(--font-family-serif);
  --h1-margin-bottom: 1rem;

  --h2-font-size: 1.75rem;
  --h2-line-height: 1.3;
  --h2-font-weight: 400;
  --h2-font-family: var(--font-family-serif);
  --h2-margin-bottom: 1rem;

  --h3-font-size: 1.5rem;
  --h3-line-height: 1.3;
  --h3-font-weight: 400;
  --h3-font-family: var(--font-family-serif);
  --h3-margin-bottom: 1rem;

  --h4-font-size: 1.25rem;
  --h4-line-height: 1.3;
  --h4-font-weight: 400;
  --h4-font-family: var(--font-family-serif);
  --h4-margin-bottom: 1rem;

  --h5-font-size: 1.125rem;
  --h5-line-height: 1.3;
  --h5-font-weight: 400;
  --h5-font-family: var(--font-family-serif);
  --h5-margin-bottom: 1rem;

  --h6-font-size: 1rem;
  --h6-line-height: 1.3;
  --h6-font-weight: 400;
  --h6-font-family: var(--font-family-serif);
  --h6-margin-bottom: 1rem;

  --paragraph-font-size: 1rem;
  --paragraph-line-height: 1.8;
  --paragraph-font-weight: 400;
  --paragraph-font-family: var(--font-family-sans-serif);
  --paragraph-margin-bottom: 1rem;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-sans-serif);
}

body {
  /* overflow: hidden; */
}
* {
  font-family: var(--font-family-sans-serif);
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
}

h1:empty {
  display: none;
}

h1:not(.eyebrow) {
  font-size: var(--h1-font-size);
  line-height: var(--h1-line-height);
  font-weight: var(--h1-font-weight);
  font-family: var(--h1-font-family);
  color: var(--color-headline);
}

h2:not(.eyebrow, .subhead) {
  font-size: var(--h2-font-size);
  line-height: var(--h2-line-height);
  font-weight: var(--h2-font-weight);
  font-family: var(--h2-font-family);
  color: var(--color-headline);
}

h3:not(.eyebrow) {
  font-size: var(--h3-font-size);
  line-height: var(--h3-line-height);
  font-weight: var(--h3-font-weight);
  font-family: var(--h3-font-family);
  color: var(--color-headline);
}

h4:not(.eyebrow) {
  font-size: var(--h4-font-size);
  line-height: var(--h4-line-height);
  font-weight: var(--h4-font-weight);
  font-family: var(--h4-font-family);
  color: var(--color-headline);
}

h5:not(.eyebrow) {
  font-size: var(--h5-font-size);
  line-height: var(--h5-line-height);
  font-weight: var(--h5-font-weight);
  font-family: var(--h5-font-family);
  color: var(--color-headline);
}

h6:not(.eyebrow) {
  font-size: var(--h6-font-size);
  line-height: var(--h6-line-height);
  font-weight: var(--h6-font-weight);
  font-family: var(--h6-font-family);
  color: var(--color-headline);
}

p:not(.subhead, .paragraph--large, .paragraph--small, .eyebrow, .topic) {
  font-size: var(--paragraph-font-size);
  line-height: var(--paragraph-line-height);
  font-weight: var(--paragraph-font-weight);
  font-family: var(--paragraph-font-family);
  margin-bottom: var(--paragraph-margin-bottom);
}

p a {
  color: var(--link-color);
  display: inline-flex;
  text-decoration: underline;
  text-underline-offset: 0.45em;
  text-decoration-color: var(--link-border-bottom-color);
  text-decoration-thickness: 1px;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  font-family: var(--font-family-sans-serif);
  line-height: 180%;
  align-items: center;
  column-gap: 8px;
  font-weight: 500;
  word-break: break-word;
}

p a:hover,
p a:focus {
  text-decoration-color: var(--link-border-bottom-color-hover);
  padding-right: 0.0000001px;
}

.underlined {
  text-decoration: underline;
  /* text-underline-offset: 0.45em;
  text-decoration-color: var(--link-border-bottom-color);
  text-decoration-thickness: 1px;
  transition: all 0.3s ease-in-out; */
}

form {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 32px;
  row-gap: 24px;
  padding: 0 var(--container-gutter) 40px;
  max-width: 768px;
  margin: 0 auto;
}

form > div {
  position: relative;
}

form span.required {
  color: var(--color-emergency-red);
}

label {
  display: block;
  margin-bottom: 8px;
}

input:not([type='checkbox'], [type='radio'], [type='submit'], [type='select-one']),
select,
textarea {
  width: 100%;
  height: 51px;
  font-size: 1.125rem;
  padding: 0 16px;
  transition: var(--default-transition);
  border: 1px solid var(--color-ocean);
  border-radius: 4px;
}

input[type='select-one'] {
  font-size: 1.125rem;
  line-height: 150%;
}

input:not([type='checkbox'], [type='radio'], [type='submit'])::placeholder,
textarea::placeholder {
  color: var(--color-charcoal);
  opacity: 0.6;
}

div.clear-button.disabled {
  pointer-events: none;
}

input[type='submit'] {
  -webkit-appearance: none;
  padding: 12px 24px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  align-items: center;
  column-gap: 10px;
  font-weight: 500;
  line-height: 150%;
  background-color: var(--button-spotlight-background-color);
  box-shadow: none;
  color: var(--button-spotlight-color);
  border: 0;
  border-radius: 50px;
  font-size: 0.875rem;
  cursor: pointer;
}

input[type='submit']:hover {
  background-color: var(--button-spotlight-background-color-hover);
  box-shadow: var(--button-spotlight-box-shadow);
}

input:not([type='checkbox'], [type='radio']):hover,
select:hover,
textarea:hover {
  box-shadow: 4px 4px 15px rgba(0, 60, 114, 0.15);
}

input:not([type='checkbox'], [type='radio'], [type='submit']):focus,
select:focus,
textarea:focus {
  border-color: var(--color-sky);
  outline: none;
}

textarea {
  min-height: 120px;
  padding: 12px 16px;
}

.listbox {
  -webkit-appearance: initial;
  height: 205px;
  padding: 10px 0;
}

.listbox.input-validation-error {
  border-color: var(--color-emergency-red);
}

.listbox option {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

.listbox option:checked {
  background-color: var(--color-sky) !important;
}

select:-internal-list-box option:checked {
  background-color: var(--color-sky) !important;
}

/* File Input */
input[type='file'] {
  position: relative;
  display: flex;
  align-items: center;
  line-height: 51px;
  cursor: pointer;

  padding-right: 46px;
  white-space: normal;
}

input[type='file']::-webkit-file-upload-button {
  width: 0;
  height: 0;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  /*   font-size: 0; */
  opacity: 0;
  /*     display:none; */
}
input[type='file']::file-selector-button {
  display: block;
  line-height: 10px;
}

input[type='file']:after {
  content: '\f093';
  font-family: var(--font-family-font-awesome);
  font-weight: 300;
  color: var(--color-sky);
  position: absolute;
  right: 16px;
}

input::file-selector-button {
  opacity: 0;
  width: 0;
  padding: 0;
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  position: absolute;
  top: 20px;
  line-height: 51px;
}

/* Form Date */

.form-date-wrapper {
  position: relative;
}

.form-date-wrapper input {
  cursor: pointer;
}

.form-date-wrapper [class*='fa'] {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 16px;
  height: 18px;
  width: 18px;
  font-size: 18px;
  color: var(--color-sky);
  pointer-events: none;
  cursor: pointer;
}

.input-file-wrapper {
  position: relative;
}

.input-file-clear-button {
  -webkit-appearance: none;
  transition: color 0.3s ease-in-out;
  background-color: var(--color-white);
  box-shadow: none;
  border: 0;
  padding: 0 2px;
  content: '\f093';
  font-family: var(--font-family-font-awesome);
  font-weight: 300;
  color: var(--color-sky);
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 24px;
  cursor: pointer;
}

.input-file-clear-button:hover {
  color: var(--color-ocean);
}

.input-file-clear-button.hidden {
  display: none;
}

/* Form Radio */

.form-checkbox {
  display: inline-grid;
  grid-template-columns: 32px auto;
  column-gap: 12px;
  align-items: center;
  position: relative;
  margin-bottom: 0;
  margin-right: 24px;
  cursor: pointer;
}

.form-checkbox.form-checkbox--checked:after {
  opacity: 1;
}

.form-checkbox.form-checkbox--checked:before {
  border-color: var(--color-sky);
}

.form-checkbox.form-checkbox--error:before {
  border-color: var(--color-emergency-red);
}

.form-checkbox input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-checkbox:hover:before {
  box-shadow: var(--ocean-box-shadow);
}

.form-checkbox:before {
  content: '';
  height: 32px;
  width: 32px;
  display: block;
  border: 1px solid var(--color-ocean);
  border-radius: 4px;
  transition: var(--default-transition);
}

.form-checkbox:after {
  font-family: var(--font-family-font-awesome);
  font-weight: 300;
  content: '\f00c';
  color: var(--color-sky);
  left: 10px;
  position: absolute;
  opacity: 0;
  transition: var(--default-transition);
}

/* Form Radio */

.form-radio {
  display: flex;
  column-gap: 12px;
  align-items: center;
  position: relative;
  margin-bottom: 12px;
  margin-right: 0;
  cursor: pointer;
}

.form-radio.form-radio--checked:before {
  border-color: var(--color-sky);
}

.form-radio.form-radio--checked:after {
  opacity: 1;
}

.form-radio.form-radio--error:before {
  border-color: var(--color-emergency-red);
}

.form-radio:before {
  content: '';
  height: 32px;
  width: 32px;
  display: block;
  border: 1px solid var(--color-ocean);
  border-radius: 50%;
  transition: var(--default-transition);
  flex-shrink: 0;
}

.form-radio:after {
  content: '';
  transition: var(--default-transition);
  height: 20px;
  width: 20px;
  display: block;
  border-radius: 50%;
  background-color: var(--color-sky);
  left: 7px;
  position: absolute;
  opacity: 0;
}

.form-radio:hover:before {
  box-shadow: var(--ocean-box-shadow);
}

.form-radio input[type='radio'] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Form Error States */

input.input-validation-error,
textarea.input-validation-error {
  border-color: var(--color-emergency-red) !important;
}

input.input-validation-error + input[data-maskito-id] {
  border-color: var(--color-emergency-red) !important;
}

.hide-maskito-date-input {
  height: 0 !important;
  width: 0 !important;
  opacity: 0;
}

.field-validation-error,
.maskito-field-validation-error {
  color: var(--color-emergency-red);
  font-size: 0.875rem;
  display: flex;
  column-gap: 8px;
  padding-top: 8px;
  align-items: center;
}

.field-validation-error:before {
  content: '\f05a';
  height: 14px;
  width: 14px;
  display: inline-block;
  font-family: var(--font-family-font-awesome);
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-column: span 1;
  grid-template-columns: 1fr;
  column-gap: 32px;
  row-gap: 24px;
}

/* Form Layout */

.form-column--1 {
  grid-column: span 2;
}
.form-column--2 {
  grid-column: span 1;
}

.form-column--3 {
  grid-column: span 1;
}

@media screen and (min-width: 768px) {
  :root {
    --h1-font-size: 3rem;
    --h1-margin-bottom: 1.5rem;

    --h2-font-size: 2.375rem;

    --h3-font-size: 2rem;

    --h4-font-size: 1.5rem;

    --h5-font-size: 1.25rem;

    --h6-font-size: 1rem;
  }

  form {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-column: span 1;
    /* grid-template-columns: repeat(2, 1fr); */
  }
  .form-column--1 {
    grid-column: span 2;
  }

  .form-row > *:not(.form-column--2, .form-column--3) {
    grid-column: span 2;
  }
  .form-column--2,
  .form-column--3 {
    grid-column: span 1;
  }
}

@media screen and (min-width: 1024px) {
  :root {
    --h1-font-size: 3.5rem;

    --h2-font-size: 2.5rem;

    --h4-font-size: 1.5rem;

    --h5-font-size: 1.25rem;

    --h6-font-size: 1rem;
  }

  .form-row {
    grid-column: span 1;
    grid-template-columns: repeat(2, 1fr);
  }
}
