/* Hide language-specific content by default */
.pt-BR,
.pt-BR-ib,
.en-US,
.en-US-ib {
    display: none !important;
}

/* Show content based on current language */
html[lang=pt-BR] .pt-BR,
html[lang=pt-BR] .pt-BR-ib {
    display: inline !important;
}

html[lang=en-US] .en-US,
html[lang=en-US] .en-US-ib {
    display: inline !important;
}

/* For block elements */
html[lang=pt-BR] .pt-BR-block,
html[lang=en-US] .en-US-block {
    display: block !important;
}

/* Estilos para campos de telefone */
input[name="contactTelDdd"] {
    text-align: center;
}

input[name="contactTel"] {
    font-family: monospace;
}

/* Validação visual */
input.wpcf7-not-valid {
    border-color: #dc3545 \!important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) \!important;
}

input.wpcf7-not-valid:focus {
    border-color: #dc3545 \!important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) \!important;
}

/* Forçar comportamento dos campos de telefone */
input[name="contactTelDdd"] {
    text-align: center;
    font-family: monospace;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

input[name="contactTel"] {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Remove spinners do campo number */
input[name="contactTelDdd"]::-webkit-outer-spin-button,
input[name="contactTelDdd"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[name="contactTelDdd"][type=number] {
    -moz-appearance: textfield;
}

/* Destaque para campos inválidos */
input[name="contactTelDdd"]:invalid,
input[name="contactTel"]:invalid {
    border-color: #dc3545 \!important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) \!important;
}
