@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.0/Vazirmatn-font-face.css');

.wsif-container, .wsif-container * { font-family: 'Vazirmatn', Tahoma, sans-serif !important; box-sizing: border-box; }

/* ساختار کاملاً استاندارد بدون کدهای مخرب */
.wsif-wrapper { position: relative; overflow: hidden; padding: 50px 15px; }
.wsif-container { direction: rtl; width: 100%; max-width: 1200px; margin: 0 auto; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 24px; box-shadow: 0 25px 50px rgba(0,0,0,0.1); padding: 40px; position: relative; }

/* پس‌زمینه */
.wsif-bg-shape { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.6; animation: float 10s infinite ease-in-out alternate; }
.wsif-shape-1 { top: -5%; right: -5%; width: 400px; height: 400px; background: #3b82f6; }
.wsif-shape-2 { bottom: -10%; left: -5%; width: 500px; height: 500px; background: #10b981; animation-delay: -5s; }
.wsif-shape-3 { top: 40%; left: 20%; width: 300px; height: 300px; background: #8b5cf6; animation-delay: -2s; }
@keyframes float { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(30px) scale(1.1); } }

/* ابزارهای بالا و نوار پیشرفت */
.wsif-top-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.wsif-tool-btn { background: rgba(59, 130, 246, 0.1); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.3); padding: 8px 15px; border-radius: 12px; font-weight: 800 !important; font-size: 13px !important; cursor: pointer; transition: all 0.3s; }
.wsif-tool-btn:hover { background: #2563eb; color: #fff; }
.wsif-progress-wrapper { width: 100%; background: rgba(226, 232, 240, 0.5); border-radius: 10px; height: 8px; margin-bottom: 20px; overflow: hidden; }
.wsif-progress-bar { height: 100%; background: linear-gradient(90deg, #3b82f6, #10b981); width: 20%; transition: width 0.5s ease; border-radius: 10px; }
.wsif-title { text-align: center; color: #0f172a; font-size: 26px !important; font-weight: 900 !important; margin-bottom: 5px; }
.wsif-subtitle { text-align: center; color: #64748b; font-size: 14px !important; margin-bottom: 30px; font-weight: 600 !important; }
.wsif-step { display: none; animation: fadeIn 0.4s ease; }
.wsif-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* فرم‌ها */
.wsif-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
@media (max-width: 768px) { .wsif-form-grid { grid-template-columns: 1fr; } }
.wsif-form-group { margin-bottom: 25px; position: relative; }
.wsif-label { display: block; margin-bottom: 10px; font-size: 15px !important; font-weight: 700 !important; color: #334155; }
.wsif-input, .wsif-select { width: 100%; padding: 14px 18px; border-radius: 16px; border: 2px solid rgba(203, 213, 225, 0.6); background: rgba(255, 255, 255, 0.9); font-size: 15px !important; color: #1e293b; font-weight: 600 !important; outline: none; transition: all 0.3s ease; }
.wsif-input:focus, .wsif-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); background: #fff; }
.wsif-input.error, .wsif-dob-group.error select { border-color: #ef4444 !important; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1); }
.wsif-error-text { color: #ef4444; font-size: 12px; font-weight: bold; margin-top: 5px; display: none; }
.wsif-dob-group { display: flex; gap: 10px; }
.wsif-dob-group select { flex: 1; padding: 12px; border-radius: 12px; border: 2px solid rgba(203, 213, 225, 0.6); font-family: 'Vazirmatn'; font-weight: 600; outline: none; cursor: pointer; }
.wsif-alert { display: none; padding: 15px; border-radius: 12px; margin-top: 20px; font-size: 14px !important; font-weight: 600 !important; line-height: 1.8; border-right: 5px solid transparent; }
.wsif-alert.warning { background: #fffbeb; color: #b45309; border-color: #f59e0b; }
.wsif-alert.success { background: #ecfdf5; color: #047857; border-color: #10b981; }

/* دکمه‌ها */
.wsif-btn { padding: 16px 28px; background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; border: none; border-radius: 16px; font-size: 16px !important; font-weight: 800 !important; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2); }
.wsif-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3); }
.wsif-btn-secondary { background: #64748b; box-shadow: none; }
.wsif-btn-secondary:hover { background: #475569; }
.wsif-btn-outline { background: transparent; border: 2px solid #3b82f6; color: #3b82f6; box-shadow: none; margin-bottom: 10px; }
.wsif-step3-tools { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.wsif-compare-btn { background: rgba(59, 130, 246, 0.1); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.4); padding: 12px 20px; border-radius: 12px; font-weight: 800 !important; font-size: 14px !important; cursor: pointer; transition: all 0.3s; width: 100%; text-align: center; }
.wsif-compare-btn:hover { background: #2563eb; color: #fff; box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3); }
@media (min-width: 768px) { .wsif-compare-btn { width: auto; } }

/* پنل‌های فرانشیز */
.wsif-discount-toggle, .wsif-magic-checkbox, .wsif-franchise-toggle { background: rgba(240, 253, 244, 0.8); padding: 15px 20px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; border: 1px solid rgba(134, 239, 172, 0.8); width: 100%; }
.wsif-franchise-toggle { background: #fff8f1; border-color: #fcd34d; }
.wsif-franchise-toggle label, .wsif-discount-toggle label { font-size: 15px !important; font-weight: 800 !important; cursor: pointer; }
.wsif-franchise-toggle label { color: #d97706; }
.wsif-discount-toggle label { color: #166534; }
.wsif-franchise-options { display: flex; gap: 20px; }
.wsif-franchise-options label { display: flex; align-items: center; gap: 5px; font-weight: 700; cursor: pointer; color: #92400e; font-size: 14px !important; }
.wsif-franchise-options input { transform: scale(1.4); accent-color: #f59e0b; }

/* شبکه‌ی کارت‌ها */
.wsif-plans-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 650px) { .wsif-plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 950px) { .wsif-plans-grid { grid-template-columns: repeat(3, 1fr); } }
.wsif-plan-card { background: rgba(255, 255, 255, 0.95); border-radius: 20px; padding: 25px 20px; text-align: center; border: 1px solid rgba(226, 232, 240, 1); transition: all 0.3s; display: flex; flex-direction: column; }
.wsif-plan-card:hover { border-color: #3b82f6; box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15); transform: translateY(-5px); }
.wsif-plan-title { font-size: 20px !important; font-weight: 900 !important; color: #0f172a; margin-bottom: 15px; }
.wsif-plan-price { font-size: 24px !important; font-weight: 900 !important; color: #059669; margin-bottom: 5px; }
.wsif-plan-price span { font-size: 14px !important; font-weight: 600 !important; color: #64748b; display: block; }
.wsif-plan-features { list-style: none; padding: 0; margin: 20px 0; text-align: right; flex-grow: 1; border-top: 1px solid #e2e8f0; }
.wsif-plan-features li { padding: 12px 10px; font-size: 14px !important; font-weight: 600 !important; color: #334155; display: flex; justify-content: space-between; border-radius: 8px; margin: 4px 0; }
.wsif-plan-features li:nth-child(even) { background: rgba(241, 245, 249, 0.8); }

/* مدال‌ها */
.wsif-modal-overlay { display: none; position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100vw !important; height: 100vh !important; background: rgba(15, 23, 42, 0.85) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; z-index: 999999 !important; justify-content: center !important; align-items: center !important; padding: 20px !important; margin: 0 !important; }
.wsif-modal-overlay.active { display: flex !important; }
.wsif-modal-content { background: #fff; border-radius: 24px; width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; padding: 35px; position: relative; animation: slideUp 0.3s ease; }
.wsif-modal-content.wide { width: 98vw !important; max-width: 1800px !important; height: 95vh !important; max-height: 95vh !important; display: flex !important; flex-direction: column !important; padding: 25px !important; margin: 0 auto !important; box-sizing: border-box !important; }
.wsif-table-responsive { flex-grow: 1; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.wsif-modal-close { position: absolute; top: 20px; left: 20px; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; font-weight: bold; color: #64748b; z-index: 10; }
.wsif-modal-close:hover { background: #e2e8f0; color: #ef4444; }
.wsif-modal-title { font-size: 22px !important; font-weight: 900 !important; color: #0f172a; margin-bottom: 20px; text-align: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; }
.wsif-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 15px; border-radius: 10px; margin-bottom: 5px; }
.wsif-detail-row:nth-child(even) { background: rgba(241, 245, 249, 0.8); }
.wsif-detail-info h4 { margin: 0 0 5px 0; font-size: 15px !important; font-weight: 800 !important; color: #1e293b; }
.wsif-detail-info p { margin: 0; font-size: 13px !important; font-weight: 500 !important; color: #64748b; max-width: 300px; line-height: 1.6; }
.wsif-detail-limit { font-size: 15px !important; font-weight: 900 !important; color: #059669; }
.wsif-comp-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 13px !important; font-weight: 600; min-width: 800px; }
.wsif-comp-table th { background: #1e293b; color: #fff; padding: 15px; position: sticky; top: 0; border: 1px solid #334155; z-index: 5; }
.wsif-comp-table td { padding: 12px; border: 1px solid #e2e8f0; color: #334155; }
.wsif-comp-table tr:nth-child(even) { background: #f8fafc; }
.wsif-comp-table td:first-child { text-align: right; font-weight: 800; background: #f1f5f9; position: sticky; right: 0; z-index: 2; border-left: 2px solid #cbd5e1; }

/* پرسشنامه و امضا */
.wsif-health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
@media (max-width: 900px) { .wsif-health-grid { grid-template-columns: 1fr; } }
.wsif-health-q { background: rgba(255, 255, 255, 0.9); border: 1px solid #e2e8f0; border-radius: 16px; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.wsif-health-options { display: flex; gap: 20px; border-top: 1px dashed #e2e8f0; padding-top: 10px; }
.wsif-radio-label { display: flex; align-items: center; gap: 5px; font-weight: 700 !important; cursor: pointer; }
.wsif-radio-label input { transform: scale(1.3); accent-color: #3b82f6; cursor: pointer; }
.wsif-commitment { background: #fff8f1; border: 1px dashed #f59e0b; padding: 20px; border-radius: 16px; margin-top: 30px; font-size: 14.5px !important; line-height: 1.8; color: #92400e; font-weight: 700 !important; display: flex; gap: 12px; }
.wsif-signature-wrapper { margin-top: 30px; background: #fff; padding: 20px; border-radius: 16px; border: 2px solid #e2e8f0; }
.wsif-signature-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.wsif-clear-sig { background: #f1f5f9; border: none; padding: 6px 12px; border-radius: 8px; font-size: 12px !important; font-weight: bold; color: #64748b; cursor: pointer; }
#wsif-signature-pad { width: 100%; height: 200px; border: 2px dashed #cbd5e1; border-radius: 12px; cursor: crosshair; background: #f8fafc; touch-action: none; }

/* لیست پیشنهادات (Autofill) */
.wsif-autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border: 2px solid rgba(59, 130, 246, 0.3); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; display: none; margin-top: 5px; padding: 0; list-style: none; max-height: 180px; overflow-y: auto; }
.wsif-autocomplete-item { padding: 12px 15px; cursor: pointer; font-size: 14px !important; color: #334155; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.wsif-autocomplete-item:last-child { border-bottom: none; }
.wsif-autocomplete-item:hover { background: #f8fafc; color: #2563eb; }