/* Salesforce Newsletter Form Styles */
.sfnl-form {
    max-width: 400px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sfnl-form-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #333;
    text-align: center;
}

.sfnl-form-group {
    margin-bottom: 15px;
}

.sfnl-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.sfnl-required {
    color: #e74c3c;
}

.sfnl-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.sfnl-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

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

.sfnl-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sfnl-submit-btn:hover:not(:disabled) {
    background: #2980b9;
}

.sfnl-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.sfnl-btn-loading {
    display: none;
}

.sfnl-submit-btn.loading .sfnl-btn-text {
    display: none;
}

.sfnl-submit-btn.loading .sfnl-btn-loading {
    display: inline;
}

.sfnl-messages {
    margin-top: 15px;
}

.sfnl-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.sfnl-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sfnl-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sfnl-notice {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.sfnl-notice-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.sfnl-notice a {
    color: #856404;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 480px) {
    .sfnl-form {
        margin: 10px 0;
        padding: 15px;
    }

    .sfnl-input,
    .sfnl-submit-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/* Loading animation */
@keyframes sfnl-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sfnl-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: sfnl-spin 1s ease-in-out infinite;
}

/* Admin styles for submissions page */
.status-success {
    color: #27ae60;
    font-weight: 600;
}

.status-failed {
    color: #e74c3c;
    font-weight: 600;
}

.status-pending {
    color: #f39c12;
    font-weight: 600;
}