:root {
  --base-foreground: #111111;
  --base-background: #ffffff;
  --base-text: #222222;
  --base-border: #767676;
}

@media (prefers-color-scheme: dark) {
  :root {
    --base-foreground: #ffffff;
    --base-background: #080808;
    --base-text: #ffffff;
    --base-border: #D3D3D3;
  }
}

html {
  background-color: var(--base-background)
  color: var(--base-text);
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection {
  background: #b3d4fc;
  color: #222222;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  color: #222222;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #888;
  margin: 1em 0;
  padding: 0;
}

audio, canvas, iframe, img, svg, video {
    vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* ========================================================================== */

*:focus {
  outline: none;
}

body {
  background-color: var(--base-background);
  color: var(--base-text);
  /* text-align: center; */
  margin: auto;
  font-family: 'Poppins', sans-serif;
}

body > .wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 1rem;
}
/* @media (max-width: 425px) {
  body > .wrapper {
    padding: 4rem 1rem;
  }
} */

h1, h2, h3, h4 {
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}

ul, ol {
  margin-bottom: 1rem;
}
ul > li,
ol > li {
  margin-bottom: 0.5rem;
}

ul ul,
ul ol,
ol ul,
ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--base-text);
  font-family: 'Poppins', sans-serif;
  /* font-size: 20px;
  font-weight: 300;
  line-height: 32px; */
  margin: 0 0 0.5em;
}

.signature__wrapper {
  position: relative;
  margin: 4rem auto 4rem;
  max-width: 400px;
}

.signature__wrapper .signature {
  /* padding: 2rem 0.75rem; */
  padding: 1rem;
  border: 1px solid #ddd;
  border-top: 0;
  /* border-radius: 0 0 0.75rem 0.75rem; */
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0px 1px 0.75rem rgba(0,0,0,0.2);
}

.top-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10%;
  margin: 0 auto 4rem auto;
  /* max-width: 400px; */
  color: var(--base-foreground);
}

.top-logo svg,
.top-logo img {
  width: 100%;
  max-width: 130px;
  height: auto;
  display: block;
}

.top-logo h1 {
  font-size: min(4vw, 1.5rem);
  margin-top: 0.5em;
  letter-spacing: 0.1em;
  text-align: left;
}

/* forms */
.form-fields {
  margin-bottom: 2rem;
}

.input-group {
  display: block;
  margin-bottom: 20px;
}

.input-group input + span {
  display: block;
  margin-top: 0.25em;
  font-size: 0.8em;
  padding: 5px;
}

label {
  display: block;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  padding: 10px 5px 5px 5px;
  text-align: left;
  /* font-family: "proxima-nova", sans-serif;
  -webkit-transition: 0.4s ease-in-out;
  -moz-transition: 0.4s ease-in-out;
  -o-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out; */
  box-sizing: border-box;
  font-weight: 300;
  color: var(--base-text);
}

input[type="text"], input[type="tel"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  /* margin: 0 auto; */
  /* max-width: 400px; */
  background: none;
  border: 1px solid var(--base-border);
  padding: 15px 15px;
  border-radius: 10px;
  letter-spacing: 1px;
  color: var(--base-text);
}

#info {
  margin: 0 auto;
  /* width: auto; */
  max-width: 400px;
  display: block;
}

.btn_group {
  position: relative;
  margin: 0 auto 4rem auto;
  max-width: 400px;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (max-width: 399px) {
  .btn_group {
    justify-content: left;
  }
}

.btn_group .msg {
  opacity: 1;
  transition: all 0.2s ease;
}
.btn_group .msg.msg--empty {
  opacity: 0;
}
.checkmark__wrapper {
  display:flex;
  justify-content:center;
  align-items:center;
  opacity: 0;
  transition: .2s opacity ease;

  position: absolute;
  top: 50%;
  right: 0;
  transform: translate3d(150%, -50%, 0);
}
.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
}
.checkmark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  stroke-width: 4;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #7ac142;
}
.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.checkmark--checked.checkmark__wrapper {
  opacity: 1;
}
.checkmark--fade.checkmark__wrapper {
  opacity: 0;
}
.checkmark--checked .checkmark__circle {
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark--checked .checkmark {
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.checkmark--checked .checkmark__check {
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke{
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale{
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #7ac142;
  }
}
@keyframes fadeout {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

button {
  position: relative;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  border: none;
  color: #fff;
  background: #c94e50;
  padding: 15px 30px;
  border-radius: 30px;
}

button:hover {
  background: #888888;
  color: #fff;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before, .clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *, *:before, *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a, a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  a[href^="#"]:after, a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre, blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
  tr, img {
    page-break-inside: avoid;
  }
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  h2, h3 {
    page-break-after: avoid;
  }

  button, input {
    background-color: #fff !important;
    border-color: #000 !important;
    color: #000 !important;
  }
}
