/* Input field styling for invalid fields */
.form-control.is-invalid {
    border-color: red;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background-color: #f44336;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.footer__newsletter-form .form-control {
    border: 1px solid #ccc; /* Default border color */
    transition: border-color 0.3s, background-color 0.3s; /* Smooth transition for border and background color */
}

.footer__newsletter-form .form-control.is-invalid {
    border-color: red; /* Red border for invalid inputs */
    background-color: rgba(255, 0, 0, 0.1); /* Light red background to indicate error */
}

/* Specific rule for the second input (email) when it is invalid */
.footer__newsletter-form .form-control#SubEmail.is-invalid {
    border-left: 1px solid red; /* Ensure the left border is red */
}

/* Ensure focus styles are still applied */
.footer__newsletter-form .form-control:focus {
    border-color: #ff5e14 !important; /* Focus style */
}


.tooltip.show {
    opacity: 1;
}
.footer-newsletter .form-control {
    max-width: 50%;
    margin-right: 10px; /* Space between input boxes */
    border: 1px solid #ccc; /* Add border if not already present */
    box-sizing: border-box; /* Include border in element's total width */
}

.footer-newsletter .form-control:first-of-type {
    /* No need to hide the right border now, we will style it properly */
}

.footer-newsletter .form-control:last-of-type {
    border-left: 1px solid #ccc; /* Set the left border of the second input */
    margin-right: 0; /* Remove margin from the last input */
}

.footer-newsletter .form-control:focus {
    border-color: #ff5e14 !important; /* Keep your focus style */
}

.footer-newsletter .btn {
    margin-left: 10px; /* Space between the email box and the button */
}

@media (max-width:767px){
    .footer-newsletter .btn{
        margin-left: 0 !important;
    }
}



