/* CliqNex Newsletter - Simple Frontend CSS */

.cn-form-wrap {
    max-width: 400px;
    margin: 30px auto;
}

.cn-form {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cn-header h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 22px;
    text-align: center;
}

.cn-header p {
    margin: 0 0 20px 0;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

.cn-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.cn-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cn-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.cn-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.cn-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FIXED: Dark text on white background - VERY IMPORTANT! */
.cn-input {
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #ffffff !important;  /* White background */
    color: #1f2937 !important;       /* Dark gray text - VISIBLE! */
    transition: all 0.3s ease;
}

.cn-input::placeholder {
    color: #9ca3af !important;  /* Medium gray placeholder */
}

.cn-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.cn-input.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.cn-button {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #10b981;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cn-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.cn-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.cn-button.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cn-count {
    margin-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.cn-count-num {
    font-weight: 700;
    color: #10b981;
}

/* Responsive */
@media (max-width: 480px) {
    .cn-form-wrap {
        margin: 20px;
    }
    
    .cn-form {
        padding: 20px;
    }
}
