/* استایل پایه و عمومی */
    .container {
        background-color: #ffffff;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 30px;
        margin-top: 20px;
        overflow-x: auto;
        /* برای نمایش افقی در موبایل */
    }

    h1 {
        text-align: center;
        color: #1e293b;
        margin: 15px 0;
        font-size: 2.2rem;
    }

    .subtitle {
        text-align: center;
        color: #64748b;
        margin-bottom: 40px;
        font-size: 1.1rem;
    }

    /* استایل ردیف پلن‌ها */
    .plans-row {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 25px;
        margin-bottom: 50px;
    }

    .plan-card {
        background: linear-gradient(145deg, #ffffff, #f1f5f9);
        border-radius: 16px;
        padding: 30px 25px;
        text-align: center;
        flex: 1;
        min-width: 180px;
        max-width: 220px;
        border: 2px solid #e2e8f0;
        transition: all 0.3s ease;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
        position: relative;
    }

    .plan-card:hover {
        transform: translateY(-10px);
        border-color: #3b82f6;
        box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
    }

    .plan-card.featured {
        border-color: #f59e0b;
        background: linear-gradient(145deg, #fffbeb, #fef3c7);
    }

    .plan-card.featured:hover {
        border-color: #d97706;
        box-shadow: 0 15px 30px rgba(245, 158, 11, 0.2);
    }

    .plan-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 10px;
    }

    .plan-subtitle {
        color: #64748b;
        font-size: 1rem;
        margin-bottom: 20px;
        min-height: 50px;
        /* برای یکسان سازی ارتفاع */
    }

    .plan-placeholder {
        color: #94a3b8;
        font-style: italic;
        font-size: 0.9rem;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #cbd5e1;
    }

    /* استایل جدول مقایسه ویژگی‌ها */
    .feature-matrix {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .feature-matrix th,
    .feature-matrix td {
        padding: 18px 15px;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        transition: background-color 0.2s;
    }

    .feature-matrix thead th {
        background-color: #1e293b;
        color: white;
        font-weight: 600;
        font-size: 1.1rem;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .feature-matrix tbody tr:nth-child(even) {
        background-color: #f8fafc;
    }

    .feature-matrix tbody tr:hover {
        background-color: #f1f5f9;
    }

    .feature-cell {
        font-size: 1.5rem;
    }

    .feature-cell .fa-check {
        color: #10b981;
    }

    .feature-cell .fa-xmark {
        color: #ef4444;
    }

    .feature-cell .fa-minus {
        color: #94a3b8;
    }

    .feature-name {
        text-align: right;
        font-weight: 500;
        padding-right: 25px;
        white-space: nowrap;
    }

    /* استایل واکنش‌گرا برای موبایل و تبلت */
    @media (max-width: 1200px) {
        .plans-row {
            gap: 15px;
        }

        .plan-card {
            min-width: 160px;
            padding: 25px 15px;
        }
    }

    @media (max-width: 992px) {
        .plans-row {
            flex-wrap: wrap;
            justify-content: space-around;
        }

        .plan-card {
            min-width: 45%;
            max-width: 45%;
            margin-bottom: 20px;
        }

        .feature-name {
            white-space: normal;
            /* امکان شکستن خط در موبایل */
            font-size: 0.95rem;
        }
    }

    @media (max-width: 768px) {
        body {
            padding: 15px;
        }
        
        .container {
            padding: 20px 15px;
        }

        .plan-card {
            min-width: 100%;
            max-width: 100%;
        }

        .feature-matrix {
            font-size: 0.9rem;
        }

        .feature-matrix th,
        .feature-matrix td {
            padding: 12px 8px;
        }

        .feature-cell {
            font-size: 1.3rem;
        }
        
        h1 {
            font-size: 1.8rem;
        }
        
        .subtitle {
            font-size: 1rem;
        }
    }

    .feedback-form-container {
        margin-top: 60px;
        padding: 40px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 2px solid #f1f5f9;
    }

    input:focus,
    textarea:focus,
    select:focus {
        outline: none;
    }

    button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(59, 130, 246, 0.4) !important;
        background: linear-gradient(to left, #2563eb, #1e40af) !important;
    }
    .ds-flex-mb-block{
        display: flex;
        gap: 20px;
        margin-bottom: 25px;
    }
    .rating-container{
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    .rating{
        cursor: pointer;
        padding: 12px 16px;
        background: #f1f5f9;
        border-radius: 8px;
        transition: all 0.3s;
    }

    .star.active {
        color: #fbbf24 !important;
    }

    @media (max-width: 768px) {
        .feedback-form-container {
            padding: 25px 20px;
        }

        .feedback-form-container>div[style*="display: flex"] {
            flex-direction: column;
            gap: 15px;
        }
    }

    /* استایل دکمه انتخاب در کارت پلن */
    .select-plan-btn {
        background: linear-gradient(to left, #10b981, #059669);
        color: white;
        border: none;
        padding: 12px 25px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 20px;
        width: 100%;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .select-plan-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
        background: linear-gradient(to left, #0da271, #047857);
    }

    /* استایل مدال - بهبود یافته برای واکنش‌گرایی */
    .modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-content {
        background-color: #fff;
        margin: 20px auto;
        padding: 0;
        width: 100%;
        max-width: 550px;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: modalFadeIn 0.3s;
        overflow: hidden;
        position: relative;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: translateY(-50px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .modal-header {
        background: linear-gradient(to left, #3b82f6, #1d4ed8);
        color: white;
        padding: 20px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
        flex: 1;
        text-align: center;
        padding-left: 30px; /* برای فاصله از دکمه بستن */
    }

    .close-modal {
        font-size: 2.5rem;
        cursor: pointer;
        transition: 0.2s;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        z-index: 10;
    }

    .close-modal:hover {
        color: #fbbf24;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .modal-body {
        padding: 30px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    /* گزینه‌های مدت زمان */
    .duration-options {
        margin: 20px 0;
    }

    .duration-option {
        display: block;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 18px 20px;
        margin-bottom: 15px;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
    }

    .duration-option:hover {
        border-color: #93c5fd;
        background-color: #f0f9ff;
    }

    .duration-option.selected {
        border-color: #3b82f6;
        background-color: #eff6ff;
    }

    .duration-option input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .duration-text {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e293b;
        display: block;
    }

    .duration-text small {
        font-weight: normal;
        color: #10b981;
        font-size: 0.85rem;
    }

    .duration-price {
        font-size: 1.3rem;
        font-weight: 700;
        color: #3b82f6;
        display: block;
        margin-top: 8px;
    }

    /* خلاصه سفارش */
    .order-summary {
        background-color: #f8fafc;
        border-radius: 12px;
        padding: 25px;
        margin-top: 30px;
        border: 1px solid #e2e8f0;
    }

    .order-summary h4 {
        color: #1e293b;
        margin-top: 0;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
    }

    .order-summary h4 i {
        margin-left: 10px;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px dashed #cbd5e1;
    }

    .summary-row.total {
        border-bottom: none;
        font-size: 1.2rem;
        padding-top: 20px;
        color: #1e293b;
    }

    /* دکمه‌های مدال */
    .modal-footer {
        padding: 20px 30px;
        background-color: #f8fafc;
        border-top: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 35px;
        border-radius: 50px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        min-width: 140px;
    }

    .btn-primary {
        background: linear-gradient(to left, #3b82f6, #1d4ed8);
        color: white;
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(59, 130, 246, 0.4);
    }

    .btn-secondary {
        background: #f1f5f9;
        color: #64748b;
        border: 2px solid #cbd5e1;
    }

    .btn-secondary:hover {
        background: #e2e8f0;
    }

    /* استایل واکنش‌گرا برای مدال */
    @media (max-width: 768px) {
        .modal {
            padding: 10px;
        }
        
        .modal-content {
            margin: 10px auto;
            width: 100%;
            border-radius: 15px;
        }
        
        .modal-header {
            padding: 15px 20px;
        }
        
        .modal-header h3 {
            font-size: 1.3rem;
            padding-left: 40px;
        }
        
        .close-modal {
            left: 15px;
            font-size: 2.2rem;
        }
        
        .modal-body {
            padding: 20px;
            max-height: calc(100vh - 150px);
        }
        
        .duration-option {
            padding: 15px;
        }
        
        .duration-text {
            font-size: 1rem;
        }
        
        .duration-price {
            font-size: 1.1rem;
        }
        
        .order-summary {
            padding: 20px;
        }
        
        .modal-footer {
            padding: 15px 20px;
            flex-direction: column;
        }
        
        .btn-primary,
        .btn-secondary {
            width: 100%;
            padding: 16px;
        }
        
        .summary-row {
            flex-direction: column;
            gap: 5px;
        }
        
        .summary-row span:first-child {
            font-size: 0.9rem;
            color: #64748b;
        }
        
        .summary-row strong {
            font-size: 1.1rem;
        }
    }
    
    @media (max-width: 480px) {
        .modal-header h3 {
            font-size: 1.2rem;
        }
        
        .duration-option {
            padding: 12px 15px;
        }
        
        .modal-body {
            padding: 15px;
        }
        .ds-flex-mb-block{
            display: block;
            gap: 30px;
        }
        .rating-container{
            gap: 3px;
        }
        .rating{
            padding: 6px 10px;
        }
    }