/*
 * Pop-ups (modals) and the floating Concierge button.
 *
 * Any pop-up is: <div class="modal-overlay" id="..."> <div class="modal"> ... </div> </div>
 * It is opened by a button with data-modal-open="that id" and closed by data-modal-close,
 * the Escape key, or a click outside the box. See assets/js/site.js.
 */

.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--scrim);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }

.modal {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--surface);
	color: var(--ink);
	padding: clamp(40px, 5vw, 60px);
}
.modal.lg { max-width: 980px; }

.modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.modal-close::before,
.modal-close::after { content: ''; position: absolute; width: 20px; height: 2px; background: var(--ink); }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }

.modal .eyebrow { display: block; margin-bottom: 20px; }
.modal h2 { font-size: var(--fs-h3); margin-bottom: 10px; }
.modal > p { font-size: var(--fs-body); line-height: var(--lh-text); color: var(--ink-soft); margin-bottom: 26px; max-width: 54ch; }


/* "About: …" line above the Concierge form when a question comes from a page or the guide */
.concierge-regarding { font-family: var(--ui); font-size: var(--fs-label); font-weight: var(--label-weight); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--link); margin: -14px 0 24px; }


/* ---------- The treatment guide ---------- */

.guide-progress { display: flex; gap: 8px; margin-bottom: 30px; }
.guide-progress span { flex: 1; height: 2px; background: var(--rule); transition: background .3s ease; }
.guide-progress span.done { background: var(--gold); }

.guide-step { display: none; }
.guide-step.active { display: block; }
.guide-step .eyebrow { display: block; margin-bottom: 18px; }
.guide-step h2 { font-size: var(--fs-h3); margin-bottom: 10px; }
.guide-step > p { font-size: var(--fs-body); line-height: var(--lh-text); color: var(--ink-soft); margin-bottom: 24px; max-width: 56ch; }

/* Two columns; every chip is the same height, one line of text, no wrapping. */
.guide-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
.guide-chip {
	font-family: var(--sans);
	font-size: var(--fs-small);
	line-height: 1.4;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 52px;
	padding: 14px 18px;
	border: 1px solid var(--rule);
	color: var(--ink);
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.guide-chip:hover { border-color: var(--gold); }
.guide-chip.active { background: var(--dark); color: var(--paper); border-color: var(--dark); }
.guide-chip.special { border-color: var(--gold); }
.guide-chip.special.active { background: var(--gold-surface); color: var(--on-gold); border-color: var(--gold-surface); }

.guide-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.guide-back {
	font-family: var(--ui);
	font-size: var(--fs-button);
	font-weight: var(--menu-weight);
	letter-spacing: var(--label-tracking);
	text-transform: uppercase;
	color: var(--ink-soft);
	padding: 14px 4px;
}
.guide-back:hover { color: var(--ink); }
.guide-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }

.guide-results { display: grid; gap: 12px; margin-bottom: 28px; }
.guide-result { padding: 20px 24px; background: var(--surface-warm); border-left: 3px solid var(--gold); }
.guide-result h3 { font-size: var(--fs-h4); margin-bottom: 6px; }
.guide-result p { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-soft); margin-bottom: 10px; }
.guide-empty { font-size: var(--fs-body); color: var(--ink-soft); }

@media (max-width: 520px) {
	.guide-chips { grid-template-columns: 1fr; }
}


/* Phone numbers shown in the Concierge pop-up until a form is chosen. */
.concierge-phones { display: grid; gap: 18px; }
.concierge-phone .h4 { display: block; margin-bottom: 4px; }
.concierge-phone .text-link { font-size: var(--fs-body); }


/* ---------- Floating Concierge button ---------- */

.floating-concierge {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 22px 14px 16px;
	background: var(--dark);
	color: var(--paper);
	border: 1px solid var(--gold);
	font-family: var(--ui);
	font-size: var(--fs-button);
	font-weight: var(--menu-weight);
	letter-spacing: var(--label-tracking);
	text-transform: uppercase;
	line-height: var(--lh-label);
	opacity: 0;
	transform: translateY(120px);
	transition: transform .35s ease, opacity .35s ease, background .25s ease, color .25s ease;
}
.floating-concierge.visible { opacity: 1; transform: translateY(0); }
.floating-concierge:hover { background: var(--gold-surface); color: var(--on-gold); border-color: var(--gold-surface); }

.floating-concierge .fc-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--gold-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold-light);
	font-family: var(--serif);
	font-size: var(--fs-lead);
	font-weight: 400;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	flex-shrink: 0;
}
.floating-concierge:hover .fc-icon { color: var(--on-gold); border-color: var(--on-gold); }
/* The serif c sits low and, being open on the right, looks left of center. Nudge the ink, not the box. */
.floating-concierge .fc-icon i { font-style: normal; display: block; transform: translate(.75px, -2.5px); }

@media (max-width: 520px) {
	.floating-concierge { bottom: 16px; right: 16px; padding: 12px 18px 12px 14px; }
}
