/* <pc-webinar-signup-form>: shared guest signup form (public webinar page + Pro Care popup).
   Moved from WebinarOverview.css (.rd-webinar-overview-form*) when the form became a component. */

.rd-webinar-signup-form {
	margin-bottom: 0;
}

.rd-webinar-signup-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--rd-spacing-md);
}

.rd-webinar-signup-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: var(--rd-spacing-md);
}

.rd-webinar-signup-form__field label {
	font-weight: 700;
	color: var(--rd-font-dark);
	font-size: var(--rd-fontsize-4);
}

.rd-webinar-signup-form__field input,
.rd-webinar-signup-form__select select {
	height: 44px;
	padding: 0 var(--rd-spacing-md);
	border: 1px solid var(--rd-gray-300);
	border-radius: var(--rd-borderradius-border-md);
	font-size: 15px;
	color: var(--rd-font-dark);
	box-sizing: border-box;
	width: 100%;
}

.rd-webinar-signup-form__field input:focus,
.rd-webinar-signup-form__select select:focus {
	outline: none;
	border-color: var(--rd-primary-active);
}

/* Single bookable date: shown as text instead of a select. */
.rd-webinar-signup-form__static {
	display: flex;
	align-items: center;
	gap: var(--rd-spacing-x-sm);
	min-height: 44px;
	font-size: 15px;
	color: var(--rd-font-dark);
}

/* Honeypot: keep in DOM + focusable-by-bots but invisible to humans. */
.rd-webinar-signup-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rd-webinar-signup-form__consent {
	display: flex;
	align-items: flex-start;
	gap: var(--rd-spacing-x-sm);
	margin: var(--rd-spacing-md) 0;
	color: var(--rd-font-dark);
	font-size: var(--rd-fontsize-4);
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
}

/* form./label. qualifiers: legacy landing-page CSS (whitelabel style.css
   ".webinar-mail-grid .webinar-form input/label") must not restyle the component. */
form.rd-webinar-signup-form label.rd-webinar-signup-form__consent {
	font-weight: 400;
}

form.rd-webinar-signup-form .rd-webinar-signup-form__field label {
	font-weight: 700;
}

form.rd-webinar-signup-form .rd-webinar-signup-form__consent input.rd-checkbox {
	width: 18px;
	min-width: 18px;
	height: 18px;
	padding: 0;
	box-sizing: border-box;
	margin-top: 2px;
	flex: 0 0 18px;
	accent-color: var(--rd-primary-active);
}

.rd-webinar-signup-form__consent span {
	flex: 1;
}

.rd-webinar-signup-form__privacy-note {
	margin: 0;
	padding: var(--rd-spacing-x-big) var(--rd-spacing-md) 0;
	border-top: 1px solid var(--rd-gray-300);
	color: var(--rd-gray-500);
	font-size: var(--rd-fontsize-4);
	line-height: 20px;
	text-align: center;
}

.rd-webinar-signup-form__privacy-note a {
	color: var(--rd-secondary-active);
	text-decoration: none;
}

.rd-webinar-signup-form__privacy-note a:hover {
	text-decoration: underline;
}

/* Validation message under the field it belongs to; the control itself turns red. */
.rd-webinar-signup-form__field-error {
	color: var(--rd-error-hover);
	font-size: var(--rd-fontsize-4);
}

/* The `:not([type="checkbox"])` is not a filter, it is specificity: webinar.css:145
   (`.rd-webinar-landingpage .webinar-form form input:not([type="checkbox"])`) is 0,3,2 and
   would otherwise keep the grey border on an invalid input. Don't "simplify" it away. */
form.rd-webinar-signup-form .rd-webinar-signup-form__field.is-invalid input:not([type="checkbox"]),
form.rd-webinar-signup-form .rd-webinar-signup-form__field.is-invalid .rd-select select {
	border-color: var(--rd-error-hover);
}

/* Errors the backend reports (session full, network) — no field to attach them to. */
.rd-webinar-signup-form__error {
	color: var(--rd-error-hover);
	font-size: var(--rd-fontsize-4);
	margin-bottom: var(--rd-spacing-md);
}

.rd-webinar-signup-form__submit {
	margin-top: var(--rd-spacing-md);
}

.rd-webinar-signup-form__success {
	text-align: center;
	display: grid;
	justify-items: center;
}

.rd-webinar-signup-form__success-icon {
	width: 128px;
	height: 128px;
	margin-bottom: var(--rd-spacing-md);
}

@media (max-width: 860px) {
	.rd-webinar-signup-form__row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.rd-webinar-signup-form__field {
		margin-bottom: var(--rd-spacing-x-big);
	}

	.rd-webinar-signup-form__row {
		gap: 0;
	}
}
