/* ============================================
   CARE HEALTH INSURANCE PLANS PAGE STYLES
   ============================================ */

.care-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.care-hero-bg { position: absolute; inset: 0; }

.care-hero-shapes { position: absolute; inset: 0; overflow: hidden; }

.care-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.care-shape-1 {
  width: 380px;
  height: 380px;
  background: rgba(37,211,102,0.35);
  top: -120px;
  right: -80px;
}

.care-shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(27,77,142,0.5);
  bottom: -120px;
  left: -60px;
}

.care-hero .container { position: relative; z-index: 2; }
.care-hero .section-title { font-size: clamp(2rem, 4vw, 3rem); }
.care-hero .section-desc { color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.care-hero .section-tag i { margin-right: 8px; color: #25D366; }

.care-plans-section { padding: 60px 0 120px; }

/* ========== SEARCH ========== */
.plan-search-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto 24px;
}

.plan-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.plan-search-input {
  width: 100%;
  padding: 16px 56px;
  font-size: 1rem;
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 50px;
  outline: none;
  transition: var(--transition);
}

.plan-search-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.plan-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--glass);
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.plan-search-clear:hover { color: var(--text-primary); }
.plan-search-clear.show { display: flex; }

/* ========== TOOLBAR ========== */
.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-nav-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-chip {
  padding: 9px 20px;
  border: 1.5px solid var(--border-light);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.plan-chip:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.btn-compare { display: inline-flex; align-items: center; gap: 10px; }

/* ========== PLAN CARDS ========== */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 48px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22C55E, #25D366, #22C55E);
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.plan-card-badge {
  background: var(--gradient-accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  position: absolute;
  top: 24px;
  right: 24px;
}

.plan-card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(34,197,94,0.12);
  color: #22C55E;
  border: 1px solid rgba(34,197,94,0.3);
}

.plan-card-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.plan-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== PLAN IMAGE ========== */
.plan-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 32px;
  cursor: zoom-in;
  line-height: 0;
}

.plan-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.plan-image-wrap:hover .plan-img {
  transform: scale(1.02);
}

.plan-image-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10,15,28,0.75);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 50px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

/* ========== DETAILS ========== */
.plan-details { margin-top: 8px; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.detail-block {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

.detail-block:hover {
  border-color: rgba(34,197,94,0.4);
  background: var(--bg-card-hover);
}

.detail-block-wide { grid-column: 1 / -1; }

.detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-head i {
  color: #22C55E;
  font-size: 1rem;
}

.detail-head h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-block p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-block p strong { color: var(--text-primary); }

.detail-list { list-style: none; }

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.detail-list li i {
  color: #22C55E;
  font-size: 0.8rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.detail-list li i.fa-times { color: #EF4444; }

.detail-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 10px 0 0;
  font-style: italic;
}

.detail-note i { margin-right: 4px; }

/* ========== HIGHLIGHT BOXES ========== */
.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.35);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.highlight-box i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.highlight-box p { font-size: 0.85rem; color: var(--text-secondary); }
.highlight-box p strong { color: var(--text-primary); }

.highlight-box.green {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.35);
  border-left-color: #22C55E;
}

.highlight-box.green i { color: #22C55E; }

.highlight-box.amber {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.35);
  border-left-color: #F59E0B;
}

.highlight-box.amber i { color: #F59E0B; }

/* ========== MINI TABLE ========== */
.mini-table-wrap { overflow-x: auto; }

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mini-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.mini-table td:first-child { color: var(--text-primary); font-weight: 600; }
.mini-table td:last-child { text-align: right; color: #22C55E; font-weight: 700; }

/* ========== BONUS TABLE ========== */
.bonus-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: 12px;
}

.bonus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 420px;
}

.bonus-table th,
.bonus-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.bonus-table thead th {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(37,211,102,0.08));
  color: #25D366;
  font-weight: 700;
  white-space: nowrap;
}

.bonus-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }

.bonus-table tbody tr:hover td { background: rgba(34,197,94,0.05); }

.bonus-table td { color: var(--text-secondary); }
.bonus-table td:first-child { color: var(--text-primary); font-weight: 600; }
.bonus-table td:last-child { color: var(--accent); font-weight: 700; }

.bonus-table tbody tr:last-child td {
  background: rgba(212,168,67,0.08);
  color: var(--text-primary);
  font-weight: 700;
}

/* ========== FEATURE CARDS ========== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(34,197,94,0.4);
  transform: translateY(-4px);
}

.feature-card i {
  font-size: 1.5rem;
  color: #25D366;
  margin-bottom: 10px;
}

.feature-card strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ========== SEARCH MATCHING ========== */
.plan-card .detail-block {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.detail-block.search-hidden {
  display: none;
}

.detail-block.search-match {
  border-color: rgba(212,168,67,0.5);
  box-shadow: 0 0 0 1px rgba(212,168,67,0.2), var(--shadow-accent);
}

.search-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 1rem;
}

.search-no-results i { font-size: 2rem; display: block; margin-bottom: 12px; color: var(--text-muted); }

/* ========== COMPARE SECTION ========== */
.compare-section {
  margin: 80px 0 60px;
  scroll-margin-top: 90px;
}

.compare-section .section-title,
.faq-section .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.compare-table .care-col { color: #22C55E; }

.compare-table td { color: var(--text-secondary); }

.compare-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ========== FAQ ========== */
.faq-section {
  margin: 60px 0;
  scroll-margin-top: 90px;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(212,168,67,0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  color: var(--accent);
  font-size: 0.85rem;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 22px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== NEED HELP ========== */
.need-help { margin-top: 40px; }

.need-help-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.need-help-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,211,102,0.15), transparent 60%);
}

.need-help-content,
.need-help-actions { position: relative; }

.need-help-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.need-help-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 24px;
}

.help-contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.help-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-decoration: none;
  transition: var(--transition);
}

.help-item:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

.help-item i {
  font-size: 1.4rem;
  color: #25D366;
}

.help-item span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.help-item strong {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.need-help-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4,7,15,0.95);
  backdrop-filter: blur(6px);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  z-index: 2;
}

.lightbox-counter {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.lightbox-actions {
  display: flex;
  gap: 10px;
}

.lightbox-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 70px;
}

.lightbox-img-wrap {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 90px);
  object-fit: contain;
  display: block;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
}

.lightbox-img.zoomed { cursor: grab; }
.lightbox-img.zoomed.dragging { cursor: grabbing; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(17,24,39,0.8);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3;
}

.lightbox-nav:hover { background: var(--accent); color: var(--bg-dark); }

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-zoom-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,15,28,0.8);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.lightbox-zoom-hint.hide { opacity: 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .need-help-card { grid-template-columns: 1fr; }
  .need-help-actions { flex-direction: row; }
}

@media (max-width: 768px) {
  .care-hero { padding: 130px 0 60px; }
  .care-plans-section { padding: 40px 0 80px; }
  .plan-card { padding: 28px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .plan-toolbar { flex-direction: column; align-items: stretch; }
  .btn-compare { justify-content: center; }
  .lightbox-stage { padding: 0 56px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 0.9rem; }
  .need-help-card { padding: 32px 20px; }
  .need-help-actions { flex-direction: column; }
  .plan-card-badge { position: static; align-self: flex-start; }
}

@media (max-width: 480px) {
  .plan-card-header { flex-direction: column; align-items: flex-start; }
  .lightbox-stage { padding: 0 8px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .bonus-table th,
  .bonus-table td { padding: 10px 12px; font-size: 0.82rem; }
  .feature-cards { grid-template-columns: 1fr 1fr; }
}
