/* استایل فرم‌های نیکان - نسخه کامل */
.nikan-form-container {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.95) 0%, rgba(40, 40, 60, 0.95) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    direction: rtl;
    text-align: right;
}

.nikan-form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 4px solid #007bff;
    transition: all 0.3s ease;
    text-align: right;
}

.nikan-form-section:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* عنوان‌های بخش‌ها - وسط‌چین */
.nikan-section-title {
    color: #ffd700;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
    justify-content: center;
    direction: rtl;
}

.nikan-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    direction: rtl;
}

.nikan-form-row .nikan-form-group {
    flex: 1;
    min-width: 250px;
}

.nikan-form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: right;
    direction: rtl;
}

.nikan-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.95rem;
    text-align: right;
    direction: rtl;
    padding-right: 5px;
}

.nikan-form-group label[for*="required"]::after {
    content: " *";
    color: #ff4444;
    font-weight: bold;
    margin-right: 3px;
}

/* استایل input‌ها (text, tel, email, number, textarea) - با border سفید */
.nikan-form-group input[type="text"],
.nikan-form-group input[type="tel"],
.nikan-form-group input[type="email"],
.nikan-form-group input[type="number"],
.nikan-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08); /* رنگ اصلی فرم */
    border: 1px solid #ffffff; /* border سفید کامل */
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

/* استایل select boxes - با رنگ اصلی فرم */
.nikan-form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.08); /* رنگ اصلی فرم */
    border: 1px solid #ffffff; /* border سفید کامل */
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 16px;
    padding-right: 15px;
    padding-left: 40px;
}

/* استایل focus برای همه فیلدها */
.nikan-form-group input:focus,
.nikan-form-group select:focus,
.nikan-form-group textarea:focus {
    outline: none;
    border-color: #80bdff; /* آبی روشن در حالت focus */
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12); /* کمی روشن‌تر هنگام focus */
}

/* استایل dropdown منو (زمانی که باز می‌شود) - رنگ اصلی فرم */
.nikan-form-group select option {
    background: rgba(25, 25, 35, 0.98) !important; /* رنگ اصلی فرم */
    color: #ffffff !important;
    text-align: right;
    direction: rtl;
    padding: 10px 15px;
    font-size: 14px;
}

/* استایل dropdown منو در حالت hover و selected */
.nikan-form-group select option:hover,
.nikan-form-group select option:focus,
.nikan-form-group select option:checked {
    background: rgba(40, 40, 60, 0.98) !important; /* رنگ کمی روشن‌تر از فرم */
    color: #ffffff !important;
}

/* استایل dropdown منو در مرورگرهای مختلف */
.nikan-form-group select::-ms-expand {
    display: none;
}

/* استایل برای select box در حالت hover */
.nikan-form-group select:hover {
    border-color: #ffffff; /* سفید کامل در hover */
    background: rgba(255, 255, 255, 0.1); /* کمی روشن‌تر در hover */
}

/* استایل برای input در حالت hover */
.nikan-form-group input[type="text"]:hover,
.nikan-form-group input[type="tel"]:hover,
.nikan-form-group input[type="email"]:hover,
.nikan-form-group input[type="number"]:hover,
.nikan-form-group textarea:hover {
    border-color: #ffffff; /* سفید کامل در hover */
    background: rgba(255, 255, 255, 0.1); /* کمی روشن‌تر در hover */
}

.nikan-form-group input::placeholder,
.nikan-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    direction: rtl;
}

.nikan-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #aaa;
    text-align: right;
    direction: rtl;
    padding-right: 5px;
}

/* استایل چک باکس‌های امکانات */
.nikan-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    direction: rtl;
}

.nikan-feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.nikan-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    direction: rtl;
    text-align: right;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.feature-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #28a745;
    order: 2;
}

.feature-label {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    order: 1;
    margin-right: 8px;
}

/* استایل چک باکس‌های گروهی */
.nikan-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    direction: rtl;
    text-align: right;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    cursor: pointer;
    direction: rtl;
    text-align: right;
    flex-direction: row-reverse;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #17a2b8;
    order: 2;
}

.checkbox-inline span {
    order: 1;
    margin-right: 5px;
}

/* استایل دکمه ارسال */
.nikan-form-submit {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    direction: rtl;
}

.nikan-submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    justify-content: center;
    direction: rtl;
}

.nikan-submit-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1baa7a 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.nikan-submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* استایل پیام‌ها */
.nikan-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    animation: fadeIn 0.5s ease;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    direction: rtl;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.nikan-form-message.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #d4edda;
}

.nikan-form-message.success strong {
    color: #c3e6cb;
    font-weight: bold;
    font-size: 1rem;
}

.nikan-form-message.success small {
    color: #a8d5ba;
    font-size: 0.85rem;
}

.nikan-form-message.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f8d7da;
}

.nikan-form-message.error strong {
    color: #f5c6cb;
    font-weight: bold;
    font-size: 1rem;
}

.nikan-form-message.error ul {
    margin: 10px 0 0 20px;
    padding: 0;
    text-align: right;
    direction: rtl;
    list-style-position: inside;
}

.nikan-form-message.error li {
    margin-bottom: 5px;
    color: #f8d7da;
    font-size: 0.9rem;
    text-align: right;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* استایل برای فیلدهای غیرفعال */
.nikan-form input:disabled,
.nikan-form select:disabled,
.nikan-form textarea:disabled {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    opacity: 0.7;
}

/* استایل پیام موفقیت جدید */
.nikan-success-message {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.95) 0%, rgba(40, 40, 60, 0.95) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.8s ease-out;
    direction: rtl;
    text-align: center;
}

.success-icon {
    margin-bottom: 25px;
    animation: iconBounce 1s ease;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.success-title {
    color: #28a745;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    direction: rtl;
}

.success-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    direction: rtl;
    text-align: center;
}

.submission-id {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 25px auto;
    max-width: 300px;
    color: #d4edda;
    font-size: 1.1rem;
    direction: rtl;
    text-align: center;
}

.submission-id strong {
    color: #c3e6cb;
    margin-left: 10px;
}

.success-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
    direction: rtl;
    text-align: center;
}

/* استایل برای نمایش فرم غیرفعال شده */
.nikan-form-disabled {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ff6b6b;
    font-weight: bold;
    direction: rtl;
}

/* استایل برای فیلدهای الزامی */
.nikan-form-group.required label::after {
    content: " *";
    color: #ff4444;
    font-weight: bold;
    margin-right: 3px;
}

/* استایل برای نمایش خطا در فیلدها */
.nikan-form-group.error input,
.nikan-form-group.error select,
.nikan-form-group.error textarea {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.nikan-form-group.error::after {
    content: "پر کردن این فیلد الزامی است";
    color: #dc3545;
    font-size: 0.85rem;
    position: absolute;
    bottom: -18px;
    right: 0;
    direction: rtl;
}

/* استایل برای نمایش موفقیت در فیلدها */
.nikan-form-group.success input,
.nikan-form-group.success select,
.nikan-form-group.success textarea {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* استایل‌های ریسپانسیو */
@media (max-width: 992px) {
    .nikan-form-container {
        padding: 20px;
        margin: 0 10px 20px;
    }
    
    .nikan-form-row {
        gap: 15px;
    }
    
    .nikan-form-row .nikan-form-group {
        min-width: 200px;
    }
    
    .nikan-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nikan-form-section {
        padding: 20px;
    }
    
    .nikan-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .nikan-form-row .nikan-form-group {
        min-width: 100%;
    }
    
    .nikan-features-grid {
        grid-template-columns: 1fr;
    }
    
    .nikan-checkbox-group {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .nikan-submit-btn {
        width: 100%;
        padding: 14px 30px;
    }
    
    .nikan-section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nikan-form-container {
        padding: 15px;
    }
    
    .nikan-form-section {
        padding: 15px;
    }
    
    .nikan-form-group input,
    .nikan-form-group select,
    .nikan-form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .nikan-submit-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .checkbox-inline {
        width: 100%;
    }
}