/* TMB Webinar Management — public registration form
 * Best-effort visual match to the existing WS Form design (see the two
 * screenshots this was built from) — exact brand fonts/colours may need
 * fine-tuning once compared side-by-side against the live site.
 */

.tmbwm-registration {
	--tmbwm-reg-card-bg: #f2ede6;
	--tmbwm-reg-navy: #1b2a52;
	--tmbwm-reg-navy-muted: #4a5578;
	--tmbwm-reg-input-bg: #ffffff;
	--tmbwm-reg-input-border: #dcd6cc;
	--tmbwm-reg-placeholder: #7f9bd1;
	--tmbwm-reg-grey-btn: #bcbcbc;
	--tmbwm-reg-grey-btn-text: #14141a;
	--tmbwm-reg-accent: #f0b91f;
	--tmbwm-reg-accent-text: #1b1b1b;
	--tmbwm-reg-required: #d33;
	--tmbwm-reg-radius: 8px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 460px;
}

.tmbwm-registration .tmbwm-reg-card {
	background: var(--tmbwm-reg-card-bg);
	border-radius: 12px;
	padding: 2em;
}

.tmbwm-registration .tmbwm-reg-heading {
	font-family: "Baloo 2", "Comic Sans MS", -apple-system, sans-serif;
	font-weight: 700;
	font-size: 1.9em;
	color: var(--tmbwm-reg-navy);
	margin: 0 0 0.4em;
	text-transform: lowercase;
}

.tmbwm-registration .tmbwm-reg-datetime {
	font-weight: 700;
	font-size: 1.3em;
	color: var(--tmbwm-reg-navy);
	margin: 0 0 0.15em;
}

.tmbwm-registration .tmbwm-reg-duration {
	font-size: 0.9em;
	color: var(--tmbwm-reg-navy-muted);
	margin: 0 0 1.5em;
}

.tmbwm-registration .tmbwm-reg-error {
	background: #fdecea;
	border: 1px solid var(--tmbwm-reg-required);
	color: #7a1f1f;
	padding: 0.75em 1em;
	border-radius: var(--tmbwm-reg-radius);
	margin-bottom: 1em;
	font-size: 0.9em;
}

.tmbwm-registration .tmbwm-reg-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tmbwm-registration .tmbwm-reg-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9em;
}

.tmbwm-registration .tmbwm-reg-field {
	margin-bottom: 0.9em;
}

.tmbwm-registration .tmbwm-reg-field > label {
	display: block;
	font-weight: 600;
	color: var(--tmbwm-reg-navy);
	margin-bottom: 0.4em;
	font-size: 0.95em;
}

.tmbwm-registration input[type="text"],
.tmbwm-registration input[type="email"],
.tmbwm-registration input[type="tel"],
.tmbwm-registration select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.85em 1em;
	background: var(--tmbwm-reg-input-bg);
	border: 1px solid var(--tmbwm-reg-input-border);
	border-radius: var(--tmbwm-reg-radius);
	font-size: 1em;
	color: var(--tmbwm-reg-navy);
}

.tmbwm-registration input::placeholder {
	color: var(--tmbwm-reg-placeholder);
}

.tmbwm-registration select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231b2a52' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1em center;
	padding-right: 2.5em;
}

.tmbwm-registration .tmbwm-reg-required {
	color: var(--tmbwm-reg-required);
}

.tmbwm-registration .tmbwm-reg-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 1.5em;
}

.tmbwm-registration .tmbwm-reg-radio-group-vertical {
	flex-direction: column;
	gap: 0.7em;
}

.tmbwm-registration .tmbwm-reg-radio {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.95em;
	color: var(--tmbwm-reg-navy);
	cursor: pointer;
}

.tmbwm-registration .tmbwm-reg-radio input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--tmbwm-reg-navy);
}

.tmbwm-registration .tmbwm-reg-checkbox-field label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	font-size: 0.9em;
	color: var(--tmbwm-reg-navy);
	cursor: pointer;
}

.tmbwm-registration .tmbwm-reg-checkbox-field input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 0.1em;
	accent-color: var(--tmbwm-reg-navy);
}

.tmbwm-registration .tmbwm-reg-btn {
	display: inline-block;
	width: 100%;
	padding: 0.9em 1em;
	border: none;
	border-radius: var(--tmbwm-reg-radius);
	font-weight: 700;
	font-size: 1em;
	cursor: pointer;
	text-align: center;
}

.tmbwm-registration .tmbwm-reg-btn-primary {
	background: var(--tmbwm-reg-accent);
	color: var(--tmbwm-reg-accent-text);
	margin-top: 0.5em;
}

.tmbwm-registration .tmbwm-reg-btn-primary:disabled {
	background: var(--tmbwm-reg-grey-btn);
	color: var(--tmbwm-reg-grey-btn-text);
	cursor: not-allowed;
}

.tmbwm-registration .tmbwm-reg-btn-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9em;
	margin-top: 1.5em;
}

.tmbwm-registration .tmbwm-reg-btn-secondary {
	background: var(--tmbwm-reg-grey-btn);
	color: var(--tmbwm-reg-grey-btn-text);
}

.tmbwm-registration .tmbwm-reg-btn-accent {
	background: var(--tmbwm-reg-accent);
	color: var(--tmbwm-reg-accent-text);
}

.tmbwm-registration .tmbwm-reg-success {
	text-align: center;
	color: var(--tmbwm-reg-navy);
	font-weight: 600;
	padding: 1em 0;
}

.tmbwm-registration .tmbwm-reg-footer-links {
	margin-top: 1.5em;
	font-size: 0.85em;
}

.tmbwm-registration .tmbwm-reg-footer-links a {
	color: var(--tmbwm-reg-navy);
	text-decoration: underline;
}
