input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border-bottom: 1px solid #666;
    -webkit-text-fill-color: #121212;
    -webkit-box-shadow: 0 0 0px 1000px rgba(0,0,0,0) inset;
    transition: background-color 5000s ease-in-out 0s;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
}

:invalid {
    box-shadow: none;
}

:-moz-submit-invalid {
    box-shadow: none;
}

:-moz-ui-invalid {
    box-shadow: none;
}

::-ms-clear {
  display:none;
}

.search-form {
    margin-bottom: 16px;
}

.search-form input+[class^="bbva-"],
.search-form label+[class^="bbva-"],
.search-form input+[class*=" bbva-"],
.search-form .search-input button {
    background: none;
    border: none;
    font-size: 20px;
    color: #FFFFFF;
    background-color: #1973b8;
    padding: 17px;
    outline: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}

.search-input {
    font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.search-results .search-results__text {
    color: #666666;
    font-size: 15px;
    font-family: 'BentonSansBBVA Book', Helvetica, Arial, sans-serif;
    line-height: 24px;
    margin: 0;
}

.search-results .bold {
    font-family: 'BentonSansBBVA Medium', Helvetica, Arial, sans-serif;
    color: #121212;
}

select::-ms-expand {
    display: none;
}

.form__select {
    position: relative;
    font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

select {
    min-width: 200px;
    padding: 26px 36px 8px 16px;
    background-color: #f4f4f4;
    background-color: var(--bbva-100);
    border: none;
    border-bottom: 1px solid #666666;
    border-radius: 0;
    color: #121212;
    height: 56px;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    text-indent: 1px;
    text-overflow: '';
    cursor: pointer;
    font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.bg-grey100 select {
    background: #fff;
}

select.form__select-filter {
    /* border-color: transparent; */
    padding: 8px 36px 8px 16px;
}

.form__select select+i {
    font-size: 12px;
    position: absolute;
    top: 32px;
    transform: translateY(-50%);
    right: 20px;
    pointer-events: none;
    color: #1973b8;
}

.form__select .form__select-label,
/*.form__select-label,*/
select:invalid~.form__select-label {
    color: #666666;
    font-size: 15px;
    line-height: 24px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 16px;
    padding-right: 40px;
    -webkit-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
 }

/*.form__select-label,*/
.form__select.has-value .form__select-label,
select:active ~ .form__select-label,
select:valid ~ .form__select-label{
    font-size: 12px;
    top: 15%;
    top: 8px;
    transform: translateY(-15%);
    -webkit-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

/* Radio buttons */
.form__radiobtn[type="radio"]:checked,
.form__radiobtn[type="radio"]:not(:checked) {
    position: absolute;
    visibility: hidden;
}

.form__radiobtn[type="radio"]:checked+label,
.form__radiobtn[type="radio"]:not(:checked)+label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    line-height: 26px;
    display: inline-block;
    color: #666;
}

.form__radiobtn[type="radio"]:checked+label:before,
.form__radiobtn[type="radio"]:not(:checked)+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    min-width: 24px;
    width: 24px;
    height: 24px;
    border: 1px solid #666;
    border-radius: 100%;
    background: #f4f4f4;
}

.bg-grey100 .form__radiobtn[type="radio"]:checked+label:before,
.bg-grey100 .form__radiobtn[type="radio"]:not(:checked)+label:before {
    border: 1px solid #666;
    background: #fff;
}

.form__radiobtn[type="radio"][disabled]:checked+label:before,
.form__radiobtn[type="radio"][disabled]:not(:checked)+label:before,
.form__radiobtn[type="radio"][disabled]+label {
    opacity: 0.4;
}

.form__radiobtn[type="radio"].error:checked+label:before,
.form__radiobtn[type="radio"].error:not(:checked)+label:before {
    border: 1px solid #b92a45;
    background: #fcdfdf;
}

.form__radiobtn[type="radio"]:checked+label:after,
.form__radiobtn[type="radio"]:not(:checked)+label:after {
    content: '';
    width: 18px;
    height: 18px;
    background: #004481;
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.form__radiobtn[type="radio"].error:checked+label:after,
.form__radiobtn[type="radio"].error:not(:checked)+label:after {
    background: #b92a45;
}

.form__radiobtn[type="radio"]:not(:checked)+label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

.form__radiobtn[type="radio"]:checked+label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}


/* checkbox */
.form__checkbox {
    position: relative;
}

.form__checkbox-input{
    height: 24px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 24px;
}

.form__checkbox-input + label::before {
    background-color: #f4f4f4;
    border-radius: 1px;
    border: solid 1px #666666;
    box-sizing: border-box;
    content: "";
    cursor: pointer;
    height: 24px;
    left: 0;
    min-width: 24px;
    padding: 0;
    position: absolute;
    top: 0;
    -webkit-appearance: none;
    vertical-align: middle;
    width: 24px;
}

.bg-grey100 .form__checkbox-input + label::before {
    background-color: #ffffff;
}

.form__checkbox-input + label:after {
    opacity: 0;
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    left: 2px;
    width: 12px;
    height: 5px;
    border: solid 2px #004481;
    border-right: none;
    border-top: none;
    transform: translate(3px, 4px) rotate(-45deg);
}

.form__checkbox-input:checked + label:after {
    opacity: 1;
}

.form__checkbox-input + label {
    cursor: pointer;
    padding: 0;
    padding-left: 32px;
}

.form__checkbox-input:disabled + label {
    color: #666666;
    cursor: auto;
}

.form__checkbox-input:disabled + label:before {
    box-shadow: none;
    background: #f6f6f6;
}

.form__error .form__checkbox-input + label::before{
    background-color: #fcdfdf;
    border-radius: 1px;
    border: solid 1px #d44b50;
}

/* Forms */
.form-group {
    position: relative;
}

.form__input input {
    font-size: 15px;
    line-height: 16px;
    padding: 26px 56px 5px 16px;
    width: 100%;
    height: 56px;
}

.form__field {
    background: #f4f4f4;
    color: #121212;
    outline: none;
    border: none;
    font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    border-bottom: 1px solid #666;
}

.bg-grey100 .form__field {
    background: #ffffff;
}

.form__field:disabled,
.form__field:disabled+.form__label {
    color: #666666;
    background-color: #f2f2f2;
}

input[disabled]:-internal-autofill-selected,
input[disabled]:-internal-autofill-selected+.form__label {
    background-color: #f2f2f2 !important;
}

/* Error state */
.form__error.has-value .form__field,
.form--invalid .form__error .form__field
{
    background: #fcdfdf !important;
    border-bottom: 1px solid #b92a45;
}

.input__delete-button {
    display: none;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 6px;
    padding: 4px;
    cursor: pointer;
}

.input__delete-button:before{
    content: '\00d7';
    font-size: 38px;
    line-height: 1em;
    color: #b92a45;
    display: block;
}

.form__error.has-value .input__delete-button {
    display: block;
    pointer-events: all;
}

.form__input-error {
    font-size: 12px;
    color: #121212;
    padding-top: 4px;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    display: none;
}

.form__input-error.show{
    display: flex;
}

.input__error-message {
    font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #121212;
    display: none;
}

.input__info-message {
    font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #121212;
}
.form__error.has-value .input__error-message,
.form--invalid .form__field.input__error-message {
    display: block;
}

.input__error-icon {
    color: #b92a45;
    font-size: 14px;
}
.input__info-icon {
    color: #5bbeff;
    font-size: 15px;
    padding-top: 4px;
}

.form__field+.form__label {
    display: block;
    font-family: "BentonSansBBVA Book","Helvetica Neue",Arial,Helvetica,sans-serif;
    font-size: 15px;
    line-height: 24px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    top: 28px;
    transform: translateY(-50%);
    padding-left: 16px;
    /*padding-right: 40px;*/
    padding-right: 16px;
    background-color: transparent;
    color: #666666;
    color: var(--bbva-500);
    -webkit-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
    /*width: calc(100% - 16px);*/
}

/* Form Textarea upload file *******************************/
.form_textarea .form__field {
    width: 100%;
    z-index: 1;
    padding: 26px 16px 16px 16px;
    resize: none;
    min-height: 120px;
}
@media (max-width:768px) {
    .form_textarea .form__field{
        padding: 42px 16px 16px 16px;
    }
}

.form_textarea .form__field+.form__label {
    top: 24px;
    transform: translateY(-30%);
    background: #f4f4f4;
    /*padding-top: 4px;*/
}

.form__field:focus+.form__label,
.has-value .form__field + .form__label,
.has-value .form__field + .form__label,
.form__field:valid + .form__label
/*,input.form__field:invalid + .form__label*/
/*,.search-form input.form__field:valid + .form__label*/
{
    font-size: 12px;
    top: 15%;
    top: 4px;
    transform: translateY(-15%);
    -webkit-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
    width: calc(100% - 16px);
    padding-top: 4px;
}

/* Form Input upload file *******************************/
.form__upload-file {
    background-color: #fff;
    border: dashed 1px #043263;
    cursor: pointer;
    min-height: 56px;
    padding: 16px;
}

.form__upload-file-container input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.form__upload-file-info {
    font-size: 12px;
    line-height: 24px;
    padding-top: 16px;
}

.form__upload-file-name {
    font-family: "BentonSansBBVA Medium", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.form__upload-file label {
    height: 100%;
    cursor: inherit;
}

.form__upload-file label * {
    pointer-events: none;
}

.form__info {
   font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #666666;
   text-align: right;
}
/* END ************************************/

.bg-grey100 .bg-circle {
    background-color: #f4f4f4;
}

/* checklist advantages*/
.checklist-adv {
    margin-bottom: 32px;
    padding-left: 48px;
    padding-right: 32px;
}

.checklist-adv i {
    position: relative;
    top: 1px;
    padding-right: 12px;
    font-size: 22px;
    vertical-align: middle;
}

.info-contact {
    margin: 0;
    padding: 0px 32px 32px 32px;
    text-align: center;
}

.info-support {
    margin: 0;
    padding: 0px 0px 32px 0px;
    text-align: left;
}


/* image */
.contact-image {
    width: 164px;
    height: 123px;
    margin-bottom: 24px;
}
/* legal terms */
.legal-terms {
    color: #666666;
    font-size: 15px;
    font-family: "BentonSansBBVA Book", "Helvetica Neue", Arial, Helvetica, sans-serif;
}


.newsletter__message-ok {
    color: #277a3e;
    padding: 15px;
    margin: 10px 0;
    width: 100%;
    text-align: center;
    background-color: #d9efe0;
}

.newsletter__message-error {
    color: #b92a45;
    padding: 15px;
    margin: 10px 0;
    width: 100%;
    text-align: center;
    background-color: #fcdfdf;
}
