/* css/footer_style.css - For Client-Side Display */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Dynamic Styling (will be set by JS) */
:root {
    /* Footer Globals (from PM_1) */
    --footer-bg-color: #222222; 
    --footer-bg-image: none; 
    --footer-font-family: Arial, sans-serif; 
    --footer-font-size: 14px; 
    --footer-font-color: #cccccc; 
    --footer-link-color: #82C0FF; 
    --footer-link-hover-color: #A8D8FF; 
    --footer-heading-color: #ffffff; 
}

body {
    font-family: var(--footer-font-family); /* Apply base font */
    line-height: 1.6;
    background-color: #f4f4f4; 
    color: #333;
}

#dynamicFooterContainer {
    background-color: var(--footer-bg-color);
    background-image: var(--footer-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--footer-font-color);
    font-family: var(--footer-font-family);
    font-size: var(--footer-font-size);
    padding: 40px 20px 20px 20px; 
    margin-top: 40px; 
}

.footer-content-wrapper {
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid;
    gap: 30px; 
    /* grid-template-columns will be set inline by JavaScript */
}

/* REMOVED layout-specific classes like .layout-3-col, .layout-5-col */

.footer-column {
    /* Individual column styles set by JS if configured */
    /* Example defaults if needed */
     padding: 0; /* Padding will be added dynamically if border/bg exists */
     background-size: cover;
     background-position: center;
}

.footer-column h4 { /* Column Title Style */
    color: var(--footer-heading-color); /* Use default or specific */
    font-size: 1.2em; /* Example size */
    margin-bottom: 15px;
    /* border-bottom: 1px solid #555; /* Optional separator */
    /* padding-bottom: 8px; */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column a {
    color: var(--footer-link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
/* Hover handled by JS */

.footer-column a i { 
    margin-right: 8px;
    width: 1.1em; 
    text-align: center;
}

.footer-html-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-html-content a { 
     color: var(--footer-link-color);
     transition: color 0.2s ease-in-out;
}
 .footer-html-content a:hover {
     color: var(--footer-link-hover-color);
     text-decoration: underline;
}

/* Contact Form Styling */
.footer-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: inherit; /* Inherit from column */
}
.footer-contact-form input[type="text"],
.footer-contact-form input[type="email"],
.footer-contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #444;
    color: #e0e0e0;
    font-size: 0.95em;
    box-sizing: border-box; /* Ensure padding included in width */
}
.footer-contact-form textarea {
    min-height: 80px;
    resize: vertical;
}
.footer-contact-form button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}
.footer-contact-form button:hover {
    background-color: #0056b3;
}
.captcha-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap; 
}
.captcha-container label {
    margin-right: 10px;
    margin-bottom: 0; 
    white-space: nowrap; 
}
.captcha-container input[type="number"] {
    width: 60px; 
    margin-bottom: 0;
    text-align: center;
}
#contactFormStatus {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9em;
}
#contactFormStatus.success { color: lightgreen; }
#contactFormStatus.error { color: lightcoral; }


/* Footer Bottom Bar */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444; 
    font-size: 0.9em;
    color: #aaaaaa;
}

/* Responsive adjustments for footer columns */
@media (max-width: 992px) {
    .footer-content-wrapper { 
        /* Switch to 2 columns - JS might override this if custom widths are set */
         grid-template-columns: repeat(2, 1fr) !important; 
    }
     .footer-column {
         margin-bottom: 20px; /* Add space between rows */
     }
}

@media (max-width: 768px) {
    .footer-content-wrapper { 
        /* Switch to 1 column - JS might override this */
        grid-template-columns: 1fr !important; 
    }
     .footer-column {
         margin-bottom: 25px; 
     }
}

