.d-flex {
    display: flex;
    gap: 20px;
}

.d-flex div input {
    width: 100%;
}

.d-flex .floating-label-container {
    width: 50%;
}

.contacto-home-container {
    display: flex;
    background-color: #F4F7FB;
    padding-top: 90px;
    padding-bottom: 80px;
    padding-inline: 169px;
}

.bc-contacto .bc-links {
    color: black;
}

.contacto-info--container {
    width: 50%;
}

.contacto-form--container {
    width: 50%;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-left: 40px;
}

.contacto-info--container h2 {
    font-size: 56px;
    font-weight: 700;
    color: black;
    line-height: 72px;
    padding: 0;
    margin: 0;
    width: 445px;
}

.contacto-info--container p {
    padding: 0;
    margin: 0;
}

.country-item {
    display: flex;
    gap: 24px;
    align-items: center;
}

.country-item--text {
    width: 425px;
}

.country-item--text h3 {
    margin: 0;
    padding: 0;
    color: black;
}

.country-item--text p {
    margin: 0;
    padding: 0;
}

.contacto-countries {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
}

.cont-sub {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: gray;
    margin-top: 20px !important;
}

.cont-sub-mail {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: black;
}

.btn-forbis {
    text-align: center;
}

.btn_forbis {
    background-color: #006AAF !important;
    color: white !important;
    border: 0 !important;
    padding: 15px 60px 15px 60px !important;
    cursor: pointer;
    border-radius: 40px !important;
}

.form-contacto input,
.form-contacto select,
.form-contacto textarea {
    padding: 16px 12px;
    color: #777777;
    border: 1px solid #ECECEC;
    border-radius: 8px;
    font-size: 14px;
}

.terms {
    text-align: center;
}

.terms label {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.terms span {
    font-size: 12px;
}

.screen-reader-response {
    display: none;
}

.sede_forbis {
    width: 100%;
}

.wpcf7-response-output {
    display: none;
}

.wpcf7-not-valid-tip {
    display: none;
}

.error-general {
    justify-content: center;
    color: #D64040;
    font-size: 14px;
}

.wpcf7-not-valid {
    border: 1px solid #D64040 !important;
    color: #D64040 !important;
}

.wpcf7-not-valid::placeholder {
    color: #D64040 !important;
    /* Color del placeholder */
    opacity: 1;
    /* Asegura que sea visible */
}

.thanks-message {
    text-align: center;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.thanks-message h3 {
    font-size: 32px;
    margin: 0;
    margin-bottom: 20px;
    color: #000;
}

.thanks-message p {
    margin: 0;
    font-size: 14px;
    color: #000;
}

.wpcf7 {
    transition: opacity 0.5s ease;
}

.wpcf7-list-item-label a {
    color: black;
}

/* ACTUALIZACION DEL FORMULARIO */
/* ACTUALIZACIÓN DE FLOATING LABELS */
.floating-label-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label-container .floating-label {
    position: absolute;
    top: 18px; /* Posición inicial ajustada */
    left: 12px;
    color: #777;
    font-size: 14px;
    transition: all 0.2s ease-out;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    z-index: 2; /* Asegura que está sobre el input */
    transform-origin: left center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 24px);
}

/* Ajuste para todos los campos */
.floating-label-container input:not([type=submit]),
.floating-label-container select,
.floating-label-container textarea {
    padding: 16px 12px !important;
    border: 1px solid #ECECEC;
    border-radius: 8px !important;
    background: white !important;
    position: relative;
    z-index: 1; /* Debajo del label */
}

/* Estados activos */
.floating-label-container:focus-within .floating-label,
.floating-label-container input:not(:placeholder-shown) + .floating-label,
.floating-label-container select:not([data-first-as-label=""]) + .floating-label,
.floating-label-container textarea:not(:placeholder-shown) + .floating-label {
    top: -8px !important; /* Posición final ajustada */
    transform: scale(0.85) !important;
}

/* Ajuste especial para selects */
.floating-label-container select[data-first-as-label=""]:not(:focus):invalid + .floating-label {
    top: 18px !important;
    transform: none !important;
}

/* Placeholder invisible */
.floating-label-container input::placeholder,
.floating-label-container textarea::placeholder {
    opacity: 0 !important;
}

/* Manejo de autocompletado */
.floating-label-container input:-webkit-autofill + .floating-label {
    top: -8px !important;
    transform: scale(0.85) !important;
}

/* Floating labels con clase active */
.floating-label-container.active .floating-label {
    max-width: 100%;
    top: -8px !important;
    right: auto;
    transform: scale(0.85) translateX(-4px) !important;
    z-index: 2;
}

.wpcf7-not-valid {
    color: #D64040 !important;
    border: 1px solid #D64040 !important;
}

.floating-label.error-label {
    color: #D64040 !important;
    /* animation: shake 0.3s ease-in-out; */
}

.invalid-label {
    color: #D64040 !important; /* Cambia el color del label a rojo */
}

/* ANIMACIONES */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        display: flex;
    }
}

@media (max-width:850px) {
    .d-flex {
        display: block;
    }

    .d-flex .floating-label-container {
        width: 100%;
    }
    
    .contacto-home-container {
        flex-direction: column;
        padding: 56px 32px;
    }

    .contacto-info--container {
        width: 100%;
    }

    .contacto-info--container h2 {
        width: 100%;
        font-size: 24px;
        line-height: 32px;
    }

    .contacto-form--container {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }

    .contacto-info--container p {
        font-size: 16px;
    }

    .terms span {
        text-align: left;
    }
}
