/* Root */

@font-face {
    font-family: Avenir;
    src: url("../font/Avenir.otf") format("opentype");
}
@font-face {
    font-family: AvenirLight;
    src: url("../font/Avenir_Light.otf") format("opentype");
}
@font-face {
    font-family: AvenirBook;
    src: url("../font/Avenir_Book.otf") format("opentype");
}
@font-face {
    font-family: AvenirHeavy;
    src: url("../font/Avenir_Heavy.ttf") format("truetype");
}
body, html {
    margin: 0; 
    padding: 0;
    font-family: Avenir;
    line-height: 1.5;
    position: relative;
}

/* Common */

a {
    text-decoration: none;
}
p {
    margin: 0 0 10px;
}
.h-100 {
    height: 100%;
}
.w-100 {
    width: 100%;
}
.w-50 {
    width: 50%;
}
.w-40 {
    width: 40%;
}
.w-30 {
    width: 30%;
}
.fontBook {
    font-family: AvenirBook;
}
.fontHeavy {
    font-family: AvenirHeavy;
}
.fontLight {
    font-family: AvenirLight;
}
.f12 {
    font-size: 0.5em;
}
.f18 {
    font-size: 0.7em;
}
.f19 {
    font-size: 0.75em;
}
.f21 {
    font-size: 0.8em;
}
.f23 {
    font-size: 0.9em;
}
.f26 {
    font-size: 1.1em;
}
.f31 {
    font-size: 1.2em;
}
.f41 {
    font-size: 1.7em;
}
.uppercase {
    text-transform: uppercase;
}
.container {
    display: inline-flex;
}
.text-center {
    text-align: center;
}
.ringoverColor {
    color: #39D4CF;
}
.blackColor {
    color: #151515;
}
.wesaasColor {
    color: #082542;
}

/* Header */

header {
    width: 100%;
    background: rgba(245,245,245,0.63);
    display: flex;
    flex-direction: row-reverse;
    position: relative;
}
#header-left {
    justify-content: space-between;
    flex-direction: column;
}
#header-left > div {
    margin: 5vh 8vw;
    max-width: 30vw;
}
#header-right {
    background: #39D4CF;
}
#header-right > img {
    width: calc(100% - 8vw);
    display: flex;
}
#phone {
    position: absolute;
    top: 0;
    right: 0;
    background: #082542;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    padding: 25px;
}
#phone a {
    color: white;
}
#phone > div {
    display: flex;
    align-items: center;
}
#phone img {
    height: 20px;
    margin-top: -5px;
    margin-left: 15px;
}
#header-left > #header-logo {
    margin-bottom: 20px;
    max-width: 430px;
    display: flex;
    align-items: center;
}
.line-vertical {
    height: 35px;
    width: 1px;
    background: black;
    margin: 0 25px;
}
#header-left > #header-content {
    margin-top: 0;
}


/* Middle content */

content#main {
    display: flex;
    justify-content: center;
    padding: 75px 8vw;
}

#trial-pres {
    display: flex;
    flex-direction: column;
    padding: 0 50px;
}
#trial-pres #img-trial-pres {
    width: 50%;
    margin-bottom: 40px;
}
#trial-pres #img-trial-pres img {
    width: 100%;
}
.button-trial-pres {
    user-select: none;
    width: 90px;
    height: 40px;
    color: #CCCCCC;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9em;
    justify-content: center;
    align-items: center;
    transition: color 0.3s; 
}
.button-trial-pres:hover {
    color: black;
}
.button-trial-pres:first-of-type {
    margin-right: 10px;
}
.button-trial-pres.active {
    color: black;
    cursor: auto;
    border: 1px solid #39D4CF;
    border-radius: 10px;
    width: 88px;
    height: 38px;
}
.offer {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.offer-pres {
    border: 3px solid #082542;
    border-radius: 21px;
    padding: 20px;
    width: calc(100% - 40px);
}
.offer-head {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
}
.offer-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.offer-price > p {
    margin-bottom: 0;
    margin-top: 5px;
}
.offer-pres > p {
    max-width: 75%;
}
.offer-pres hr {
    opacity: 0.35;
}
.offer-list {
    padding: 0;
    margin: 20px 0;
}
.offer-list p {
    display: flex;
    margin: 10px 0;
}
.offer-list p span:before {
    content: "\2022"; 
    margin-right: 10px;
    color: #39D4CF;
}
.offer-btn {
    user-select: none;
    cursor: pointer;
    height: 50px;
    margin: 0 auto;
    width: 75%;
    background: #082542;
    border: 1px solid #707070;
    border-radius: 32px;
    color: white;
    display:flex;
    justify-content: center;
    align-items: center;
}
.open-form {
    margin-top: 40px;
}

/* Video */

content#video {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}
content#video iframe {
    margin: 15px auto 40px;
}

/* Footer */

footer #contact {
    height: 150px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(245,245,245,0.63);
}
footer #contact p {
    margin-bottom: 0;
}
footer #terms {
    height: 100px;
    justify-content: center;
    align-items: center;
    background: #082542;
}

/* Popup */

body.popup-open {
    overflow: hidden;
}
body.popup-open #popup_background {
    display: block;
} 
#popup_background {
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    background: rgba(8,37,66,0.43);
}
#popup {
    position: absolute;
    top: 25%;
    border-radius: 36px;
    left: 50%;
    transform: translate(-50%, -25%);
    width: 560px;
    background: white;
}
#popup > div {
    position: relative;
    padding: 30px 70px;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}
#popup .quit-popup {
    position: absolute;
    right: 30px;
    top: 25px;
    width: 25px;
    height: 25px;
    cursor: pointer;
}
#popup .quit-popup:before, #popup .quit-popup:after {
    position: absolute;
    left: 11px;
    content: ' ';
    height: 25px; 
    width: 2px;
    background-color: #082542;
}
#popup .quit-popup:before {
    transform: rotate(45deg);
}
#popup .quit-popup:after {
    transform: rotate(-45deg);
}
#popup .offer-btn {
    width: 50%;
}
#popup.inscription #popup_inscription, #popup.confirm #popup_confirm, #popup.error #popup_error {
    display: flex;
}
#popup_inscription, #popup_confirm, #popup_error {
    display: none;
}
#popup > #popup_confirm, #popup > #popup_error {
    padding: 80px 70px;
}
#popup_confirm .redirect, #popup_confirm .return {
    display: none;
}
#popup_confirm.redirect .redirect, #popup_confirm.return .return {
    display: flex;
}
#popup_confirm .redirect {
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center;
}
.popup-icon {
    margin-bottom: 50px;
    height: 50px;
}
.popup-icon > img {
    height: 100%;
}
#popup_confirm  .return, #popup_error .return {
    margin-top: 15px;
    width: 100%;
}


/* Form */ 
form {
    width: 75%;
    display: flex;
    flex-direction: column;    
}
form > * {
    margin-top: 20px;
    width: 100%;
    font-size: 1em;
    border-bottom: 1px #082542 solid !important;
    text-align: left;
}
form > .error {
    border-bottom-color: #C60A0A !important;
}
form > .error, form > .error *, form > .error::placeholder, form > .error *::placeholder, #error_desc {
    color: #C60A0A;
}
#error_desc {
    margin: 30px auto 10px;
    height: 20px;
}
form input {
    border: none;
    outline: 0;
    padding-bottom: 5px;
}
form input::placeholder {
    font-style: italic;
    font-family: AvenirLight;
}
form #input_mail {
    display: flex;
}
form #input_mail > span {
    background: white;
    line-height: 1.2em;
    transform: translateY(3px);
    padding: 0 2%;
}
form #input_mail > input {
    font-size: 1em;
    padding-bottom: 5px;
}
form #input_mail #input_mail_1 {
    width: 45%;
}
form #input_mail #input_mail_2 {
    width: 30%;
}
form #input_mail #input_mail_3 {
    width: 15%;
}
form #input_phone {
    font-size: 1em;
}
form #input_language {
    display: flex;
    align-items: center;
    height: 30px;
}

form #input_language .iti__country-list {
    top: 100%;
}
form #input_language .iti__country {
    padding: 0
}
form #input_language .iti__flag-box {
    margin: 6px 10px;
}
form #input_language .iti__flag-container {
    position: relative;
    margin: auto 10px;
}
form #input_language .iti__dial-code, form #input_language .iti__country-name, form #input_lang {
    display: none;
}
form #input_language .iti__selected-flag {
    padding: 5px;
}
form .iti__country-list {
    max-width: 315px;
    top: calc(100% + 5px); 
}
form .iti__flag {
    background-image: url("../vendor/intl-tel-input/flags.png");
}
form .iti__flag-container {
    bottom: 5px;
}
form .iti-mobile .iti--container {
    top: 160px;
    bottom: 25px;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    form .iti__flag {
        background-image: url("../vendor/intl-tel-input/flags_2x.png");
    }
}

/* Animations */

.lds-ring {
    position: relative;
    width: 40px;
    height: 40px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    margin: 4px;
    border: 4px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
#send-form.load {
    cursor: auto;
}
#send-form .lds-ring, #send-form.load .lds-noring {
    display: none;
} 
#send-form.load .lds-ring {
    display: inline-block;
} 
  

/* Responsive */

@media (max-width: 1200px) {
    #header-left > #header-content {
        max-width: none;
        margin-right: 4vw;
    }
    content#main {
        padding: 50px 0vw;
    }
    #header-right > img {
        width: calc(100% - 4vw);
    }
}

@media (max-width: 990px) {
    #header-right > img {
        width: 100%;
    }
    #header-left > div {
        margin: 5vh 4vw;
    }
    content#main {
        flex-wrap: wrap;
    }
    content#main > div {
        margin-bottom: 50px;
        width: calc(50% - 40px);
    }
    #trial-pres {
        padding: 20px;
        text-align: center;
        flex-basis: 100%;
        width: auto;
    }
    #trial-pres #img-trial-pres {
        margin: auto;
    }
   

}

@media (max-width: 890px) {
    #header-right {
        display: none;
    }
    #header-left {
        width: 100%;
        padding: 0 50px;
    }
}

@media (max-width: 770px) {
    content#main {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    content#main > div {
        width: calc(100% - 40px);
        text-align: center;
    }
    #popup {
        width: 480px;
    }
    #popup > div {
        padding: 30px 40px;
    }
    #phone a {
        display: none;
    }
    #phone img {
        margin-left:0
    }
}

@media (max-width: 560px) {
    content#video iframe {
        width: 360px;
        height: 210px;
    }
    #phone {
        display: none;
    }
    body, html {
        text-align: center;
    }
    .offer-pres > p {
        margin: auto;
    }
    #popup {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    #popup > div {
        justify-content: space-between;
        height: calc(100% - 60px);
    }
    #popup_confirm, #popup_error {
        justify-content: flex-start !important; 
    }
}

@media (max-width: 420px) {
    #header-left {
        padding: 0 10px;
    }
    #main {
        padding-top: 0;
    }
}


/* Spinner */
.lds-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    filter: invert(1);
    margin: 40px auto 20px;
  }
  .lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
  }
  .lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #fff;
  }
  .lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
  }
  .lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
  }
  .lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
  }
  .lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
  }
  .lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
  }
  .lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
  }
  .lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
  }
  .lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
  }
  .lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
  }
  .lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
  }
  .lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
  }
  .lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
  }
  @keyframes lds-spinner {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  
  pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-left: 3px solid #f36d33;
    color: #666;
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    display: block;
    word-wrap: break-word;
}