/* Section Banner */

.section-banner-contact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-image: url("../media/webp/banner-contact.webp");
    height: 30vw;
    padding: 6vw;
    border-bottom: 1vw solid var(--red);
    gap: 2vw;
}

.section-banner-contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    opacity: 0.7;
    z-index: 1;
}

.section-banner-contact>* {
    position: relative;
    z-index: 2;
}

.section-banner-contact h1 {
    font-size: 2.8vw;
    font-weight: 600;
    color: var(--gray);
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.section-banner-contact h1 span {
    color: var(--blue);
}

.section-banner-contact p {
    font-size: 1.2vw;
    line-height: 1.6;
    color: var(--gray);
    text-align: center;
    max-width: 60vw;
}

.btn-contact {
    width: 42vw;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: .5vw 18.2vw;
    text-wrap: balance;
}

/* Section Form */

.form-contact {
    display: flex;
    flex-direction: column;
    padding: 6vw;
    background-color: var(--blue);
    text-align: center;
    gap: 1vw;
}

.form-contact h2 {
    font-size: 2.8vw;
    font-weight: 500;
    color: var(--white);
}

.form-contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vw;
}

.info-user {
    display: grid;
    grid-template-columns: repeat(2, 20vw);
    gap: 1.5vw;
}

.info-user input,
.info-user select,
.info-service input,
.info-message textarea,
.info-insure select {
    padding: 1vw;
    font-size: 1vw;
    border-radius: 0.5vw;
    border: 2px solid var(--white);
    background-color: transparent;
    color: var(--white);
    outline: none;
    width: 100%;
}

.info-user select option,
.info-insure select option {
    color: var(--white);
    background-color: var(--blue);
}



::placeholder {
    color: var(--white);
    opacity: 0.8;
}

.info-service,
.info-insure {
    width: 100%;
    display: grid;
    grid-template-columns: 41.5vw;
    justify-content: center;
}

.info-message {
    width: 100%;
    display: grid;
    grid-template-columns: 41.5vw;
    justify-content: center;
}

.info-message textarea {
    height: 8vw;
}

.notify_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader {
    display: none;
    margin-top: 30px;
    --height-of-loader: 4px;
    --loader-color: #0071e2;
    width: 100%;
    height: var(--height-of-loader);
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}

.loader::before {
    content: "";
    position: absolute;
    background: var(--loader-color);
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    border-radius: 30px;
    animation: moving 1s ease-in-out infinite;
}

@keyframes moving {
    50% {
        width: 100%;
    }

    100% {
        width: 0;
        right: 0;
        left: unset;
    }
}

.message_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: fit-content;
    width: 100%;
    color: black;
}

.message_box p {
    text-align: center;
    color: var(--white);
    font-weight: 500;
}

.message_box a {
    text-align: center;
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .section-banner-contact {
        padding: 12vw 6vw;
        height: 100vw;
        gap: 3vw;
    }

    .section-banner-contact h1 {
        font-size: 7vw;
    }

    .section-banner-contact h2 {
        font-size: 6vw;
    }

    .section-banner-contact p {
        font-size: 4vw;
        max-width: 90vw;
    }

    .form-contact {
        padding: 12vw 6vw;
        gap: 3vw;
    }

    .form-contact h2 {
        font-size: 7vw;
    }

    .form-contact h3 {
        font-size: 5vw;
    }

    .form-contact form {
        gap: 3vw;
    }

    .info-user {
        grid-template-columns: 1fr;
        gap: 4vw;
        width: 100%;
    }

    .info-service,
    .info-message,
    .info-insure {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .info-user input,
    .info-user select,
    .info-service input,
    .info-message textarea,
    .info-insure select {
        font-size: 4vw;
        padding: 3.5vw;
        border-radius: 1.5vw;
    }

    .info-message input {
        height: 24vw;
    }

    .btn-contact {
        width: 100%;
        padding: 3vw;
    }

    .info-message textarea {
        height: 30vw;
    }
}