/**
 * Footer Section Component - Isolated Styles (BEM Naming)
 * Component prefix: ee-footer-section
 */

/* Component Root - Isolated from global styles */
.ee-footer-section {
    /* Reset inherited styles */
    all: initial;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Component styles */
    background: #2c3e50;
    color: white;
    padding: 1.25rem 0; /* Reduced from 3rem 0 1.5rem */
    clear: both;
}

.ee-footer-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ee-footer-section__loading {
    text-align: center;
    padding: 2rem;
    color: white;
}

.ee-footer-section__error {
    text-align: center;
    padding: 1rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

/* Footer Content */
.ee-footer-section__content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

.ee-footer-section__column {
    flex: 1;
    min-width: 200px;
}

.ee-footer-section__column-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.ee-footer-section__column-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.ee-footer-section__column-text a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.ee-footer-section__column-text a:hover {
    color: white;
}

/* Social Links */
.ee-footer-section__social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ee-footer-section__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.ee-footer-section__social-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
}

/* Footer Divider */
.ee-footer-section__divider {
    border-color: rgba(255,255,255,0.2);
    margin: 1.25rem 0 0.75rem;
    border-width: 1px;
    border-style: solid;
    border-top: none;
    border-left: none;
    border-right: none;
}

/* Footer Bottom */
.ee-footer-section__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.ee-footer-section__copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.ee-footer-section__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ee-footer-section__link {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.ee-footer-section__link:hover {
    color: white;
}

.ee-footer-section__powered-by {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    opacity: 0.6;
}

.ee-footer-section__powered-by a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.ee-footer-section__powered-by a:hover {
    color: rgba(255,255,255,0.8);
}

/* Contact us button */
.ee-footer-section__contact-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0.25rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.ee-footer-section__contact-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    color: white;
}

/* Contact modal – dark theme to match footer */
.ee-footer-section__modal-content {
    background: #2c3e50;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.ee-footer-section__modal-content .modal-header {
    border-bottom-color: rgba(255,255,255,0.2);
}
.ee-footer-section__modal-content .modal-footer {
    border-top-color: rgba(255,255,255,0.2);
}
.ee-footer-section__modal-content .form-label,
.ee-footer-section__modal-content .form-control,
.ee-footer-section__modal-content .form-select {
    color: #fff;
}
.ee-footer-section__modal-content .form-control,
.ee-footer-section__modal-content .form-select {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
/* Dropdown options: list often has white background – dark text so options are readable */
.ee-footer-section__modal-content .form-select option {
    background: #fff;
    color: #333;
}
.ee-footer-section__modal-content .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}
.ee-footer-section__modal-intro {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.ee-footer-section__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.ee-footer-section__form-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}
.ee-footer-section__form-status--success {
    color: #90EE90;
}
.ee-footer-section__form-status--error {
    color: #ffb3b3;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ee-footer-section {
        padding: 1rem 0;
    }
    
    .ee-footer-section__content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .ee-footer-section__column {
        width: 100%;
    }
    
    .ee-footer-section__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .ee-footer-section__links {
        justify-content: center;
    }
}
