/*
 * Styled Gravity Forms ("exl-form").
 * A few rules use !important because style.css has older, very specific Gravity Forms rules. PHP: includes/forms.php. Stepper: js/forms.js.
 * Everything is scoped to .exl-form so other forms on the site are not touched.
 * Teal values match css/events.css (WCAG AA on white).
 */

.exl-form,
.exl-form_wrapper {
	--exl-f-teal: #17707c;
	--exl-f-teal-dark: #0f5964;
	--exl-f-btn: #56798a;       /* submit button: same as the menu home icon (owner 2026-11-18) */
	--exl-f-btn-hover: #97ced3;
	--exl-f-tint: #e3f2f4;
	--exl-f-line: #c3ccd0;
	/* Read by the Stripe payment box (gform_stripe_elements_style defaults). */
	--gf-ctrl-border-color: #c3ccd0;
	--gf-ctrl-border-color-focus: #17707c;
	--gf-ctrl-border-width: 1px;
	--gf-ctrl-border-style: solid;
	--gf-ctrl-color: #222;
	--gf-color-primary: #17707c;
}

.exl-form_wrapper.gform_wrapper,
.exl-form .gform_wrapper { margin: 28px 0; }

/* Section headings */
.exl-form .exl-form-heading {
	grid-column: 1 / -1;
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 12px 0 0;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--exl-f-tint);
	color: var(--exl-f-teal);
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}
.exl-form .exl-form-heading:first-child { margin-top: 0; }
.exl-form .exl-form-heading::before {
	content: "";
	flex: 0 0 30px;
	height: 30px;
	background-color: currentColor;
	-webkit-mask: var(--exl-f-icon) center / contain no-repeat;
	mask: var(--exl-f-icon) center / contain no-repeat;
}
.exl-form .exl-form-heading--user { --exl-f-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.exl-form .exl-form-heading--ticket { --exl-f-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 15l11-11 3 3a2 2 0 0 0 2.5 2.5L21 10 10 21l-.5-.5A2 2 0 0 0 7 18a2 2 0 0 0-2.5-2.5z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E"); }
.exl-form .exl-form-heading--card { --exl-f-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M15 15h3'/%3E%3C/svg%3E"); }

/* Labels and inputs */
.exl-form .gform_fields { row-gap: 18px; }
.exl-form .gfield_label,
.exl-form .gform-field-label--type-sub-group { font-size: 16px; font-weight: 700; color: #222; }
.exl-form .gfield_required { color: #c02b0a; }
.exl-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]):not(.ginput_total),
.exl-form select,
.exl-form textarea {
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--exl-f-line);
	border-radius: 6px;
	background-color: #fff;
	color: #222;
	font-size: 16px;
}
.exl-form input:focus,
.exl-form select:focus,
.exl-form textarea:focus { border-color: var(--exl-f-teal); outline: 2px solid var(--exl-f-teal); outline-offset: 0; }
.exl-form ::placeholder { color: #6b7478; opacity: 1; }

/* Checkboxes */
.exl-form input[type="checkbox"],
.exl-form input[type="radio"] { width: 20px; height: 20px; margin-top: 0; accent-color: var(--exl-f-teal); }
.exl-form .gchoice { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.exl-form .gfield .gchoice label { font-size: 16px; line-height: 1.4; }
.exl-form .gfield .ginput_container input.medium,
.exl-form .gfield .ginput_container select.medium { width: 80% !important; }

/* Quantity and total */
.exl-form .exl-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--exl-f-line); border-radius: 6px; overflow: hidden; background: #f3f5f6; }
.exl-form .exl-qty input[type="number"] { width: 64px !important; min-height: 40px; border: 0 !important; border-radius: 0 !important; background: #fff !important; text-align: center; -moz-appearance: textfield; }
.exl-form .exl-qty input::-webkit-outer-spin-button,
.exl-form .exl-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.exl-form .exl-qty__btn { width: 40px; padding: 0; border: 0; background: transparent; color: #444; font-size: 22px; line-height: 1; cursor: pointer; }
.exl-form .exl-qty__btn:hover,
.exl-form .exl-qty__btn:focus-visible { background: var(--exl-f-tint); color: var(--exl-f-teal-dark); }
.exl-form .gfield--type-quantity { align-self: center; }
.exl-form .gfield--type-quantity:has(+ .gfield--type-total) { border-right: 1px solid var(--exl-f-line); }
.exl-form .gfield--type-total .ginput_total { width: 100% !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--exl-f-teal) !important; font-size: 34px !important; font-weight: 700 !important; line-height: 1.2; text-transform: none !important; }

/* Submit: same colours as the event "Register Here" button (css/events.css .exl-event__register). */
.exl-form .gform_wrapper .gform_button,
.exl-form_wrapper.gform_wrapper .gform_button { background-color: var(--exl-f-btn) !important; color: #fff !important; }
.exl-form .gform_wrapper .gform_button:hover,
.exl-form .gform_wrapper .gform_button:focus,
.exl-form_wrapper.gform_wrapper .gform_button:hover,
.exl-form_wrapper.gform_wrapper .gform_button:focus { background-color: var(--exl-f-btn-hover) !important; color: #fff !important; }

@media (max-width: 640px) {
	.exl-form .exl-form-heading { font-size: 19px; }
	.exl-form .gfield--type-quantity:has(+ .gfield--type-total) { border-right: 0; }
	.exl-form .gfield--type-total .ginput_total { font-size: 28px !important; }
	.exl-form .gfield .ginput_container input.medium,
	.exl-form .gfield .ginput_container select.medium { width: 100% !important; }
}

/*
 * Thank-you message after ANY Gravity Form is sent (site-wide, not only .exl-form):
 * a clear success box so people see that the form went through.
 */
.gform_confirmation_message {
	position: relative;
	margin: 24px 0 32px;
	padding: 18px 22px 18px 62px;
	border: 1px solid #b9dde2;
	border-left: 5px solid #17707c;
	border-radius: 6px;
	background: #e3f2f4;
	color: #222;
	font-size: 17px;
	line-height: 1.55;
}
.gform_confirmation_message::before {
	content: "";
	position: absolute;
	top: 19px;
	left: 20px;
	width: 28px;
	height: 28px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231a7f37'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.gform_confirmation_message p { margin: 0 0 10px; }
.gform_confirmation_message > :last-child { margin-bottom: 0; }
/* Bold first line ("Thanks for registering!") stands out. Only bold text, so a one-paragraph message is not all enlarged. */
.gform_confirmation_message > :first-child strong,
.gform_confirmation_message > strong:first-child,
.gform_confirmation_message > :is(h2, h3, h4):first-child {
	margin-top: 0;
	color: #0f5964;
	font-size: 20px;
	font-weight: 700;
}
.gform_confirmation_message a { color: #0f5964; text-decoration: underline; }
.gform_confirmation_message a:hover,
.gform_confirmation_message a:focus { color: #17707c; }

@media (max-width: 640px) {
	.gform_confirmation_message { padding: 16px 16px 16px 54px; font-size: 16px; }
	.gform_confirmation_message::before { top: 17px; left: 16px; width: 26px; height: 26px; }
	.gform_confirmation_message > :first-child strong,
	.gform_confirmation_message > strong:first-child,
	.gform_confirmation_message > :is(h2, h3, h4):first-child { font-size: 18px; }
}

/*
 * Date picker (Gravity Forms calendar): the month/year arrows are ".nav.btn" buttons, so they get the
 * theme's slate .btn background, but Gravity Forms keeps its grey arrow icon, which was only visible
 * on hover. White arrow on the slate button, black on hover/focus (the button turns light teal). Nov 2026.
 */
.gform-datepicker-calendar .nav.btn:is(.prev, .next)::before,
.gform-datepicker-calendar .nav.btn:is(.prev, .next) {
	color: #fff !important;
}
.gform-datepicker-calendar .nav.btn:is(.prev, .next):is(:hover, :focus-visible)::before,
.gform-datepicker-calendar .nav.btn:is(.prev, .next):is(:hover, :focus-visible) {
	color: #000 !important;
}
