/*
GDV Aroma Blog — front-end notify-me form.
Modal chrome (dialog, backdrop, close button, body padding) is theme-owned;
this file is the form content inside it.
*/

.gdv-ab-form fieldset {
	/* Reset the browser's default fieldset border and padding. Every bit of
	spacing in this file is deliberate, not inherited. */
	border: 0;
	margin: 0;
	padding: 0;
}

.gdv-ab-notify-form__title {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 20px;
	padding: 0 40px 20px 0;
	border: 0;
	border-bottom: 1px solid var(--grey);
}

.gdv-ab-form__field {
	margin-bottom: 22px;
}

.gdv-ab-form__field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.gdv-ab-form__field--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.gdv-ab-form__field--checkbox input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 2px;
}

.gdv-ab-form__field--checkbox label {
	display: inline;
	font-weight: normal;
	margin-left: 0;
}

.gdv-ab-form__field input[type="email"] {
	width: 100%;
	padding: 13px 14px;
	font-size: 1rem;
	border: 1px solid var(--grey);
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gdv-ab-form__field input[type="email"]:focus {
	outline: none;
	border-color: var(--yellow);
	box-shadow: 0 0 0 3px rgba(225, 173, 78, 0.25);
}

.gdv-ab-form__field--error input {
	border-color: var(--red);
}

.gdv-ab-field-error {
	display: block;
	color: var(--red);
	font-size: 0.85rem;
	margin-top: 6px;
}

.gdv-ab-required {
	color: var(--red);
}

.gdv-ab-privacy-hint {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--grey-text);
}

/* :not([hidden]) matters throughout this file: a bare display: rule would
outrank the browser's default [hidden] rule and the element would never
actually hide (this bit us once already on .gdv-ab-notify-success). */
.gdv-ab-form__error:not([hidden]) {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fdecea;
	border: 1px solid #f3c6c4;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 22px;
	color: #a83a3a;
	font-size: 0.92rem;
	line-height: 1.5;
}

.gdv-ab-form__error i {
	font-size: 1.1rem;
	line-height: 1.5;
	flex-shrink: 0;
}

.gdv-ab-form__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gdv-ab-mandatory-label {
	display: block;
	text-align: center;
	font-size: 0.8rem;
	color: var(--grey-text);
}

.gdv-ab-notify-success:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: 18px;
	text-align: center;
}

.gdv-ab-notify-success__icon {
	font-size: 2.75rem;
	line-height: 1;
	color: var(--green);
}

.gdv-ab-notify-success__message {
	font-size: 1.1rem;
	line-height: 1.5;
	margin: 0;
}

.gdv-ab-notify-status {
	font-size: 0.85rem;
	margin-top: 6px;
	color: var(--grey-text);
}

/* The card-embedded "you're on the list" note (member flow): this is the
only thing on the card confirming the sign-up worked, so it gets normal
body-copy size rather than .fe-blog-membership's smaller secondary-note size. */
.gdv-ab-notify-confirmed {
	font-size: 1rem;
}
