:root {
    --main-text-color: rgba(50, 85, 105, 1);
}

/************************************************************/
/* Laptop                                    */
/************************************************************/
main {
    background-image: url("../images/contact1.jpg");
    background-size: 38% 87%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.div-contact-info {
    background-color: rgba(255, 255, 255, 0.7);
    width: 20%;
}

dt {
    font-size: 1.5rem;
    color: var(--main-text-color);
}

dd {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--main-text-color);
}

.div-contact-data {
    max-width: 40%;
    padding-left: 2%
}

legend {
    color: white;
    font-size: 120%;
    display: block;
    background-color: #9e8921;
    text-align: center;
    line-height: 2rem;
    border-radius: 5px;
    width: 99%;
}

input {
    height: 2rem;
    margin-top: 0.3rem;
    border-radius: 0.3rem;
    width: 99%;
    padding-left: 0.2rem;
    font-family: "Merriweather", serif;
    font-weight: normal;
    border: 2px solid #c4c4c4;
}

.div-cszd {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 2rem;
    margin: 0.25rem 0;
}

.city {
    color: rgba(0, 0, 0, 0.7);
    font-family: "Merriweather", serif;
    width: 25%;
    height: 2rem;
    border-radius: 0.4rem;
    border: 2px solid #c4c4c4;
}

.state {
    color: rgba(0, 0, 0, 0.7);
    width: 6%;
    margin: 0;
}

.zip-code {
    width: 20%;
    margin: 0;
}

.lbl-date {
    color: #9e8921;
    font-size: .85rem;
    width: 7%;
    display: inline-block;
    text-align: right;
    padding: .2rem;
}

.date_req {
    width: 42%;
    font-size: .9rem;
    margin: 0;
}

.chk-div {
    /*background-color: yellow;*/
    width: 95%;
    display: flex;
    flex-direction: row;
    margin-top: .15rem;
}

.chk-div label {
    margin-right: 1rem;
    color: rgba(0, 0, 0, .6);
}

.chk-item {
    width: 1rem;
    margin-top: -.5rem;
    margin-right: .2rem;
}

.textarea {
    border-radius: 0.4rem;
    padding: 0.2rem 0.4rem;
    resize: none;
    margin: 0.2rem 0.2rem 0.2rem 0;
    font-family: "Merriweather", serif;
    width: 99%;
    border: 2px solid #c4c4c4;
}

.p-address {
    margin-top: 0.5rem;
    color: #9e8921;
}

.div-submit {
    line-height: 2.3rem;
    display: flex;
    justify-content: center;
}

.btn-submit {
    background-color: #000050;
    border: none;
    color: #fff;
    width: 61%;
    height: 2.3rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 20%;
}

.btn-submit:hover {
    background-color: #9e8921;
    color: #000050;
    font-weight: bold;
    cursor: pointer;
}

.contact-form-loader {
    margin: 1% 12%;
}

.contact-form-response {
    margin: 1% 12%;
}

.contact-form-error {
    margin-top: -0.5rem;
    font-size: 1rem;
    background-color: #e15462;
    color: #fff;
    transition: all 800ms ease;
    width: 60%;
    line-height: 1.8rem;
    text-align: center;
    border-radius: 0.2rem;
}

.contact-form-error.is-active {
    display: block;
    animation: show-message 1s 1 normal 0s ease-out both;
}

.div-lang {
    /*background-color: orange;*/
    background-color: transparent;
    width: 4rem;
    height: 5rem;
    right: 0;
    line-height: 1.2rem;
    top: 0;
}

.slider img {
    width: 60px;
    height: 60px;
    margin: 0;
}

/***********************************************************************/
/* Tablet                                                              */
/***********************************************************************/
@media screen and (min-width: 800px) and (max-width: 1280px) {
    main {
        background-image: none;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .div-contact-data {
        /*order: 1;*/
        position: absolute;
        top: 7%;
        min-width: 70%;
        background-color: white;
    }

    .div-contact-info {
        /*background-color: skyblue;*/
        position: absolute;
        width: 70%;
        top: 60%;
        padding: 1rem;
        text-align: center;
    }
}

/**********************************************************************/
/* Cellphone (Mobile)                                                 */
/**********************************************************************/

@media screen and (min-width: 15px) and (max-width: 480px) {
    main {
        background-image: none;
        display: flex;
        flex-direction: column;
        padding-top: 2rem;
    }

    .div-contact-data {
        order: 1;
        position: absolute;
        top: 0;
        left: 0;
        min-width: 100vw;
        background-color: white;
    }

    .div-contact-info {
        order: 2;
        background-color: white;
        position: absolute;
        top: 200%;
        min-width: 100vw;
        left: 0;
        padding: 2rem 3rem;
    }

    dt, dd {
        font-size: 1.1rem;
    }

    legend {
        min-width: 100vw;
        margin-top: 1rem;
        margin-left: -.51rem;
        border-radius: 0;
        margin-bottom: 1rem;
    }

    input {
        max-width: 90%;
        position: relative;
        left: 5%;
    }

    .p-address {
        text-align: center;
    }

    .div-cszd {
        /*background-color: blue;*/
        height: 10.5vh;
        width: 90%;
        margin: .4rem auto;
    }

    .city {
        width: 50vw;
    }

    .state {
        width: 10vw;
        left: -1%;
    }

    .zip-code {
        width: 25vw;
        left: -2%;

    }

    .lbl-date {
        /*background-color: yellow;*/
        font-size: 1rem;
        width: 16vw;
        text-align: left;
        position: absolute;
        height: 35%;
        top: 55%;
        padding-top: .5rem;
    }

    .date_req {
        width: 80%;
        position: absolute;
        left: 19%;
        top: 53%;
    }

    .p-address {
        display: block;
    }

    .chk-item {
        margin-right: 1.2rem;
    }

    .chk-div label {
        margin-right: .5rem;
    }

    .textarea {
        width: 90%;
        left: 5%;
        position: relative;
    }

    .btn-submit {
        margin: 2% 15%;
    }

    .contact-form-loader {
        margin: -1rem 45%;
    }

    .contact-form-response {
        margin: -1rem 25%;
    }

    .contact-form-error {
        width: 100%;
    }

    .contact-form {
        padding-top: 1.5rem;
    }

    .footer {
        position: absolute;
        /*top: calc(100vh + 45%);*/
        margin-top: 2rem;
    }

    .div-lang {
        right: -.2rem;
    }
}