/**
 * Public styles for newsletter subscription form
 */

.np-subscription-form-container {
    max-width: 100%;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.np-subscription-form-container * {
    box-sizing: border-box;
}

.np-subscription-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.np-form-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.np-form-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
}

.np-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.np-form-field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.np-email-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 200px;
    padding: 12px 16px !important;
    font-size: 16px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box !important;
    display: block;
    margin: 0;
}

.np-email-input:focus {
    outline: none;
    border-color: #007bff;
}

.np-submit-button {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
}

.np-submit-button:hover {
    background-color: #0056b3;
}

.np-submit-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.np-button-spinner {
    display: inline-block;
    margin-left: 10px;
}

.np-button-spinner .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: np-spin 0.6s linear infinite;
}

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

.np-form-privacy {
    margin-top: 10px;
    text-align: center;
}

.np-form-privacy small {
    color: #888;
    font-size: 13px;
}

.np-form-messages {
    margin-bottom: 15px;
}

.np-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

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

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

/* Responsive Design */
@media (min-width: 576px) {
    .np-subscribe-form {
        flex-direction: row;
        align-items: flex-start;
    }

    .np-form-field:first-child {
        flex: 1;
    }

    .np-form-field:last-child {
        flex: 0 0 auto;
    }

    .np-submit-button {
        width: auto;
        white-space: nowrap;
    }
}
