@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

.footer {
    background-color: #232429;
    color: #ffffff;
    padding: 20px   ;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter {
    width: 70%;
    background-color: #1e50ff;
    color: #ffffff;
    padding: 30px 15px;
    border-radius: 20px;
    margin: 0 auto;
}

.footer-newsletter-title {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.footer-newsletter-desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-newsletter-form input[type="email"] {
    background-color: #1e50ff; /* Blue background */
    border: 1px solid #ffffff; /* White border */
    border-radius: 10px;       /* Rounded corners */
    padding: 10px 15px;
    color: #ffffff;            /* White text color */
    width: 300px;              /* Set width */
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: #ffffff;            /* White placeholder text */
}

.footer-newsletter-form button {
    border-radius: 10px;
    padding: 10px 20px;
    background-color: #f4f7ff;
    font-weight: bold;
    color: #1e50ff;
    border: none;
    cursor: pointer;
    margin: 8px;
}

.footer-newsletter-form button:hover {
    background-color: #d9e3ff;
}

.footer-content {
    padding: 20px 0;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-company-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social-icons i {
    color: #f4f7ff;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-social-icons i:hover {
    color: #1e50ff;
}

.right-half {
    padding-left: 10rem; /* Add spacing */
}

.footer-links-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #1e50ff;
}

.footer-bottom {
    border-top: 1px solid white;
    margin-top: 20px;
    color: white;
}

@media (max-width: 768px) {
    /* Adjust newsletter form layout */
    .footer-newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .footer-newsletter-form input[type="email"] {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 15px; /* Add more padding for better touch experience */
    }

    .footer-newsletter-form button {
        padding: 4px 25px;
        font-size: 0.8rem;
        width: 100%; /* Full width button on mobile */
        /* width: auto; */
    }

    /* Smaller text sizes for mobile screens */
    .footer-newsletter-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        font-weight: bolder;
    }

    .footer-newsletter-desc {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .footer-company-desc {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .footer-logo {
        font-size: 20px;
    }

    .footer-social-icons i {
        font-size: 1.5rem; /* Slightly smaller icons on mobile */
    }

    .right-half, .left-half {
        padding: 5px;
        text-align: center;
    }

    .footer-links-title {
        font-size: 1rem;
    }

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    /* Footer bottom text adjustments */
    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* Reduce padding for footer on small screens */
    .footer {
        padding: 15px;
    }
}

#response-message-newsletter {
    display: none; /* Initially hidden */
    margin: 15px auto; /* Center it horizontally with some margin */
    padding: 15px;
    border-radius: 8px;
    max-width: 500px; /* Limit the max width */
    width: 100%; /* Make it responsive */
    text-align: center; /* Center the text */
}

.success-message-newsletter {
    background-color: #d4edda; /* Green background for success */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb;
}

.error-message-newsletter {
    background-color: #f8d7da; /* Red background for error */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb;
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
    #response-message-newsletter {
        max-width: 90%; /* Use 90% width on small screens */
    }
}