/* css/components/insurance-plans.css */

/* هدر بخش */
.plans-header {
    text-align: right;
    margin-bottom: 20px;
       padding-top: 25px;
    padding-bottom: 0px;
}

.plans-header .header-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.plans-header .header-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.plans-header .header-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2;
}

.plans-header h3 {
    color: #1a1a2e;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.plans-header p {
    font-size: 12px;
    margin: 8px 0 0 0;
    color: #666;
    text-align: right;
}

/* آیتم آکاردئون */
.accordion-item {
    margin-bottom: 12px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* هدر آکاردئون */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    background: white;
    transition: background 0.3s ease;
    gap: 10px;
}

.accordion-header:active {
    background: #f5f5f5;
}

.header-info {
    flex: 1;
    min-width: 0;
}

.header-info .info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    white-space: nowrap;
}

.current-price {
    font-size: 15px;
    font-weight: bold;
    color: #e83e8c;
    white-space: nowrap;
}

.discount-badge {
    background: #e83e8c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.installment-text {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

/* دکمه‌ها */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.select-quick-btn {
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    white-space: nowrap;
}

.select-quick-btn.selected {
    background: #28a745;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-icon svg {
    width: 20px;
    height: 20px;
    stroke: #666;
    stroke-width: 2;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

/* بدنه آکاردئون */
.accordion-body {
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f8f9fa;
}

.accordion-body .body-content {
    padding: 16px;
    border-top: none;
}

.features-title {
    font-size: 13px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 12px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    font-size: 13px;
}

.feature-text .feature-value {
    font-size: 12px;
    color: #666;
}

/* فوتر انتخاب شده */
.selected-footer {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.selected-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-footer .selected-info {
    flex: 1;
    text-align: right;
}

.selected-footer .selected-label {
    font-size: 11px;
    color: #666;
}

.selected-footer .selected-name {
    font-weight: bold;
    font-size: 14px;
}

.selected-footer .selected-price {
    font-weight: bold;
    font-size: 14px;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
    
    .select-quick-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .accordion-icon {
        width: 24px;
        height: 24px;
    }
    
    .accordion-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .selected-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .selected-footer .selected-info {
        text-align: center;
        width: 100%;
    }
}