/**
 * Footer Styles
 * Complete redesign with Follow Us grid, enhanced form, and copyright
 *
 * @package NutraMEA
 * @version 3.5.0
 */

.site-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 0;
    margin-top: 5rem;
}

/* Main Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 4rem 0 3rem;
}

/* Left Column: Social & Links */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-social-section {
    margin-bottom: 1rem;
}

.footer-social-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 500px;
}

.footer-social-grid .social-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-grid .social-icon:hover {
    background: var(--primary-color, #3AABB8);
    border-color: var(--primary-color, #3AABB8);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(58, 171, 184, 0.4);
}

.footer-social-grid .social-icon svg {
    width: 24px;
    height: 24px;
}

/* Brand Section */
.footer-brand-section {
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-name {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color, #3AABB8);
    transform: translateX(5px);
}

/* Right Column: Contact Form */
.footer-right {
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

/* Footer Contact Form */
.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-contact-form .form-group {
    width: 100%;
}

.footer-contact-form .form-group.half {
    width: 100%;
}

.footer-contact-form input[type="text"],
.footer-contact-form input[type="email"],
.footer-contact-form select,
.footer-contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.footer-contact-form input[type="text"]::placeholder,
.footer-contact-form input[type="email"]::placeholder,
.footer-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact-form input[type="text"]:focus,
.footer-contact-form input[type="email"]:focus,
.footer-contact-form select:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #3AABB8);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(58, 171, 184, 0.2);
}

.footer-contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="white" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.footer-contact-form select option {
    background: #2a2a2a;
    color: white;
}

.footer-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox Group */
.footer-contact-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #e0e0e0;
}

.footer-contact-form .checkbox-group input[type="radio"] {
    margin-top: 0.125rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-color, #3AABB8);
}

.footer-contact-form .checkbox-group span {
    line-height: 1.5;
}

/* Submit Button */
.footer-contact-form .submit-btn {
    padding: 1rem 2rem;
    background: var(--primary-color, #3AABB8);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 171, 184, 0.3);
    margin-top: 0.5rem;
}

.footer-contact-form .submit-btn:hover:not(:disabled) {
    background: var(--secondary-color, #E8AF3E);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 175, 62, 0.4);
}

.footer-contact-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Response Messages */
.footer-contact-form .form-response {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

.footer-contact-form .form-response.success {
    background: rgba(46, 213, 115, 0.15);
    border: 2px solid rgba(46, 213, 115, 0.4);
    color: #2ed573;
}

.footer-contact-form .form-response.error {
    background: rgba(255, 71, 87, 0.15);
    border: 2px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
}

/* Gradient Divider */
.footer-divider {
    padding: 0;
    margin: 0;
}

.gradient-line {
    height: 4px;
    width: 100%;
}

/* Copyright Section */
.footer-copyright {
    background: #0d0d0d;
    padding: 2rem 0;
}

.copyright-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.copyright-brand {
    font-size: 1.125rem;
    font-weight: 800;
    flex-shrink: 0;
}

.copyright-text {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.7;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        gap: 3rem;
    }
    
    .footer-social-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-right {
        padding-left: 0;
        border-left: none;
        padding-top: 2rem;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-social-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 3rem;
    }
    
    .footer-content {
        padding: 3rem 0 2rem;
    }
    
    .footer-social-title,
    .footer-form-title {
        font-size: 1.5rem;
    }
    
    .footer-social-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-social-grid .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .footer-social-grid .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-brand-name {
        font-size: 1.875rem;
    }
    
    .footer-contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright-brand {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-contact-form .submit-btn {
        width: 100%;
    }
}