:root {
  --Grey-2: #c2c9cf;
  --Grey-3: #89919e;
  --Grey-4: #232026;
  --RW-Grey-1: #f2f2f2;
  --RW-Grey-2: #c2c9cf;
  --RW-Grey-3: #89919e;
  --RW-Grey-4: #211e25;
  --RW-Black: #000;
  --White: #fff;
  --Red: #f03;
  --Error-Red-Text: #b10224;
  --Error-Red-BG: #e4b1bb;
}

@font-face {
  font-family: "ArkitektRegular";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/Arkitekt-Regular.woff");
}

@font-face {
  font-family: "ArkitektMedium";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/Arkitekt-Medium.woff");
}

/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: "ArkitektMedium", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

.grid {
  display: grid;
}

.btn {
  color: #211e25;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  border: 1px solid #c2c9cf;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  font-size: 14px;
  text-decoration: none;
  transition:
    color 0.25s ease-in-out,
    background-color 0.25s ease-in-out,
    border-color 0.25s ease-in-out,
    box-shadow 0.25s ease-in-out;
  display: inline-flex;
  font-weight: 500;
  position: relative;

  &::before {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
  }

  &::after {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='9' viewBox='0 0 9 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_3_426)'%3E%3Cpath d='M4.33594 8.83594L8.67133 4.50054L4.33594 0.160513' stroke='%23211E25' stroke-miterlimit='10'/%3E%3Cpath d='M8.67079 4.50391H0' stroke='%23211E25' stroke-miterlimit='10'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_3_426'%3E%3Crect width='9' height='9' fill='white' transform='matrix(1 0 0 -1 0 9)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-position: 16px;
    background-repeat: no-repeat;
    border-left: 1px solid #c2c9cf;
    justify-content: space-between;
    width: 26px;
    height: 42px;
    margin-left: 15px;
    transition: all 0.25s ease-in-out;
    display: flex;
  }

  &:hover {
    border-color: #000;
    text-decoration: none;

    &::after {
      border-color: #000;
    }
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.squares {
  position: relative;
  width: 100%;
  display: block;
  height: 10px;

  &.top {
    &::before,
    &::after {
      top: 0;
    }
  }

  &.bottom {
    &::before,
    &::after {
      bottom: 0;
    }
  }

  &::before,
  &::after {
    content: "";
    position: absolute;
    display: block;
    height: 10px;
    width: 10px;
    background: var(--RW-Grey-2);
  }

  &::before {
    left: 0;
  }

  &::after {
    right: 0;
  }
}

.header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--RW-Grey-2);
  text-align: center;

  img {
    width: 218px;
    margin: 0 auto;
    display: block;

    @media (max-width: 768px) {
      width: 150px;
    }
  }
}

.hero {
  .text {
    padding: 40px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (max-width: 768px) {
      padding: 20px 0 40px 0;
      gap: 13px;
    }
  }

  h2 {
    font-size: 12px;
    font-weight: 500;
    color: #232026;
    text-transform: uppercase;
    letter-spacing: 0.12px;
    margin: 0;

    @media (max-width: 768px) {
      padding: 35px 0 0;
    }
  }

  h1 {
    font-size: clamp(56px, calc(40px + 4vw), 96px);
    font-weight: 500;
    letter-spacing: -4.8px;
    line-height: clamp(43.68px, calc(31.2px + 3.12vw), 74.88px);
    color: #211e25;
    text-transform: uppercase;
    margin: 0 auto;
    max-width: 670px;

    @media (max-width: 768px) {
      padding: 0 0 35px;
    }

    &.non-digital {
      font-size: clamp(56px, calc(17.4px + 9.9vw), 160px);
      line-height: 0.78em;
      max-width: 940px;
    }
  }

  img {
    width: 100%;
  }
}

.sub-hero-content {
  padding: 40px 0;

  @media (max-width: 768px) {
    padding: 24px 0;
  }

  @media (min-width: 768px) {
    &.non-digital {
      padding-bottom: 80px;
    }
  }

  h3 {
    max-width: 470px;
    text-align: left;
    color: var(--RW-Grey-4);
    font-size: 36px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.36px;
    margin: 0 auto 48px;

    @media (max-width: 768px) {
      margin: 0 auto 24px;
      font-size: 24px;
      line-height: 24px;
      max-width: 100%;
    }

    span {
      color: var(--Grey-3);
    }
  }

  .icon-bullets {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 48px;
    max-width: 1000px;
    margin: 0 auto;

    @media (max-width: 768px) {
      border-bottom: 1px solid var(--Grey-2);
      row-gap: 0;
      flex-direction: column;
    }

    .item {
      display: flex;
      row-gap: 16px;
      flex-direction: column;
      flex-grow: 1;

      &:nth-child(5) {
        order: 5;
      }

      @media (max-width: 768px) {
        border-top: 1px solid var(--Grey-2);
        padding: 16px 0;
        row-gap: 4px;
        column-gap: 32px;
        flex-direction: row;

        &:nth-child(3) {
          order: 4;
        }

        &:nth-child(4) {
          order: 3;
        }
      }

      img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        object-position: left center;
        flex-shrink: 0;
        flex-grow: 0;

        @media (max-width: 768px) {
          width: 32px;
          height: 32px;
        }
      }

      p {
        font-size: 18px;
        color: var(--Grey-4);
        font-family: "ArkitektRegular", Arial, sans-serif;
        margin: 0;

        @media (max-width: 768px) {
          font-size: 16px;
        }

        strong {
          font-weight: 500;
          color: var(--RW-Black);
          font-size: 22px;
          text-transform: uppercase;
          display: block;
          font-family: "ArkitektMedium", Arial, sans-serif;

          @media (max-width: 768px) {
            font-size: 18px;
          }
        }
      }
    }
  }
}

.voucher {
  &.digital-comm {
  }

  &.digital-non-comm {
  }

  .text {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 40px 0 20px;

    @media (max-width: 768px) {
      padding: 20px 0;
      gap: 20px;
    }

    h2 {
      font-size: clamp(48px, calc(40px + 4vw), 86px);
      font-weight: 500;
      letter-spacing: -0.86px;
      line-height: clamp(43.2px, calc(31.2px + 3.12vw), 67.08px);
      color: var(--RW-Grey-4);
      text-transform: uppercase;
      margin: 0 auto;
      max-width: 810px;
      text-align: center;
      padding: 0 20px;
    }

    p {
      max-width: 430px;
      text-align: center;
      margin: 0 auto;
      font-size: 16px;
      color: var(--Grey-4);
      font-family: "ArkitektRegular", Arial, sans-serif;
    }

    .btn {
      max-width: 145px;
      margin: 0 auto;
    }
  }

  .columns {
    display: flex;
    flex-direction: row;
    gap: 42px;
    padding: 0 0 40px;

    @media (max-width: 768px) {
      flex-direction: column;
      gap: 20px;
    }

    .left {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .right {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    img {
    }

    .column-text {
      border-top: 1px solid var(--Grey-2);
      display: flex;
      flex-direction: column;
      gap: 20px;

      .top {
        padding: 20px 0 0;
        display: flex;
        flex-direction: column;
        gap: 15px;

        h3 {
          margin: 0;
          font-size: 36px;
          font-weight: 500;
          line-height: 36px;
          color: var(--RW-Black);

          @media (max-width: 768px) {
            font-size: 24px;
            line-height: 24px;
          }
        }

        p {
          margin: 0;
          font-size: 18px;
          font-weight: 400;
          color: var(--Grey-4);
          font-family: "ArkitektRegular", Arial, sans-serif;
          line-height: normal;

          @media (max-width: 768px) {
            font-size: 16px;
          }
        }
      }

      .bottom {
      }
    }
  }
}

.form {
    background: var(--Grey-4);
    padding: 10px 0 50px;
    display: flex;
    flex-direction: column;
    gap: 50px;

    @media (max-width: 768px) {
        padding: 10px 0 24px;
    }

    .container {
        display: flex;
        flex-direction: column;
        gap: 50px;

        @media (max-width: 768px) {
            gap: 22px;
        }
    }

    h3 {
        margin: 0 auto;
        color: var(--White);
        max-width: 460px;
        padding: 40px 0 0;
        line-height: 36px;
        font-size: 36px;
        font-weight: 500;

        @media (max-width: 768px) {
            font-size: 24px;
            line-height: 24px;
            padding: 14px 0 0;
            max-width: 100%;
            margin: 0;
        }

        span {
            color: var(--Grey-2);
        }
    }

    form {
        text-align: center;

        .fields {
            text-align: left;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 40px;
            padding-bottom: 40px;

            @media (max-width: 768px) {
                flex-direction: column;
            }

            .field {
                display: flex;
                flex-direction: column;
                flex-grow: 1;
                flex-basis: 25%;

                label {
                    display: block;
                    color: #ffffff;
                    font-family: "ArkitektRegular", Arial, sans-serif;
                    font-weight: normal;
                    font-size: 18px;
                    line-height: 18px;
                    padding-bottom: 22px;

                    @media (max-width: 768px) {
                    }

                    span {
                        color: var(--Red);
                    }
                }

                input {
                    display: block;
                    width: 100%;
                    padding: 15px;
                    height: 53px;
                    font-weight: normal;
                    font-family: "ArkitektRegular", Arial, sans-serif;
                    font-size: 18px;
                    border: 1px solid var(--Grey-3);
                }

                &.error {
                    input {
                        border: 2px solid var(--Error-Red-Text);
                        background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23b10224' stroke-width='2'/%3E%3Crect x='9' y='5' width='2' height='7' rx='1' fill='%23b10224'/%3E%3Ccircle cx='10' cy='15' r='1.5' fill='%23b10224'/%3E%3C/svg%3E");
                        background-repeat: no-repeat;
                        background-position: right 12px center;
                        padding-right: 40px;
                    }

                    .error-message {
                        display: block;
                        background: var(--Error-Red-BG);
                        color: var(--RW-Black);
                        font-size: 14px;
                        font-family: "ArkitektRegular", Arial, sans-serif;
                        font-weight: normal;
                        padding: 4px;
                    }
                }

                .custom-select {
                    position: relative;
                    width: 100%;
                }

                .custom-select-trigger {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    width: 100%;
                    padding: 15px;
                    height: 53px;
                    font-weight: normal;
                    font-family: "ArkitektRegular", Arial, sans-serif;
                    font-size: 18px;
                    background: #fff;
                    border: 1px solid #fff;
                    cursor: pointer;
                    text-align: left;

                    .field.error & {
                        border: 2px solid var(--Error-Red-Text);
                        background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%23b10224' stroke-width='2'/%3E%3Crect x='9' y='5' width='2' height='7' rx='1' fill='%23b10224'/%3E%3Ccircle cx='10' cy='15' r='1.5' fill='%23b10224'/%3E%3C/svg%3E");
                        background-repeat: no-repeat;
                        background-position: right 38px center;
                    }

                    &::after {
                        content: "";
                        width: 10px;
                        height: 10px;
                        border-right: 2px solid var(--Grey-4);
                        border-bottom: 2px solid var(--Grey-4);
                        transform: rotate(45deg);
                        margin-top: -4px;
                        flex-shrink: 0;
                    }
                }

                .custom-select.open .custom-select-trigger::after {
                    transform: rotate(-135deg);
                    margin-top: 4px;
                }

                .custom-select-value {
                    color: rgb(117, 117, 117);
                }

                    .custom-select-value.selected {
                        color: var(--Grey-4);
                    }

                .custom-select-options {
                    display: none;
                    position: absolute;
                    top: 100%;
                    left: 0;
                    right: 0;
                    background: #fff;
                    border: 1px solid var(--Grey-2);
                    border-top: none;
                    list-style: none;
                    margin: 0;
                    padding: 0;
                    max-height: 200px;
                    overflow-y: auto;
                    z-index: 100;
                }

                .custom-select.open .custom-select-options {
                    display: block;
                }

                .custom-select-options li {
                    padding: 12px 15px;
                    font-family: "ArkitektRegular", Arial, sans-serif;
                    font-size: 18px;
                    color: var(--Grey-4);
                    cursor: pointer;

                    &:hover {
                        background: var(--RW-Grey-1);
                    }
                }

                .error-message {
                    display: none;
                }
            }
        }

        .form-error-banner {
            background: var(--Error-Red-BG);
            color: var(--Error-Red-Text);
            font-family: "ArkitektRegular", Arial, sans-serif;
            font-size: 14px;
            padding: 10px 14px;
            margin: 0 0 20px;
        }

            .form-error-banner[hidden] {
                display: none;
            }

        button {
            -webkit-appearance: none;
            appearance: none;
            background-color: var(--White);
            cursor: pointer;
            margin: 0 auto;

            &.is-loading {
                opacity: 0.6;
                cursor: progress;
            }

            &[disabled] {
                pointer-events: none;
            }
        }
    }
}

.locator-container {
  .locator-text {
    text-align: center;
    gap: 50px;
    display: flex;
    flex-direction: column;
    padding: 40px 0 20px;

    h2 {
      font-size: clamp(48px, calc(40px + 4vw), 86px);
      font-weight: 500;
      letter-spacing: -0.86px;
      line-height: clamp(43.2px, calc(31.2px + 3.12vw), 67.08px);
      color: var(--RW-Grey-4);
      text-transform: uppercase;
      margin: 0 auto 30px;
      max-width: 810px;
      text-align: center;
      padding: 0 20px;
    }

    p {
      font-family: "ArkitektRegular", Arial, sans-serif;
      font-weight: 400;
      font-size: 18px;
    }
  }

  .locator-wrapper {
    position: relative;
    display: block;
  }
}

.footer {
  background: var(--Grey-4);
  color: var(--White);
  margin-top: 70px;

  .footer-top {
    display: flex;
    flex-direction: row;
    padding: 40px 0;

    @media (max-width: 768px) {
      flex-direction: column;
      padding: 50px 0 20px;
      gap: 20px;
    }

    .left {
      flex-grow: 1;

      h4 {
        color: var(--White);
        font-size: 36px;
        line-height: 36px;
        margin: 0;

        @media (max-width: 768px) {
          font-size: 28px;
          line-height: 28px;
        }

        span {
          display: block;
          color: var(--RW-Grey-3);
        }
      }
    }

    .right {
      flex-grow: 1;
      max-width: 457px;
      gap: 18px;
      display: flex;
      flex-direction: column;

      p {
        font-family: "ArkitektRegular", Arial, sans-serif;
        font-weight: normal;
        font-size: 18px;
        line-height: 19.8px;
        margin: 0;

        a {
          color: var(--White);
          font-weight: 700;
          word-break: break-all;
        }
      }
    }
  }

  .footer-bottom {
    padding: 0px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (max-width: 768px) {
      padding: 0px 0 50px;
    }

    .divider {
      display: block;
      height: 1px;
      background: #89919e;
    }

    .fine-print {
      margin: 0;

      .small {
        font-family: "ArkitektRegular", Arial, sans-serif;
        font-size: 11px;
        font-weight: normal;
        letter-spacing: 0.11px;
        margin: 0;
        color: var(--RW-Grey-2);

        @media (max-width: 768px) {
          margin: 16px 0 0;
        }
      }

      .small:last-child {
        color: var(--RW-Grey-1);
      }
    }

    img {
    }
  }
}
