/* Community Access page. The call-to-action matches the booking form's yellow submit button. */
#mainbody a.tui-cm-open { display: inline-block; margin: 12px 0 0; padding: 18px 52px; line-height: 1.2; border: 0; border-radius: 4px; background: #f3cb47; box-shadow: 0 10px 24px rgba( 243, 203, 71, 0.35 ); text-transform: uppercase; text-decoration: none; font: inherit; font-size: 18px; color: #1B115C; cursor: pointer; transition: background 0.2s, color 0.2s; }
#mainbody a.tui-cm-open:hover, #mainbody a.tui-cm-open:focus-visible { background: #1B115C; color: #fff; }
@media ( max-width: 640px ) {
	#mainbody a.tui-cm-open { display: block; padding-left: 20px; padding-right: 20px; }
}

/* Pop-up form. Field look copies the booking form (tui-bookings.css): the theme styles '#mainbody input…', so these are #mainbody-prefixed too. */
body:has( dialog.tui-cm[open] ) { overflow: hidden; }
#mainbody dialog.tui-cm { box-sizing: border-box; width: calc( 100% - 32px ); max-width: 760px; max-height: calc( 100dvh - 32px ); margin: auto; padding: 0 40px 32px; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 24px 64px rgba( 0, 0, 0, 0.35 ); text-align: left; font-size: 16px; line-height: 1.5; color: #333; }
#mainbody dialog.tui-cm::backdrop { background: rgba( 27, 17, 92, 0.6 ); }
#mainbody dialog.tui-cm [hidden] { display: none !important; }
#mainbody .tui-cm-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; margin: 0 -40px; padding: 12px 16px 4px; background: #fff; }
#mainbody .tui-cm-close { width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #f9f9f9; font: inherit; font-size: 28px; line-height: 1; color: #1B115C; cursor: pointer; }
#mainbody .tui-cm-close:hover, #mainbody .tui-cm-close:focus-visible { background: #1B115C; color: #fff; }
#mainbody .tui-cm-title { margin: 0 0 16px; padding: 0; text-transform: uppercase; font-family: 'AmbitRegularSemiBold', sans-serif; font-size: 28px; line-height: 1.2; color: #1B115C; }
#mainbody dialog.tui-cm p { margin: 0 0 12px; }
#mainbody dialog.tui-cm .tui-cm-welcome { font-size: 20px; color: #1B115C; }
#mainbody dialog.tui-cm .tui-cm-note { font-size: 14px; color: #666; }
#mainbody dialog.tui-cm a { color: #1B115C; text-decoration: underline; }
#mainbody .tui-cm-section { margin: 28px 0 0; padding: 0; }
#mainbody .tui-cm-section-title { margin: 0 0 8px; padding: 0 0 8px; border-bottom: 2px solid #f3cb47; text-transform: uppercase; font-family: 'AmbitRegularSemiBold', sans-serif; font-size: 20px; line-height: 1.3; color: #1B115C; }
#mainbody .tui-cm-field { margin: 0 0 18px; min-width: 0; }
#mainbody .tui-cm-field > label:not(.tui-cm-option), #mainbody .tui-cm-other > label, #mainbody .tui-cm-field legend { display: block; margin: 0 0 8px; padding: 0; text-transform: uppercase; font-weight: 700; font-size: 15px; color: #555; }
#mainbody .tui-cm-field fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
#mainbody .tui-cm-req { color: #d63638; }
#mainbody dialog.tui-cm .tui-cm-hint { margin: -4px 0 8px; font-size: 14px; color: #777; }
#mainbody .tui-cm-form input[type=text], #mainbody .tui-cm-form input[type=email], #mainbody .tui-cm-form select, #mainbody .tui-cm-form textarea { box-sizing: border-box; width: 100%; max-width: none; min-height: 56px; margin: 0; padding: 14px 12px; line-height: 1.4; font-weight: 400; border: 1px solid #e2e2e2; border-radius: 3px; background: #f9f9f9; font: inherit; font-size: 16px; color: #333; }
#mainbody .tui-cm-form textarea { min-height: 120px; resize: vertical; }
#mainbody .tui-cm-form input:focus, #mainbody .tui-cm-form select:focus, #mainbody .tui-cm-form textarea:focus { border-color: #1B115C; outline: 2px solid rgba( 27, 17, 92, 0.2 ); outline-offset: 0; background: #fff; }
#mainbody .tui-cm-form [aria-invalid=true] { border-color: #d63638; }
#mainbody .tui-cm-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
#mainbody .tui-cm-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; text-transform: none; font-weight: 400; font-size: 16px; color: #333; cursor: pointer; }
#mainbody .tui-cm-option input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: #1B115C; }
#mainbody .tui-cm-other { margin: 12px 0 0; }
#mainbody .tui-cm-consent .tui-cm-option { font-size: 15px; color: #555; }
#mainbody dialog.tui-cm .tui-cm-error { margin: 6px 0 0; font-size: 14px; color: #d63638; }
#mainbody dialog.tui-cm .tui-cm-error-form { margin-bottom: 12px; }
#mainbody .tui-cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#mainbody .tui-cm button.tui-cm-submit { display: inline-block; margin: 12px 0 0; padding: 18px 52px; line-height: 1.2; border: 0; border-radius: 4px; background: #f3cb47; box-shadow: 0 10px 24px rgba( 243, 203, 71, 0.35 ); text-transform: uppercase; font: inherit; font-size: 18px; color: #1B115C; cursor: pointer; transition: background 0.2s, color 0.2s; }
#mainbody .tui-cm button.tui-cm-submit:hover, #mainbody .tui-cm button.tui-cm-submit:focus-visible { background: #1B115C; color: #fff; }
#mainbody .tui-cm button.tui-cm-submit[disabled] { opacity: 0.7; cursor: wait; }
#mainbody .tui-cm-confirm { outline: none; }
#mainbody dialog.tui-cm .tui-cm-newsletter-msg { margin-top: 16px; font-weight: 700; color: #1B115C; }
@media ( max-width: 640px ) {
	#mainbody dialog.tui-cm { width: calc( 100% - 16px ); max-height: calc( 100dvh - 16px ); padding: 0 20px 24px; }
	#mainbody .tui-cm-bar { margin: 0 -20px; padding: 8px 12px 4px; }
	#mainbody .tui-cm-title { font-size: 22px; }
	#mainbody .tui-cm-options { grid-template-columns: 1fr; }
	#mainbody .tui-cm button.tui-cm-submit { display: block; width: 100%; padding-left: 20px; padding-right: 20px; }
}
