/* assets/css/frontend.css */

/* Your Form Design */
.email-footer-area {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.anl-form-group {
    flex: 1;
    min-width: 200px;
}

.anl-email-group {
    display: flex;
    position: relative;
    width: 100%;
}

.anl-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    font-family: inherit;
}

.anl-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.anl-input-email {
    padding-right: 70px;
    flex: 1;
}

.anl-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    font-family: inherit;
}

/* Arrow styles using CSS */
.anl-submit-btn::after {
    content: '→';
    display: inline-block;
    font-size: 20px;
    line-height: 1;
}

.anl-submit-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-50%) scale(1.1);
}

.anl-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    opacity: 0.7;
}

/* Loading animation without Font Awesome */
.anl-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.anl-privacy-checkbox {
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.anl-privacy-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.anl-privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.anl-message {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    animation: slideDown 0.3s ease;
}

.anl-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.anl-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.anl-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative button text style */
.anl-submit-btn.text-btn {
    width: auto;
    padding: 0 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}

.anl-submit-btn.text-btn::after {
    content: '';
}

/* Widget Styles */
.widget_anl_newsletter .email-footer-area {
    max-width: 100%;
}

/* Different Form Styles */
.anl-style-minimal .anl-input {
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.anl-style-minimal .anl-submit-btn {
    border-radius: 0;
    background: transparent;
    color: #0073aa;
    right: 0;
}

.anl-style-minimal .anl-submit-btn:hover {
    color: #005a87;
    background: transparent;
    transform: translateY(-50%);
}

.anl-style-dark .anl-input {
    background: #333;
    border-color: #444;
    color: #fff;
}

.anl-style-dark .anl-input::placeholder {
    color: #999;
}

.anl-style-dark .anl-submit-btn {
    background: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .email-footer-area {
        flex-direction: column;
    }
    
    .anl-email-group {
        flex-direction: column;
    }
    
    .anl-input-email {
        padding-right: 20px;
        margin-bottom: 10px;
    }
    
    .anl-submit-btn {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        border-radius: 30px;
        height: 50px;
    }
    
    .anl-submit-btn::after {
        content: 'Subscribe';
        font-size: 16px;
    }
    
    .anl-submit-btn.text-btn {
        width: 100%;
    }
}


/* Alternative SVG arrow button */
.anl-submit-btn.svg-arrow::after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    width: 20px;
    height: 20px;
    font-size: 0;
}

.anl-submit-btn.svg-arrow.loading::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'%3E%3C/path%3E%3C/svg%3E");
    animation: spin 1s linear infinite;
}

/* Compact Form Styles */
.anl-compact.anl-form-wrapper {
    max-width: 400px;
}

.anl-compact .email-footer-area {
    gap: 5px;
}

.anl-compact .anl-input {
    padding: 12px 60px 12px 15px;
    font-size: 14px;
}

/* Inline Form Styles */
.anl-inline.anl-form-wrapper {
    max-width: 100%;
}

.anl-inline .email-footer-area {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.anl-inline .anl-submit-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
    padding: 0 30px;
    height: 50px;
    border-radius: 30px;
}

.anl-inline .anl-submit-btn::after {
    content: attr(data-text);
}

.anl-inline .anl-input-email {
    padding-right: 20px;
}

/* Popup Styles */
.anl-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.anl-popup-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.anl-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.anl-popup-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.anl-popup-content h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 28px;
}

.anl-popup-content p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
}

.anl-popup-form .email-footer-area {
    max-width: 100%;
}

/* Sidebar Widget Styles */
.anl-sidebar-widget {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.anl-sidebar-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.anl-sidebar-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.anl-sidebar-form .email-footer-area {
    max-width: 100%;
}

.anl-sidebar-form .anl-email-group {
    flex-direction: column;
}

.anl-sidebar-form .anl-submit-btn {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 50px;
    border-radius: 30px;
    margin-top: 10px;
}

.anl-sidebar-form .anl-submit-btn::after {
    content: 'Subscribe';
    font-size: 16px;
}

.anl-sidebar-form .anl-input-email {
    padding-right: 20px;
}

/* Mobile Responsive for New Styles */
@media (max-width: 768px) {
    .anl-popup-container {
        padding: 30px 20px;
    }
    
    .anl-popup-content h2 {
        font-size: 24px;
    }
    
    .anl-inline .email-footer-area {
        flex-direction: column;
    }
    
    .anl-inline .anl-submit-btn {
        width: 100%;
    }
}
