/* Newsletter Subscribe Form Styles */

.ns-subscribe-container {
    width: 100%;
}

.ns-subscribe-form {
    margin: 0 auto;
}

.ns-title {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-family: "Merriweather", serif;
    font-style: italic;
    font-size: 2.8rem;
}

.ns-description {
    font-size: 16px;
    color: #a4a4a4;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.ns-form {
    width: 100%;
}

.ns-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ns-form-group {
    flex: 1;
    min-width: 200px;
}

.ns-form-group:last-child {
    flex: 0 0 auto;
    min-width: auto;
}

.ns-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #6b7280;
    background-color: transparent;
    color: #ffffff;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ns-input::placeholder {
    color: #9ca3af;
}

.ns-input:focus {
    outline: none;
    border-color: #5a9aa8;
    background-color: rgba(90, 154, 168, 0.1);
}

.ns-submit-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ns-submit-btn:hover {
    background-color: #4a8896;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ns-submit-btn:active {
    transform: translateY(0);
}

.ns-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ns-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.ns-message.success {
    background-color: #10b981;
    color: #ffffff;
    border: 1px solid #059669;
}

.ns-message.error {
    background-color: #ef4444;
    color: #ffffff;
    border: 1px solid #dc2626;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ns-form-row {
        flex-direction: column;
    }
    
    .ns-form-group {
        width: 100%;
        min-width: 100%;
    }
    
    .ns-form-group:last-child {
        flex: 1;
    }
    
    .ns-submit-btn {
        width: 100%;
    }
    
    .ns-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .ns-subscribe-container {
        padding: 30px 15px;
    }
    
    .ns-title {
        font-size: 24px;
    }
    
    .ns-description {
        font-size: 14px;
    }
    
    .ns-input,
    .ns-submit-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Loading State */
.ns-form.loading .ns-submit-btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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