/* Newsletter Subscription Frontend Styles */

.ns-subscription-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 0;
}

.ns-subscription-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ns-form-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ns-email-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    background: #ffffff;
}

.ns-email-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ns-submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
}

.ns-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ns-submit-btn:active {
    transform: translateY(0);
}

.ns-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ns-btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ns-spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.ns-spinner circle {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.ns-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.ns-message.ns-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.ns-message.ns-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Inline Style */
.ns-style-inline .ns-form-group {
    flex-direction: row;
}

/* Box Style */
.ns-style-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.ns-style-box .ns-email-input {
    background: rgba(255, 255, 255, 0.95);
}

.ns-style-box .ns-submit-btn {
    background: #ffffff;
    color: #667eea;
}

.ns-style-box .ns-submit-btn:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 600px) {
    .ns-form-group {
        flex-direction: column;
    }
    
    .ns-submit-btn {
        width: 100%;
    }
}
