/* NeedHealth member theme for Bootstrap 5.3.
   Layer order: bootstrap.min.css (stock, untouched) -> this file.
   Theming is done by redefining Bootstrap's CSS variables (:root and
   per-component --bs-* vars) -- no !important overrides. Design tokens follow
   the vh6 designer convention: bare HSL triplets composed with hsl(var(--x)),
   so shades derive from the base hue via calc. */

/* ========================= Design Tokens ========================= */

:root {
	/* Brand: orange, hue 13 (matches vh6 + needhealth.com --primary500 #F84D1F) */
	--base-h: 13;
	--base-s: 94%;
	--base-l: 55%;
	--base: var(--base-h) var(--base-s) var(--base-l);
	--base-d-100: var(--base-h) var(--base-s) calc(var(--base-l) - var(--base-l) * 0.1);
	--base-d-200: var(--base-h) var(--base-s) calc(var(--base-l) - var(--base-l) * 0.2);
	--base-d-300: var(--base-h) var(--base-s) calc(var(--base-l) - var(--base-l) * 0.3);
	--base-l-300: var(--base-h) var(--base-s) calc(var(--base-l) + (100% - var(--base-l)) * 0.3);

	/* Secondary brand: blue (vh6 --base-two) */
	--base-two: 197 100% 40%;

	--heading-color: 0 0% 0%;
	--black: 0 0% 0%;
	--body-color: 0 3% 23%;
	--border-color: 60 8% 90%;
	--section-bg: 30 29% 97%;
	--white: 0 0% 100%;

	/* ========================= Bootstrap Mapping ========================= */

	--bs-body-font-family: "Mulish", Arial, sans-serif;
	--bs-body-color: hsl(var(--body-color));
	--bs-body-bg: hsl(var(--section-bg));
	--bs-heading-color: hsl(var(--heading-color));
	--bs-border-color: hsl(var(--border-color));
	--bs-border-radius: 10px;
	--bs-primary: hsl(var(--base));
	--bs-primary-rgb: 248, 79, 32;
	--bs-link-color-rgb: 248, 79, 32;
	--bs-link-hover-color-rgb: 218, 52, 7;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
}

/* ========================= Global Typography =========================
   Matches live needhealth.com: body fluid 16-18px, all p/li/a text fluid
   14-16px weight 500, .small-text fine print fluid 10-12px. Class-level
   rules (.btn, .form-label, header menu, etc.) outrank these element
   rules, so components keep their own sizes. */

body {
	font-size: calc(16px + (2 * ((100vw - 390px) / 1210)));
	line-height: calc(22px + (6 * ((100vw - 390px) / 1210)));
}

p, li {
	font-size: calc(14px + (2 * ((100vw - 390px) / 1210)));
	font-weight: 500;
	line-height: 1.4;
}

a {
	font-size: calc(14px + (2 * ((100vw - 390px) / 1210)));
}

.small-text {
	font-size: calc(10px + (2 * ((100vw - 390px) / 1210)));
}

@media screen and (min-width: 1600px) {
	body {
		font-size: calc(16px + (2 * ((1600px - 390px) / 1210)));
		line-height: calc(22px + (6 * ((1600px - 390px) / 1210)));
	}

	p, li {
		font-size: calc(14px + (2 * ((1600px - 390px) / 1210)));
	}

	a {
		font-size: calc(14px + (2 * ((1600px - 390px) / 1210)));
	}

	.small-text {
		font-size: calc(10px + (2 * ((1600px - 390px) / 1210)));
	}
}

/* vh6's fluid container (verbatim): fluid margins, caps at 1080px from 1600 up */
.container {
	margin: 0 calc(8px + 4vw);
	width: calc(100% - (16px + 8vw));
	padding: 0;
	max-width: none;
}

@media only screen and (min-width: 768px) {
	.container {
		margin: 0 auto;
		max-width: calc(768px + 312 * (100vw - 390px) / 1210);
	}
}

@media only screen and (min-width: 768px) and (min-width: 1600px) {
	.container {
		max-width: 1080px;
	}
}

/* ========================= Buttons ========================= */

.btn {
	--bs-btn-font-weight: 700;
	--bs-btn-border-radius: 50rem;
	--bs-btn-padding-y: 12px;
	--bs-btn-padding-x: 30px;
}

.btn-primary {
	--bs-btn-bg: hsl(var(--base));
	--bs-btn-border-color: hsl(var(--base));
	--bs-btn-hover-bg: hsl(var(--base-d-200));
	--bs-btn-hover-border-color: hsl(var(--base-d-200));
	--bs-btn-active-bg: hsl(var(--base-d-300));
	--bs-btn-active-border-color: hsl(var(--base-d-300));
	--bs-btn-disabled-bg: hsl(var(--base-l-300));
	--bs-btn-disabled-border-color: hsl(var(--base-l-300));
	--bs-btn-focus-shadow-rgb: 248, 79, 32;
}

.btn-outline-primary {
	--bs-btn-color: hsl(var(--base));
	--bs-btn-border-color: hsl(var(--base));
	--bs-btn-hover-bg: hsl(var(--base));
	--bs-btn-hover-border-color: hsl(var(--base));
	--bs-btn-active-bg: hsl(var(--base-d-200));
	--bs-btn-active-border-color: hsl(var(--base-d-200));
	--bs-btn-focus-shadow-rgb: 248, 79, 32;
}

/* ========================= Forms ========================= */

.form-label {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 4px;
}

/* inputs stay white -- --bs-body-bg is the warm section tint, and the
   form-control/check defaults derive from it */
.form-control,
.form-select {
	padding: 12px 16px;
	background-color: hsl(var(--white));
}

.form-check-input {
	--bs-form-check-bg: hsl(var(--white));
}

.form-control:focus,
.form-select:focus {
	border-color: hsl(var(--base));
	box-shadow: 0 0 0 0.25rem hsl(var(--base) / 0.25);
}

.form-check-input:checked {
	background-color: hsl(var(--base));
	border-color: hsl(var(--base));
}

.form-check-input:focus {
	border-color: hsl(var(--base));
	box-shadow: 0 0 0 0.25rem hsl(var(--base) / 0.25);
}

/* Stripes field-level errors (<stripes:errors field=.../>) */
.field-error {
	display: block;
	color: hsl(0 96% 40%);
	font-size: 14px;
	margin-top: 4px;
}

/* ========================= Alerts ========================= */
/* StripesResources.properties emits <div class="alert alert--error"> */

.alert--error {
	--bs-alert-color: hsl(0 96% 28%);
	--bs-alert-bg: hsl(0 96% 96%);
	--bs-alert-border-color: hsl(0 96% 85%);
}

.alert--info {
	--bs-alert-color: hsl(var(--base-d-300));
	--bs-alert-bg: hsl(var(--base-h) var(--base-s) 96%);
	--bs-alert-border-color: hsl(var(--base-h) var(--base-s) 85%);
}

.alert ul {
	margin: 0;
	padding-left: 20px;
}

/* ========================= Header / Footer ========================= */

/* vh6 header, replicated exactly (values verbatim from vh6 main.css).
   Floats over the page top; becomes fixed white on scroll (js/header.js). */

.header__area {
	position: absolute;
	left: 0;
	right: 0;
	top: 35px;
	width: 100%;
	z-index: 9;
}

@media screen and (max-width: 767px) {
	.header__area {
		top: 20px;
	}
}

.header__area.fixed-header {
	position: fixed;
	top: 0;
	background-color: hsl(var(--white));
	border-bottom: 1px solid hsl(var(--black)/0.1);
	animation: slide-down 0.6s;
}

@media screen and (max-width: 991px) {
	.header__area.fixed-header {
		padding-block: 10px;
	}
}

@keyframes slide-down {
	0% {
		opacity: 0;
		transform: translateY(-150%);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.header__area .header__main {
	display: flex;
	align-items: center;
	gap: 47px;
}

@media screen and (max-width: 1199px) {
	.header__area .header__main {
		gap: 24px;
	}
}

.header__area .header__main .menu__open {
	font-size: 24px;
	color: hsl(var(--heading-color));
	cursor: pointer;
	transition: 0.3s;
	display: none;
	margin-left: auto;
}

@media screen and (max-width: 991px) {
	.header__area .header__main .menu__open {
		display: block;
	}
}

.header__area .header__main .menu__open:hover {
	color: hsl(var(--base));
}

.header__area .header__logo a img {
	max-width: 235px;
	width: 100%;
}

@media screen and (max-width: 1199px) {
	.header__area .header__logo a img {
		max-width: 190px;
	}
}

.header__area .header__menu {
	margin-left: auto;
}

@media screen and (max-width: 991px) {
	.header__area .header__menu {
		display: none;
	}
}

.header__area .header__menu ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 39px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media screen and (max-width: 1399px) {
	.header__area .header__menu ul {
		gap: 26px;
	}
}

.header__area .header__menu ul li {
	position: relative;
}

.header__area .header__menu ul li a {
	/* vh6 styles anchors inline-block globally (main.css a{}); needed here so
	   padding-block contributes header height (61px strip like vh6) */
	display: inline-block;
	color: #707070;
	font-size: 14px;
	font-weight: 700;
	padding-block: 20px;
	transition: 0.3s;
	text-decoration: none;
}

.header__area .header__menu ul li a:hover,
.header__area .header__menu ul li a.active {
	color: hsl(var(--base));
}

/* vh6 offcanvas mobile menu + overlay (values verbatim) */

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: hsl(var(--black)/0.4);
	opacity: 0;
	visibility: hidden;
	transition: 0.4s;
	z-index: 12;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}

.offcanvas__area {
	position: fixed;
	left: -100%;
	top: 0;
	width: 300px;
	height: 100%;
	padding: 20px;
	background-color: hsl(var(--white));
	border-right: 1px solid hsl(var(--black)/0.03);
	z-index: 15;
	transition: 0.4s;
	visibility: hidden;
	overflow-y: auto;
}

.offcanvas__area.active {
	left: 0;
	visibility: visible;
}

.offcanvas__area .offcanvas__topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
}

.offcanvas__area .offcanvas__topbar a img {
	width: 180px;
}

.offcanvas__area .offcanvas__topbar .menu__close {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: hsl(var(--white));
	background-color: hsl(0 96% 63%);
	font-size: 20px;
	border-radius: 4px;
	transition: 0.3s;
}

.offcanvas__area .offcanvas__topbar .menu__close:hover {
	background-color: hsl(0 96% 50.4%);
	color: hsl(var(--white));
}

.offcanvas__area .offcanvas__main .offcanvas__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.offcanvas__area .offcanvas__main .offcanvas__menu ul li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	font-size: 16px;
	font-weight: 600;
	color: hsl(var(--heading-color));
	border-bottom: 1px solid hsl(var(--black)/0.06);
	padding: 12px 0;
	transition: 0.3s;
	text-decoration: none;
}

.offcanvas__area .offcanvas__main .offcanvas__menu ul li a:hover,
.offcanvas__area .offcanvas__main .offcanvas__menu ul li a.active {
	color: hsl(var(--base));
}

/* vh6 footer (values verbatim): dark panel, brand-orange links, disclaimer,
   MULTIPLAN code, base-tinted divider.
   Typography matches live needhealth.com, where global p/li/a rules set all
   text to fluid 14-16px weight 500 and .small-text drops fine print to
   10-12px -- here scoped to the footer instead of sitewide. */
.footer__area {
	background-color: #171515;
	color: #E8E8E4;
	/* padding matches live needhealth.com: fluid 32-64px top and bottom */
	padding: calc(32px + (32 * ((100vw - 390px) / 1210))) 0;
	font-size: calc(14px + (2 * ((100vw - 390px) / 1210)));
	font-weight: 500;
}

.footer__area .footer__top p,
.footer__area .footer__copy {
	font-size: calc(10px + (2 * ((100vw - 390px) / 1210)));
}

@media screen and (min-width: 1600px) {
	.footer__area {
		padding-top: calc(32px + (32 * ((1600px - 390px) / 1210)));
		padding-bottom: calc(32px + (32 * ((1600px - 390px) / 1210)));
		font-size: calc(14px + (2 * ((1600px - 390px) / 1210)));
	}

	.footer__area .footer__top p,
	.footer__area .footer__copy {
		font-size: calc(10px + (2 * ((1600px - 390px) / 1210)));
	}

	.footer__bottom {
		margin-top: calc(16px + (16 * ((1600px - 390px) / 1210)));
		padding-top: calc(16px + (16 * ((1600px - 390px) / 1210)));
	}

	.footer__links {
		margin-bottom: calc(16px + (8 * ((1600px - 390px) / 1210)));
	}
}

.footer__top {
	text-align: center;
}

/* live needhealth.com colors disclaimer + MULTIPLAN id --neutral300 */
.footer__top p {
	margin-bottom: 16px;
	color: #AAAAAA;
}

.footer__links {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	/* matches live needhealth.com footer nav margin: fluid 16-24px */
	margin-bottom: calc(16px + (8 * ((100vw - 390px) / 1210)));
	flex-wrap: wrap;
}

.footer__links a {
	color: hsl(var(--base));
	text-decoration: none;
}

.footer__links a:hover {
	color: hsl(var(--white));
}

.footer__links span {
	color: rgba(255, 255, 255, 0.55);
}

.footer__code {
	color: #AAAAAA;
	margin-top: 16px;
	line-height: 1.4;
}

.footer__bottom {
	/* divider gaps match live needhealth.com hr margins: fluid 16-32px */
	margin-top: calc(16px + (16 * ((100vw - 390px) / 1210)));
	padding-top: calc(16px + (16 * ((100vw - 390px) / 1210)));
	border-top: 1px solid hsl(var(--base)/0.34);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

@media screen and (max-width: 767px) {
	.footer__bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* matches live needhealth.com footer logo: fluid 180-259px wide */
.footer__brand img {
	width: calc(180px + (79 * ((100vw - 390px) / 1210)));
}

@media screen and (min-width: 1600px) {
	.footer__brand img {
		width: calc(180px + (79 * ((1600px - 390px) / 1210)));
	}
}

.footer__copy {
	color: #AAAAAA;
	line-height: 1.4;
}

/* vh6 scroll-to-top button (values verbatim) */
.scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	color: hsl(var(--base));
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 5;
	transition: 0.5s;
	cursor: pointer;
	transform: scale(0);
	background-color: hsl(var(--white));
	border: 1px solid hsl(var(--base));
}

.scroll-top:hover {
	color: hsl(var(--white));
	background-color: hsl(var(--base));
}

.scroll-top.show {
	transform: scale(1);
}

/* ========================= Member Components ========================= */

/* body is d-flex flex-column min-vh-100; grow so the footer pins to the bottom.
   Top padding clears the floating header (absolute at top 35px, ~60px tall) */
.member-main {
	flex: 1 0 auto;
	padding-top: 140px;
	padding-bottom: 64px;
}

@media screen and (max-width: 991px) {
	.member-main {
		padding-top: 100px;
	}
}

.member-main--narrow .container {
	max-width: 640px;
}

.member-card {
	background: hsl(var(--white));
	border: 1px solid hsl(var(--border-color));
	border-radius: var(--bs-border-radius);
	padding: 24px 32px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.member-card__title {
	margin: 0 0 16px 0;
	font-size: 20px;
}

.member-card__row {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid hsl(var(--border-color) / 0.6);
}

.member-card__row:last-child {
	border-bottom: none;
}

.member-card__label {
	color: hsl(var(--body-color) / 0.65);
	font-size: 14px;
}

.member-card__value {
	font-weight: 700;
	color: hsl(var(--heading-color));
}

.member-card__actions {
	display: flex;
	flex-flow: row wrap;
	gap: 12px;
	margin-top: 16px;
}

/* ========================= Status Pills ========================= */

.pill {
	display: inline-block;
	border-radius: 40px;
	padding: 2px 12px;
	font-size: 13px;
	font-weight: 700;
}

.pill--good {
	background: hsl(112 60% 93%);
	color: hsl(112 100% 22%);
}

.pill--warn {
	background: hsl(42 100% 93%);
	color: hsl(42 100% 27%);
}

.pill--bad {
	background: hsl(0 96% 95%);
	color: hsl(0 96% 33%);
}

.pill--neutral {
	background: hsl(var(--border-color));
	color: hsl(var(--body-color));
}

/* ========================= Tables ========================= */

.member-table {
	margin-bottom: 0;
}

.member-table th {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: hsl(var(--body-color) / 0.65);
}

.member-table .num {
	text-align: right;
}

/* ========================= Stripe Elements ========================= */

.card-element-box {
	border: 1px solid hsl(var(--border-color));
	border-radius: var(--bs-border-radius);
	padding: 16px;
	background: hsl(var(--white));
}

/* ========================= Signup Hero ========================= */

.member-hero {
	text-align: center;
	padding-top: 32px;
}

.member-hero__divider {
	width: 64px;
	height: 4px;
	background: hsl(var(--base));
	border: none;
	border-radius: 2px;
	opacity: 1;
	margin: 16px auto 24px;
}

.member-hero__price {
	font-size: 24px;
	font-weight: 700;
	color: hsl(var(--base));
}

.member-hero__perks {
	list-style: none;
	margin: 24px auto;
	padding: 0;
	max-width: 480px;
	text-align: left;
}

.member-hero__perks li {
	padding: 8px 0 8px 32px;
	background-image: url('../img/icons/icon-info.svg');
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 20px;
}

/* ========================= Misc ========================= */

.small-text {
	font-size: 14px;
}

@media only screen and (max-width: 768px) {
	.member-card {
		padding: 16px;
	}
}
