/* استایل اصلی فرم */
.spf-pricing-form {
    max-width: 1000px;
    margin: 20px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.spf-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid #e9ecef;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.spf-form-header h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.spf-base-price {
    font-size: 20px;
    color: #27ae60;
    font-weight: bold;
    background: #f8fff9;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid #27ae60;
}

.spf-description {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.6;
}

/* بخش‌های فرم */
.spf-form-section {
    background: white;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.spf-form-section h4 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
}

/* گرید فرم */
.spf-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.spf-form-group {
    display: flex;
    flex-direction: column;
}

.spf-form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.spf-form-group input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.spf-form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.spf-form-group input.spf-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* بخش دسته‌بندی‌ها */
.spf-category-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f2f6;
}

.spf-category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.spf-category-header h5 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.spf-required-star {
    color: #e74c3c;
    font-size: 20px;
    margin-right: 5px;
}

.spf-category-desc {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

/* گرید گزینه‌ها */
.spf-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.spf-option-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.spf-option-card:hover {
    border-color: #bdc3c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spf-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.spf-option-content {
    padding: 20px 15px;
    text-align: center;
}

.spf-option-card input[type="radio"]:checked + .spf-option-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.spf-option-card input[type="radio"]:checked + .spf-option-content .spf-option-title {
    color: white;
}

.spf-option-card input[type="radio"]:checked + .spf-option-content .spf-option-price {
    color: rgba(255,255,255,0.9);
}

.spf-option-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.spf-option-price {
    color: #27ae60;
    font-size: 13px;
    font-weight: 500;
}

/* بخش قیمت نهایی */
.spf-total-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.spf-total-breakdown {
    max-width: 400px;
    margin: 0 auto;
}

.spf-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.spf-breakdown-item:last-child {
    border-bottom: none;
}

.spf-breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid rgba(255,255,255,0.2);
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
}

#spf-total-price {
    color: #27ae60;
    font-size: 24px;
}

/* بخش توضیحات */
.spf-note-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.spf-note-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* دکمه ارسال */
.spf-form-actions {
    text-align: center;
    margin-top: 30px;
}

.spf-submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    position: relative;
    overflow: hidden;
}

.spf-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.spf-submit-btn:active {
    transform: translateY(-1px);
}

.spf-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* پیام موفقیت */
.spf-success-message {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 3px solid #27ae60;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.spf-success-message h3 {
    color: #27ae60;
    margin-bottom: 15px;
    font-size: 24px;
}

.spf-success-message p {
    color: #7f8c8d;
    font-size: 16px;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .spf-pricing-form {
        padding: 20px;
        margin: 10px;
    }
    
    .spf-form-grid {
        grid-template-columns: 1fr;
    }
    
    .spf-options-grid {
        grid-template-columns: 1fr;
    }
    
    .spf-form-section {
        padding: 20px;
    }
    
    .spf-total-section {
        padding: 20px;
    }
    
    .spf-breakdown-total {
        font-size: 18px;
    }
    
    #spf-total-price {
        font-size: 20px;
    }
    
    .spf-submit-btn {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
    }
}

/* انیمیشن‌ها */
@keyframes spfFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spf-pricing-form {
    animation: spfFadeIn 0.6s ease-out;
}

.spf-form-section {
    animation: spfFadeIn 0.8s ease-out;
}