@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* defaults */

:root {
  --primary-color: #0F9960;
  --primary-color--dark: #0A6657;
  --primary-color--light: #8DD9B9;

  --promo-code-color--hover: var(--primary-color--light);

  --secondary-color--light: rgba(141, 217, 185, 0.10);

  --form-bg-color: #01233E;

  --text-bg-color--light: #F5F7FA;
  --text-bg-color--medium: #2C2F33;
  --text-bg-color--dark: #13161A;

  --button-cta-color: #0F9960;
  --button-cta-color--hover: #0A6657;
  --button-cta-text-color: var(--text-bg-color--light);

  --black-color--75: #000000BF;

  --white-color: #fff;

  --error-color: #E57373;
}

html {
  position: relative;
}

body {
  margin: 0;
  font-family: 'Montserrat';
  font-size: 16px;
  line-height: 150%;
  color: var(--text-bg-color--medium);
}

@media screen and (max-width:991px) {
  body.mobile-menu-opened {
    overflow: hidden;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  font-size: 0;
  transition: .3s;
}

a {
  text-decoration: none;
  color: inherit;
  transition: .3s;
  position: relative;
}

ul,
ol {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit;
  font-size: 1em;
  transition: .3s;
  display: block;
}

*:focus {
  outline: none;
}

*::placeholder {
  color: inherit;
  opacity: .5;
}

p {
  margin: 0;

  &:not(:last-child) {
    margin-bottom: 16px;
  }
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Jost';
  color: var(--text-bg-color--dark);
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 2em;
  line-height: 125%;
  color: var(--text-bg-color--light);
}

h2 {
  font-size: 1.25em;
  line-height: 125%;
}

.area-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.background-image {
  background: center/cover;
}

main section:not(.hero) {
  margin: 112px 0;

  @media (max-width: 1199px) {
    margin: 72px 0;
  }
}

input {
  background: none;
  padding: 0;
  border: 0;
}

/* -- Header -- */

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;

  .wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 112px;

    @media (max-width: 1199px) {
      height: 80px;

      .cta-button {
        display: none;
      }
    }
  }
}

/* -- Cta button -- */

.cta-button a, .cta-button:not(:has(a)) div{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background-color: var(--primary-color);
  color: #0D3330;
  font-family: "Montserrat";
  font-size: 18px;
  font-weight: 700;
  line-height: 135%;
  padding: 4px 4px 4px 16px;
  border-radius: 200px;
  transition: .3s;

  span {
    flex: 1;
  }

  img {
    background-color: #0D3330;
    border-radius: 200px;
    padding: 8px;
  }

  &:hover {
    background: #33FFAB;
  }
}

/* -- Hero -- */

section.hero {
  position: relative;
  padding: 121px 0 96px;
  color: #FFF;

  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .row {
    align-items: center;
  }

  .asset, .background-image {
    &.responsiveness {
      display: none;
    }
  }

  .cta-button {
    max-width: 384px;
  }

  .partners {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr;
    gap: 0 16px;
    padding-bottom: 32px;

    .title {
      color: #FFF;
      font-family: "Jost";
      font-size: 20px;
      font-weight: 600;
      line-height: 120%;
      text-transform: uppercase;
    }

    .subtitle {
      opacity: .7;
      line-height: 1;
    }

    .avatars {
      display: flex;
      flex-direction: row;
  
      .avatar:nth-child(n+2) {
        margin-left: -8px;
      }

      img {
        width: 44px;
        aspect-ratio: 1;
      }
    }
  }

  h2 {
    padding-bottom: 40px;
    font-family: "Jost";
    font-size: 44px;
    color: inherit;
    font-weight: 600;
    line-height: 110%;
    text-transform: uppercase;
  }

  .benefits {
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 8px 0;
    font-weight: 600;

    .benefit div {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 0 16px;
    }

    img {
      order: -1;
    }
  }

  @media (max-width: 1199px) {
    & {
      padding: 104px 0 0;
    }

    .partners {
      align-items: flex-start;

      .subtitle {
        line-height: 1.2;
      }
    }

    h2 {
      padding-bottom: 32px;
      font-size: 40px;
    }

    .benefits {
      padding-bottom: 40px;
    }

    .row {
      gap: 38px 0;
    }

    .asset, .background-image {
      &.responsiveness {
        display: block;
      }

      &:not(.responsiveness) {
        display: none;
      }
    }
  }
}

/*  */

.details-container {
  .introduction {
    padding-bottom: 48px;

    img {
      width: 72px;

      &.responsiveness {
        display: none;
      }
    }

    > div {
      display: flex;
      gap: 0 8px;
      align-items: flex-start;
      justify-content: center;
    }

    @media (max-width: 1199px) {
      & {
        padding-bottom: 24px;
      }

      > div {
        display: block;
      }

      img {
        margin-bottom: 16px;

        &.responsiveness {
          display: block;
        }

        &:not(.responsiveness) {
          display: none;
        }
      }
    }
  }

  h2 {
    text-align: center;
    color: #0D3330;
    font-family: "Jost";
    font-size: 32px;
    font-weight: 600;
    line-height: 125%;
    text-transform: uppercase;

    @media (max-width: 1199px) {
      text-align: left;
      font-size: 28px;
    }
  }

  .details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;

    @media (max-width: 1199px) {
      display: flex;
      overflow: auto;
      gap: 0 16px;

      > div {
        flex: 0 0 344px;
        width: 344px;
        padding: 32px 24px;
      }
    }

    @media (max-width: 575px) {
      margin: 0 -15px;
      padding: 0 15px;
    }
  }

  .detail {
    padding: 40px 32px;
    border-radius: 8px;
    background: #F7F8FA;

    img {
      margin-left: -12px;
    }

    .title {
      padding-bottom: 8px;
      color: #0D3330;
      font-family: "Jost";
      font-size: 20px;
      font-weight: 600;
      line-height: 120%;
      text-transform: uppercase;
    }
  }
}

/*  */

section.submit {
  .container > .wrapper {
    overflow: hidden;
    border-radius: 16px;
    color: #FFF;
  }

  .introduction {
    background: #0C3839;
    padding: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }

  .introduction .title h3{
    color: #fff !important;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 135%;
    text-transform: uppercase;
  }

  .cta-button {
    width: max-content;
    cursor: pointer;
  }

  .form-container {
    padding: 40px 48px 48px;
    background: #0D3330;

    &.hide {
      display: none;
    }
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 40px 0;

    .error:empty {
      display: none;
    }

    input[type=text], .field.country .wrapper, .field.phone-number .wrapper {
      width: 100%;
      height: 48px;
      border-radius: 8px;
      border: 1px solid #364D43;
      padding: 0 16px;
      font-size: 14px;
      line-height: 115%;

      &:focus {
        border-color: var(--primary-color);
      }
    }

    .toggle {
      width: 16px;
      height: 16px;
    }

    .label {
      font-size: 14px;
      font-weight: 500;
      line-height: 145%;
    }

    .igaming {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 32px;
      align-items: center;

      .wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 16px;

        input {
          display: none;

          &:checked + label {
            border-color: var(--primary-color);
          }
        }

        label {
          line-height: 46px;
          border-radius: 8px;
          border: 1px solid #364D43;
          text-align: center;
          font-size: 14px;
          font-weight: 500;
          cursor: pointer;
          transition: .3s;
        }
      }
    }

    .middle {
      display: flex;
      flex-direction: column;
      gap: 40px 32px;
    }

    .middle .row-container {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 40px 32px;

      .label {
        padding-bottom: 12px;
      }
    }

    .middle .row-container:last-child {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .submit {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 16px;
      background-color: var(--primary-color);
      color: #0D3330;
      padding: 4px 4px 4px 16px;
      border-radius: 200px;
      transition: .3s;
      cursor: pointer;

      input {
        font-family: "Montserrat";
        font-size: 18px;
        font-weight: 700;
        line-height: 135%;
        flex: 1;
        text-align: left;
        cursor: inherit;
      }
    
      img {
        background-color: #0D3330;
        border-radius: 200px;
        padding: 8px;
        width: 40px;
        aspect-ratio: 1;
      }
    
      &:hover {
        background: #33FFAB;
      }
    }

    .bottom {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        .title {
            color: #FFF;
            font-size: 14px;
            font-style: normal;
            line-height: 150%;
        }

        .subtitle {
            font-size: 14px;
            font-style: normal;
            line-height: 150%; 
            opacity: 0.7;
        }
    }

    .error {
      margin-top: 5px;
      font-size: 13px;
      display: flex;
      flex-direction: column;
      color: var(--error-color);
    }

    .field:not(.igaming).has-error input[type=text], .field.igaming.has-error label{
      border-color: var(--error-color);
    }

    .field.country {
        position: relative;

        .selected {
            width: 100%;
            height: 48px;
            transition: .3s;
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            cursor: pointer;
        }

        .bottom {
            .label {
                font-size: 14px;
                font-weight: 500;
                line-height: normal;
                padding-bottom: 0;
            }
        }

        .options {
            position: absolute;
            background: var(--white-color);
            z-index: 1;
            top: 100%;
            left: 0px;
            width: 100%;
            margin-top: 15px;
            display: none;
            max-height: 200px;
            overflow: auto;
            border-radius: 4px;
        }

        .option-wrapper {
            padding: 10px 0;
        }

        .option-wrapper .flag {
            height: 16px;
            width: 16px;
            border-radius: 50%;
            background-size: 21px 21px;
            background-position: center;
        }

        .options .option-wrapper {
          padding-left: 15px;
          padding-right: 15px;
          color: var(--text-bg-color--dark);

          &:hover, &.active {
            color: var(--primary-color);
          }
        }

        .option {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            font-weight: 600;
            cursor: pointer;
        }

        &.open {
            .bottom.wrapper {
              border-color: var(--primary-color);
            }

            .selected {

                img {
                    rotate: 180deg;
                }
            }

            .options {
                display: block;
            }
        }

        &.has-error .bottom.wrapper {
          border-color: var(--error-color);
        }
    }

    .field.phone-number .countries>div .country {
        display: flex;
        align-items: center;
        flex-direction: row-reverse;
        gap: 0 10px;
        font-size: 14px;
        color: var(--high-contrast-color--3);
    }

    .field.phone-number .countries>div.top {
        height: 100%;
        width: fit-content;
        padding: 5px;
        border-radius: 6px;
        border: 1px solid var(--background-color--md--2);
        background: #071A18;
        transition: .3s;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        cursor: pointer;
    }

    .field.phone-number .countries>div.bottom .country,
    .field.phone-number .countries>div.top .country {
        font-weight: 600;
        padding: 4px 8px;
        justify-content: flex-end;
        cursor: pointer;
    }

    .field.phone-number .countries>div.bottom .country .flag,
    .field.phone-number .countries>div.top .country .flag {
        height: 16px;
        width: 16px;
        border-radius: 50%;
        background-size: 21px 21px;
        background-position: center;   
    }

    .field.phone-number .countries:not(.open) {
        .bottom {
            display: none;
        }
    }

    .field.phone-number .countries.open {
        .top .toggle img {
            rotate: 180deg;
        }
    }

    .field.phone-number .wrapper.open {
      border-color: var(--primary-color);
    }

    .field.phone-number {
        position: relative;

        &.has-error .wrapper {
          border-color: var(--error-color);
        }
    }

    .field.phone-number .countries>div.bottom {
        position: absolute;
        background: var(--white-color);
        z-index: 1;
        top: 100%;
        left: 10px;
        width: 95px;
        margin-top: 15px;
        display: none;
        max-height: 200px;
        overflow: auto;
        border-radius: 4px;
        overflow-y: scroll;
        transition: .3s ease;
        display: flex;
        flex-direction: column;
        align-items:  flex-start;

        .country {
          color: var(--text-bg-color--dark);

          &:hover, &.active {
            color: var(--primary-color);
          }
        }
    }

    .field.phone-number .wrapper {
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        line-height: normal;
        padding: 5px 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        .input {
            width: 100%;
            display: flex;
            flex-direction: row;

            input {
                width: 100%;
                padding: 0 20px;
            }
        }
    }

    .field.phone-number .wrapper:focus-within {
      border-color: var(--primary-color);
    }
  }

  @media (max-width: 1199px) {
    .introduction {
      padding: 32px 24px;
      flex-direction: column;

      .cta-container {
        width: 100%;
      }

      .cta-button {
        width: 100%;
      }
    }

    .form-container {
      padding: 24px 24px 32px;
    }

    form {
      display: block;

      .middle {
        padding-bottom: 32px;
        gap: 16px 0;
      }

      .middle .row-container {
        display: flex;
        flex-direction: column;
        gap: 16px 0;
      }

      .igaming {
        display: flex;
        flex-direction: column;
        gap: 12px 0;
        align-items: stretch;
        padding-bottom: 16px;
      }
    }
  }
}

/*  */

footer {
  border-top: 1px solid #E1E6EB;

  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 104px;
  }

  @media (max-width: 1199px) {
    & {
      padding: 32px 0;
    }

    .container {
      gap: 16px 0;
      flex-direction: column;
      height: auto;
      align-items: stretch;
    }
  }
}

.copyright {
  color: #42464DCC;
  font-size: 14px;
  font-weight: 600;
  line-height: 145%;
}

/*  */

.cta-button:has(+ .extra-information) {
  margin-bottom: 20px;

  + .extra-information {
    font-size: 14px;
    font-weight: 500;
    line-height: 145%;
    text-transform: uppercase;
  }
}

.highlighted-2 {
  color: var(--third-color);
}

.highlighted {
  color: var(--secondary-color);
}

/** Pop Up **/
.pop-ups {
  .pop-up {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--black-color--75);
      z-index: 4;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 15px;
  }
}

#success-pop-up {
  .pop-up-container {
      width: 100%;
      max-width: 328px;
      padding: 40px;
      border-radius: 12px;
      background: #fff;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 25px;
  }

  .icon {
    background-color: #fff;
    border-radius: 200px;
    padding: 10px;
    box-shadow: 0px 56px 16px 0px rgba(13, 51, 48, 0.00), 0px 36px 14px 0px rgba(13, 51, 48, 0.00), 0px 20px 12px 0px rgba(13, 51, 48, 0.01), 0px 9px 9px 0px rgba(13, 51, 48, 0.02), 0px 2px 5px 0px rgba(13, 51, 48, 0.02);
    
    img {
      height: 32px;
    }
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .title h2{
    text-transform: uppercase;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; 
  }

  .subtitle {
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; 
  }

  @media (max-width: 1199px) {
    .pop-up-container {
        padding: 32px 16px;
    }
  }
}