/* استایل‌های فرم خبرنامه */
.np-form-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.np-form-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
}

.np-form-group {
    margin-bottom: 20px;
}

.np-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.np-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
    font-family: inherit;
}

.np-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.np-input:hover {
    border-color: #999;
}

.np-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
    font-style: italic;
}

.np-form-note {
    background: #f0f8ff;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-right: 4px solid #0073aa;
}

.np-form-note p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.np-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.np-submit-btn:hover {
    background: linear-gradient(135deg, #005177 0%, #003d5c 100%);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.np-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.np-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.np-message {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.np-message.success {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.np-message.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* انیمیشن لودینگ */
.np-loading {
    position: relative;
    pointer-events: none;
}

.np-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: np-spin 0.8s linear infinite;
}

@keyframes np-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .np-form-container {
        padding: 20px;
        margin: 20px 15px;
    }
    
    .np-form-title {
        font-size: 20px;
    }
    
    .np-submit-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* استایل‌های فرم خبرنامه نوع دوم - تمام عرض */
.np-form1-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}


.np-form1-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
    gap: 40px;
}

.np-form1-right {
    flex: 1;
}

.np-form1-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.np-form1-subtitle {
    font-size: 16px;
    color: #d5d5d5;
    margin: 0;
    line-height: 1.6;
    text-align: right;
}

.np-form1-left {
    flex: 1;
}

.np-form1-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.np-input1 {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: left;
    font-family: inherit;
}

.np-input1::placeholder {
    color: rgba(255, 255, 255, 0.5);
    direction: rtl;
    text-align: right;
}

.np-input1:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.np-submit-btn1 {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #333;
    font-family: inherit;
}

/* رنگ‌های پیش‌فرض برای دکمه در صورت نبود متغیرها */
.np-submit-btn1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.np-submit-btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.np-submit-btn1:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.np-submit-btn1:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.np-message1 {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    text-align: center;
}

.np-message1.success {
    display: block;
    background: rgba(76, 175, 80, 0.9);
    color: #ffffff;
    border: 1px solid rgba(76, 175, 80, 1);
}

.np-message1.error {
    display: block;
    background: rgba(244, 67, 54, 0.9);
    color: #ffffff;
    border: 1px solid rgba(244, 67, 54, 1);
}

/* انیمیشن لودینگ برای فرم نوع دوم */
.np-loading1 {
    position: relative;
    pointer-events: none;
}

.np-loading1::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: np-spin 0.8s linear infinite;
}

/* ریسپانسیو برای فرم نوع دوم */
@media (max-width: 768px) {
    .np-form1-content {
        flex-direction: column;
        padding: 30px 25px;
        gap: 30px;
    }
    
    .np-form1-right {
        text-align: center;
    }
    
    .np-form1-title {
        font-size: 24px;
    }
    
    .np-form1-subtitle {
        font-size: 14px;
    }
    
    .np-form1-inputs {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .np-form1-content {
        padding: 25px 20px;
    }
    
    .np-form1-title {
        font-size: 20px;
    }
    
    .np-form1-subtitle {
        font-size: 13px;
    }
    
    .np-input1 {
        padding: 12px 15px;
    }
    
    .np-submit-btn1 {
        padding: 12px 15px;
        font-size: 14px;
    }
}
