:root {
  --grey-8: #f3f5f7;
  --grey-100: #707070;
  --grey-36: #cccccc;
  --blue-12: #e0f5fd;
  --blue-70: #4cc6f4;
  --blue-133: #0075ab;
  --blue-160: #004666;
  --blue-177: #002638;
  --lilac-60: #b8cdff;
  --white: #ffffff;
  --aqua: #41dbe3;
  --aqua-light: #dbf8fa;
  --border-radius: 10px;
}
/* The basics */
h2 {
  font-weight: 700;
}
.border-b-lil {
  border-bottom: 4px solid var(--lilac-60);
}
.bkg-blue-12 {
  background-color: var(--blue-12);
}
.bkg-grey-8 {
  background-color: var(--grey-8);
}
.plan-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
@media screen and (max-width: 740px) {
  .plan-btns .primary-btn,
  .plan-btns .secondary-alt-btn {
    margin: 0;
  }
}
/* Segment control styles */
.tab-wrapper {
  padding-left: 0;
  padding-right: 0;
}

.tab-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}
.seg-control {
  background-color: var(--grey-8);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px;
}
.seg-btn {
  background: transparent;
  padding: 16px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-decoration: underline;
  color: var(--blue-133);
  font-weight: 700;
  flex: 1;
}
.seg-btn:hover {
  background: var(--blue-70);
  color: var(--blue-177);
}
.seg-btn.active-seg {
  background-color: #ffffff;
  color: var(--blue-177);
  border: 1px solid var(--grey-100);
  text-decoration: none;
}
.content-panel {
  display: none;
  margin: 56px 0;
}
.content-panel.active {
  display: block;
}
@media (max-width: 992px) {
  .seg-control {
    flex-direction: column;
    align-items: normal;
  }
}
/* CALLOUT STYLING */
.grey-callout {
  background-color: var(--grey-8);
  border-radius: var(--border-radius);
  padding: 32px;
  margin: 56px 0;
}
.blue-callout {
  background-color: var(--blue-12);
  border-radius: var(--border-radius);
  padding: 32px;
}
.plan-blue-callout {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.bkg-blue-12 .abc-card .btn {
  width: 100%;
}
/* Toggle tips styling */
.toggle-tips {
  margin-right: 0;
}
.toggle-link {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}
.toggle-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  fill: currentColor;
}
.toggle-link.open .toggle-icon svg {
  transform: rotate(180deg);
}
.toggle-tips-content {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease, padding 0.3s ease, margin-top 0.3s ease;
  padding: 0 24px;
  background: var(--grey-8);
  border-left: 8px solid var(--blue-133);
  margin-top: 16px;
  margin-bottom: 24px;
}
.toggle-tips-content.active {
  padding: 24px;
}
.circle-img {
  width: 50%;
  border-radius: 50%;
  margin-top: 56px;
}
.card-group-2,
.card-group-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.card-group-2 .abc-card,
.card-group-3 .abc-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-group-2 .abc-card svg,
.card-group-3 .abc-card svg {
  margin-bottom: 24px;
}
.two-column-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .card-group-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-group-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .circle-img {
    margin-top: 0px;
    width: 100%;
  }
  .plan-blue-callout {
    flex-direction: row;
  }
  .toggle-tips {
    margin-right: 24px;
  }
  .two-column-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.check-list {
  list-style: none;
  padding-left: 0;
}
.check-list li {
  display: flex;
  align-items: flex-start;
}
.check-list li svg {
  fill: var(--blue-133);
  width: 18px;
  margin-right: 16px;
}
.most-popular-col {
  background-color: var(--aqua-light) !important;
  position: relative;
}
.most-popular-badge {
  display: inline-block;
  background-color: var(--aqua);
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  position: absolute;
  top: -1.2rem;
  left: 0;
}
.mobile-most-popular-text {
  background-color: var(--aqua);
  margin-top: 16px;
  padding: 0 8px;
}

@media (max-width: 768px) {
  .most-popular-col {
    position: relative;
  }

  .most-popular-col::after {
    content: "Most Popular";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-160);
    font-weight: 700;
  }
}
/* TABS & TABLES */

/* ---------- DESKTOP TABS ---------- */
.desktop-table,
.desktop-sa-table {
  margin: 56px 0;
}
.desktop-table table,
.desktop-sa-table {
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
  border: 1px solid var(--grey-36);
  border-radius: var(--border-radius);
  border-collapse: separate;
  margin-bottom: 24px;
}
.desktop-table thead,
.desktop-sa-table thead {
  background-color: var(--grey-8);
}
.desktop-table thead th,
.desktop-sa-table thead th {
  border-bottom: 2px solid var(--lilac-60);
}
.desktop-table th,
.desktop-sa-table th {
  background-color: var(--grey-8);
  font-weight: bold;
  text-align: left;
  border-bottom: 2px solid var(--lilac-60);
}
.desktop-table th,
.desktop-table td,
.desktop-sa-table th,
.desktop-sa-table td {
  width: 20%;
  text-align: left;
  overflow-wrap: break-word;
  padding: 24px;
  border-bottom: 1px solid var(--grey-36);
}
.desktop-table thead th:first-child,
.desktop-sa-table thead th:first-child {
  border-top-left-radius: 10px;
}
.desktop-table thead th:last-child,
.desktop-sa-table thead th:last-child {
  border-top-right-radius: 10px;
}
.desktop-table tbody tr:last-child td:first-child,
.desktop-sa-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
.desktop-table tbody tr:last-child td:last-child,
.desktop-sa-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.tabs {
  display: flex;
  margin-bottom: 0;
  align-items: stretch;
}
.tab-btn {
  padding: 24px;
  background: var(--grey-8);
  border: 1px solid var(--grey-36);
  color: var(--blue-133);
  font-weight: 700;
  text-decoration: underline;
  min-width: 120px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-clip: padding-box;
  flex: 1;
}
.tab-btn:first-child {
  border-top-left-radius: 10px;
}
.tab-btn:last-child {
  border-top-right-radius: 10px;
}
.tab-btn:hover {
  background: var(--blue-70);
  color: var(--blue-177);
}
.tab-btn[aria-selected="true"] {
  background: var(--white);
  color: var(--blue-177);
  border-bottom: none;
}
.tablist-wrap {
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 6px;
  background: #fff;
}

.tab-panel {
  display: none;
  padding: 56px 24px;
  border: 1px solid var(--grey-36);
  border-top: none;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}
.tab-panel.active {
  display: block;
}

th,
td {
  text-align: left;
  padding: 8px;
  border: 1px solid var(--border);
}
thead th {
  background: #fafafa;
  font-weight: 600;
}

/* ---------- MOBILE ACCORDION ---------- */
.mobile-table {
  display: none;
  margin: 0 -48px;
}
.mobile-standalone {
  margin: 0;
}
.mobile-table-standalone {
  border-bottom: 1px solid var(--grey-36);
}
.mobile-table-standalone .table-footer-text,
.mobile-table .table-footer-text {
  margin: 16px 8px;
}
@media (max-width: 1070px) {
  .mobile-standalone {
    margin: 0 -48px;
  }
}

.controls label,
.mobile-controls label {
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-table .controls,
.mobile-controls {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--blue-12);
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.controls fieldset,
.mobile-controls fieldset {
  border: none; /* remove default fieldset border */
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.controls legend,
.mobile-controls legend {
  flex-basis: 100%; /* full width on top */
  margin-bottom: 4px;
  font-weight: 600;
}

.controls select,
.mobile-controls select {
  flex: 1 1 45%; /* each dropdown takes roughly half width, responsive */
  min-width: 120px; /* optional: ensures they don’t shrink too small */
}

.accordion {
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
}
.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px;
  border: none;
  background: var(--white);
  color: var(--blue-177);
  border-bottom: 1px solid var(--grey-36);
  font-weight: 700;
  text-align: left;
}
.acc-header[aria-expanded="true"] {
  background: var(--blue-133);
  color: var(--white);
}
.acc-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-right: 8px;
}

.acc-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.33s ease, opacity 0.22s ease, padding 0.22s ease;
  padding: 0 12px;
}
.acc-panel.open {
  opacity: 1;
  padding: 0;
  max-height: 100%;
  border-bottom: 1px solid var(--grey-36);
}
.acc-panel .coverage-row:not(:has(+ .coverage-row)) {
  border-bottom: 1px solid var(--grey-36);
}

/* mobile coverage rows: Coverage spans full width, two option cells 50% each */
.coverage-row {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 0;
}
.cov-label {
  text-align: center;
  background: var(--grey-8);
  padding: 8px;
}
.mobile-option-row {
  display: flex;
  gap: 8px;
  text-align: center;
}
.mobile-cell {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.colA {
  border-right: 1px solid var(--grey-36);
}
/* animated cell fade helper */
.fade {
  transition: opacity 0.22s ease;
}

/* responsive switching */
@media (max-width: 1070px) {
  .desktop-table,
  .desktop-sa-table {
    display: none;
  }
  .mobile-table {
    display: block;
  }
}
@media (min-width: 1071px) {
  .mobile-table {
    display: none;
  }
  .desktop-table,
  .desktop-sa-table {
    display: block;
  }
}
.desktop-footer {
  display: block;
}

@media (max-width: 1070px) {
  .desktop-footer {
    display: none;
  }
}

/* small utilities */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
