:root {
    --header-background-color: #8343B6;
    --main-background-color: white;
    --font-color-dark: #707070;
    --input-background-color: #F4EDF0;
    --input-border: none;
    --form-details-box-border: 2px solid #8343B6;
    --buy-button-color: #8343B6;
    --footer-background-color: white;
    --footer-link-color: #353535;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--font-color-dark);
}

header {
    display: flex;
    justify-content: center;
    background-color: var(--header-background-color);
    padding: 24px 0;
}

header img {
    height: 80px;
}


main {
    /* background-image: url("assets/images/background-light.png"); */
    background-color: var(--main-background-color);
}

.main-container {
    width: 80%;
    margin: 0 auto;
}

.main-container--title {
    width: 100%;
    text-align: center;
    color: var(--font-color-dark);
    font-size: 29px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 48px 0 ;
}

@media only screen and (max-width: 512px) {
    .main-container--title {
        font-size: 20px;
    }

}

.main-container--form {
    display: flex;
    justify-content: space-between;
}


.form-input {
    width: 70%;
}

.form-details {
    max-width: 25%;
    flex-grow: 1;
}

@media only screen and (max-width: 811px) {
    .main-container--form {
        flex-direction: column;
    }

    .form-input {
        width: 100%;
        max-width: 100%;
    }

    .form-details {
        width: 100%;
        max-width: 100%;
        margin-top: 48px;
        margin-bottom: 48px;
    }

}

.form-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.form-line--data {
    width: 100%;
    margin: 16px;
}
.form-line--data label {
    display: block;
}

.form-line--data input {
    padding: 6px;
    background-color: var(--input-background-color);
    border: var(--input-border);
    width: 100%;
    font-size: 20px;
}

.form-line--data select {
    padding: 6px;
    background-color: var(--input-background-color);
    border: var(--input-border);
    width: 100%;
    font-size: 20px;
}

.form-line--data select option {
    font-size: 18px;
}


.form-details > p {
    color: var(--font-color-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.form-details--box {
    border: var(--form-details-box-border);
    width: 100%;
    padding: 16px;
}

.form-details--box * {
    font-size: 16px;
}

.form-details--itens > p {
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-details--installment-info p {
    margin: 10px 0;
    text-align: right;
}

.form-details--amount {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
}

.form-details--submit-btn {
    padding: 12px;
    text-transform: uppercase;
    text-align: center;
    border-radius: 0;
    border: none;
    font-weight: 700;
    font-size: 20px;
    color: white;
    background-color: var(--buy-button-color);
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

@media only screen and (max-width: 512px) {
    .form-line {
        flex-direction: column;
    }
    .form-line--data {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Footer */
.x-footer {
    background-color: var(--footer-background-color);

    padding: 2rem;

    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.x-footer-logo img {
    max-height: 45px;
}

.x-footer a {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    text-decoration: none;
    color: var(--footer-link-color);
}

.x-footer-social img {
    height: 30px;
    transition: all .2s ease-in-out
}

.x-footer-social img:hover {
    transform: scale(1.2);
}

@media only screen and (max-width: 600px) {
    .x-footer-link {
        order: 1;
        margin-top: 1rem;
    }

    .x-footer {
        flex-wrap: wrap;
    }
}


/* 
footer {
    display: flex;
    justify-content: center;
    padding: 24px;
    background-color: var(--footer-background-color);
}

footer img {
    display: block;
} */

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

main {
    flex-grow: 1;
}

label.error {
    position: absolute;
    color: red;
    font-size: 12px;
}





.fixed-br {
    opacity: 0;
    position: fixed;
    right: 20px;
    bottom: 0;
    z-index: 10000;
    animation: appearFromRight ease 0.3s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

.fixed-br--wrapper {
    background-color: #25D366;
    padding: 12px;
    margin: 12px;
    border-radius: 50%;
    transition: all 0.1s ease-in-out;
}

.fixed-br--wrapper * {
    color: white;
    font-size: 16px;
}
.fixed-br--wrapper .fa-3x {
    font-size: 3em;
}

.fixed-br--wrapper:hover {
    transform: scale(1.1);
    transition: all 0.1s ease-in-out;
}


@media only screen and (max-width: 811px) {
    .fixed-br {
        right: 0;
    }
}

@keyframes appearFromRight {
    0% {
        opacity: 0;
        right: -50px;
    }
    100% {
        opacity: 1;
        right: 20px;
    }
}