.sdc-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'ct_font_iransansxv', Tahoma, Arial, sans-serif;
    direction: rtl;
    line-height: 1.6;
}

.sdc-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* نوار پیشرفت */
.sdc-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    padding: 20px 0;
}

.sdc-progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, #e0e0e0 0%, #e0e0e0 100%);
    z-index: 1;
    border-radius: 2px;
}

.sdc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 60px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sdc-step.active .step-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.sdc-step.complete .step-number {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border-color: #229954;
}

.sdc-step.complete .step-number::after {
    content: '✓';
    font-size: 16px;
}

.step-title {
    font-size: 15px;
    color: #666;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sdc-step.active .step-title {
    color: #3498db;
    font-weight: 700;
}

.sdc-step.complete .step-title {
    color: #27ae60;
    font-weight: 600;
}

/* محتوای مراحل */
.sdc-step-content {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.sdc-step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.sdc-section-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    border-right: 5px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sdc-section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

/* فرم‌ها */
.sdc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.sdc-form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.sdc-form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 15px;
}

.required {
    color: #e74c3c;
    margin-right: 3px;
}

.sdc-form-group input,
.sdc-form-group select {
    /*padding: 3px;*/
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'ct_font_iransansxv', Tahoma, Arial, sans-serif;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sdc-form-group input:focus,
.sdc-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.sdc-form-group input[readonly] {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    cursor: not-allowed;
    font-weight: 600;
}

.sdc-form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

/* رادیو باتن‌ها */
.radio-group {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 150px;
    height:48px;
}

.radio-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.radio-option input[type="radio"] {
    margin-left: 10px;
    transform: scale(1.2);
    accent-color: #3498db;
}

.radio-option input[type="radio"]:checked + span {
    color: #2980b9;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #3498db;
    background: linear-gradient(135deg, #ebf3fd, #d6eaff);
    color: #2980b9;
    font-weight: 600;
}

/* دکمه‌ها */
.sdc-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'ct_font_iransansxv', Tahoma, Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.sdc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.sdc-btn:hover::before {
    left: 100%;
}

.sdc-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.sdc-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.sdc-btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.sdc-btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

.sdc-btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.sdc-btn-success:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.sdc-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f1f2f6;
}

/* نتایج */
.sdc-results {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.sdc-results-note {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-right: 5px solid #17a2b8;
}

.sdc-results-note p {
    margin: 0;
    color: #0c5460;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.7;
}

.sdc-results-table {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.sdc-results-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}

.sdc-results-table th,
.sdc-results-table td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.sdc-results-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sdc-results-table tr:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.sdc-results-table tr:hover {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.sdc-results-table td:first-child {
    font-weight: 700;
    color: #2980b9;
    background: linear-gradient(135deg, #ebf3fd, #ffffff);
}

.sdc-results-table td:last-child {
    font-weight: 700;
    color: #27ae60;
    background: linear-gradient(135deg, #d5f4e6, #ffffff);
}

.sdc-total-cost {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.sdc-total-cost::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sdc-total-cost h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    color:#fff;
}

.sdc-cost-breakdown {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 25px;
    border-radius: 12px;
    border: 3px solid #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
    margin: 20px 0;
}

.sdc-cost-breakdown p {
    margin: 15px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.7;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.sdc-cost-breakdown p:last-child {
    border-bottom: none;
}

.sdc-cost-breakdown span {
    font-weight: 700;
    color: #e74c3c;
    font-size: 18px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .sdc-container {
        margin: 10px;
        padding: 20px;
    }
    
    .sdc-title {
        font-size: 24px;
    }
    
    .sdc-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sdc-progress-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .sdc-progress-bar::before {
        display: none;
    }
    
    .sdc-step {
        margin: 15px 0;
    }
    
    .sdc-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .sdc-btn {
        width: 100%;
        padding: 18px;
    }
    
    .sdc-results-table {
        font-size: 12px;
    }
    
    .sdc-results-table th,
    .sdc-results-table td {
        padding: 12px 8px;
    }
    
    .sdc-total-cost h4 {
        font-size: 22px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-option {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .sdc-container {
        padding: 15px;
    }
    
    .sdc-section-header {
        padding: 20px 15px;
    }
    
    .sdc-section-header h3 {
        font-size: 18px;
    }
    
    .sdc-results {
        padding: 25px 15px;
    }
    
    .sdc-results-table th,
    .sdc-results-table td {
        padding: 10px 5px;
        font-size: 11px;
    }
}

/* انیمیشن‌های اضافی */
.sdc-form-group {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* استایل چاپ */
@media print {
    .sdc-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .sdc-progress-bar,
    .sdc-form-actions,
    .no-print {
        display: none !important;
    }
    
    .sdc-results-table table {
        page-break-inside: avoid;
    }
    
    .sdc-total-cost {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* اسکرول بار سفارشی */
.sdc-results-table::-webkit-scrollbar {
    height: 8px;
}

.sdc-results-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sdc-results-table::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 4px;
}

.sdc-results-table::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
}
/* استایل دکمه‌های جدید */
.sdc-btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.sdc-btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.sdc-btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.sdc-btn-info:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* اصلاح نوار پیشرفت برای موبایل */
@media (max-width: 768px) {
    .sdc-progress-bar {
        flex-direction: row !important; /* تغییر از column به row */
        justify-content: space-between;
        align-items: center;
        padding: 15px 10px;
        margin-bottom: 30px;
    }
    
    .sdc-progress-bar::before {
        display: block !important; /* نمایش خط اتصال */
        top: 50%;
        left: 15%;
        right: 15%;
        height: 2px;
        background: #e0e0e0;
    }
    
    .sdc-step {
        margin: 0 5px !important; /* فاصله کمتر بین مراحل */
        flex: 1;
        max-width: 80px;
    }
    
    .step-number {
        width: 45px !important; /* اندازه کوچک‌تر برای موبایل */
        height: 45px !important;
        font-size: 16px !important;
        margin-bottom: 8px;
    }
    
    .step-title {
        font-size: 12px !important;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* تنظیم دکمه‌ها در موبایل */
    .sdc-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .sdc-form-actions .sdc-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    /* نمایش دکمه‌ها در دو ردیف */
    #final-results .sdc-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    #final-results .sdc-form-actions .sdc-btn {
        width: 100%;
        font-size: 14px;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .sdc-step {
        margin: 0 2px !important;
        max-width: 70px;
    }
    
    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .step-title {
        font-size: 11px !important;
    }
    
    #final-results .sdc-form-actions {
        grid-template-columns: 1fr; /* یک ستون در صفحات خیلی کوچک */
    }
}

/* استایل چک باکس‌ها */
.checkbox-option {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.checkbox-option input[type="checkbox"] {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-option span {
    font-weight: 500;
    color: #2c3e50;
}

/* حالت غیرفعال فیلدها */
.disabled-fields {
    opacity: 0.5;
    pointer-events: none;
    background: #f5f5f5;
}

.disabled-fields select {
    background-color: #e9ecef !important;
    color: #6c757d !important;
}


/* استایل مودال لید */
.sdc-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.sdc-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 0;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
}

.sdc-modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 25px;
    text-align: center;
}

.sdc-modal-header h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 20px;
}

.sdc-modal-header p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.sdc-modal-body {
    padding: 25px;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* ریسپانسیو دکمه ها در نتایج */
@media (max-width: 768px) {
    .sdc-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .sdc-btn {
        width: 100%;
        box-sizing: border-box; /* جلوگیری از اسکرول افقی */
    }
    
    /* چینش دکمه های مرحله آخر */
    #final-results .sdc-form-actions {
        display: flex;
        flex-direction: column;
    }
}