@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
    --first-text-color: #00B8A8;
    --second-color-text: #952182;
    --third-color-text: #CFD6E5;

    --title-color-text: #00B8A8;

    --btn-submit-color: #51AA28;
    --btn-hover-color: #68C93B;
    --btn-press-color: #428B20;

    --input-border : #54678C;
    --input-focues: #28BCF1
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
}


.main-container {
    position: relative;
    width: 100%;
    /*max-height: 55rem;*/
    height: 100%;
    display: flex;
    justify-content: center;
}


.form-container {
    display: flex;
    height: 100%;
    width: 100%;
    z-index: 1;
}

#animation1.visible {
    display: block;
}

#animation2.visible {
    display: block;
}

.main-animation {
    position: relative;
    width: 13.5625rem;
    height: 13.5625rem;
    background-image: url(../assests/circle.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

/*LEFT FORM*/

.form-background {
    position: relative;
    overflow: hidden;
    width: 30%;
    display: flex;
    justify-content: center;
}

.form-background>div {
    position: relative;
    width: 90%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 10rem;
    color: var(--first-text-color);
    letter-spacing: 0.2rem;
}

.form-background.lite>div{
    margin-top: 0;
}

.form-background.lite{
    align-items:center;
}

.form-background.lite .background-text{
    font-size: 2rem;
}

.form-background.lite .figure_top{
    width:6.5rem;
}

.background-text{
    font-weight: bolder;
}

.form-background div span {
    color: var(--second-color-text);
}

.form-background div img:first-child {
    width: inherit;
    height: auto;
    margin-bottom: 3rem;
    max-width: 20vw;
    min-width: 87%;
}

.form-background div img:nth-child(2) {
    display: none;
}

.form-background .figure_top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 8rem;
}

.form-background .ellipse_down {
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    width: 100%;
}

.form-background::after{
    content: "";
    position: absolute;
    z-index: -2;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 22.94rem;
    background: url('../assests/Figure-3.webp');
    background-repeat: no-repeat;
    background-size: cover;
}
@supports not (background-image: url('../assests/Figure-3.webp')) {
    .form-background::after {
        background-image: url('../assests/Figure-3.png');
    }
}

/*RIGHT FORM*/

.form-inputs {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    overflow: hidden;
    text-align: center;
}

.form-inputs.hide {
    display: none;
}

.form-success {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70%;
    overflow: hidden;
    text-align: center;
}

.dots, #animation2{
    display: none;
}
#animation2 img{
    width: 8rem;
}
.dots.visible, .form-success.visible{
    display: flex;
    gap: 1rem;
}
.dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #00B8A8;
    animation: bounce 1.2s infinite ease-in-out;
}
.dot:nth-child(1) {
    animation-delay: 0s;
}
.dot:nth-child(2) {
    animation-delay: 0.2s;
}
.dot:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes bounce {
    0%,100% {transform: translateY(0);}
    50% {transform: translateY(-20px);}
}
/*Fondo del formulario*/
.form-inputs::after,
.form-success::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url('../assests/bg-form.webp');
    background-size: cover;
    z-index: -2;
}
@supports not (background-image: url('../assests/bg-form.webp')) {
    .form-inputs::after,
    .form-success::after {
        background: url('../assests/bg-form.jpg');
    }
}
.form-inputs::before,
.form-success::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(43, 48, 52, 0.9);
    z-index: -1;
}

h1 {
    color: var(--title-color-text);
    font-size: 2.5rem;
    font-weight: bolder;
}

.form-input {
    position: relative;
    width: 60%;
    margin-bottom: 1.2rem;
}

label {
    display: block;
    width: 100%;
    text-align: left;
}

input,
textarea {
    outline: none;
    border: none;
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
    color: var(--input-border);
    width: 100%;
    border: 2px solid var(--input-border);
    font-size: 0.875rem;
    letter-spacing: 0.08rem;
}

input {
    height: 2.22rem;
}

textarea {
    height: 6.25rem;
    font-family: 'Poppins', sans-serif;
}

label {
    margin-left: 1rem;
    color: var(--third-color-text);
}

.form-inputs p:nth-child(2) {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--third-color-text);
    font-weight: 500;
}

.form-inputs p:nth-child(3) {
    margin-bottom: 3rem;
    font-size: 1.25rem;
    color: var(--third-color-text);
    font-weight: 500;
}

.form-success p {
    margin-top: 1rem;
    color: var(--third-color-text);
    font-size: 2rem;
    width: 80%;
}

.form-input-tel {
    position: relative;
    outline: none;
    display: flex;
    overflow: hidden;
    background-color: white;
    align-items: center;
    border-radius: 0.4rem;
    border: 2px solid var(--input-border);
}

.form-input-tel input {
    border-radius: 0;
    border: none;
    margin-top: 0;
}

.form-input-tel select {
    outline: none;
    border: none;
    padding: 0.25rem 1rem;
    margin-right: 0.5rem;
    background-color: white;
    font-size: 1rem;
    color: var(--input-border);
    user-select: none;
}

.form-input-tel option {
    font-size: 1rem;
    color: var(--input-border);
    user-select: none;
}

.form-input-tel .border {
    height: 1.3rem;
    border-right: 1px solid var(--input-border);
}

.form-input-custom {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1.3rem;
    user-select: none;
}

.form-input-custom .ico-arrow-down{
    width: 0.6rem;
    height: 0.39rem;
}

.form-input-custom .select-custom .option{
    display: flex;
    align-items:center;
    font-size: 1rem;
    color: var(--input-border);
    font-weight: 300;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.select-options {
    display: none;
    position: absolute;
    top: 24.3rem;
    left: 52.8rem;
    z-index: 1;
    background: white;
    padding: 0.2rem 0;
    overflow-y:scroll;
    height: 40%;
}

.select-options.visible {
    display: block;
}

.select-options .option {
    width: 8rem;
    padding: 0.3rem 1rem;
    color: var(--input-border);
    font-weight: 300;
    display: flex;
    gap: 0.5rem;
    align-items:center;
    font-size: 0.9rem;
    user-select: none;
}

.select-options .option:hover {
    background-color: #EEEEEE;
}

.textarea p {
    text-align: justify;
    margin: 0.2rem 0;
    color: var(--third-color-text);
}

.form-btn-send {
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 0.7rem;
    font-weight: bold;
    color: white;
    background-color: var(--btn-submit-color);
    font-size: 1.5rem;
    box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.6);
}
.form-btn-send:hover {
    background-color: var(--btn-hover-color);
}

.form-btn-send:active {
    background-color: var(--btn-press-color);
}

input:not(#tel):focus {
    border: 2px solid var(--input-focues);
}

.form-input-tel:focus {
    border: 2px solid var(--input-focues);
}

.form-input-tel.active {
    border: 2px solid var(--input-focues);
}

textarea:focus {
    border: 2px solid var(--input-focues);
}

@media (max-width: 1370px) {
    .form-background div img {
        margin-bottom: 2rem;
    }
}

@media (max-width: 1162px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 990px) {
    .form-input {
        width: 80%;
    }

    .form-success p {
        width: 90%;
    }
}

@media (max-width: 984px) {
    html {
        font-size: 13px;
    }

    .form-inputs p:nth-child(3) {
        margin-bottom: 1rem;
    }
}

/*SMARTPHONES RESPONSIVE*/

@media (max-width:600px) {
    html {
        font-size: 12px;
    }

    .form-background {
        display: none;
    }

    .ellipse_down {
        display: none;
    }

    .figure_top {
        width: 8rem !important;
    }

    .form-success,
    .form-inputs {
        width: 100%;
        height: 100%;
        /*flex-shrink: 0;*/
        justify-content: center;
        padding: 1rem 2rem;
    }

    input {
        height: 2.5rem;
    }

    input,
    textarea {
        border-radius: 0.5rem;
    }

    .form-input-tel {
        border-radius: 0.5rem;
    }

    .form-input-tel input {
        height: 2.1rem;
    }

    .form-btn-send {
        width: 100%;
    }

    .form-inputs .form-input {
        width: 100%;
    }

    .form-inputs p:nth-child(3) {
        margin-bottom: 3rem;
    }
}
@media (max-width:481px) {
    .form-inputs p:nth-child(3) {
        margin-bottom: 1.5rem;
    }
}

@media (max-height: 750px) and (min-width:600px) {
    html {
        font-size: 14px;
    }

    .form-background div img:first-child {
        width: 70%;
        max-width: auto;
        min-width: auto;
    }
}
@media (max-height: 650px) {
    html {
        font-size: 13px;
    }
    .form-inputs p:nth-child(3) {
        margin-bottom: 0.5rem;
    }
}
@media (max-height: 545px) {
    .form-inputs p:nth-child(2) {
        margin: 0;
    }
    .form-inputs p:nth-child(3) {
        margin-bottom: 0;
    }
    .form-inputs p:nth-child(3) {
        width: 90%;
    }
    .form-input {
        margin-bottom: 0.3rem;
    }
    input {
        height: 2rem;
    }
    .form-background {
        width: 25%;
    }
    .form-inputs {
        width: 85%;
    }
}
@media (max-height: 450px) {
    h1 {
        font-size: 2rem;
    }
    .form-inputs p{
        font-size:1rem !important;
    }
    .form-input {
        width: 70%;
        margin-bottom: 0.3rem;
    }
    textarea {
        height: 4rem;
    }
}

@media (max-width:856px) and (min-width:466px) {
    .form-background {
        display: none;
    }
    .form-inputs {
        width: 100%;
    }
}