/*
 * Brand settings (0.12.4). Change any of these in Elementor → Site Settings → Custom CSS, e.g.
 *   :root { --h24-btn-bg: #F0C846; --h24-btn-radius: 0; }
 * The defaults sit in :where(:root), which has no weight, so your own :root or body rule always wins.
 */
:where(:root) {
	--h24-btn-bg: #F0C846;          /* main button */
	--h24-btn-fg: #1a1a1a;
	--h24-btn-bg-hover: #1a1a1a;
	--h24-btn-fg-hover: #F0C846;
	--h24-alt-fg: #1a1a1a;          /* outline button */
	--h24-alt-border: #1a1a1a;
	--h24-alt-bg-hover: #1a1a1a;
	--h24-alt-fg-hover: #ffffff;
	--h24-btn-radius: 6px;
	--h24-btn-weight: 600;
	--h24-card-bg: #ffffff;
	--h24-card-border: rgba(0,0,0,.12);
}

/* Plugin buttons. !important only because the theme and Elementor style every <a> and <button>;
   the colours themselves come from the variables above, so they stay easy to change. */
.h24-cta, a.h24-cta, button.h24-cta {
	display: inline-block; cursor: pointer; padding: 11px 22px; font-size: 15px; line-height: 1.3;
	font-weight: var(--h24-btn-weight) !important; text-transform: none; text-decoration: none !important;
	border-radius: var(--h24-btn-radius) !important; box-shadow: none; white-space: normal; text-align: center;
	background: var(--h24-btn-bg) !important; color: var(--h24-btn-fg) !important; border: 1px solid var(--h24-btn-bg) !important;
	transition: background-color .15s, color .15s, border-color .15s;
}
.h24-cta:hover, .h24-cta:focus-visible { background: var(--h24-btn-bg-hover) !important; color: var(--h24-btn-fg-hover) !important; border-color: var(--h24-btn-bg-hover) !important; }
.h24-cta--alt, a.h24-cta--alt, button.h24-cta--alt { background: transparent !important; color: var(--h24-alt-fg) !important; border-color: var(--h24-alt-border) !important; }
.h24-cta--alt:hover, .h24-cta--alt:focus-visible { background: var(--h24-alt-bg-hover) !important; color: var(--h24-alt-fg-hover) !important; border-color: var(--h24-alt-bg-hover) !important; }
.h24-cta:focus-visible { outline: 2px solid var(--h24-btn-bg); outline-offset: 2px; }

.h24-app { --h24-border: rgba(128,128,128,.35); --h24-soft: rgba(128,128,128,.12); --h24-accent: #1d6fe0; margin: 1em 0; }
.h24-note { padding: 12px 0; }
.h24-top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.h24-top select { padding: 6px 10px; font-size: 16px; }
.h24-count { opacity: .75; }
.h24-reg { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 14px; border: 1px solid var(--h24-border, rgba(128,128,128,.35)); }
.h24-reg--yes { background: #e3f6e8; color: #14612b; border-color: #a9dcb8; }
.h24-reg--no { background: #f1f1f1; color: #555; }
.h24-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.h24-card { border: 1px solid var(--h24-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
/* Every photo (portrait or landscape) fits fully inside the same frame, never cropped. */
.h24-frame { aspect-ratio: 4 / 3; background: var(--h24-soft); display: flex; align-items: center; justify-content: center; }
.h24-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.h24-empty { opacity: .55; font-size: 14px; }
.h24-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.h24-meta { font-size: 13px; opacity: .8; line-height: 1.3; }
/* Upload-grid buttons: same brand variables (the modal sits outside .h24-app). */
.h24-app .h24-btn, .h24-overlay .h24-btn {
	display: inline-block; cursor: pointer; padding: 8px 16px; border-radius: var(--h24-btn-radius) !important; font-size: 14px; line-height: 1.3;
	text-transform: none; text-decoration: none; box-shadow: none; opacity: 1;
	border: 1px solid var(--h24-alt-border) !important; background: transparent !important; color: var(--h24-alt-fg) !important;
}
.h24-app .h24-btn:hover, .h24-overlay .h24-btn:hover { background: var(--h24-alt-bg-hover) !important; color: var(--h24-alt-fg-hover) !important; }
.h24-overlay .h24-btn.is-primary { background: var(--h24-btn-bg) !important; color: var(--h24-btn-fg) !important; border-color: var(--h24-btn-bg) !important; }
.h24-overlay .h24-btn.is-primary:hover { background: var(--h24-btn-bg-hover) !important; color: var(--h24-btn-fg-hover) !important; border-color: var(--h24-btn-bg-hover) !important; }
.h24-overlay .h24-btn[disabled] { opacity: .5; cursor: default; }
.h24-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99999; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 12px; }
.h24-modal { background: #fff; color: #222; width: 100%; max-width: 520px; border-radius: 10px; padding: 20px; box-sizing: border-box; }
.h24-modal h3 { margin: 0 0 12px; color: #222; }
.h24-field { margin-bottom: 12px; }
.h24-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.h24-field input[type=text], .h24-field select, .h24-field textarea { width: 100%; box-sizing: border-box; padding: 8px; font-size: 16px; }
.h24-field small { opacity: .7; }
.h24-preview { max-width: 100%; max-height: 200px; display: block; margin: 8px 0; object-fit: contain; }
.h24-error { color: #b00020; margin: 8px 0; min-height: 1.2em; }
.h24-status { margin: 8px 0; font-size: 14px; }
.h24-bar { height: 6px; background: var(--h24-soft, #ddd); border-radius: 3px; overflow: hidden; display: none; }
.h24-bar > div { height: 100%; width: 0; background: var(--h24-accent, #1d6fe0); }
.h24-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

.h24-regform { max-width: 520px; }
.h24-regform .h24-field { margin-bottom: 14px; }
.h24-regform .h24-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.h24-regform .h24-field input[type=text], .h24-regform .h24-field select { width: 100%; box-sizing: border-box; padding: 9px; font-size: 16px; }
.h24-help { opacity: .8; }
.h24-banner { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.h24-banner--ok { background: #e3f6e8; color: #14612b; }
.h24-banner--err { background: #fde8ea; color: #8a1224; }
.h24-top a { text-decoration: underline; }
.h24-hidden-note { color: #b00020; opacity: 1; }

/* Join journey and adaptive registration page.
   Wrapped in :where() so any Elementor or Site Settings rule wins without fighting. */
:where(.h24-join) { max-width: 960px; }
:where(.h24-join .h24-join__intro) { font-size: 1.05em; margin-bottom: 4px; }
:where(.h24-join-choices) { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
:where(.h24-join-card) { background: var(--h24-card-bg); border: 1px solid var(--h24-card-border); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
:where(.h24-join-card h3) { margin-top: 0; }
:where(.h24-join-card p) { flex: 1; }
:where(.h24-join-card--new) { border-top: 4px solid var(--h24-btn-bg); }
@media (max-width: 600px) { :where(.h24-join-card) .h24-cta { width: 100%; } }
.h24-regform .h24-next ul { margin: 8px 0 0 18px; }
.h24-regcard { border: 1px solid #a9dcb8; background: rgba(227,246,232,.45); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.h24-regcard p { margin: 6px 0; }
.h24-change { margin-top: 14px; }
.h24-change summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
