/* Simplified nav-tabs for Prices page: only a bottom border and active text color */
.prices-hero {
  --seasonal-header-height: 90px; /* adjust if needed */
}

.prices-hero .nav-tabs {
  border-bottom: none !important;
	margin-bottom: 0.5rem;
	background: transparent;
}

.prices-hero .nav-tabs .nav-link {
	border: none !important;
	background: transparent !important;
	border-radius: 0 !important;
	color: inherit;
	padding: 0.45rem 0.9rem;
	margin-right: 0.5rem;
	box-shadow: none !important;
}

.prices-hero .nav-tabs .nav-link:hover,
.prices-hero .nav-tabs .nav-link:focus {
	color: inherit !important;
	background: transparent !important;
	box-shadow: none !important;
}

.prices-hero .nav-tabs .nav-link.active {
	color: var(--primary) !important;
	background: transparent !important;
  border-bottom: 1px solid var(--primary) !important; 
}

.prices-hero .price-card .nav-tabs .nav-link.active h4 {
	color: var(--primary) !important;
}


/* Seasonal / flex header background */
.prices-hero .seasonal-card .seasonal-header,
.prices-hero .flex-card .flex-header,
.prices-hero .plans-grid .plans-hdr {
	background-color: var(--muted);
	width: 100%;
}
.prices-hero .seasonal-card .seasonal-header h3,
.prices-hero .flex-card .flex-header h3,
.prices-hero .plans-grid .plans-hdr h3 {
	margin: 0;
	color: var(--text-color);
}

/* List items in cards: replace bullets with primary-colour ticks */
.prices-hero .seasonal-card li,
.prices-hero .flex-card li,
.prices-hero .price-card li,
.prices-hero .plans-grid li {
  list-style: none;
  position: relative;
  padding-left: 1.5em;
}

.prices-hero .seasonal-card li::before,
.prices-hero .flex-card li::before,
.prices-hero .tab-content li::before,
.prices-hero .plans-grid li::before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Remove left padding for list items used as tab headers inside the price card header */
.prices-hero .price-card .price-header li,
.prices-hero .price-card .price-header .nav-item {
	padding-left: 0;
	list-style: none;
}

/* Price card: match the flex card visual appearance (radius, bg and padding via p-4) */
.prices-hero .price-card {
	border-radius: var(--border-radius);
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Header for price card: place tabs inside this header area */
.prices-hero .price-card .price-header {
	background-color: var(--muted);
	width: 100%;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
}
.prices-hero .price-card .price-header .nav-tabs {
	margin-bottom: 0;
}

/* Center UL inside price card tab content while keeping list items left-aligned */
.prices-hero .price-card .tab-content ul {
	display: inline-block;
	margin: 0 auto;
	text-align: left;
}

/* Place the two tabs at opposite ends of the header */
.prices-hero .price-card .price-header #priceTabs {
	display: flex;
	width: 100%;
	justify-content: space-evenly;
	align-items: center;
}

/* Style the Kids / 21+ tab labels to look like h4 */
.prices-hero .price-card .nav-tabs {
	justify-content: center;
}
.prices-hero .price-card .nav-tabs .nav-link {
	font-size: 1.25rem;
	font-weight: 600;
	padding-left: 0;
	padding-right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.prices-hero .price-card .nav-tabs .nav-link h4 {
	margin: 0;
	width: 100%;
}


@media (max-width: 767.98px) {
	.prices-hero .biweekly-col {
		border-top: 2px solid var(--primary);
		padding-top: 1rem;
	}
}

@media (min-width: 768px) {
	.prices-hero .seasonal-card .seasonal-header,
	.prices-hero .flex-card .flex-header {
		min-height: var(--seasonal-header-height);
		display: flex;
		align-items: center;
		border-radius: var(--border-radius) var(--border-radius) 0 0;
	}

	.prices-hero .seasonal-card > .p-4,
	.prices-hero .flex-card .flex-body {
		min-height: 330px;
	}
}

/* ══ Plans grid: subgrid row alignment ══════════════════════════════
   Columns: weekly (1) | biweekly (2) | gap (3=1.5rem) | on-demand (4)
   Rows:    header | title | list | pay-heading | pay-list | terms
   .plans-col spans rows 2-5 with subgrid so all inner rows align.
================================================================== */
.prices-hero .plans-grid {
  display: grid;
  /* col1=weekly  col2=biweekly  col3=visual gap  col4=on-demand */
  grid-template-columns: 1fr 1fr 1.5rem 1fr;
  grid-template-rows:
    [hdr-s]         auto
    [hdr-e body-s]  auto   /* row 2: plan titles        */
                    auto   /* row 3: feature lists      */
                    auto   /* row 4: payment headings   */
                    auto   /* row 5: payment lists      */
    [body-e terms-s] auto  /* row 6: terms links        */
    [terms-e];
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: visible;
}

/* ── Header cells ── */
.prices-hero .plans-grid .plans-hdr {
  grid-row: hdr-s / hdr-e;
  min-height: var(--seasonal-header-height);
  display: flex;
  align-items: center;
  border-radius: 0;
}
/* Seasonal header spans cols 1–2; flex header is col 4 */
.prices-hero .plans-grid .seasonal-hdr { grid-column: 1 / 3; grid-row: hdr-s / hdr-e; border-radius: var(--border-radius) var(--border-radius) 0 0; }
.prices-hero .plans-grid .flex-hdr     { grid-column: 4;     grid-row: hdr-s / hdr-e; border-radius: var(--border-radius) var(--border-radius) 0 0; }

/* ── Plan body columns: span content rows, use subgrid ── */
.prices-hero .plans-grid .plans-col {
  grid-row: hdr-e / body-e;
  display: grid;
  grid-template-rows: subgrid;
  padding-top: 1rem;
}
.prices-hero .plans-grid .weekly-body   { grid-column: 1; }
.prices-hero .plans-grid .biweekly-body { grid-column: 2; }
.prices-hero .plans-grid .ondemand-body { grid-column: 4; }

/* Card background on seasonal (cols 1–2) and flex (col 4) body/terms cells
   Headers are handled separately above with var(--muted) */
.prices-hero .plans-grid .weekly-body,
.prices-hero .plans-grid .biweekly-body,
.prices-hero .plans-grid .seasonal-terms,
.prices-hero .plans-grid .ondemand-body,
.prices-hero .plans-grid .flex-terms {
  background-color: var(--dark);
}

/* Biweekly: left divider to visually separate from weekly */
.prices-hero .plans-grid .biweekly-body {
  border-left: 1px solid rgba(255,255,255,0.08);
}

/* Subgrid row sections: remove individual top margins, rely on grid spacing */
.prices-hero .plans-grid .plans-row-title    { }
.prices-hero .plans-grid .plans-row-list     { }
.prices-hero .plans-grid .plans-row-pay-title { padding-top: 0.75rem; }
.prices-hero .plans-grid .plans-row-pay-list  { }

/* ── Terms row ── */
.prices-hero .plans-grid .plans-terms {
  grid-row: terms-s / terms-e;
  display: flex;
  align-items: flex-start;
}
.prices-hero .plans-grid .seasonal-terms { grid-column: 1 / 3; border-radius: 0 0 var(--border-radius) var(--border-radius); }
.prices-hero .plans-grid .flex-terms     { grid-column: 4;     border-radius: 0 0 var(--border-radius) var(--border-radius); }

/* ── Mobile: two separate cards — seasonal card + flex card ── */
@media (max-width: 767.98px) {
  .prices-hero .plans-grid {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: visible;
  }
  /* Plans-col: back to normal block */
  .prices-hero .plans-grid .plans-col {
    display: block;
    padding: 1rem 1.25rem;
  }
  .prices-hero .plans-grid .plans-row-pay-title { padding-top: 0.75rem; }
  /* Seasonal header: top corners of seasonal card */
  .prices-hero .plans-grid .seasonal-hdr {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
  }
  /* Biweekly: top divider */
  .prices-hero .plans-grid .biweekly-body {
    border-left: none;
    border-top: 2px solid var(--primary);
  }
  /* Seasonal terms: bottom corners of seasonal card */
  .prices-hero .plans-grid .seasonal-terms {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  /* Flex header: top corners of flex card + gap from seasonal card */
  .prices-hero .plans-grid .flex-hdr {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    width: 100%;
    margin-top: 1.5rem;
  }
  /* Flex terms: bottom corners of flex card */
  .prices-hero .plans-grid .flex-terms {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
  }
  /* Terms rows: full-width padding */
  .prices-hero .plans-grid .plans-terms {
    padding: 0 1.25rem 1rem;
  }
}

/* ── Terms modal (seasonal / flex) ──────────────────────── */
.btn-terms-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}
.btn-terms-link:hover { opacity: 0.75; }

.terms-modal {
  align-items: center;
  padding: 1rem;
}
.terms-modal-box {
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  border-radius: var(--border-radius);
}
.terms-modal-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0.03em;
  margin-top: 2px;
  text-transform: none;
}
.terms-modal-body {
  padding: 18px 22px 24px;
  font-size: 0.875rem;
  line-height: 1.65;
}
.terms-section {
  margin-bottom: 1.25rem;
}
.terms-section:last-child { margin-bottom: 0; }
.terms-section-title {
  font-size: 0.82rem;
  color: var(--primary);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.terms-section-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.terms-section-items li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terms-section-items li:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .terms-modal {
    align-items: flex-end;
    padding: 0;
  }
  .terms-modal-box {
    max-height: 90vh;
    border-radius: 14px 14px 0 0;
  }
}

/* Download button for terms modals */
.terms-download {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
.btn-download {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
}
.btn-download:hover,
.btn-download:focus {
  opacity: 0.95;
}
