/* Footer */
.modern-footer {
    background-color: #2D4359;
    color: white;
    padding: 0;
    margin-top: auto;
    position: relative;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0 2rem;
}

.footer-section {
    position: relative;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #00CC52;
}

.company-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    margin-bottom: 1.2rem;
    display: inline-block;
}

.footer-logo img {
    padding: 0;
    border-radius: var(--border-radius);
    background-color: transparent;
    transition: all 0.3s ease;
    max-width: 80px;
    height: auto;
}

.footer-logo img:hover {
    transform: translateY(-5px);
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links ul li {
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-section.links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-section.links ul li a i {
    margin-right: 0.8rem;
    font-size: 0.75rem;
    color: #00CC52;
}

.footer-section.links ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section.contact-info .contact-details {
    list-style: none;
    padding: 0;
}

.footer-section.contact-info .contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.icon-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2584C4, #00CC52);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

.icon-gradient i {
    color: white;
    font-size: 1rem;
    z-index: 1;
}

.footer-section.contact-info .contact-details li span {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section.contact-info .contact-details li:hover span {
    color: white;
}

.footer-section.contact-info .contact-details li:hover .icon-gradient {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Newsletter section styles */
.footer-section.newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form .form-group {
    display: flex;
    position: relative;
    max-width: 100%;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 204, 82, 0.3);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    height: calc(100% - 10px);
    border: none;
    background: linear-gradient(135deg, #2584C4, #00CC52);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button i {
    font-size: 1rem;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    color: #00CC52;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: #2584C4;
    transform: translateY(-5px);
}

/* Old footer styles - keeping this for compatibility with other components */
footer {
    background-color: #2D4359;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #2584C4;
    color: #f8f9fa;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.scroll-to-top:hover {
    background-color: #2584C4;
    filter: brightness(90%);
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Newsletter message styles */
.newsletter-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.newsletter-message i {
    margin-right: 8px;
    font-size: 1rem;
}

.newsletter-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-left: 3px solid #2ecc71;
}

.newsletter-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-left: 3px solid #e74c3c;
}

/* Newsletter input validation styles */
.validation-message {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    transition: all 0.3s ease;
    height: auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.validation-message.valid {
    color: #059669;
    max-height: 50px;
    opacity: 1;
}

.validation-message.invalid {
    color: #dc2626;
    max-height: 50px;
    opacity: 1;
}

.validation-message.warning {
    color: #d97706;
    max-height: 50px;
    opacity: 1;
}

.newsletter-form input.valid {
    border-color: #059669 !important;
    background-color: rgba(5, 150, 105, 0.05) !important;
}

.newsletter-form input.invalid {
    border-color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.05) !important;
}

/* Add shake animation for invalid inputs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.newsletter-form input.invalid:focus {
    animation: shake 0.6s ease-in-out;
}

.newsletter-message.info {
    background-color: #e0f2fe;
    color: #0369a1;
    border-left: 3px solid #0ea5e9;
}

.newsletter-message.warning {
    background-color: #fef3c7;
    color: #b45309;
    border-left: 3px solid #f59e0b;
}

/* Override default state for submit button during loading */
.newsletter-form button:disabled {
    background: linear-gradient(90deg, #94a3b8, #64748b);
    cursor: not-allowed;
    transform: translateY(0) !important;
}

.newsletter-form button .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .company-info {
        text-align: center;
    }
    
    .footer-section h3 {
        display: block;
        text-align: center;
    }
    
    .footer-section h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section.links ul li a {
        justify-content: center;
    }
    
    .footer-section.contact-info .contact-details li {
        justify-content: center;
    }
    
    .newsletter-form .form-group {
        max-width: 100%;
        margin: 0 auto;
    }
}