:root {
  --red: #FF182B;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: white;
  font-family: Montserrat, Arial, sans-serif;
}
canvas, img {
  max-width: 100%;
  height: auto;
}
header, main, footer {
  display: flex;
  justify-content: center;
  > div {
    max-width: 1280px;
    width: 100%;
    padding: 20px;
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    @media screen and (max-width:799px) {
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }
  }
}
h2 {
  font-family: Montserrat;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 134%;
  color: var(--red);
  margin-bottom: 20px;
  b {
    font-weight: 600;
    color: black;
  }
}
a {
  text-decoration: none;
  color: black;
  svg { 
    stroke: black;
    vertical-align: middle;
  }
  &:hover {
    color: var(--red);
    svg { stroke: var(--red); }
  }
}
input[type=text], input[type=date], input[type=email] {
  padding: 10px;
  background: #FFFFFF;
  border:none;
  border-radius: 15px;
  margin:10px 0 5px;
}
input[type=text], input[type=email] {
  display: block;
  width: 100%;
}
.btn {
  border: 2px solid;
  border-radius: 40px;
  line-height: 40px;
  padding: 0 30px;
  display: inline-block;
  text-align: center;
  @media screen and (max-width:799px) {
    line-height: 30px;
    padding: 0 20px;
  }
  &.black {
    background: black;
    color: white;
    border-color: black;
    &:hover {
      background: var(--red);
      border-color: var(--red);
    }
  }
  &.red {
    background: var(--red);
    color: white;
    border-color: var(--red);
    &:hover {
      background: white;
      border-color: var(--red);
      color: var(--red);
    }
  }
  &.small {
    padding: 0 20px;
    line-height: 30px;
  }
}
p {
  margin: 20px 0;
}
.mt2 {
  margin-top: 20px;
}
.strong {
  font-weight: 600;
}
a.tab {
  display: inline-block;
  border-radius: 5px;
  background: #A8A8A8;
  padding: 5px 30px;
  color: white;
  &.active {
    background: var(--red);
  }
}
.box {
  background: #E0E0E0;
  border-radius: 20px;
  padding: 20px;
}
.white {
  background: white;
}
.link {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  .qrbutton {
    display: inline-block;
    position: relative;
    > div.qr {
        min-width: 320px;
        position: absolute;
        right: 0;
        top: 54px;
        background: #CCC;
        padding:20px;
        border-radius: 20px;
        text-align: center;
        display: none;
        z-index:3;
        @media (max-width:471px) {
            right: none;
            left: 0;
        }
    }
  }
  .qrbutton:hover > div.qr {
    display: block;
  }
  > div {
    flex-grow: 1;
    max-width: 100%;
  }
  > div.actions {
    min-width: 620px;
    max-width: 620px;
    border-left: #B3ACAC 3px solid;
    padding-left: 20px;
    margin-top: 5px;
    .btn {
      margin: 10px 0;
    }
  }
  a small {
    text-overflow: ellipsis;
    display: inline-block;
    overflow: hidden;
    max-width: min(500px, calc(100vw - 800px));
    white-space: nowrap;
  }
  > div > small {
    display: block;
    font-size: 12px;
    padding: 10px 20px;
  }
  .url .box.white {
    position: relative;
    padding: 10px 50px 10px 15px;
    line-height: 1.5;
    .copy {
      position: absolute;
      right: 20px;
      top:20px;
    }
  }
  @media(max-width: 1023px) {
    > div.actions {
        min-width: 320px;
        max-width: 320px;
    }
    a small {
        max-width: calc(100vw - 500px);
    }
  }
  @media screen and (max-width:959px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    > div {
      width: 100%;
    }
    > div.actions {
      min-width: none;
      max-width: none;
      border-left: none;
      border-bottom: #B3ACAC 3px solid;
      padding-left: 0;
      padding-bottom: 20px;
      margin-top: 0;
      margin-bottom: 20px;
    }
    a small {
        max-width: calc(100vw - 160px);
    }
  }
}
.formgrid {
  display: grid;
  gap: 20px 5px;
  grid-template-columns: 100px 1fr;
  > label {
    padding-top: 15px;
  }
  @media (max-width: 799px){
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
.tright {
  text-align: right;
}
.dcenter {
  width: fit-content;
  margin: 0 auto;
}
.tabs {
  margin: 0 0 30px;
}
.qr {
  flex: 0;
  max-width: 300px;
  min-width: 300px;
}
.cols {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  @media screen and (max-width:799px) {
    flex-direction: column;
    align-items: stretch;
  }
  @media screen and (max-width:799px) {
    &.mobile {
      flex-direction: row;
      align-items: flex-start;
    }
  }
  > div { flex-grow: 1; }
  &.linecenter { align-items: center; }
  &.fstart { justify-content: flex-start; }
}
.box.white.bordered {
  border: 3px solid #C2C2C2;
}
.box.white .cols {
  width: 100%;
}
.errors {
    background: #FFCCCC;
    border: 3px solid #FF6666;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 20px 0;
    color: #990000;
    li {
        margin: 10px 20px;
    }
}
hr {
  margin: 0 0 20px 0;
  background: #C2C2C2;
  height: 3px;
  border: none;
}
.utm {
  margin-top:10px;
  div {
    flex: 1;
  }
  label {
    display: block;
    margin-bottom: 30px;
    input[type=text] {
      background: #E0E0E0;
    }
    small {
      font-size: 12px;
    }
  }
}
header {
  > div {
    > nav {
      display: flex;
      align-items: center;
      gap: 60px;
      @media screen and (max-width:799px) {
        gap: 20px;
      }
    }
  }
}
main {
  background: #f9f9f9;
  > div {
    padding: 60px 20px;
    > div {
      flex-grow: 1;
    }
  }
}
footer {
  padding-top: 80px;
  padding-bottom: 40px;
  > div {
    padding: 40px 20px;
    > div {
      display: flex;
      gap: 20px;
      flex-direction: column;
      div.social {
        display: flex;
        gap: 20px;
      }
    }
  }
  h2 > b { display: block; }
}
.flash {
    position: fixed;
    top: 100px;
    min-width: 200px;
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
    background: #900;
    color: white;
    padding: 10px 50px 10px 20px;
    border-radius: 20px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    a.close {
        position: absolute;
        color: white;
        right: 20px;
        top: 10px;
    }
}
.popup {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    .card {
        max-width: calc(100vw - 40px);
        width: 640px;
        text-align: center;
        position: relative;
        padding: 40px 70px;
        p { margin: 30px 0; }
        h2 { margin: 20px 0; }
        .btn {
            width: 100%;
        }
        .close {
            font-size: 26px;
            position: absolute;
            right: 30px;
            top: 20px;
        }
    }
}
