/**
 * SSRP Attendee Portal — attendee-facing questionnaire.
 *
 * Visual spec mirrors the parent theme's design system: Barlow type, the
 * Certifications accent (#1995e2) for primary action and progress, hex/rounded
 * card aesthetic, generous spacing, subtle motion. Falls back gracefully when
 * the theme's tokens aren't loaded (form embedded in a non-theme context).
 */

.ssrp-ap-form {
	--ap-accent: var(--accent-certifications, #1995e2);
	--ap-accent-dark: var(--blue-700, #1572b0);
	--ap-accent-soft: rgba(25, 149, 226, 0.08);
	--ap-accent-soft-strong: rgba(25, 149, 226, 0.16);
	--ap-bg-page: var(--bg-surface, #f6f8f9);
	--ap-bg-card: var(--bg-primary, #ffffff);
	--ap-text: var(--text-body, #030712);
	--ap-text-light: var(--text-body-light, #374151);
	--ap-text-muted: var(--color-text-muted, #6b7280);
	--ap-border: var(--color-border, #e5e7eb);
	--ap-border-strong: #d1d5db;
	--ap-success: var(--color-success, #16a34a);
	--ap-warning: var(--color-warning, #d97706);
	--ap-error: var(--color-error, #dc2626);
	--ap-radius: var(--radius-xl, 0.75rem);
	--ap-radius-sm: var(--radius-md, 0.375rem);
	--ap-shadow: 0 1px 2px rgba(3, 7, 18, 0.04), 0 4px 14px rgba(3, 7, 18, 0.06);
	--ap-shadow-hover: 0 6px 12px rgba(3, 7, 18, 0.08), 0 12px 28px rgba(3, 7, 18, 0.08);
	--ap-easing: cubic-bezier(0.16, 1, 0.3, 1);

	max-width: 880px;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: var(--font-primary, "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ap-text);
}

.ssrp-ap-form *,
.ssrp-ap-form *::before,
.ssrp-ap-form *::after {
	box-sizing: border-box;
}

/* ─── Header card ───────────────────────────────────────────────────── */

.ssrp-ap-form__header {
	position: relative;
	background-color: var(--ap-accent);
	background-image: linear-gradient(135deg, var(--ap-accent) 0%, var(--ap-accent-dark) 100%);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 2rem 2rem 1.75rem;
	border-radius: var(--ap-radius);
	box-shadow: 0 12px 32px rgba(25, 149, 226, 0.18);
	overflow: hidden;
	margin-bottom: 1.25rem;
}

/* When a featured image is set, the inline style stacks a brand-tinted
   gradient OVER the image so text stays readable. Bump padding so the
   "hero" feel has room to breathe. */
.ssrp-ap-form__header--has-image {
	padding: 2.75rem 2rem 2.25rem;
	box-shadow: 0 12px 36px rgba(3, 7, 18, 0.22);
}

.ssrp-ap-form__header::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

/* Suppress the decorative blob when we have an image — the photo itself
   provides visual texture, blob would just compete. */
.ssrp-ap-form__header--has-image::before {
	display: none;
}

.ssrp-ap-form__header h2 {
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.25rem;
	color: #fff;
	text-shadow: 0 1px 2px rgba(3, 7, 18, 0.15);
}

.ssrp-ap-form__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 0.5rem;
}

.ssrp-ap-form__intro {
	max-width: 60ch;
	margin: 0.75rem 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.ssrp-ap-form__intro p:last-child {
	margin-bottom: 0;
}

/* Progress meter inside header */

.ssrp-ap-form__progress {
	margin-top: 1.5rem;
	position: relative;
	z-index: 1;
}

.ssrp-ap-form__progress-stats {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	color: #fff;
}

.ssrp-ap-form__progress-count {
	display: inline-flex;
	align-items: baseline;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ssrp-ap-form__progress-count strong {
	font-weight: 700;
	color: #fff;
}

.ssrp-ap-form__progress-divider {
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0.15rem;
	font-weight: 600;
}

.ssrp-ap-form__progress-count [data-role="progress-total"] {
	color: rgba(255, 255, 255, 0.85);
}

.ssrp-ap-form__progress-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.01em;
}

.ssrp-ap-form__progress-bar {
	height: 8px;
	background: rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	overflow: hidden;
}

.ssrp-ap-form__progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
	border-radius: 999px;
	transition: width 0.6s var(--ap-easing);
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.ssrp-ap-form__progress-percent-line {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.72);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 600;
}

/* Breadcrumbs — pill-style band directly below the hero */

.ssrp-ap-form__breadcrumbs {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: -0.5rem 0 1.5rem;
	padding: 0.45rem 0.9rem;
	background: var(--ap-bg-card);
	border: 1px solid var(--ap-border);
	border-radius: 999px;
	font-size: 0.8125rem;
	width: fit-content;
	box-shadow: 0 2px 8px rgba(3, 7, 18, 0.04);
	font-family: inherit;
}

.ssrp-ap-form__breadcrumbs-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--ap-accent);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s var(--ap-easing);
}

.ssrp-ap-form__breadcrumbs-link:hover,
.ssrp-ap-form__breadcrumbs-link:focus {
	color: var(--ap-accent-dark);
	text-decoration: none;
}

.ssrp-ap-form__breadcrumbs-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--ap-accent-soft);
	color: var(--ap-accent-dark);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.15s var(--ap-easing), background 0.15s var(--ap-easing);
}

.ssrp-ap-form__breadcrumbs-link:hover .ssrp-ap-form__breadcrumbs-arrow,
.ssrp-ap-form__breadcrumbs-link:focus .ssrp-ap-form__breadcrumbs-arrow {
	transform: translateX(-2px);
	background: var(--ap-accent-soft-strong);
}

.ssrp-ap-form__breadcrumbs-sep {
	color: var(--ap-text-muted);
	font-weight: 600;
}

.ssrp-ap-form__breadcrumbs-current {
	color: var(--ap-text);
	font-weight: 500;
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.ssrp-ap-form__breadcrumbs {
		margin-top: -0.25rem;
		font-size: 0.75rem;
		gap: 0.4rem;
	}
	.ssrp-ap-form__breadcrumbs-current {
		max-width: 18ch;
	}
}

/* ─── Coming-soon / empty states ────────────────────────────────────── */

.ssrp-ap-form--coming-soon .ssrp-ap-form__coming-soon-body {
	background: var(--ap-bg-card);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 3rem 2rem;
	text-align: center;
	box-shadow: var(--ap-shadow);
}

.ssrp-ap-form--coming-soon h3 {
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
}

.ssrp-ap-form--coming-soon p {
	color: var(--ap-text-light);
	margin: 0;
}

.ssrp-ap-message {
	background: var(--ap-bg-card);
	border: 1px solid var(--ap-border);
	border-left: 4px solid var(--ap-accent);
	border-radius: var(--ap-radius-sm);
	padding: 1rem 1.25rem;
	margin: 1rem 0;
	font-size: 0.9375rem;
	color: var(--ap-text-light);
	box-shadow: var(--ap-shadow);
}

.ssrp-ap-message--warning {
	border-left-color: var(--ap-warning);
}

.ssrp-ap-message a {
	color: var(--ap-accent);
	font-weight: 600;
	text-decoration: none;
}

.ssrp-ap-message a:hover {
	text-decoration: underline;
}

/* ─── Section card ──────────────────────────────────────────────────── */

.ssrp-ap-section {
	background: var(--ap-bg-card);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	margin-bottom: 0.75rem;
	overflow: hidden;
	transition: box-shadow 0.2s var(--ap-easing),
		border-color 0.2s var(--ap-easing),
		transform 0.2s var(--ap-easing);
}

.ssrp-ap-section:hover {
	box-shadow: var(--ap-shadow);
}

.ssrp-ap-section.is-open {
	box-shadow: var(--ap-shadow);
	border-color: var(--ap-border-strong);
}

.ssrp-ap-section.is-complete {
	border-color: rgba(22, 163, 74, 0.3);
}

.ssrp-ap-section__header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.125rem 1.5rem;
	cursor: pointer;
	user-select: none;
	background: transparent;
	transition: background-color 0.15s var(--ap-easing);
}

.ssrp-ap-section:not(.is-open) .ssrp-ap-section__header:hover {
	background: var(--ap-bg-page);
}

.ssrp-ap-section__header:focus-visible {
	outline: 2px solid var(--ap-accent);
	outline-offset: -2px;
}

.ssrp-ap-section__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--ap-accent-soft);
	color: var(--ap-accent-dark);
	transition: background 0.2s var(--ap-easing), color 0.2s var(--ap-easing);
}

.ssrp-ap-section__icon svg {
	width: 18px;
	height: 18px;
}

.ssrp-ap-section.is-complete .ssrp-ap-section__icon {
	background: rgba(22, 163, 74, 0.12);
	color: var(--ap-success);
}

.ssrp-ap-section.is-in-progress .ssrp-ap-section__icon {
	background: rgba(217, 119, 6, 0.12);
	color: var(--ap-warning);
}

.ssrp-ap-section__title-wrap {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Per-section progress mini-bar (sits in the header) */

.ssrp-ap-section__section-progress {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--ap-text-muted);
	font-weight: 600;
}

.ssrp-ap-section__section-progress-bar {
	display: inline-block;
	width: 80px;
	height: 5px;
	background: var(--ap-border);
	border-radius: 999px;
	overflow: hidden;
}

.ssrp-ap-section__section-progress-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--ap-accent) 0%, var(--ap-accent-dark) 100%);
	border-radius: 999px;
	transition: width 0.4s var(--ap-easing);
}

.ssrp-ap-section.is-complete .ssrp-ap-section__section-progress-fill {
	background: linear-gradient(90deg, var(--ap-success) 0%, #0e8533 100%);
}

@media (max-width: 640px) {
	.ssrp-ap-section__section-progress {
		display: none;
	}
}

.ssrp-ap-section__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--ap-text);
	line-height: 1.15;
	letter-spacing: -0.005em;
}

.ssrp-ap-section__subtitle {
	display: block;
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.2;
	color: var(--ap-text-muted);
	font-weight: 400;
}

/* Status indicator: hexagon-style outline → filled */

.ssrp-ap-section__status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ap-text-muted);
	white-space: nowrap;
}

.ssrp-ap-section__status-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--ap-border-strong);
	background: var(--ap-bg-card);
	transition: all 0.25s var(--ap-easing);
	flex-shrink: 0;
}

.ssrp-ap-section.is-in-progress .ssrp-ap-section__status {
	color: var(--ap-warning);
}

.ssrp-ap-section.is-in-progress .ssrp-ap-section__status-dot {
	border-color: var(--ap-warning);
	background: rgba(217, 119, 6, 0.1);
}

.ssrp-ap-section.is-in-progress .ssrp-ap-section__status-dot::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ap-warning);
}

.ssrp-ap-section.is-complete .ssrp-ap-section__status {
	color: var(--ap-success);
	font-weight: 600;
}

.ssrp-ap-section.is-complete .ssrp-ap-section__status-dot {
	border-color: var(--ap-success);
	background: var(--ap-success);
	color: #fff;
}

.ssrp-ap-section.is-complete .ssrp-ap-section__status-dot::after {
	content: "";
	width: 11px;
	height: 6px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translate(2px, -2px);
}

/* Caret */

.ssrp-ap-section__caret {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 0.25rem;
	border-right: 2px solid var(--ap-text-muted);
	border-bottom: 2px solid var(--ap-text-muted);
	transform: rotate(45deg);
	transition: transform 0.25s var(--ap-easing);
	flex-shrink: 0;
}

.ssrp-ap-section.is-open .ssrp-ap-section__caret {
	transform: rotate(-135deg);
}

/* Section body */

.ssrp-ap-section__form {
	display: none;
	padding: 0.25rem 1.5rem 1.5rem;
	border-top: 1px solid var(--ap-border);
	animation: ap-section-in 0.3s var(--ap-easing);
}

.ssrp-ap-section.is-open .ssrp-ap-section__form {
	display: block;
}

@keyframes ap-section-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ssrp-ap-section__fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem 1.25rem;
	padding-top: 1.5rem;
	align-items: start;
}

@media (min-width: 640px) {
	.ssrp-ap-section__fields {
		grid-template-columns: repeat(2, 1fr);
	}
	.ssrp-ap-field--textarea,
	.ssrp-ap-field--address,
	.ssrp-ap-field--boolean,
	.ssrp-ap-field--checkbox_group,
	.ssrp-ap-field--radio {
		grid-column: 1 / -1;
	}
}

/* ─── Field ─────────────────────────────────────────────────────────── */

.ssrp-ap-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.ssrp-ap-field__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ap-text);
	letter-spacing: 0.01em;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.ssrp-ap-field__required {
	color: var(--ap-error);
	font-weight: 700;
}

.ssrp-ap-field__help {
	margin: 0.1rem 0 0;
	font-size: 0.8125rem;
	color: var(--ap-text-muted);
	line-height: 1.45;
	max-width: 56ch;
}

.ssrp-ap-field--prefilled .ssrp-ap-field__label::after {
	content: "From your account";
	margin-left: 0.5rem;
	padding: 2px 8px;
	background: var(--ap-accent-soft);
	color: var(--ap-accent-dark);
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 999px;
	white-space: nowrap;
}

/* Inputs
   Scoped to .ssrp-ap-form input[type="..."] so we beat Divi's bare
   `input[type=text]{padding:2px}` (specificity 0,1,1) with 0,2,1. */

.ssrp-ap-form input[type="text"],
.ssrp-ap-form input[type="email"],
.ssrp-ap-form input[type="tel"],
.ssrp-ap-form input[type="url"],
.ssrp-ap-form input[type="number"],
.ssrp-ap-form input[type="date"],
.ssrp-ap-form input[type="search"],
.ssrp-ap-form textarea,
.ssrp-ap-form select {
	width: 100%;
	min-height: 44px;
	padding: 0.625rem 0.85rem;
	margin: 0;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ap-text);
	background: var(--ap-bg-card);
	border: 1.5px solid var(--ap-border);
	border-radius: var(--ap-radius-sm);
	box-shadow: none;
	transition: border-color 0.15s var(--ap-easing),
		box-shadow 0.15s var(--ap-easing),
		background-color 0.15s var(--ap-easing);
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
}

.ssrp-ap-form select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	padding-right: 2.5rem;
}

.ssrp-ap-form select[multiple] {
	min-height: 120px;
	background-image: none;
	padding-right: 0.85rem;
}

.ssrp-ap-form textarea {
	min-height: 96px;
	resize: vertical;
	line-height: 1.5;
}

.ssrp-ap-form input::placeholder,
.ssrp-ap-form textarea::placeholder {
	color: var(--ap-text-muted);
	opacity: 0.7;
}

.ssrp-ap-form input[type="text"]:hover,
.ssrp-ap-form input[type="email"]:hover,
.ssrp-ap-form input[type="tel"]:hover,
.ssrp-ap-form input[type="url"]:hover,
.ssrp-ap-form input[type="number"]:hover,
.ssrp-ap-form input[type="date"]:hover,
.ssrp-ap-form textarea:hover,
.ssrp-ap-form select:hover {
	border-color: var(--ap-border-strong);
}

.ssrp-ap-form input[type="text"]:focus,
.ssrp-ap-form input[type="email"]:focus,
.ssrp-ap-form input[type="tel"]:focus,
.ssrp-ap-form input[type="url"]:focus,
.ssrp-ap-form input[type="number"]:focus,
.ssrp-ap-form input[type="date"]:focus,
.ssrp-ap-form textarea:focus,
.ssrp-ap-form select:focus {
	border-color: var(--ap-accent);
	box-shadow: 0 0 0 4px var(--ap-accent-soft);
	outline: none;
}

.ssrp-ap-form .ssrp-ap-field--prefilled input[type="text"],
.ssrp-ap-form .ssrp-ap-field--prefilled input[type="email"],
.ssrp-ap-form .ssrp-ap-field--prefilled input[type="tel"],
.ssrp-ap-form .ssrp-ap-field--prefilled input[type="url"],
.ssrp-ap-form .ssrp-ap-field--prefilled input[type="number"],
.ssrp-ap-form .ssrp-ap-field--prefilled input[type="date"],
.ssrp-ap-form .ssrp-ap-field--prefilled textarea,
.ssrp-ap-form .ssrp-ap-field--prefilled select {
	background-color: var(--ap-accent-soft);
	border-color: rgba(25, 149, 226, 0.2);
}

.ssrp-ap-form .ssrp-ap-field.has-error input[type="text"],
.ssrp-ap-form .ssrp-ap-field.has-error input[type="email"],
.ssrp-ap-form .ssrp-ap-field.has-error input[type="tel"],
.ssrp-ap-form .ssrp-ap-field.has-error input[type="url"],
.ssrp-ap-form .ssrp-ap-field.has-error input[type="number"],
.ssrp-ap-form .ssrp-ap-field.has-error input[type="date"],
.ssrp-ap-form .ssrp-ap-field.has-error textarea,
.ssrp-ap-form .ssrp-ap-field.has-error select {
	border-color: var(--ap-error);
	background-color: rgba(220, 38, 38, 0.04);
}

.ssrp-ap-form .ssrp-ap-field.has-error input[type="text"]:focus,
.ssrp-ap-form .ssrp-ap-field.has-error input[type="email"]:focus,
.ssrp-ap-form .ssrp-ap-field.has-error input[type="tel"]:focus,
.ssrp-ap-form .ssrp-ap-field.has-error textarea:focus,
.ssrp-ap-form .ssrp-ap-field.has-error select:focus {
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Checkbox + radio: also targeted, since Divi resets them to 12px and ugly */
.ssrp-ap-form input[type="checkbox"],
.ssrp-ap-form input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ap-accent);
	cursor: pointer;
}

.ssrp-ap-field__error {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ap-error);
	display: flex;
	align-items: flex-start;
	gap: 0.25rem;
}

.ssrp-ap-field__error::before {
	content: "⚠";
	flex-shrink: 0;
}

/* Inline format chip — JS adds is-format-valid / is-format-invalid based
   on email / url / tel regex. Doesn't replace server validation. */
.ssrp-ap-field--email,
.ssrp-ap-field--url,
.ssrp-ap-field--tel {
	position: relative;
}

.ssrp-ap-field--email .ssrp-ap-field__input,
.ssrp-ap-field--url .ssrp-ap-field__input,
.ssrp-ap-field--tel .ssrp-ap-field__input {
	padding-right: 2.25rem;
}

.ssrp-ap-field.is-format-valid .ssrp-ap-field__input,
.ssrp-ap-field.is-format-invalid .ssrp-ap-field__input {
	background-repeat: no-repeat;
	background-position: right 0.7rem center;
	background-size: 18px 18px;
}

.ssrp-ap-field.is-format-valid .ssrp-ap-field__input {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2316a34a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10.5l3.5 3.5L16 6.5'/></svg>");
}

.ssrp-ap-field.is-format-invalid .ssrp-ap-field__input {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23dc2626' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 5l10 10M15 5L5 15'/></svg>");
}

/* Save-to-profile pill */

.ssrp-ap-field__save-to-profile {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.25rem;
	padding: 0.3rem 0.7rem;
	background: var(--ap-bg-page);
	border: 1px solid var(--ap-border);
	border-radius: 999px;
	font-size: 0.75rem;
	color: var(--ap-text-light);
	cursor: pointer;
	transition: background 0.15s var(--ap-easing),
		border-color 0.15s var(--ap-easing);
	align-self: flex-start;
}

.ssrp-ap-field__save-to-profile:hover {
	background: var(--ap-accent-soft);
	border-color: rgba(25, 149, 226, 0.25);
	color: var(--ap-accent-dark);
}

.ssrp-ap-field__save-to-profile input[type="checkbox"] {
	margin: 0;
	accent-color: var(--ap-accent);
}

/* Boolean: cleaner checkbox row */

.ssrp-ap-field--boolean .ssrp-ap-field__boolean {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1rem 1.125rem;
	background: var(--ap-bg-page);
	border: 1.5px solid var(--ap-border);
	border-radius: var(--ap-radius-sm);
	cursor: pointer;
	transition: border-color 0.15s var(--ap-easing),
		background 0.15s var(--ap-easing);
	margin: 0;
}

.ssrp-ap-field--boolean .ssrp-ap-field__boolean:hover {
	border-color: var(--ap-border-strong);
	background: var(--ap-bg-card);
}

.ssrp-ap-field--boolean .ssrp-ap-field__boolean input[type="checkbox"] {
	margin: 2px 0 0;
	accent-color: var(--ap-accent);
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.ssrp-ap-field__boolean-label {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ap-text);
	line-height: 1.4;
}

.ssrp-ap-field--boolean.has-error .ssrp-ap-field__boolean {
	border-color: var(--ap-error);
	background: rgba(220, 38, 38, 0.04);
}

/* Radio + checkbox groups */

.ssrp-ap-field__radio-group,
.ssrp-ap-field__checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ssrp-ap-field__radio,
.ssrp-ap-field__checkbox {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.85rem;
	border: 1.5px solid var(--ap-border);
	border-radius: var(--ap-radius-sm);
	cursor: pointer;
	transition: border-color 0.15s var(--ap-easing),
		background 0.15s var(--ap-easing);
	font-size: 0.9375rem;
	color: var(--ap-text);
}

.ssrp-ap-field__radio:hover,
.ssrp-ap-field__checkbox:hover {
	border-color: var(--ap-border-strong);
	background: var(--ap-bg-page);
}

.ssrp-ap-field__radio input,
.ssrp-ap-field__checkbox input {
	margin: 0;
	accent-color: var(--ap-accent);
}

/* Address grid */

.ssrp-ap-field__address {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.75rem;
}

.ssrp-ap-field__address-part {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.ssrp-ap-field__address-part--street1,
.ssrp-ap-field__address-part--street2 {
	grid-column: 1 / -1;
}

.ssrp-ap-field__address-part label {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--ap-text-muted);
	letter-spacing: 0.01em;
}

@media (max-width: 560px) {
	.ssrp-ap-field__address {
		grid-template-columns: 1fr;
	}
	.ssrp-ap-field__address-part--street1,
	.ssrp-ap-field__address-part--street2 {
		grid-column: 1;
	}
}

/* ─── Section actions ───────────────────────────────────────────────── */

.ssrp-ap-section__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--ap-border);
	flex-wrap: wrap;
}

.ssrp-ap-section__save {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--ap-accent);
	color: #fff;
	border: none;
	border-radius: var(--ap-radius-sm);
	padding: 0.7rem 1.4rem;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.15s var(--ap-easing),
		transform 0.1s var(--ap-easing),
		box-shadow 0.15s var(--ap-easing);
	box-shadow: 0 4px 14px rgba(25, 149, 226, 0.25);
}

.ssrp-ap-section__save:hover:not([disabled]) {
	background: var(--ap-accent-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(25, 149, 226, 0.35);
}

.ssrp-ap-section__save:active:not([disabled]) {
	transform: translateY(0);
}

.ssrp-ap-section__save[disabled] {
	background: var(--ap-border-strong);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.7;
}

.ssrp-ap-section__save::after {
	content: "→";
	font-weight: 400;
	transition: transform 0.15s var(--ap-easing);
}

.ssrp-ap-section__save:hover:not([disabled])::after {
	transform: translateX(3px);
}

.ssrp-ap-section__feedback {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ap-text-muted);
}

.ssrp-ap-section__feedback.is-success {
	color: var(--ap-success);
}

.ssrp-ap-section__feedback.is-success::before {
	content: "✓";
	font-weight: 700;
}

.ssrp-ap-section__feedback.is-error {
	color: var(--ap-error);
}

.ssrp-ap-section__feedback.is-error::before {
	content: "⚠";
}

/* ─── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.ssrp-ap-form {
		margin: 1rem auto;
		padding-bottom: 5rem; /* room for sticky save bar */
	}
	.ssrp-ap-form__header {
		padding: 1.5rem 1.25rem 1.25rem;
		border-radius: var(--ap-radius-sm);
	}
	.ssrp-ap-form__header h2 {
		font-size: 1.4rem;
	}
	.ssrp-ap-section__header {
		padding: 0.875rem 1rem;
		gap: 0.75rem;
	}
	.ssrp-ap-section__icon {
		width: 28px;
		height: 28px;
	}
	.ssrp-ap-section__icon svg {
		width: 16px;
		height: 16px;
	}
	.ssrp-ap-section__form {
		padding: 0 1rem 1.25rem;
	}
	.ssrp-ap-section__title {
		font-size: 1rem;
	}
	/* Larger touch targets on radio/checkbox cards */
	.ssrp-ap-field__radio,
	.ssrp-ap-field__checkbox {
		padding: 0.85rem 1rem;
	}
	.ssrp-ap-form input[type="checkbox"],
	.ssrp-ap-form input[type="radio"] {
		width: 22px;
		height: 22px;
	}
	/* Save & Continue button — full-width on mobile, fixed at viewport bottom
	   when the section is open and scrolled past. Position: sticky keeps
	   it within the section container. */
	.ssrp-ap-section.is-open .ssrp-ap-section__actions {
		position: sticky;
		bottom: 0;
		background: linear-gradient(to top, var(--ap-bg-card) 70%, transparent);
		padding-bottom: 0.75rem;
		margin: 1.25rem -1rem 0;
		padding-left: 1rem;
		padding-right: 1rem;
		padding-top: 1rem;
		border-top: 1px solid var(--ap-border);
		z-index: 5;
	}
	.ssrp-ap-section__save {
		flex: 1;
		justify-content: center;
		padding: 0.85rem 1.4rem;
		font-size: 0.9375rem;
	}
}

/* ─── Account profile variant (My Account → Profile) ──────────────────
   The account page redefines --accent-certifications (orange), and
   ssrp-my-account styles `main … h2` dark — pin the brand blue and the
   white hero title for the profile form. */
.ssrp-ap-form--profile {
	--ap-accent: #1995e2;
	--ap-accent-dark: #1572b0;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* On the Profile tab the profile IS the page: drop ssrp-my-account's white
   content card (and its duplicate "Profile" title) so the hero and section
   cards sit on the page background beside the sidebar cards. Other account
   tabs keep their card. */
main.ssrp-my-account__content:has(.ssrp-ap-form--profile) {
	padding: 0;
	gap: 0;
	min-height: 0;
	background: transparent;
	border-radius: 0;
	overflow: visible;
}
main.ssrp-my-account__content:has(.ssrp-ap-form--profile) .ssrp-my-account__content-header {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
main.ssrp-my-account__content:has(.ssrp-ap-form--profile) .ssrp-my-account__content-body {
	overflow: visible;
}
main .ssrp-ap-form--profile .ssrp-ap-form__header h2 {
	color: #fff;
}

/* Profile photo row — top of the Account section. */
.ssrp-ap-photo {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-bottom: 1.25rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px dashed var(--gray-200, #e5e7eb);
}
.ssrp-ap-photo__img img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}
.ssrp-ap-photo__text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}
.ssrp-ap-photo__label {
	font-weight: 600;
	font-size: 0.875rem;
}
.ssrp-ap-photo__help {
	font-size: 0.8125rem;
	color: var(--gray-500, #6b7280);
}
.ssrp-ap-photo__button {
	margin-left: auto;
	padding: 0.5rem 1rem;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ap-accent, #1995e2);
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}
.ssrp-ap-photo__button:hover,
.ssrp-ap-photo__button:focus-visible {
	color: #fff;
	background: var(--ap-accent, #1995e2);
	border-color: var(--ap-accent, #1995e2);
}
@media (max-width: 480px) {
	.ssrp-ap-photo { flex-wrap: wrap; }
	.ssrp-ap-photo__button { margin-left: 0; }
}

/* The headshot row is a field wrapper now (counts toward completion). */
.ssrp-ap-field--photo { grid-column: 1 / -1; }

/* Login email: shown, changed only by staff. */
.ssrp-ap-field.is-readonly .ssrp-ap-field__input,
.ssrp-ap-field.is-readonly .ssrp-ap-field__input:focus {
	background: var(--gray-50, #f9fafb);
	color: var(--gray-600, #4b5563);
	cursor: default;
}

/* Conditional fields: the hidden attribute must win over display rules. */
.ssrp-ap-field[hidden] { display: none !important; }

/* Profile groups — "Account & Practice" / "Event Attendee Details". */
.ssrp-ap-group + .ssrp-ap-group {
	margin-top: 2.5rem;
}
.ssrp-ap-group__header {
	margin: 1.75rem 0 1rem;
	padding: 0 0.25rem;
}
.ssrp-ap-group__title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--gray-900, #111827);
}
.ssrp-ap-group__intro {
	margin: 0.375rem 0 0;
	max-width: 46rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--gray-600, #4b5563);
}

/* ─── Profile hero (My Account → Profile) ─────────────────────────────
   Site card language: near-black #030712 surface (header/footer chrome),
   the theme's blue hex-network texture, hexagon-icon eyebrow, light large
   heading, brand-blue #1995e2 as the accent. */
.ssrp-ap-profile-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15rem;
	gap: 2.5rem;
	align-items: end;
	padding: 2.5rem;
	border-radius: var(--radius-outer, 24px);
	background-color: #030712;
	background-image:
		linear-gradient(90deg, #030712 0%, #030712 38%, rgba(3, 7, 18, 0.55) 72%, rgba(3, 7, 18, 0.2) 100%),
		radial-gradient(120% 90% at 100% 0%, rgba(25, 149, 226, 0.28) 0%, rgba(25, 149, 226, 0) 60%),
		var(--ssrp-ap-hero-texture, none);
	background-repeat: no-repeat;
	background-position: 0 0, 0 0, right -60px top -40px;
	background-size: auto, auto, 520px auto;
	color: #fff;
	overflow: hidden;
	margin-bottom: 1.5rem;
	font-family: var(--font-primary, Barlow, sans-serif);
}
.ssrp-ap-profile-hero__content {
	position: relative;
	min-width: 0;
}
.ssrp-ap-profile-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-2, 0.5rem);
	font-family: var(--typography-eyebrow-family, Barlow);
	font-size: var(--typography-eyebrow-size, 0.9375rem);
	font-weight: var(--typography-eyebrow-weight, 600);
	line-height: var(--typography-eyebrow-line-height, 120%);
	letter-spacing: var(--typography-eyebrow-letter-spacing, 0.6px);
	text-transform: uppercase;
	color: var(--gray-300, #d1d5db);
}
.ssrp-ap-profile-hero__eyebrow-icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	background-color: #1995e2;
	-webkit-mask: var(--icon-hexagon-mask) center / contain no-repeat;
	mask: var(--icon-hexagon-mask) center / contain no-repeat;
}
main .ssrp-ap-form--profile .ssrp-ap-profile-hero__title,
.ssrp-ap-profile-hero__title {
	margin: 0.875rem 0 0;
	font-family: var(--font-primary, Barlow, sans-serif);
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	font-weight: var(--font-weight-regular, 400);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #fff;
}
.ssrp-ap-profile-hero__intro {
	margin: 1rem 0 0;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--gray-400, #9ca3af);
}

/* Completion meter — right column on desktop. */
.ssrp-ap-profile-hero__meter {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.25rem 1.125rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	background: rgba(3, 7, 18, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.ssrp-ap-profile-hero__meter-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--gray-400, #9ca3af);
}
.ssrp-ap-profile-hero__meter-value {
	font-size: 2.75rem;
	font-weight: var(--font-weight-regular, 400);
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.ssrp-ap-profile-hero__meter-bar {
	display: block;
	height: 6px;
	margin-top: 0.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	overflow: hidden;
}
.ssrp-ap-profile-hero__meter-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #1995e2;
	transition: width 0.4s ease;
}
.ssrp-ap-profile-hero__meter-detail {
	font-size: 0.8125rem;
	color: var(--gray-400, #9ca3af);
}

@media (max-width: 900px) {
	.ssrp-ap-profile-hero {
		grid-template-columns: 1fr;
		gap: 1.75rem;
		padding: 2rem 1.5rem;
		/* Texture stays up top-right; text sits on solid #030712. */
		background-image:
			linear-gradient(180deg, rgba(3, 7, 18, 0.35) 0%, #030712 42%),
			radial-gradient(120% 60% at 100% 0%, rgba(25, 149, 226, 0.25) 0%, rgba(25, 149, 226, 0) 60%),
			var(--ssrp-ap-hero-texture, none);
		background-position: 0 0, 0 0, right -160px top -90px;
		background-size: auto, auto, 380px auto;
	}
	.ssrp-ap-profile-hero__meter {
		max-width: 22rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ssrp-ap-profile-hero__meter-fill { transition: none; }
}

/* ─── Section cards, brand pass ───────────────────────────────────────
   No category icons. The status marker is the SSRP hexagon (the mark in
   eyebrows and the seal): gray outline = not started, blue outline = in
   progress, solid blue + check = complete. One status line under the
   title, an uppercase label on the right, and a round outline chevron
   like the site's arrow buttons. Shared by the profile and event forms. */
.ssrp-ap-section {
	border: 1px solid var(--gray-200, #e5e7eb);
	border-radius: 20px;
	background: #fff;
	box-shadow: none;
}
.ssrp-ap-section:hover {
	border-color: var(--gray-300, #d1d5db);
	box-shadow: 0 6px 20px rgba(3, 7, 18, 0.05);
}
.ssrp-ap-section.is-open {
	border-color: var(--gray-300, #d1d5db);
	box-shadow: 0 10px 30px rgba(3, 7, 18, 0.07);
}
.ssrp-ap-section.is-complete {
	border-color: var(--gray-200, #e5e7eb);
}
.ssrp-ap-section__header {
	gap: 1rem;
	padding: 1.25rem 1.5rem;
}
.ssrp-ap-section:not(.is-open) .ssrp-ap-section__header:hover {
	background: transparent;
}

/* Hexagon status marker */
.ssrp-ap-section__marker {
	position: relative;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}
.ssrp-ap-section__marker::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--gray-300, #d1d5db);
	-webkit-mask: var(--icon-hexagon-mask) center / contain no-repeat;
	mask: var(--icon-hexagon-mask) center / contain no-repeat;
	transition: background-color 0.2s ease;
}
.ssrp-ap-section.is-in-progress .ssrp-ap-section__marker::before {
	background-color: #1995e2;
}
.ssrp-ap-section.is-complete .ssrp-ap-section__marker::before {
	background-color: #1995e2;
	-webkit-mask-image: var(--icon-hexagon-mask-filled);
	mask-image: var(--icon-hexagon-mask-filled);
}
.ssrp-ap-section.is-complete .ssrp-ap-section__marker::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 6px;
	width: 8px;
	height: 5px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
}

.ssrp-ap-section__title {
	font-family: var(--font-primary, Barlow, sans-serif);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: var(--gray-900, #111827);
}
.ssrp-ap-section__subtitle {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--gray-500, #6b7280);
}
.ssrp-ap-section__subtitle-sep {
	margin: 0 0.375rem;
	color: var(--gray-300, #d1d5db);
}

/* Status label — eyebrow style */
.ssrp-ap-section__status,
.ssrp-ap-section.is-in-progress .ssrp-ap-section__status,
.ssrp-ap-section.is-complete .ssrp-ap-section__status {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--gray-400, #9ca3af);
}
.ssrp-ap-section.is-in-progress .ssrp-ap-section__status {
	color: var(--gray-700, #374151);
}
.ssrp-ap-section.is-complete .ssrp-ap-section__status {
	color: #1995e2;
}

/* Round outline chevron button */
.ssrp-ap-section__caret {
	position: relative;
	width: 36px;
	height: 36px;
	margin-left: 0.25rem;
	border: 1px solid var(--gray-300, #d1d5db);
	border-right: 1px solid var(--gray-300, #d1d5db);
	border-bottom: 1px solid var(--gray-300, #d1d5db);
	border-radius: 50%;
	transform: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ssrp-ap-section__caret::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	margin: -6px 0 0 -4px;
	border-right: 1.5px solid var(--gray-900, #111827);
	border-bottom: 1.5px solid var(--gray-900, #111827);
	transform: rotate(45deg);
	transition: transform 0.25s ease, margin 0.25s ease, border-color 0.2s ease;
}
.ssrp-ap-section.is-open .ssrp-ap-section__caret {
	transform: none;
}
.ssrp-ap-section.is-open .ssrp-ap-section__caret::before {
	margin-top: -2px;
	transform: rotate(-135deg);
}
.ssrp-ap-section__header:hover .ssrp-ap-section__caret {
	background: #030712;
	border-color: #030712;
}
.ssrp-ap-section__header:hover .ssrp-ap-section__caret::before {
	border-color: #fff;
}

.ssrp-ap-section__form {
	border-top-color: var(--gray-200, #e5e7eb);
}

@media (max-width: 640px) {
	.ssrp-ap-section__header {
		padding: 1rem 1.125rem;
		gap: 0.75rem;
	}
	.ssrp-ap-section__title {
		font-size: 1.125rem;
	}
	.ssrp-ap-section__status {
		display: none;
	}
}

/* Hexagon marker v2: SVG ring that fills like a progress bar, then fills
   solid with a centered check when the section is complete. */
.ssrp-ap-section__marker::before,
.ssrp-ap-section__marker::after,
.ssrp-ap-section.is-complete .ssrp-ap-section__marker::before,
.ssrp-ap-section.is-complete .ssrp-ap-section__marker::after {
	content: none;
}
.ssrp-ap-section__marker {
	width: 26px;
	height: 26px;
}
.ssrp-ap-hex {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.ssrp-ap-hex__track,
.ssrp-ap-hex__progress {
	fill: none;
	stroke-width: 1.75;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.ssrp-ap-hex__track {
	stroke: var(--gray-300, #d1d5db);
}
.ssrp-ap-hex__progress {
	stroke: #1995e2;
	stroke-dasharray: 100;
	transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ssrp-ap-hex__fill {
	fill: #1995e2;
	stroke: #1995e2;
	stroke-width: 1.75;
	stroke-linejoin: round;
	opacity: 0;
	transition: opacity 0.3s ease 0.2s;
}
.ssrp-ap-hex__check {
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 12;
	stroke-dashoffset: 12;
	transition: stroke-dashoffset 0.35s ease 0.4s;
}
.ssrp-ap-section.is-complete .ssrp-ap-hex__fill {
	opacity: 1;
}
.ssrp-ap-section.is-complete .ssrp-ap-hex__check {
	stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: reduce) {
	.ssrp-ap-hex__progress,
	.ssrp-ap-hex__fill,
	.ssrp-ap-hex__check {
		transition: none;
	}
}

/* ─── Save button, compact ────────────────────────────────────────────
   Small outline pill like the site's card buttons (UPGRADE / BENEFITS).
   Theme / WooCommerce `.button` rules otherwise render it as a large
   black block, so these are deliberately specific + !important. */
.ssrp-ap-form .ssrp-ap-section__actions {
	gap: 0.75rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gray-100, #f3f4f6);
}
.ssrp-ap-form .ssrp-ap-section__actions .ssrp-ap-section__save,
.ssrp-ap-form .ssrp-ap-section__actions .ssrp-ap-section__save.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	align-self: flex-start;
	flex: 0 0 auto !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.5rem 1.125rem !important;
	font-family: var(--font-primary, Barlow, sans-serif) !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase;
	color: var(--gray-900, #111827) !important;
	background: transparent !important;
	border: 1px solid var(--gray-300, #d1d5db) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	transform: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ssrp-ap-form .ssrp-ap-section__actions .ssrp-ap-section__save::after {
	content: none;
}
.ssrp-ap-form .ssrp-ap-section__actions .ssrp-ap-section__save:hover:not([disabled]),
.ssrp-ap-form .ssrp-ap-section__actions .ssrp-ap-section__save:focus-visible {
	color: #fff !important;
	background: #030712 !important;
	border-color: #030712 !important;
}
.ssrp-ap-form .ssrp-ap-section__actions .ssrp-ap-section__save[disabled] {
	opacity: 0.5;
	cursor: default;
}
@media (max-width: 640px) {
	.ssrp-ap-form .ssrp-ap-section.is-open .ssrp-ap-section__actions {
		position: static;
		background: none;
		padding-bottom: 0;
	}
}

/* ─── Fill-it-faster pass ────────────────────────────────────────────── */

/* Optional marker (instead of required asterisks). */
.ssrp-ap-field__optional {
	margin-left: 0.25rem;
	font-weight: 400;
	color: var(--gray-400, #9ca3af);
}

/* Button chips: radios (and short selects rendered as radios) + checkbox
   groups. Selected = near-black pill, like the active account nav item. */
.ssrp-ap-form .ssrp-ap-field__radio-group,
.ssrp-ap-form .ssrp-ap-field__checkbox-group {
	display: flex;
	flex-direction: row; /* chips sit in a row; the base rule stacks them */
	flex-wrap: wrap;
	gap: 0.5rem;
}
.ssrp-ap-form .ssrp-ap-field__radio,
.ssrp-ap-form .ssrp-ap-field__checkbox {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	width: auto;
}
.ssrp-ap-form .ssrp-ap-field__radio input,
.ssrp-ap-form .ssrp-ap-field__checkbox input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.ssrp-ap-form .ssrp-ap-field__radio span,
.ssrp-ap-form .ssrp-ap-field__checkbox span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.5rem 1rem;
	border: 1px solid var(--gray-300, #d1d5db);
	border-radius: 999px;
	background: #fff;
	font-size: 0.9375rem;
	line-height: 1.2;
	color: var(--gray-800, #1f2937);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ssrp-ap-form .ssrp-ap-field__radio:hover span,
.ssrp-ap-form .ssrp-ap-field__checkbox:hover span {
	border-color: var(--gray-500, #6b7280);
}
.ssrp-ap-form .ssrp-ap-field__radio input:checked + span,
.ssrp-ap-form .ssrp-ap-field__checkbox input:checked + span {
	background: #030712;
	border-color: #030712;
	color: #fff;
}
.ssrp-ap-form .ssrp-ap-field__radio input:focus-visible + span,
.ssrp-ap-form .ssrp-ap-field__checkbox input:focus-visible + span {
	outline: 2px solid #1995e2;
	outline-offset: 2px;
}

/* Reveal ("+ Ship to a different address"): collapsed until clicked or filled. */
.ssrp-ap-field__reveal,
.ssrp-ap-field__copy,
.ssrp-ap-npi__lookup,
.ssrp-ap-npi__dismiss {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1995e2;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	box-shadow: none;
}
.ssrp-ap-field__reveal:hover,
.ssrp-ap-field__copy:hover,
.ssrp-ap-npi__lookup:hover,
.ssrp-ap-npi__dismiss:hover {
	color: #1572b0;
}
.ssrp-ap-field:not(.is-collapsed) > .ssrp-ap-field__reveal {
	display: none;
}
.ssrp-ap-field.is-collapsed > :not(.ssrp-ap-field__reveal) {
	display: none !important;
}
.ssrp-ap-field__copy {
	margin-top: 0.5rem;
}

/* Browser-autofilled, not yet confirmed. */
.ssrp-ap-field.is-autofilled .ssrp-ap-field__input {
	border-color: #f59e0b;
	background: #fffbeb;
}
.ssrp-ap-field__autofill-note {
	margin: 0.375rem 0 0;
	font-size: 0.8125rem;
	color: #92400e;
}

/* Field just filled from the NPI registry. */
.ssrp-ap-field.is-suggested .ssrp-ap-field__input,
.ssrp-ap-field.is-suggested .ssrp-ap-field__radio input:checked + span {
	box-shadow: 0 0 0 3px rgba(25, 149, 226, 0.25);
	transition: box-shadow 0.3s ease;
}

/* NPI lookup panel */
.ssrp-ap-npi__lookup {
	margin-top: 0.625rem;
}
.ssrp-ap-npi__panel {
	margin-top: 0.75rem;
	padding: 1rem 1.125rem;
	border: 1px solid var(--gray-200, #e5e7eb);
	border-radius: 14px;
	background: var(--gray-50, #f9fafb);
}
.ssrp-ap-npi__intro,
.ssrp-ap-npi__message {
	margin: 0;
	font-size: 0.875rem;
	color: var(--gray-700, #374151);
}
.ssrp-ap-npi__name {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-900, #111827);
}
.ssrp-ap-npi__list {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.ssrp-ap-npi__list label {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.9375rem;
	color: var(--gray-800, #1f2937);
	cursor: pointer;
}
.ssrp-ap-npi__list input {
	margin-top: 0.2rem;
	accent-color: #1995e2;
}
.ssrp-ap-npi__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}
.ssrp-ap-form .ssrp-ap-npi__apply {
	padding: 0.5rem 1.125rem;
	border: 1px solid #030712;
	border-radius: 999px;
	background: #030712;
	color: #fff;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	cursor: pointer;
}
.ssrp-ap-form .ssrp-ap-npi__apply:hover {
	background: #1f2937;
}

/* Profile sections autosave: quiet footer row. */
.ssrp-ap-form .ssrp-ap-section__actions--auto {
	min-height: 0;
	margin-top: 1rem;
	padding-top: 0;
	border-top: 0;
}
.ssrp-ap-section__feedback.is-success::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 0.375rem;
	border-radius: 50%;
	background: #1995e2;
}
.ssrp-ap-section__feedback.is-success {
	color: var(--gray-500, #6b7280);
}
.ssrp-ap-section__next {
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1995e2;
	cursor: pointer;
}
.ssrp-ap-section__next::after {
	content: " \2192";
}
.ssrp-ap-section__next:hover {
	color: #1572b0;
}

/* Hero: next step + done state */
.ssrp-ap-profile-hero__next {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.625rem 0.875rem;
	border: 0;
	border-radius: 999px;
	background: #1995e2;
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.ssrp-ap-profile-hero__next:hover {
	background: #1572b0;
}
.ssrp-ap-profile-hero__next-kicker {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	opacity: 0.8;
}
.ssrp-ap-profile-hero__next-label {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}
.ssrp-ap-profile-hero__next-arrow::before {
	content: "\2192";
}
.ssrp-ap-profile-hero__done {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: #fff;
}
.ssrp-ap-profile-hero__meter [hidden] {
	display: none !important;
}

/* Nudge card (dashboard, order received) */
.ssrp-ap-nudge {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 1.5rem;
	margin: 0 0 1.5rem;
	padding: 1.5rem 1.75rem;
	border-radius: var(--radius-outer, 24px);
	background: #030712;
	color: #fff;
	font-family: var(--font-primary, Barlow, sans-serif);
}
.ssrp-ap-nudge__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--gray-300, #d1d5db);
}
.ssrp-ap-nudge__icon {
	width: 12px;
	height: 12px;
	background-color: #1995e2;
	-webkit-mask: var(--icon-hexagon-mask) center / contain no-repeat;
	mask: var(--icon-hexagon-mask) center / contain no-repeat;
}
.ssrp-ap-nudge__title {
	margin: 0.5rem 0 0;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.2;
	color: #fff;
}
.ssrp-ap-nudge__text {
	margin: 0.375rem 0 0;
	font-size: 0.9375rem;
	color: var(--gray-400, #9ca3af);
}
.ssrp-ap-nudge__meter {
	grid-column: 1 / -1;
	order: 3;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	overflow: hidden;
}
.ssrp-ap-nudge__meter span {
	display: block;
	height: 100%;
	background: #1995e2;
}
.ssrp-ap-nudge__cta {
	display: inline-flex;
	align-items: center;
	padding: 0.625rem 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ssrp-ap-nudge__cta:hover {
	background: #fff;
	color: #030712 !important;
}
@media (max-width: 640px) {
	.ssrp-ap-nudge {
		grid-template-columns: 1fr;
	}
	.ssrp-ap-nudge__cta {
		justify-self: start;
	}
}
.ssrp-ap-form .ssrp-ap-npi__list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ssrp-ap-form .ssrp-ap-npi__list li::marker,
.ssrp-ap-form .ssrp-ap-npi__list li::before {
	content: none;
}

/* Login email: explicit Save / Cancel under the field (after its help
   text), shown only while the value differs from the saved one. */
.ssrp-ap-field[data-no-autosave] .ssrp-ap-field__help { order: 1; }
.ssrp-ap-field[data-no-autosave] .ssrp-ap-field__explicit { order: 2; }
.ssrp-ap-field[data-no-autosave] .ssrp-ap-field__explicit-status { order: 3; }
.ssrp-ap-field[data-no-autosave] .ssrp-ap-field__error { order: 4; }
.ssrp-ap-field__explicit {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.25rem;
}
.ssrp-ap-field__explicit[hidden] {
	display: none;
}
.ssrp-ap-form .ssrp-ap-field__explicit-save {
	padding: 0.5rem 1rem;
	border: 1px solid #030712;
	border-radius: 999px;
	background: #030712;
	color: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	cursor: pointer;
}
.ssrp-ap-form .ssrp-ap-field__explicit-save:hover {
	background: #1f2937;
}
.ssrp-ap-form .ssrp-ap-field__explicit-save[disabled] {
	opacity: 0.6;
	cursor: default;
}
.ssrp-ap-form .ssrp-ap-field__explicit-cancel {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-500, #6b7280);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.ssrp-ap-field__explicit-status {
	margin: 0;
	font-size: 0.8125rem;
	color: #1995e2;
}
.ssrp-ap-field__explicit-status:empty {
	display: none;
}

/* "Last reviewed" note (Dietary & Medical, Emergency Contact). */
.ssrp-ap-review {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	background: var(--gray-50, #f9fafb);
	font-size: 0.875rem;
	color: var(--gray-600, #4b5563);
}
.ssrp-ap-review.is-stale {
	background: #eff8fe;
	color: var(--gray-800, #1f2937);
}
.ssrp-ap-review__ask {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	font-weight: 600;
}
.ssrp-ap-form .ssrp-ap-review__confirm {
	padding: 0.375rem 0.875rem;
	border: 1px solid #1995e2;
	border-radius: 999px;
	background: #fff;
	color: #1572b0;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	cursor: pointer;
}
.ssrp-ap-form .ssrp-ap-review__confirm:hover {
	background: #1995e2;
	color: #fff;
}

/* ─── Slider ("dimmer") — e.g. Practice Model: Insurance ↔ Cash pay ─── */
.ssrp-ap-range { display: flex; flex-direction: column; gap: 0.375rem; }
.ssrp-ap-range__ends {
	display: flex;
	justify-content: space-between;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gray-600, #4b5563);
}
/* Drawn by hand: the theme sets appearance:none on inputs, which hides
   the native track. --fill is the share toward the right end. */
.ssrp-ap-range__input {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 1.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	--fill: 50%;
}
.ssrp-ap-range__input::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--ap-accent, #1995e2) var(--fill), var(--gray-200, #e5e7eb) var(--fill));
}
.ssrp-ap-range__input::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: var(--gray-200, #e5e7eb);
}
.ssrp-ap-range__input::-moz-range-progress {
	height: 6px;
	border-radius: 999px;
	background: var(--ap-accent, #1995e2);
}
.ssrp-ap-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -8px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ap-accent, #1995e2);
	box-shadow: 0 1px 3px rgba(3, 7, 18, 0.2);
}
.ssrp-ap-range__input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ap-accent, #1995e2);
	box-shadow: 0 1px 3px rgba(3, 7, 18, 0.2);
}
.ssrp-ap-range__input:focus-visible { outline: 2px solid var(--ap-accent, #1995e2); outline-offset: 4px; border-radius: 4px; }
.ssrp-ap-range__readout {
	font-size: 0.875rem;
	color: var(--gray-900, #111827);
}
/* Untouched: muted thumb + prompt, so the midpoint never reads as an answer. */
.ssrp-ap-range.is-unset .ssrp-ap-range__input { --fill: 0%; }
.ssrp-ap-range.is-unset .ssrp-ap-range__input::-webkit-slider-thumb { border-color: var(--gray-400, #9ca3af); }
.ssrp-ap-range.is-unset .ssrp-ap-range__input::-moz-range-thumb { border-color: var(--gray-400, #9ca3af); }
.ssrp-ap-range.is-unset .ssrp-ap-range__input::-moz-range-progress { background: transparent; }
.ssrp-ap-range.is-unset .ssrp-ap-range__readout { color: var(--gray-500, #6b7280); font-style: italic; }

/* "Did you mean …?" under "Other" text boxes */
.ssrp-ap-suggest {
	margin-top: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}
.ssrp-ap-suggest[hidden] {
	display: none;
}
.ssrp-ap-suggest__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--gray-200, #e5e7eb);
	border-radius: 10px;
	background: var(--gray-50, #f9fafb);
	font-size: 0.875rem;
	color: var(--gray-700, #374151);
}
.ssrp-ap-suggest__row strong {
	color: var(--gray-900, #111827);
}
.ssrp-ap-suggest__apply,
.ssrp-ap-suggest__dismiss {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1995e2;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	box-shadow: none;
}
.ssrp-ap-suggest__dismiss {
	font-weight: 400;
	color: var(--gray-500, #6b7280);
}
.ssrp-ap-suggest__apply:hover {
	color: #1572b0;
}

/* "Use my mailing address" result note */
.ssrp-ap-field__copy-note {
	margin: 0.375rem 0 0;
	font-size: 0.8125rem;
	color: var(--gray-600, #4b5563);
}
.ssrp-ap-field__copy-note .ssrp-ap-field__copy {
	display: inline;
	margin: 0;
	font-size: 0.8125rem;
}


/* Provider Listing callout (top of the Practice section) */
.ssrp-ap-listing-link {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.125rem;
	border: 1px solid #cfe6f7;
	border-radius: 14px;
	background: #f2f9fe;
	font-family: var(--font-primary, Barlow, sans-serif);
}
.ssrp-ap-listing-link p { margin: 0; }
.ssrp-ap-listing-link__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--gray-900, #111827);
}
.ssrp-ap-listing-link__icon {
	width: 12px;
	height: 12px;
	background-color: #1995e2;
	-webkit-mask: var(--icon-hexagon-mask) center / contain no-repeat;
	mask: var(--icon-hexagon-mask) center / contain no-repeat;
}
.ssrp-ap-listing-link__text,
.ssrp-ap-listing-link__fine {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--gray-700, #374151);
}
.ssrp-ap-listing-link__fine { font-size: 0.8125rem; color: var(--gray-600, #4b5563); }
.ssrp-ap-listing-link__toggle {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--gray-900, #111827);
	cursor: pointer;
}
.ssrp-ap-listing-link__toggle input { margin-top: 0.2rem; width: 1rem; height: 1rem; accent-color: #1995e2; }
.ssrp-ap-listing-link__result { font-size: 0.875rem; font-weight: 600; color: #0f4c75; }
.ssrp-ap-listing-link__result[hidden] { display: none; }
.ssrp-ap-listing-link__open {
	align-self: flex-start;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1995e2;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ssrp-ap-listing-link[hidden] { display: none; }
