/** CONTACT PAGE **/
.header-houm-logo .navbar-brand {
    opacity: 1 !important;
}

.houm-contact {
    padding: 0;
    background-color: #efefef;
}

.houm-contact-grid {
    padding-top: 4rem;
    display: grid;
    gap: 3rem;
}

@media (min-width: 992px) {
    .houm-contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.houm-contact-item {
    padding: 2rem;
}

.houm-contact-item p {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.thank-you-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.btn-default-thanks a {
    margin-top: 20px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 2rem;
    background-color: #a7b2a0;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-default-thanks a:hover {
    background-color: #b0c49b;
}

p:empty {
    display: none;
    margin: 0;
    padding: 0;
}



.houm-contact-item:nth-child(2) {
    background-color: white;
    box-shadow: 0 0 10px gray;
    padding: 3rem;
}

@media (min-width: 992px) {
    .houm-contact-item:nth-child(2) {
        position: relative;
        top: -24rem;
    }
}

/* Formulario */
.houm-contact-item form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.houm-contact-item .form-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.houm-contact-item label {
    color: #817360;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

p:has(#id_aceptar_politicas_de_privacidad) {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.houm-contact-item label[for="id_aceptar_politicas_de_privacidad"] {
    margin-bottom: 0 !important;
}

.houm-contact-item input:not([type="submit"]),
.houm-contact-item textarea {
    border: 0;
    border-bottom: 2px solid #e3e3e3;
    font-size: 1.6rem;
    border-radius: 0;
    padding: 0.5rem 0;
    background-color: white;
    color: #333;
    font-weight: 500;
}

.houm-contact-item input:focus,
.houm-contact-item textarea:focus {
    outline: none;
    border-color: #865341;
}

.form-error input {
    border-color: #ab4c4c !important;
    color: #ab4c4c;
}

.info-demo-input,
.info-demo-subscription,
.info-demo-datetime {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-demo-input {
    margin-bottom: 20px;
}

/* Mensajes de error */
.errorlist {
    margin: 0 !important;
    padding: 0 !important;
}

.errorlist li {
    text-align: left;
    color: #ab4c4c;
    font-size: 1.4rem;
    list-style: none;
}

/* Checkbox de condiciones */
label.accept-conditions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: gray;
    font-weight: 400;
}

.accept-conditions a {
    color: #865341;
}

.accept-conditions input {
    width: 20px;
    height: 20px;
    accent-color: #a7b2a0;
    border: 1px solid #a7b2a0;
}

/* Botón de envío */
.form-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.custom-submit-button {
    background-color: #a7b2a0;
    color: white;
    font-size: 1.6rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.custom-submit-button:hover {
    background-color: #b0c49b;
}

.info-demo-subscription {
    display: flex;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.info-demo-subscription label {
    margin: 0;
    cursor: pointer;
    padding-left: 15px;
    margin-top: -2px;
}

.info-demo-subscription input[type="checkbox"] {
    margin: -20px;
    width: 20px;
    height: 20px;
}

.info-demo-subscription .help-text {
    display: flex;
    margin-left: 15px;
    font-size: 16px;
}

/* Footer */
.houm-contact-footer-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 3rem 2rem 8rem 2rem;
    gap: 2rem;

    @media (width>=768px) {
        padding: 6rem 2rem 8rem 2rem;

    }
}

@media (min-width: 992px) {
    .houm-contact-footer-grid {
        padding: 0 2rem 8rem 2rem;
        justify-content: space-between;
    }
}

.houm-contact-footer-item {
    text-decoration: none;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.houm-contact-footer-item:hover {
    text-decoration: underline;
    color: black;
}

.houm-contact-footer-item img {
    width: 32px;
    transition: transform 0.3s ease-in-out;
    height: 32px
}

.houm-contact-footer-item:hover img {
    transform: scale(1.1);
}

/* Wrap general */
.houm-contact-wrap {
    margin-top: 8.5rem;
}

.houm-contact-wrap h3 {
    margin-bottom: 1.3rem;
    font-size: 2.4rem;
    color: #4c5a4f;
}

.houm-contact-wrap p {
    padding-left: 31px;
    margin-bottom: 1.3rem;
    font-weight: 600;
    color: #817360;
}

.accept-conditions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accept-conditions input {
    margin: 0;
}

.accept-conditions p {
    margin: 0;
    line-height: 1;
}

/* CAPTCHA */
.g-recaptcha {
    display: inline-block;
    width: 100%;
    max-width: 304px;
    height: auto;
}

.g-recaptcha iframe {
    width: 100%;
    max-width: 304px;
    height: 78px;
    display: block;
}

/* RESPONSIVE STYLES */

@media (max-width: 991px) {
    .houm-contact-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .houm-contact-item {
        padding: 1rem;
    }

    .houm-contact-item:nth-child(2) {
        position: static;
        top: 0;
        box-shadow: none;
    }
}

@media (max-width: 576px) {
    .houm-contact-item:nth-child(2) {
        padding: 1.5rem;
    }

    .info-demo-input,
    .info-demo-subscription,
    .info-demo-datetime {
        gap: 0;
    }

    .houm-contact-item .form-item {
        gap: 0;
    }

    .houm-contact-item label {
        margin-bottom: 0;
    }

    .info-demo-input {
        margin-bottom: 15px;
    }

    .info-demo-subscription .help-text {
        font-size: 14px;
        line-height: 2rem;
    }

    .houm-contact-item input:not([type="submit"]),
    .houm-contact-item textarea {
        max-height: 150px;
    }
}