/**
 * components/vision-insurance/vision-insurance.css — استایل‌های لوکس و مدرن صفحه بیمه بینایی
 */

.insurance-page-section {
  padding: 40px 0 80px;
  background-color: #f8fafc;
  color: #1e293b;
  font-family: inherit;
}

/* Container limits */
.insurance-page-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titles and Typography */
.section-title-center {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-subtitle-center {
  font-size: 1.1rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero Card */
.insurance-hero-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  background-color: #0f172a;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.insurance-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.insurance-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: scale(1.03);
}

.insurance-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.insurance-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  max-width: 750px;
}

.insurance-badge-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.insurance-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.insurance-hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(241, 245, 249, 0.9);
}

/* Feature Box: Official Invoice */
.invoice-feature-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  border-right: 5px solid #2b6cb0;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 50px;
}

.invoice-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(43, 108, 176, 0.1);
  color: #2b6cb0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.invoice-feature-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.invoice-feature-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  margin: 0;
}

.invoice-feature-text p strong {
  color: #1e3a8a;
  font-weight: 700;
}

/* Timeline Section */
.insurance-timeline-section {
  margin-bottom: 60px;
}

.insurance-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
  margin-top: 30px;
}

/* Line connecting steps */
.insurance-timeline::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(43, 108, 176, 0.2);
}

.step-icon-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  background: #f8fafc;
  color: #475569;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  border: 2px solid #e2e8f0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.timeline-step:hover .step-icon-wrapper {
  background: #2b6cb0;
  color: #ffffff;
  border-color: #2b6cb0;
}

.step-number {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 25px;
  height: 25px;
  background: #d39d4e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* Insurance Grid Section */
.insurance-grid-section {
  margin-bottom: 70px;
}

.insurance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.ins-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ins-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.ins-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.ins-logo-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
}

/* Brand specific background colors representing Iran Insurances */
.bg-dana { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.bg-alborz { background: linear-gradient(135deg, #b45309, #f59e0b); }
.bg-iran { background: linear-gradient(135deg, #dc2626, #ef4444); }
.bg-asia { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.bg-dey { background: linear-gradient(135deg, #059669, #10b981); }
.bg-saman { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.bg-atiyeh { background: linear-gradient(135deg, #334155, #64748b); }
.bg-tamin { background: linear-gradient(135deg, #0284c7, #0ea5e9); }
.bg-sata { background: linear-gradient(135deg, #15803d, #22c55e); }
.bg-pasargad { background: linear-gradient(135deg, #d97706, #fbbf24); }
.bg-parsian { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.bg-sos { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.bg-moallem { background: linear-gradient(135deg, #4338ca, #6366f1); }
.bg-kowsar { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.bg-other { background: linear-gradient(135deg, #475569, #94a3b8); }

.ins-info {
  display: flex;
  flex-direction: column;
}

.ins-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.ins-type {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.ins-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Insurance Controls: Search & Category Filter */
.insurance-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.insurance-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ins-filter-btn {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ins-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ins-filter-btn.active {
  background: #2b6cb0;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(43, 108, 176, 0.25);
}

.insurance-search-box {
  position: relative;
  min-width: 260px;
  flex-grow: 1;
  max-width: 380px;
}

.insurance-search-box input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.insurance-search-box input:focus {
  border-color: #2b6cb0;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.insurance-search-box i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 0.95rem;
}

/* Insurance Meta Grid within Card */
.ins-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ins-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  font-size: 0.88rem;
}

.ins-meta-item.highlight {
  background: #eff6ff;
  border-color: #dbeafe;
}

.meta-label {
  font-size: 0.86rem;
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-label i {
  color: #2b6cb0;
  font-size: 0.85rem;
}

.meta-val {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 700;
}

.meta-val.price-primary {
  color: #1e3a8a;
  font-size: 0.98rem;
}

.ins-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 16px;
  text-align: justify;
}

.ins-desc strong {
  color: #0f172a;
}

.ins-footer-tip {
  font-size: 0.83rem;
  color: #92400e;
  background: #fffbeb;
  border-right: 3px solid #f59e0b;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: auto;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ins-footer-tip i {
  margin-top: 3px;
  color: #d97706;
}

/* Comparison Summary Table Section */
.insurance-table-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  margin-bottom: 60px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.insurance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.92rem;
}

.insurance-table th {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 16px;
  font-weight: 700;
  white-space: nowrap;
}

.insurance-table th:first-child {
  border-top-right-radius: 10px;
}

.insurance-table th:last-child {
  border-top-left-radius: 10px;
}

.insurance-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.insurance-table tbody tr:hover {
  background: #f8fafc;
}

.insurance-table tbody tr:last-child td {
  border-bottom: none;
}

.table-ins-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #0f172a;
}

.table-ins-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.table-price {
  font-weight: 700;
  color: #1e3a8a;
  direction: rtl;
}

.table-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

.table-tag.success {
  background: #dcfce7;
  color: #15803d;
}

.table-tag.warning {
  background: #fef3c7;
  color: #92400e;
}

.table-tag.info {
  background: #e0f2fe;
  color: #0369a1;
}

/* FAQ Accordion Section */
.insurance-faq-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  margin-bottom: 60px;
}

.faq-accordion {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item.active {
  border-color: #2b6cb0;
  background: #ffffff;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  outline: none;
  gap: 15px;
  transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
  color: #2b6cb0;
}

.faq-question i {
  font-size: 0.95rem;
  color: #64748b;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: #2b6cb0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
  border-top: 1px solid #f1f5f9;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin: 15px 0 0;
}

/* Call to Action Box */
.insurance-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.insurance-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(43, 108, 176, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.insurance-cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.insurance-cta-box p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-primary {
  background: #d39d4e;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(211, 157, 78, 0.3);
}

.btn-cta-primary:hover {
  background: #c58d3c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 157, 78, 0.4);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Responsive CSS design */
@media (max-width: 1024px) {
  .insurance-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .insurance-timeline::before {
    display: none; /* Hide timeline line on grid break */
  }
}

@media (max-width: 768px) {
  .insurance-hero-content {
    padding: 40px;
  }
  .insurance-hero-title {
    font-size: 2rem;
  }
  .invoice-feature-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .insurance-grid {
    grid-template-columns: 1fr;
  }
  .insurance-faq-section {
    padding: 30px 20px;
  }
  .insurance-cta-box {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .insurance-timeline {
    grid-template-columns: 1fr;
  }
  .timeline-step {
    padding: 20px 15px;
  }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-cta-primary,
  .btn-cta-secondary {
    justify-content: center;
  }
}
