@font-face {
    font-family: 'extralight';
    src: url(./assets/fonts/RAG-Sans-1.2-ExtraLight.ttf);
}
@font-face {
    font-family: 'regular';
    src: url(./assets/fonts/RAG-Sans-1.2-Regular.ttf);
}
@font-face {
    font-family: 'bold';
    src: url(./assets/fonts/RAG-Sans-1.1-Bold.ttf);
}
@font-face {
    font-family: 'black';
    src: url(./assets/fonts/RAG-Sans-1.2-Black.ttf);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.html, body {
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header { 
    aspect-ratio: 640 / 714;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(./assets/images/bg-mob.jpg);
    background-size: cover;
}

.logo {
    width: 40.78vw;
    margin-top: 8.28vw;
    
}

.text-header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-right: 3.44vw;
    margin-top: 8.44vw;
}

.text-1 {
    background-color: #9631FF;
    font-family: 'bold';
    color: white;
    font-size: 6.47vw;
    padding: 1.8vw 2.03vw;
    width: fit-content;
    direction: rtl;
}
.text-2 {
    background-color: #F4FE7E;
    font-family: 'bold';
    color: #9631FF;
    font-size: 8.5vw;
    padding: 0.7vw 2.34vw;
    width: fit-content;
    direction: rtl;
}

.form { 
    background-color: #9631FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 11vw;
}

.top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bravo {
    width: 21.88vw;
    position: absolute;
    top: -19vw;
}

.text-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6.25vw;
}

.text-3 {
    font-family: 'regular';
    font-size: 5vw;
    color: white;
    direction: rtl;
}

.text-4 {
    font-family: 'bold';
    font-size: 5.63vw;
    color: white;
    margin-bottom: 3.75vw;
    direction: rtl;
}

.text-5 {
    font-family: 'bold';
    font-size: 7.5vw;
    color: #F4FE7E;
    direction: rtl;
}

form {
    margin-top: 3.75vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fields {
    display: flex;
    gap: 3.75vw;
    margin-bottom: 3.75vw;
}

.fields input {
    width: 42.34vw;
    height: 12.5vw;
    border: 1px solid #BDBCBE;
    border-radius: 1vw;
    direction: rtl;
    padding-right: 3.75vw;
    font-family: 'regular';
    font-size: 3.75vw;
}

.checkbox-container {
    display: flex;
    flex-direction: row;
    align-self: center;
    width: 91%;
}

.checkbox-container label {
    font-size: 3.13vw;
    font-family: 'extralight';
    direction: rtl;
    color: white;
}

.checkbox-container label a { color: inherit; }

.checkbox {
    min-width: 5.03vw;
    width: 5.03vw;
    height: 5.03vw;
    margin: 0 0.5em;
    position: relative;
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    border: 0.5vw solid white;
    border-radius: 1vw;
    transition: all 0.2s ease;
}

.checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1vw;
    height: 2vw;
    border: solid rgb(255 255 255);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    opacity: 0;
}

.checkbox:checked::after {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
    opacity: 1;
}

.connect-button {
    width: 88.44vw;
    height: 14.22vw;
    background-color: #F4FE7E;
    border: 0 transparent;
    border-radius: 10vw;
    margin-top: 3.75vw;
    margin-bottom: 3.75vw;
    direction: rtl;
    font-family: 'bold';
    font-size: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.75vw;
}

.call-button {
    width: 88.44vw;
    height: 14.22vw;
    background-color: #F4FE7E;
    border: 0 transparent;
    border-radius: 10vw;
    direction: rtl;
    font-family: 'bold';
    font-size: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.75vw;
    position: relative;
}

.arrow { width: 14vw; }

.phone { width: 11vw; }

.masqyoo {
    position: absolute;
    width: 100%;
    height: 100%;
    color: transparent;
}

.footer { 
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom, #9631FF 0%, #9631FF 5%, 
                #C5A0EF 5%, #C5A0EF 100%);
}

.boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6.25vw;
    z-index: 1;
}

.box {
    text-align: center;
    width: 75vw;
}

.text-top {
    font-family: 'bold';
    font-size: 7.5vw;
    color: #9631FF;
    background-color: white;
    border-top-left-radius: 2vw;
    border-top-right-radius: 2vw;
    padding: 3vw 1vw;
    direction: rtl;
}
.text-bottom {
    font-family: 'bold';
    font-size: 12.5vw;
    color: #F4FE7E;
    background-color: #9631FF;
    border-bottom-left-radius: 2vw;
    border-bottom-right-radius: 2vw;
    padding: 4vw 1vw;
    direction: rtl;
}

.terms-text {
    color: white;
    font-family: 'extralight';
    font-size: 3.13vw;
    margin-top: 9vw;
}

.error {
  border: 3px solid rgba(255, 59, 59, 0.966) !important;
}

.error::placeholder {
    color: tomato !important;
}

.leadThankMessage {
  color: white;
  display: none;
  position: relative;
  top: 40%;
  font-size: 1.5vw;
  text-align: center;
}

.thanksMessage {
    font-size: 11vw;
    font-weight: bold;
    font-family: regular;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 9vw;
}

.mobile { display: flex; }
.desktop { display: none; }

@media (min-width: 641px) {
    .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "form header"
        "form footer";
        min-height: 100vh;
        overflow-y: hidden;
    }

    .header { 
        grid-area: header;
        aspect-ratio: 1225 / 746;
        background-image: url(./assets/images/bg-desk.jpg);
        width: 63.8vw;
    }

    .text-header-container {
        margin-top: 3.13vw;
        margin-right: 3.75vw;
    }

    .text-1 {
        font-size: 3.5vw;
        padding: 0.7vw 1.04vw
    }

    .text-2 {
        font-size: 4vw;
        padding: 0.7vw 1.04vw
    }

    .form { 
        grid-area: form;
        aspect-ratio: unset;
        padding: unset;
    }

    .logo {
        width: 16.31vw;
        margin-top: 4.51vw;
    }

    .top {
        flex-direction: row;
    }

    .bravo {
        width: 6.25vw;
        position: static
    }

    .text-form-container {
        margin-top: 3.02vw;
        margin-left: 1.56vw;
    }

    .text-3 {
        font-size: 1.5vw;
    }

    .text-4 {
        font-size: 1.55vw;
        margin-bottom: 3.75vw;
        direction: rtl;
    }

    .text-5 {
        font-size: 2.5vw;
    }

    form {
        margin-top: 1.25vw;
    }

    .fields {
        flex-direction: column-reverse;
        gap: 1.25vw;
        margin-bottom: 0.83vw;
    }

    .fields input {
        width: 29.48vw;
        height: 3.13vw;
        border: 1px solid #BDBCBE;
        border-radius: 1vw;
        direction: rtl;
        padding-right: 1.25vw;
        font-family: 'regular';
        font-size: 1.25vw;
    }

    .checkbox-container {
        display: flex;
        flex-direction: row;
        width: 82%;
    }

    .checkbox-container label {
        font-size: 1.04vw;
        font-family: 'extralight';
        direction: rtl;
        color: white;
    }

    .checkbox {
        min-width: 1.5vw;
        width: 1.5vw;
        height: 1.5vw;
        border: 0.17vw solid white;
        border-radius: 0.3vw;
    }

    .checkbox::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0.3vw;
        height: 0.6vw;
        border: solid rgb(255 255 255);
        border-width: 0 2px 2px 0;
        transform: translate(-50%, -60%) rotate(45deg) scale(0);
        transition: transform 0.2s ease;
        opacity: 0;
    }

    .checkbox:checked::after {
        transform: translate(-50%, -60%) rotate(45deg) scale(1);
        opacity: 1;
    }

    .connect-button {
        width: 29.48vw;
        height: 4.32vw;
        background-color: #F4FE7E;
        border: 0 transparent;
        border-radius: 10vw;
        margin-top: 0.83vw;
        margin-bottom: 0.83vw;
        direction: rtl;
        font-family: 'bold';
        font-size: 1.67vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .call-button {
        width: 29.48vw;
        height: 4.32vw;
        background-color: #F4FE7E;
        border: 0 transparent;
        border-radius: 10vw;
        direction: rtl;
        font-family: 'bold';
        font-size: 1.67vw;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3.47vw;
    }

    .arrow { 
        width: 5vw;
        margin-right: -3vw;
    }

    .footer { 
        grid-area: footer;
        aspect-ratio: unset;
        background: unset;
        background-color: white;
    }

    .boxes {
        flex-direction: row-reverse;
        gap: 0.94vw;
        margin-top: -3.3vw;
        z-index: 1;
    }

    .box {
        width: 14.58vw;
    }

    .text-top {
        font-family: 'bold';
        font-size: 1.25vw;
        color: #F4FE7E;
        background-color: #9631FF;
        border-top-left-radius: 1vw;
        border-top-right-radius: 1vw;
        padding: 1vw 0;
    }
    .text-bottom {
        font-family: 'bold';
        font-size: 1.88vw;
        color: #9631FF;
        border: 0.1vw solid #9631FF;
        background-color: white;
        border-bottom-left-radius: 1vw;
        border-bottom-right-radius: 1vw;
        padding: 1vw 0;
    }

    .terms-text {
        color: black;
        align-self: flex-end;
        font-size: 1.04vw;
        margin-top: 1.04vw;
        font-weight: 'black';
        margin-right: 3.75vw;
    }

    .thanksMessage {
        font-size: 3vw;
        font-weight: bold;
        font-family: regular;
        color: white;
        text-align: center;
        padding: 0 2vw;
    }

    .leadThankMessage {
        display: none;
        position: relative;
        top: 0;
        font-size: 6vw;
        margin: 10vw 0;
    }

  .mobile { display: none; }
  .desktop { display: flex; }
}