/*********************
Design Tokens
*********************/
:root {
  --color-page-ink: #ffffff;
  --color-brand-green: #17884a;
  --color-brand-green-panel: rgba(23, 136, 74, 0.7);
  --color-brand-orange: #f78d1d;
  --color-brand-orange-dark: #da7c0c;
  --color-brand-orange-active: #f47a20;

  --color-alert: #fc7169;
  --color-alert-border: rgba(252, 113, 105, 0.4);
  --color-alert-bg: #fff4f3;
  --color-alert-ink: #7a2e2a;

  --color-grey-ink: #8f9cb5;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;

  --radius-sm: 0.3125rem;
  --radius-md: 0.5rem;
}

/*********************
Page Styles
*********************/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: url("https://www.vertumotors.com/custom/97940.jpg") no-repeat
    center center fixed;
  background-size: cover;
}

body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Verdana, sans-serif;
  font-size: 100%;
  color: var(--color-page-ink);
}

fieldset {
  padding: 0;
  border: 0;
}

figure {
  margin: 0;
}

img {
  border: none;
}

.hide {
  display: none;
}

form {
  clear: both;
  max-width: 17rem;
  margin: 0 auto;
}

.twoCol {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}

.twoCol li {
  float: left;
  width: 50%;
}

.twoCol::after {
  content: "";
  display: table;
  clear: both;
}

#wrapper {
  max-width: 75rem;
  margin: 0 auto;
  padding: 6.25rem 0.9375rem 0;
}

/*********************
Header
*********************/
#header {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1.5625rem 0.625rem 0;
}

.logo {
  display: block;
  width: 10.25rem;
}

/*********************
Typography
*********************/
h1 {
  font-size: 2.6em;
  line-height: 1.2;
  text-align: left;
}

h2 {
  font-size: 2.5em;
  margin: 10px 0;
  color: #92d050;
  text-align: center;
}

h2 span {
  font-weight: normal;
}

h3 {
  font-size: 1.8em;
  margin: 10px 0 35px;
  text-transform: uppercase;
}

h4 {
  font-size: 1.5em;
  margin-top: 0.2em;
  margin-bottom: 0.6em;
}

small {
  font-size: 0.6875rem;
}

/*********************
Content Columns
*********************/
#description {
  font-size: 0.8em;
  line-height: 1.5em;
}

.right-content {
  padding-left: 4%;
}

.right-content > p {
  font-size: 0.85em;
  font-weight: bold;
  text-align: center;
}

.signature-box {
  max-width: 18.125rem;
  padding-top: 15px;
}

.signature-box p {
  margin: 0;
}

/*********************
Survey Entry Card
*********************/
#enter {
  padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-green-panel);
  text-align: center;
}

#enter .twoCol {
  max-width: 15rem;
  margin: 1em auto;
}

#enter .twoCol li {
  font-weight: bold;
  text-transform: uppercase;
}

label {
  font-size: 0.8125rem;
  font-weight: bold;
}

form input {
  width: 100%;
  margin: 10px 0 15px;
  padding: 15px;
  border: 1px solid #b7b7b7;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 6px -5px rgba(50, 50, 50, 0.75);
  font-weight: bold;
  text-transform: uppercase;
}

/*********************
Buttons
*********************/
.button {
  display: inline-block;
  width: 100%;
  padding: 1.4em 2em;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  font:
    18px/100% Arial,
    Helvetica,
    sans-serif;
  font-size: 0.8em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.button span {
  font-weight: bold;
}

.button:hover {
  text-decoration: none;
}

.button:active {
  position: relative;
  top: 1px;
}

.orange {
  border: solid 1px var(--color-brand-orange-dark);
  background: var(--color-brand-orange);
  color: #fef4e9;
  transition: background 1s ease-in-out;
}

.orange:hover {
  background: var(--color-brand-orange-active);
}

.orange:active {
  background: var(--color-brand-orange-dark);
  color: #fcd3a5;
}

/*********************
Field Alert
*********************/
.error-message[hidden] {
  display: none;
}

.error-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 17rem;
  margin: 0 auto var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-alert-border);
  border-left: 3px solid var(--color-alert);
  border-radius: var(--radius-md);
  background: var(--color-alert-bg);
  color: var(--color-alert-ink);
  text-align: left;
  opacity: 0;
  transform: translateY(-0.25rem);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.error-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.error-message__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  color: var(--color-alert);
}

.js-error-message-text {
  flex: 1;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: bold;
  line-height: 1.4;
  text-transform: none;
}

.error-message-close {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-alert-ink);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.error-message-close:hover {
  color: var(--color-alert);
}

/*********************
Responsive
*********************/
@media only screen and (max-width: 640px) {
  #header {
    padding-top: 10px;
  }

  #wrapper {
    padding-top: 0;
  }

  h1 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.3em;
    margin: 10px 0 15px;
  }

  .twoCol li {
    float: none;
    width: 100%;
  }

  .right-content {
    padding-top: 10px;
    padding-left: 0;
  }

  .error-message {
    max-width: 100%;
  }

  .logo {
    width: 135px;
  }

  .signature-box {
    padding-top: 5px;
  }

  .signature {
    width: 191px;
  }

  #enter {
    margin-bottom: 1em;
  }
}
