/* assets/css/style.css */
/* Updated: Added styling for GDPR consent banner */
.falf-newsletter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.falf-newsletter-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.falf-newsletter-popup {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-in-out;
}

.falf-newsletter-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.falf-newsletter-content {
    text-align: center;
}

.falf-newsletter-logo-image {
    max-width: 150px;
    margin-bottom: 20px;
}

.falf-newsletter-title {
    font-size: 1.8em;
    color: #3d4717;
    margin-bottom: 10px;
}

.falf-newsletter-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.falf-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.falf-newsletter-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    transition: border-color 0.3s ease;
}

.falf-newsletter-input:focus {
    outline: none;
    border-color: #3d4717;
}

.falf-newsletter-input.error {
    border-color: #e74c3c;
}

.falf-newsletter-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.falf-newsletter-privacy input[type="checkbox"] {
    display: none;
}

.falf-newsletter-privacy-label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
}

.falf-newsletter-privacy-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.falf-newsletter-privacy input[type="checkbox"]:checked + .falf-newsletter-privacy-label::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #3d4717;
    font-size: 14px;
    font-weight: bold;
}

.falf-newsletter-privacy-link {
    color: #3d4717;
    text-decoration: underline;
}

.falf-newsletter-error {
    display: none;
    color: #e74c3c;
    font-size: 0.9em;
    text-align: left;
    margin-top: -10px;
    margin-bottom: 10px;
}

.falf-newsletter-error.active {
    display: block;
}

.falf-newsletter-button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.falf-newsletter-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.falf-newsletter-button:hover {
    transform: translateY(-2px);
}

.falf-newsletter-button.primary {
    background: #3d4717;
    color: #fff;
}

.falf-newsletter-button.primary:hover {
    background: #2a320f;
}

.falf-newsletter-button.secondary {
    background: #f9f9f9;
    color: #666;
    margin-top: 10px;
}

.falf-newsletter-button.secondary:hover {
    background: #eee;
}

.falf-newsletter-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.falf-newsletter-success.active {
    display: flex;
}

.falf-newsletter-success-icon {
    font-size: 2em;
    color: #27ae60;
}

.falf-newsletter-success-title {
    font-size: 1.5em;
    color: #3d4717;
}

.falf-newsletter-success-message {
    font-size: 1em;
    color: #666;
}

.falf-newsletter-footer {
    font-size: 0.8em;
    color: #999;
    margin-top: 20px;
}

.falf-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #3d4717;
    color: #fff;
    padding: 15px 20px;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.falf-consent-banner p {
    margin: 0;
    font-size: 0.9em;
}

.falf-consent-banner a {
    color: #c2a83e;
    text-decoration: underline;
}

.falf-consent-banner button {
    padding: 8px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    background: #c2a83e;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.falf-consent-banner button:hover {
    background: #2a320f;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}