/* Bring a Friend form, page /bring-a-friend/ (sandbox plugin wbd-bring-a-friend.php).
   Same surfaces as the Hospital Teams form: participant cards are sand with cream
   inputs, the payment card is cream with sand inputs.
   Note: wbd.css zeroes margin-bottom on every <p>, so spacing below uses padding. */

.wbd-baf-card {
	margin: 0;
	min-width: 0;
	border: 1px solid var(--wbd-line);
	border-radius: 24px;
	padding: 24px;
	background: var(--wbd-cream);
}
.wbd-baf-card--person { background: var(--wbd-sand); }
@media (min-width: 640px) {
	.wbd-baf-card { padding: 32px; }
}

.wbd-baf-legend {
	padding: 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wbd-coral);
}

.wbd-baf-label {
	display: block;
	padding-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wbd-muted);
}

/* Radio cards: payment, method, invoice type */
.wbd-baf-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--wbd-line);
	border-radius: 12px;
	background: var(--wbd-sand);
	font-size: 14px;
	line-height: 1.45;
	color: rgba(0, 37, 85, 0.8);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.wbd-baf-choice input { margin-top: 3px; flex: none; accent-color: var(--wbd-coral); }
.wbd-baf-choice:hover { border-color: var(--wbd-sage); }
.wbd-baf-choice:has(input:checked) {
	border-color: var(--wbd-coral);
	background: var(--wbd-coral-soft);
	color: var(--wbd-ink);
}

/* Registration type cards: name, then old price struck and new price */
.wbd-baf-type {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 10px;
	row-gap: 2px;
	align-items: start;
	padding: 14px 16px;
	border: 1px solid var(--wbd-line);
	border-radius: 12px;
	background: var(--wbd-cream);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.wbd-baf-type input { grid-row: span 2; margin-top: 3px; accent-color: var(--wbd-coral); }
.wbd-baf-type__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wbd-ink);
}
.wbd-baf-type__price {
	font-size: 14px;
	line-height: 1.4;
	color: var(--wbd-muted);
	font-variant-numeric: tabular-nums;
}
.wbd-baf-type__price strong { color: var(--wbd-coral); font-weight: 700; }
.wbd-baf-type:hover { border-color: var(--wbd-sage); }
.wbd-baf-type:has(input:checked) {
	border-color: var(--wbd-coral);
	box-shadow: 0 0 0 1px var(--wbd-coral);
}

/* Live price summary */
.wbd-baf-summary {
	border-radius: 24px;
	padding: 8px 24px 20px;
	background: var(--wbd-ink);
	color: var(--wbd-cream);
}
@media (min-width: 640px) {
	.wbd-baf-summary { padding: 12px 32px 24px; }
}
.wbd-baf-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(245, 242, 251, 0.14);
	font-size: 15px;
	line-height: 1.4;
}
.wbd-baf-summary__who { font-weight: 600; }
.wbd-baf-summary__type {
	display: block;
	font-weight: 400;
	font-size: 14px;
	color: rgba(245, 242, 251, 0.7);
}
.wbd-baf-summary__type[hidden] { display: none; }
.wbd-baf-summary__price {
	white-space: nowrap;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.wbd-baf-summary__price s { color: rgba(245, 242, 251, 0.55); font-size: 14px; }
.wbd-baf-summary__price strong { font-weight: 700; }
.wbd-baf-summary__total { border-bottom: 0; padding-bottom: 4px; font-size: 18px; }
.wbd-baf-summary__total strong { color: var(--wbd-lime); font-size: 22px; }
.wbd-baf-summary__saving {
	font-size: 14px;
	text-align: right;
	color: rgba(245, 242, 251, 0.75);
}
.wbd-baf-summary__saving strong { color: var(--wbd-lime); }

/* Rows and labels toggled with the hidden attribute: the flex/block rules above
   would otherwise win over the browser's [hidden] rule. */
.wbd-baf-summary [hidden],
.wbd-baf-hint [hidden] { display: none !important; }

/* What is still missing, next to the inactive submit button */
.wbd-baf-hint {
	font-size: 13px;
	line-height: 1.45;
	color: var(--wbd-muted);
}
@media (min-width: 640px) {
	.wbd-baf-hint { font-size: 14px; }
}
