:root {
  --brand-red: #e60000;
  --font-mono: 'DM Mono', Courier, monospace;
  --font-display: Borna, 'Helvetica Neue', Helvetica, sans-serif;

  --base-foreground: #141414;
  --base-background: #ffffff;
  --base-text: #222222;
  --base-border: #dadada;

  /* --sig-background: linear-gradient(0deg, #0c609f, #1d75b6);
  --sig-border-top: rgba(103, 162, 207, 0.8);
  --sig-border-right: #297ab8;
  --sig-border-bottom: #085085;
  --sig-border-left: #297ab8; */
  --sig-shadow: 0px 1px 0.75rem rgba(0,0,0,0.2);
  --sig-border: #ccc;
  --sig-border-top: #fff;
  --sig-blend: darken;
  --sig-bg: #ffffff;
  --sig-title-bg: #0078D4;
  /* --sig-title-border-right: #2F85D7;
  --sig-title-border-bottom: #0078D4;
  --sig-title-border-left: #2D87DA; */
  --sig-banner-bg: #ebeced;
  --sig-banner-text: #40403f;
}

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

    --sig-shadow: 0px 1px 0.75rem rgba(0, 0, 0, 1);
    --sig-border: #bbb;
    --sig-border-top: #eee;
    --sig-blend: soft-light;
    --sig-bg: #ffffff;
    --sig-title-bg: #262626;
    /* --sig-title-border-right: #535455;
    --sig-title-border-bottom: #000000;
    --sig-title-border-left: #535455; */
    /* --sig-banner-bg: #26292b; */
    /* --sig-banner-text: #c8c8c8; */
  }
}

@font-face {
  font-family: 'Borna';
  src: url('/fonts/borna-regular-webfont.woff2') format('woff2'),
    url('/fonts/borna-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Borna';
  src: url('/fonts/borna-medium-webfont.woff2') format('woff2'),
    url('/fonts/borna-medium-webfont.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/dmmono-regular-webfont.woff2') format('woff2'),
    url('/fonts/dmmono-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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 {
  margin: auto;
  background-color: var(--base-background);
  background-image: url('/img/pattern.png');
  background-position: top center;
  /* background-size: clamp(110px, 12vw, 220px); */
  /* background-size: 110px; */
  font-family: var(--font-display);
  color: var(--base-text);
  min-height: 100vh;
}

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: var(--font-mono);
  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);
  margin: 0 0 0.5em;
}

.signature__wrapper {
  position: relative;
  margin: 5rem 0 4rem;
  box-shadow: var(--sig-shadow);
  /* inset 0px 1px 0.25rem rgba(200,200,200,0.8); */
  border-radius: 10px;
  overflow: hidden;
}

.signature__wrapper:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  border: 1px solid var(--sig-border);
  border-top-color: var(--sig-border-top);
  border-radius: 10px;
  box-sizing: border-box;
  mix-blend-mode: var(--sig-blend);
  pointer-events: none;
}

.signature__wrapper .signature {
  padding: 2rem 0.75rem;
  /* border-radius: 0 0 10px 10px; */
  /* border: 1px solid var(--sig-border); */
  /* border-top: 0; */
  /* border-radius: 0 0 0.75rem 0.75rem; */
  background-color: var(--sig-bg);
  
}

.header {
  position: relative;
  width: 100%;
  cursor: default;
}

.title-bar {
  height: 42px;
  box-sizing: border-box;
  background: var(--sig-title-bg);
  /* border-top: 1px solid var(--sig-title-border-top);
  border-right: 1px solid var(--sig-title-border-right);
  border-bottom: 1px solid var(--sig-title-border-bottom);
  border-left: 1px solid var(--sig-title-border-left); */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 0 0;
}

.title-bar__title {
  font-weight: 600;
  font-size: 13.25px;
  line-height: 1;
  /* text-shadow: 0px -1px 0px rgba(11,71,116,0.5); */
  opacity: 0.8;
  margin: 0 78px;
  padding-right: 0.75rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.title-bar__title div {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.title-bar .title-bar__navigation {
  position: absolute;
  left: 0.75rem;
  display: flex;
  gap: 6px;
  /* padding: 0.5rem 0.75rem; */
  align-items: center;
}

.title-bar .title-bar__navigation .circle {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  /* border: 1px solid #444444; */
}

.title-bar .title-bar__navigation .circle:after {
  content: "";
  position: absolute;
  display: block;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border: 1px solid #666666;
  border-radius: 50%;
  top: 0;
  left: 0;
  mix-blend-mode: hard-light;
}

.title-bar .title-bar__navigation .circle:nth-child(1) { background-color: #fc605b; }
.title-bar .title-bar__navigation .circle:nth-child(2) { background-color: #fcbb40; }
.title-bar .title-bar__navigation .circle:nth-child(3) { background-color: #33c648; }

.header-label {
  box-sizing: border-box;
  background: var(--sig-banner-bg);
  /* border: 1px solid var(--sig-border); */
  /* border-top: 0; */
  /* border-bottom: 0; */
  font-size: 13px;
  font-weight: 600;
  line-height: 2.5;
  color: var(--sig-banner-text);
  padding: 0 0.75rem;
}

.top-logo {
  display: block;
  margin: 0 auto 4rem auto;
  max-width: 400px;
  color: var(--base-foreground);
}

.top-logo svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

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

.notes {
  font-family: var(--font-display);
}

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

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

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

label {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 0px 5px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.1;
  /* letter-spacing: 1px; */
  text-align: left;
  color: var(--base-text);
}

input[type="text"], input[type="tel"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--base-background);
  border: 1px solid var(--base-border);
  border-radius: 0px;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  color: var(--base-text);
}

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

.btn_group {
  position: relative;
  display: flex;
  margin: 0 auto 4rem auto;
  max-width: 400px;
  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-family: 'DM Mono', Courier, monospace;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--brand-red);
  border-radius: 4px;
  color: #FFFFFF;
  background: var(--brand-red);
  padding: 12px 18px;
  /* transition: 0.2s all ease; */
}

/* button:hover,
button:focus-visible {
  background: var(--base-background);
  color: var(--base-foreground);
} */

button:hover:after,
button:focus-visible:after {
  content: '';
  position: absolute;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  top: -6px;
  left: -6px;
  border: 2px solid var(--brand-red);
  border-radius: 6px;
  box-sizing: border-box;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  font-size: 1em;
  color: var(--base-border);
  opacity: 1;
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: var(--base-border);
  font-size: 1em;
  opacity: 1;
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: var(--base-border);
  font-size: 1em;
}


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

.hidden {
    display: none !important;
}

.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 */
}

.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;
}

.invisible {
    visibility: hidden;
}

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

.clearfix:after {
    clear: both;
}

@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;
  }
}
