/* =========================================================================
   NS LMN Letters — Letter of Medical Necessity tool
   Pixel-matched to Figma "LMN Tool" (node 6456-6342) desktop 1440 /
   mobile 360 (node 7706-5062). All selectors nslmn- prefixed; the plugin
   never styles theme classes.
   ========================================================================= */

.nslmn-tool,
.nslmn-tool *,
.nslmn-mob-overlay,
.nslmn-mob-overlay * {
	box-sizing: border-box;
	font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}

.nslmn-tool {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 80px 162px;
	background-image: url( "/wp-content/uploads/2025/12/8c52006b1435aff52e4d388b5cdf1658-scaled.webp" );
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* ---- step card ---- */
.nslmn-card {
	background: #fff;
	min-height: 231px;
	margin: 0;
	padding: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.nslmn-card[hidden] {
	display: none;
}

/* ---- step head: cyan number circle + title ---- */
.nslmn-step-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	margin-bottom: 20px;
}

.nslmn-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #00adee;
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	line-height: 38px;
}

.nslmn-step-title {
	margin: 0;
	font-size: 24px;
	line-height: 30px;
	font-weight: 600;
	color: #000;
}

/* ---- custom select ---- */
.nslmn-select-wrapper {
	position: relative;
	width: 280px;
	max-width: 100%;
	z-index: 50;
}

/* per-step widths (mobile keeps the 280px full-width default) */
@media ( min-width: 768px ) {
	#nslmn-med-select {
		width: 230px;
	}

	#nslmn-plan-select {
		width: 277px;
	}
}

.nslmn-select {
	position: relative;
	width: 100%;
}

.nslmn-select-trigger {
	width: 100%;
	height: 44px;
	padding: 10px 16px 10px 20px;
	font-size: 16px;
	line-height: 24px;
	color: #000;
	border-radius: 5px;
	border: 1px solid #ddd;
	background: #fff;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .10);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
	transition: border-color .2s;
}

.nslmn-select.open .nslmn-select-trigger {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1);
}

.nslmn-arrow {
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform .3s ease;
}

.nslmn-select.open .nslmn-arrow {
	transform: rotate(180deg);
}

.nslmn-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .1);
	z-index: 999;
	margin-top: -1px;
	padding: 0;
	max-height: 0;
	opacity: 0;
	overflow-y: auto;
	pointer-events: none;
	transition: all .3s ease;
	display: block;
}

.nslmn-select.open .nslmn-options {
	max-height: 320px;
	opacity: 1;
	pointer-events: auto;
}

.nslmn-option {
	display: flex;
	padding: 10px 20px;
	align-items: center;
	font-size: 16px;
	line-height: 24px;
	color: #000;
	cursor: pointer;
	text-align: left;
	transition: background-color .2s, color .2s;
}

.nslmn-option:hover,
.nslmn-option.selected {
	background: #eef0f1;
	color: var( --Navy, #00406d );
}

/* ---- radios ---- */
.nslmn-radio-grp {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	width: 100%;
	max-width: 653px;
	padding-top: 0;
}

.nslmn-radio {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #d9d9d9;
	background: #fff;
	cursor: pointer;
	transition: background-color .3s ease;
	text-align: left;
	margin: 0;
}

/* desktop fine-tuning — mobile keeps the base spacing */
@media ( min-width: 768px ) {
	.nslmn-step-head {
		margin-bottom: 18px;
	}

	.nslmn-radio-grp {
		margin-left: 6px;
	}

	.nslmn-radio {
		gap: 11px;
		padding: 9px 10px 8px 10px;
	}
}

.nslmn-radio:hover {
	background: #f8fafc;
}

.nslmn-radio[hidden] {
	display: none;
}

.nslmn-radio input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	/* the theme sets input { padding: .75rem } — with border-box that padding
	   plus the border inflates the control to 27px, so reset it */
	padding: 0;
	border: 1.5px solid #cbcbcb;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	outline: none;
}

.nslmn-radio input[type="radio"]:checked {
	border-color: #00adee;
}

.nslmn-radio input[type="radio"]:checked::after {
	content: "";
	width: 12px;
	height: 12px;
	background: #00adee;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.nslmn-radio span {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #000;
	user-select: none;
}

/* ---- buttons ---- */
.nslmn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 36px;
	padding: 8px 38px;
	font-size: 18px;
	line-height: 24px;
	font-weight: 600;
	color: #fff;
	background: #003f73;
	border: 1px solid #00406d;
	border-radius: 0 10px;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: all .3s ease;
}

.nslmn-btn:hover {
	background: #fff;
	color: #00406d;
	text-decoration: none;
}

.nslmn-btn[disabled] {
	opacity: .5;
	pointer-events: none;
}

/* download icon on the confirmation button */
.nslmn-download::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3e%3cpath d='M9.28 4.31a1 1 0 0 1 1.41 1.41l-4 4a1 1 0 0 1-1.41 0l-4-4A1 1 0 0 1 2.69 4.31L5 6.59V1a1 1 0 0 1 2 0v5.59l2.28-2.28zM11 12a1 1 0 0 1 0 2H1a1 1 0 0 1 0-2h10z'/%3e%3c/svg%3e") no-repeat center / contain;
	mask: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3e%3cpath d='M9.28 4.31a1 1 0 0 1 1.41 1.41l-4 4a1 1 0 0 1-1.41 0l-4-4A1 1 0 0 1 2.69 4.31L5 6.59V1a1 1 0 0 1 2 0v5.59l2.28-2.28zM11 12a1 1 0 0 1 0 2H1a1 1 0 0 1 0-2h10z'/%3e%3c/svg%3e") no-repeat center / contain;
}

/* ---- confirmation card ---- */
.nslmn-done-title {
	margin: 0 0 20px;
	font-size: 24px;
	line-height: 30px;
	font-weight: 600;
	color: #00406d;
}

.nslmn-done-copy {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
	color: #000;
	max-width: 1036px;
}

.nslmn-empty-note {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 24px;
	color: #000;
}

.nslmn-empty-note[hidden] {
	display: none;
}

/* ---- reveal animation ---- */
.nslmn-step {
	transition: opacity .6s ease;
}

.nslmn-step.nslmn-revealed {
	opacity: 1;
}

/* =========================================================================
   Mobile attention notice
   ========================================================================= */
.nslmn-mob-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.nslmn-mob-overlay[hidden] {
	display: none;
}

.nslmn-mob-modal {
	background: #fff;
	width: 320px;
	max-width: calc(100vw - 32px);
	padding: 30px 16px 38px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.nslmn-mob-icon {
	display: block;
	width: 56px;
	height: 56px;
	margin-bottom: 13px;
}

.nslmn-mob-title {
	font-size: 28px;
	font-weight: 600;
	line-height: 32px;
	color: #00406d;
	margin: 0 0 16px;
}

.nslmn-mob-body {
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	color: #000;
	margin: 0 0 21px;
}

.nslmn-mob-continue {
	margin-top: 0;
}

/* ---- tablet ---- */
@media ( min-width: 768px ) and ( max-width: 1024px ) {
	.nslmn-tool {
		padding: 60px 40px;
	}
}

/* =========================================================================
   Mobile (<= 767px) — Figma node 7706-5062
   ========================================================================= */
@media ( max-width: 767px ) {
	.nslmn-tool {
		padding: 40px 20px;
	}

	.nslmn-card {
		padding: 40px 20px;
	}

	.nslmn-radio-grp {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-top: 0;
	}

	.nslmn-btn {
		width: 100%;
		margin-top: 24px;
		padding: 8px 20px;
	}

	/* download CTA keeps the Figma pill size instead of going full width */
	.nslmn-download {
		width: 216px;
		height: 40px;
		padding: 8px 20px;
	}

	.nslmn-select.open .nslmn-options {
		max-height: 200px;
	}
}
