/* FIFA Match Registrations — self-contained front-end.
 * Everything is scoped under .fmr-page so the active theme's fonts and
 * styles do NOT bleed in, and our styles do NOT leak out.
 * Palette is built around the logo's reddish hue.
 */

/* =========================================================================
 * 0. RESET / ISOLATION  — stop inheriting theme fonts & styles
 * ====================================================================== */
.fmr-page,
.fmr-page * ,
.fmr-page *::before,
.fmr-page *::after {
	box-sizing: border-box;
}

.fmr-page {
	/* ---- Brand palette (logo reddish hue) ---- */
	--fmr-red:       #db2b2b;   /* primary red */
	--fmr-red-2:     #f0463a;   /* bright red (gradients) */
	--fmr-red-3:     #b21d1d;   /* deeper red */
	--fmr-red-deep:  #8a1414;   /* darkest red (links/text) */
	--fmr-red-soft:  rgba(219, 43, 43, 0.14);

	--fmr-ink:       #1a1012;   /* near-black, warm */
	--fmr-ink-soft:  #6f5a5d;   /* muted warm grey */
	--fmr-line:      #efe3e4;   /* soft warm hairline */
	--fmr-surface:   #ffffff;
	--fmr-field:     #fbf4f4;   /* tinted input bg */
	--fmr-dark:      #1f0d0e;   /* warm near-black surface */
	--fmr-dark-2:    #3a1213;   /* warm dark accent */
	--fmr-radius:    22px;

	/* ---- Own typography (NOT the theme's) ---- */
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--fmr-ink);
	text-align: left;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
	max-width: 600px;
	margin: 2rem auto;
}

/* Force our font onto every descendant, override theme element rules */
.fmr-page *,
.fmr-page input,
.fmr-page select,
.fmr-page button,
.fmr-page textarea {
	font-family: inherit;
}

/* Neutralise common theme-inherited element styling */
.fmr-page h1, .fmr-page h2, .fmr-page h3,
.fmr-page h4, .fmr-page p, .fmr-page span,
.fmr-page a, .fmr-page ul, .fmr-page li,
.fmr-page label, .fmr-page figure {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-weight: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	line-height: inherit;
}
.fmr-page ul { list-style: none; }
.fmr-page img { max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.fmr-page a { color: inherit; font-family: inherit !important; text-decoration: none !important; }
.fmr-page button { -webkit-appearance: none; appearance: none; cursor: pointer; }

/* =========================================================================
 * 1. PAGE HEADER  (logo + burger) — sits above the form card, not inside it
 * ====================================================================== */
.fmr-pageheader {
	position: relative;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.1rem;
	background: linear-gradient( 100deg, var(--fmr-dark) 0%, var(--fmr-dark-2) 100% );
	border-radius: 16px;
	box-shadow: 0 18px 40px -26px rgba(31, 13, 14, 0.7);
	margin-bottom: 1rem;
}
.fmr-brand { display: inline-flex; align-items: center; }
.fmr-brand img { height: 34px; width: auto; display: block; }

/* ---- Burger button with proper flat (SVG) icon ---- */
.fmr-burger {
	position: relative;
	width: 44px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 11px;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.fmr-burger:hover { background: var(--fmr-red); border-color: var(--fmr-red); }
.fmr-burger-ico { display: block; }
.fmr-burger-close { display: none; }
.fmr-menu-open .fmr-burger-open { display: none; }
.fmr-menu-open .fmr-burger-close { display: block; }
.fmr-menu-open .fmr-burger { background: var(--fmr-red); border-color: var(--fmr-red); }

/* ---- Dropdown menu ---- */
.fmr-page .fmr-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	left: auto;
	width: min(380px, calc(100vw - 2rem));
	z-index: 50;
	background: #fff;
	border: 1px solid var(--fmr-line);
	border-radius: 18px;
	box-shadow: 0 30px 60px -22px rgba(31, 13, 14, 0.55);
	padding: 0.4rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(0.98);
	transform-origin: top right;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	max-height: min(72vh, 560px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.fmr-page .fmr-menu::-webkit-scrollbar { width: 8px; }
.fmr-page .fmr-menu::-webkit-scrollbar-thumb { background: var(--fmr-line); border-radius: 8px; }
.fmr-menu-open .fmr-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}
.fmr-page .fmr-menu-head {
	display: block;
	padding: 0.7rem 0.85rem 0.6rem;
	margin: 0 0 0.3rem;
	border-bottom: 1px solid var(--fmr-line);
	font-family: "Sora", "Poppins", sans-serif;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fmr-red);
}
.fmr-page .fmr-menu ul { margin: 0; padding: 0; list-style: none; }
.fmr-page .fmr-menu li { margin: 0; }
.fmr-page .fmr-menu li + li { margin-top: 2px; }
.fmr-page .fmr-menu-link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0.6rem 0.8rem;
	border-radius: 12px;
	color: var(--fmr-ink) !important;
	font-family: inherit !important;
	text-decoration: none !important;
	transition: background 0.12s ease;
}
.fmr-page .fmr-menu-link:hover { background: var(--fmr-field); }
.fmr-page .fmr-menu-link:hover .fmr-menu-name { color: var(--fmr-red); }
.fmr-page .fmr-menu-name {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--fmr-ink);
	text-decoration: none !important;
}
.fmr-page .fmr-menu-date {
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--fmr-ink-soft);
	text-decoration: none !important;
}
.fmr-page .fmr-menu-link.is-current {
	background: var(--fmr-red-soft);
	padding-left: 1rem;
}
.fmr-page .fmr-menu-link.is-current::before {
	content: "";
	position: absolute;
	left: 0.35rem; top: 0.65rem; bottom: 0.65rem;
	width: 3px; border-radius: 3px;
	background: var(--fmr-red);
}
.fmr-page .fmr-menu-link.is-current .fmr-menu-name { color: var(--fmr-red-deep); }
.fmr-page .fmr-menu-link.is-current .fmr-menu-name::after {
	content: "Selected";
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.12rem 0.5rem;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--fmr-red);
	border-radius: 999px;
	vertical-align: middle;
}

/* =========================================================================
 * 2. FORM CARD
 * ====================================================================== */
.fmr-card {
	position: relative;
	background: var(--fmr-surface);
	border: 1px solid var(--fmr-line);
	border-radius: var(--fmr-radius);
	overflow: hidden;
	box-shadow: 0 30px 70px -36px rgba(31, 13, 14, 0.5);
}

/* ---- Banner: full image, no crop, no overlay (1600x400) ---- */
.fmr-hero {
	display: block;
	background: var(--fmr-dark);
	line-height: 0;
}
.fmr-hero-img {
	display: block;
	width: 100%;
	height: auto;       /* full image, nothing cropped */
}

/* ---- Title block (below banner, NOT overlaid on it) ---- */
.fmr-head {
	padding: 1.25rem 1.5rem 0.25rem;
}
.fmr-eyebrow {
	display: inline-block;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient( 100deg, var(--fmr-red-2), var(--fmr-red) );
	padding: 0.34rem 0.72rem;
	border-radius: 999px;
}
.fmr-title {
	margin: 0.55rem 0 0;
	font-family: "Sora", "Poppins", sans-serif;
	font-size: clamp( 1.5rem, 5.5vw, 2.05rem );
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.08;
	color: var(--fmr-ink);
}

/* ---- Meta ---- */
.fmr-meta {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.5rem;
	margin-top: 1rem;
	border-top: 1px solid var(--fmr-line);
	border-bottom: 1px solid var(--fmr-line);
	background: linear-gradient( 180deg, #fffafa, #ffffff );
}
.fmr-meta-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; font-weight: 600; color: var(--fmr-ink); }
.fmr-meta-ico { font-size: 1rem; line-height: 1; }

/* ---- Notices ---- */
.fmr-notice { margin: 1.1rem 1.5rem; padding: 0.95rem 1.05rem; border-radius: 14px; font-size: 0.94rem; font-weight: 600; }
.fmr-notice-error { background: #fdecec; color: #8a1f1f; border: 1px solid #f3b6b6; }

/* ---- Success ---- */
.fmr-success { padding: 1.75rem 1.5rem 1.5rem; text-align: center; }
.fmr-success-check {
	width: 64px; height: 64px; margin: 0 auto 0.9rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 2rem; font-weight: 800; color: #fff;
	background: linear-gradient( 135deg, var(--fmr-red-2), var(--fmr-red) );
	border-radius: 50%;
	box-shadow: 0 12px 26px -10px rgba(219, 43, 43, 0.7);
	animation: fmrPop 0.4s ease;
}
@keyframes fmrPop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.fmr-success-title { margin: 0 0 0.4rem; font-family: "Sora","Poppins",sans-serif; font-size: 1.5rem; font-weight: 800; }
.fmr-success-msg { margin: 0 auto 1.1rem; max-width: 30rem; color: var(--fmr-ink-soft); font-weight: 600; }
/* ---- Confirmation ticket ---- */
.fmr-page .fmr-ticket {
	position: relative;
	max-width: 380px;
	margin: 0 auto 1.25rem;
	text-align: left;
	background: linear-gradient( 165deg, #340f0f 0%, #1f0d0e 100% );
	color: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 26px 52px -22px rgba(31, 13, 14, 0.75);
}
.fmr-page .fmr-ticket-stub {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 1.05rem 1.25rem 1rem;
	background: linear-gradient( 100deg, var(--fmr-red-2) 0%, var(--fmr-red) 60%, var(--fmr-red-3) 100% );
}
.fmr-page .fmr-ticket-brand {
	font-family: "Sora", "Poppins", sans-serif;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}
.fmr-page .fmr-ticket-event {
	font-family: "Sora", "Poppins", sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}
.fmr-page .fmr-ticket-tagline { font-size: 0.74rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }

/* perforation line + punched notches */
.fmr-page .fmr-ticket-perf {
	position: relative;
	height: 0;
	border-top: 2px dashed rgba(255, 255, 255, 0.3);
}
.fmr-page .fmr-ticket-perf::before,
.fmr-page .fmr-ticket-perf::after {
	content: "";
	position: absolute;
	top: -11px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;            /* matches the white card = looks punched */
}
.fmr-page .fmr-ticket-perf::before { left: -11px; }
.fmr-page .fmr-ticket-perf::after  { right: -11px; }

.fmr-page .fmr-ticket-body { padding: 1.1rem 1.25rem 1.2rem; }
.fmr-page .fmr-ticket-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1rem;
}
.fmr-page .fmr-ticket-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fmr-page .fmr-ticket-cell-wide { grid-column: 1 / -1; }
.fmr-page .fmr-ticket-k {
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.fmr-page .fmr-ticket-v { font-size: 0.92rem; font-weight: 700; line-height: 1.25; color: #fff; word-break: break-word; }

.fmr-page .fmr-ticket-id {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 0.8rem 0.9rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px dashed rgba(240, 70, 58, 0.55);
	border-radius: 12px;
	text-align: center;
}
.fmr-page .fmr-ticket-id-label {
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}
.fmr-page .fmr-ticket-id-code {
	font-family: ui-monospace, "SF Mono", Menlo, monospace !important;
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: var(--fmr-red-2);
}
.fmr-page .fmr-ticket-barcode {
	height: 46px;
	margin-top: 0.8rem;
	border-radius: 8px;
	border: 6px solid #fff;
	box-sizing: border-box;
	background-color: #fff;
	background-image: repeating-linear-gradient( 90deg, #1f0d0e 0, #1f0d0e 2px, #fff 2px, #fff 4px, #1f0d0e 4px, #1f0d0e 7px, #fff 7px, #fff 11px );
	background-repeat: repeat-x;
	background-size: 11px 100%;
	background-position: center;
}
.fmr-success-note {
	margin: 0 auto 1rem; max-width: 30rem; padding: 0.8rem 1rem;
	background: #fff8e6; border: 1px solid #f5dca0; border-radius: 12px;
	font-size: 0.9rem; font-weight: 600; color: #7a5a00;
}
.fmr-success-contact { margin: 0; font-size: 0.88rem; color: var(--fmr-ink-soft); }
.fmr-success-contact a { color: var(--fmr-red-deep); font-weight: 700; }
.fmr-success-contact a:hover { text-decoration: underline !important; }

/* ---- Fields ---- */
.fmr-fields { padding: 1.25rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.15rem; }
.fmr-field { display: flex; flex-direction: column; gap: 0.4rem; }
.fmr-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fmr-ink); }
.fmr-label em { color: var(--fmr-red); font-style: normal; }
.fmr-optional { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--fmr-ink-soft); }

.fmr-card input[type="text"],
.fmr-card input[type="tel"],
.fmr-card input[type="file"],
.fmr-card select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.85rem 0.95rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--fmr-ink);
	background: var(--fmr-field);
	border: 1.5px solid var(--fmr-line);
	border-radius: 13px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.fmr-card select {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f5a5d' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.6rem;
	cursor: pointer;
}
.fmr-card input:focus,
.fmr-card select:focus {
	outline: none;
	background: #fff;
	border-color: var(--fmr-red);
	box-shadow: 0 0 0 4px rgba(219, 43, 43, 0.16);
}
.fmr-card input[type="file"] { padding: 0.65rem 0.95rem; font-size: 0.9rem; }
.fmr-help { margin: 0; font-size: 0.8rem; color: var(--fmr-ink-soft); }

/* ---- Total ---- */
.fmr-total {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.2rem 1rem;
	padding: 1.1rem 1.25rem;
	border-radius: 16px;
	color: #fff;
	background: linear-gradient( 130deg, var(--fmr-dark) 0%, var(--fmr-red-3) 70%, var(--fmr-red) 100% );
	position: relative;
	overflow: hidden;
}
.fmr-total::after {
	content: ""; position: absolute; top: -40%; right: -10%;
	width: 180px; height: 180px;
	background: radial-gradient( circle, rgba(240, 70, 58, 0.5), transparent 70% );
	filter: blur(8px);
}
.fmr-total-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); z-index: 1; }
.fmr-total-amount { grid-row: 1 / span 2; grid-column: 2; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; z-index: 1; }
.fmr-total-note { grid-column: 1; font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); z-index: 1; }
.fmr-pulse .fmr-total-amount { animation: fmrPulse 0.4s ease; }
@keyframes fmrPulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---- QR ---- */
.fmr-qr-block {
	text-align: center; padding: 1.2rem;
	background: var(--fmr-field);
	border: 1.5px dashed var(--fmr-line);
	border-radius: 16px;
	display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
}
.fmr-qr-block .fmr-label { margin: 0; }
.fmr-qr { width: 210px; max-width: 72%; height: auto; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--fmr-line); }
.fmr-qr-alt { border-color: rgba(219, 43, 43, 0.45); }

/* ---- Backup QR (after the submit button) ---- */
.fmr-page .fmr-qr-block-alt {
	margin-top: 1.15rem;
	background: #fff6f6;
	border: 1.5px dashed rgba(219, 43, 43, 0.45);
}
.fmr-page .fmr-qr-alt-head {
	font-family: "Sora", "Poppins", sans-serif;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--fmr-red-deep);
}

/* ---- Keep-screenshot note ---- */
.fmr-keep-note {
	display: flex; gap: 0.7rem; align-items: flex-start;
	padding: 0.9rem 1.05rem;
	background: #fff8e6;
	border: 1px solid #f5dca0;
	border-radius: 14px;
	font-size: 0.9rem;
	color: #7a5a00;
	line-height: 1.45;
}
.fmr-keep-ico { font-size: 1.15rem; line-height: 1.2; }

/* ---- Submit button (logo red) ---- */
.fmr-page .fmr-submit {
	position: relative;
	margin-top: 0.2rem;
	width: 100%;
	padding: 1.05rem 1.4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	font-family: "Sora", "Poppins", sans-serif !important;
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	text-decoration: none !important;
	text-shadow: 0 1px 2px rgba(122, 16, 16, 0.4);
	background: linear-gradient( 100deg, var(--fmr-red-2) 0%, var(--fmr-red) 55%, var(--fmr-red-3) 100% );
	background-size: 180% 100%;
	background-position: 0% 0%;
	border: none !important;
	border-radius: 16px;            /* rounded rectangle, not a full pill */
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 16px 30px -12px rgba(219, 43, 43, 0.65);
	transition: transform 0.08s ease, box-shadow 0.2s ease, background-position 0.4s ease;
}
/* keep label/arrow above the shimmer and force them white over the theme */
.fmr-page .fmr-submit span {
	position: relative;
	z-index: 2;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}
.fmr-page .fmr-submit::before {
	content: "";
	position: absolute;
	top: 0; left: -120%;
	width: 60%; height: 100%;
	z-index: 1;
	background: linear-gradient( 100deg, transparent, rgba(255, 255, 255, 0.4), transparent );
	transform: skewX(-18deg);
	transition: left 0.55s ease;
}
.fmr-page .fmr-submit:hover {
	background-position: 100% 0%;
	box-shadow: 0 22px 38px -12px rgba(219, 43, 43, 0.82);
}
.fmr-page .fmr-submit:hover::before { left: 130%; }
.fmr-page .fmr-submit:active { transform: translateY(1px); }
.fmr-page .fmr-submit:focus-visible { outline: 3px solid rgba(219, 43, 43, 0.5); outline-offset: 3px; }
.fmr-submit-arrow { font-size: 1.2rem; transition: transform 0.2s ease; }
.fmr-page .fmr-submit:hover .fmr-submit-arrow { transform: translateX(4px); }

/* ---- Footer ---- */
.fmr-foot {
	padding: 1rem 1.5rem 1.25rem;
	border-top: 1px solid var(--fmr-line);
	background: #fffafa;
	text-align: center;
	font-size: 0.85rem;
	color: var(--fmr-ink-soft);
	line-height: 1.6;
}
.fmr-foot a { color: var(--fmr-red-deep); font-weight: 700; }
.fmr-foot a:hover { text-decoration: underline !important; }
.fmr-foot .fmr-sep { color: var(--fmr-line); }

/* ---- Honeypot / error ---- */
.fmr-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.fmr-error-box { padding: 1.5rem; text-align: center; color: #8a1f1f; }

/* ---- Index grid ---- */
.fmr-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.fmr-index-card {
	display: block; color: inherit;
	border: 1px solid var(--fmr-line); border-radius: 16px; overflow: hidden; background: #fff;
	box-shadow: 0 16px 40px -28px rgba(31, 13, 14, 0.5);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fmr-index-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(31, 13, 14, 0.65); }
.fmr-index-img { display: block; width: 100%; aspect-ratio: 4 / 1; background-size: cover; background-position: center; }
.fmr-index-body { display: block; padding: 0.85rem 1rem 1.1rem; }
.fmr-index-title { display: block; font-size: 1.02rem; font-weight: 800; }
.fmr-index-date { display: block; margin-top: 0.2rem; color: var(--fmr-ink-soft); font-size: 0.82rem; }

/* =========================================================================
 * 3. SPECIAL DISCOUNT PAGE
 * ====================================================================== */
.fmr-deal-hero {
	position: relative;
	overflow: hidden;
	padding: 2.1rem 1.5rem 1.8rem;
	text-align: center;
	color: #fff;
	background:
		radial-gradient( 120% 80% at 50% -10%, rgba(255, 209, 77, 0.18), transparent 60% ),
		linear-gradient( 145deg, #2a0c0d 0%, var(--fmr-red-3) 55%, var(--fmr-red-2) 100% );
}
.fmr-deal-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient( 115deg, transparent 35%, rgba(255, 255, 255, 0.14) 48%, transparent 60% );
}
.fmr-deal-hero::after {
	content: ""; position: absolute; top: -60%; right: -12%;
	width: 260px; height: 260px;
	background: radial-gradient( circle, rgba(255, 180, 90, 0.45), transparent 70% );
	filter: blur(14px);
}
.fmr-deal-spark { position: relative; z-index: 1; font-size: 1.5rem; display: block; }
.fmr-deal-kicker {
	position: relative; z-index: 1; display: inline-block; margin-top: 0.45rem;
	padding: 0.32rem 0.85rem; border-radius: 999px;
	background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(2px);
	font-family: "Sora", "Poppins", sans-serif;
	font-size: 0.64rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
	color: #fff;
}
.fmr-deal-headline {
	position: relative; z-index: 1; margin: 0.55rem 0 0.5rem;
	display: flex; align-items: baseline; justify-content: center; gap: 0.4rem;
	font-family: "Sora", "Poppins", sans-serif;
	font-weight: 800; line-height: 0.95; letter-spacing: -0.02em;
}
/* Solid colours (no transparent text-fill) so the value is always visible. */
.fmr-deal-pct {
	font-size: clamp( 3rem, 15vw, 4.6rem );
	color: #ffd84d;
	text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18), 0 0 26px rgba(255, 200, 70, 0.55);
}
.fmr-deal-off {
	font-size: clamp( 1.8rem, 8vw, 2.8rem ); font-weight: 800;
	color: #fff; letter-spacing: 0.02em;
}
.fmr-deal-sub {
	position: relative; z-index: 1; margin: 0.4rem auto 0; max-width: 28rem;
	font-size: 0.92rem; font-weight: 500; color: rgba(255, 255, 255, 0.94); line-height: 1.55;
}

.fmr-deal-inner { display: block; }
.fmr-deal-inner > .fmr-field { padding: 1.25rem 1.5rem 0.25rem; }

/* ---- "Not available" panel ---- */
.fmr-deal-unavailable {
	margin: 1rem 1.5rem 1.5rem; padding: 1.6rem 1.25rem; text-align: center;
	background: var(--fmr-field); border: 1.5px dashed var(--fmr-line); border-radius: 16px;
}
.fmr-deal-lock { font-size: 2rem; display: block; }
.fmr-deal-unavailable-title {
	margin: 0.5rem 0 0.35rem; font-family: "Sora", "Poppins", sans-serif;
	font-size: 1.2rem; font-weight: 800; color: var(--fmr-ink);
}
.fmr-deal-unavailable-msg { margin: 0 auto; max-width: 26rem; font-size: 0.9rem; color: var(--fmr-ink-soft); line-height: 1.5; }
.fmr-deal-unavailable-msg strong { color: var(--fmr-red-deep); }

/* ---- Deals hub (the [fifa_discount] page now links to the live match pages) ---- */
.fmr-deal-hub { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.fmr-deal-hub-intro { margin: 0 0 0.3rem; font-size: 0.92rem; font-weight: 600; color: var(--fmr-ink-soft); line-height: 1.5; }
.fmr-page .fmr-deal-hub-card {
	display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.8rem;
	text-decoration: none; border: 1.5px solid var(--fmr-line); border-radius: 14px;
	background: var(--fmr-surface); transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.fmr-page .fmr-deal-hub-card:hover { border-color: var(--fmr-red); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(219, 43, 43, 0.14); }
.fmr-deal-hub-img { flex: 0 0 auto; width: 72px; height: 54px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--fmr-line); }
.fmr-deal-hub-body { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 auto; }
.fmr-deal-hub-title { font-family: "Sora", "Poppins", sans-serif; font-size: 1rem; font-weight: 800; color: var(--fmr-ink); }
.fmr-deal-hub-badge {
	align-self: flex-start; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
	padding: 0.16rem 0.5rem; border-radius: 999px; color: var(--fmr-red-deep); background: var(--fmr-red-soft);
}
.fmr-deal-hub-arrow { flex: 0 0 auto; font-size: 1.2rem; font-weight: 700; color: var(--fmr-red); }

/* deal flag in the burger menu */
.fmr-page .fmr-menu-deal {
	display: inline-block; margin-left: 0.4rem; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.03em;
	padding: 0.06rem 0.36rem; border-radius: 999px; vertical-align: middle;
	color: #fff; background: var(--fmr-red);
}

/* ---- Opt out of the deal (pay full price) — sits just under the timer ---- */
.fmr-optout {
	margin: 0.7rem 1.5rem 0; padding: 0.6rem 0.8rem;
	display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
	background: var(--fmr-field); border: 1.5px dashed var(--fmr-line); border-radius: 12px;
}
.fmr-optout-q { font-size: 0.82rem; font-weight: 600; color: var(--fmr-ink-soft); }
.fmr-page .fmr-optout-btn {
	display: inline-block; padding: 0.45rem 0.85rem; border-radius: 999px; white-space: nowrap;
	font-size: 0.8rem; font-weight: 800; text-decoration: none;
	color: var(--fmr-ink) !important; background: #fff; border: 1.5px solid var(--fmr-line);
	transition: border-color 0.12s ease;
}
.fmr-page .fmr-optout-btn:hover { border-color: var(--fmr-ink); }

/* ---- Back to the deal (shown above the full-price form) ---- */
.fmr-page .fmr-backdeal {
	display: flex; align-items: center; gap: 0.7rem; margin: 1.25rem 1.5rem 0.25rem;
	padding: 0.8rem 1rem; text-decoration: none; border-radius: 14px;
	color: #fff !important; background: linear-gradient( 100deg, var(--fmr-red-2), var(--fmr-red-3) );
	box-shadow: 0 8px 20px rgba(219, 43, 43, 0.28);
}
.fmr-backdeal-tag { flex: 0 0 auto; font-family: "Sora", "Poppins", sans-serif; font-size: 0.82rem; font-weight: 800; }
.fmr-backdeal-tx { flex: 1 1 auto; font-size: 0.8rem; font-weight: 600; opacity: 0.96; line-height: 1.3; }
.fmr-backdeal-arrow { flex: 0 0 auto; font-size: 1.15rem; font-weight: 700; }

/* ---- FOMO countdown ---- */
.fmr-countdown {
	margin: 1rem 1.5rem 0; padding: 0.9rem 1rem; text-align: center;
	color: #fff; border-radius: 16px;
	background: linear-gradient( 100deg, #2a0a0b, var(--fmr-red-3) );
	box-shadow: 0 16px 34px -20px rgba(219, 43, 43, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.fmr-countdown-label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.fmr-countdown-clock { display: flex; align-items: flex-end; justify-content: center; gap: 0.45rem; margin: 0.45rem 0 0.3rem; }
.fmr-cd-seg {
	display: inline-flex; flex-direction: column; align-items: center;
	min-width: 56px; padding: 0.35rem 0.4rem 0.3rem; border-radius: 11px;
	background: rgba(255, 255, 255, 0.12);
}
.fmr-cd-seg > span:first-child {
	font-family: ui-monospace, "SF Mono", Menlo, monospace !important;
	font-size: 1.7rem; font-weight: 800; line-height: 1; color: #fff;
}
.fmr-cd-u { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-top: 3px; }
.fmr-cd-colon { font-size: 1.4rem; font-weight: 800; color: rgba(255, 255, 255, 0.6); }
.fmr-countdown-note { display: block; font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.fmr-countdown-flash { animation: fmrFlash 0.6s ease 2; }
@keyframes fmrFlash { 50% { background: var(--fmr-red-2); transform: scale(1.015); } }

/* ---- Steps ---- */
.fmr-step { position: relative; padding: 1.05rem 1.1rem; border: 1.5px solid var(--fmr-line); border-radius: 16px; background: #fff; }
.fmr-step-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.fmr-step-num {
	flex: 0 0 auto; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
	font-family: "Sora", "Poppins", sans-serif; font-size: 0.85rem; font-weight: 800; color: #fff;
	background: linear-gradient( 135deg, var(--fmr-red-2), var(--fmr-red) ); border-radius: 50%;
}
.fmr-step-title { font-family: "Sora", "Poppins", sans-serif; font-size: 0.98rem; font-weight: 800; color: var(--fmr-ink); line-height: 1.2; }
.fmr-step-locked { opacity: 0.5; pointer-events: none; filter: grayscale(0.3); }

/* ---- Trivia ---- */
.fmr-trivia-q { margin: 0 0 0.7rem; font-size: 0.96rem; font-weight: 700; color: var(--fmr-ink); }
.fmr-trivia-options { display: grid; gap: 0.5rem; }
.fmr-page .fmr-trivia-opt {
	display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--fmr-line); border-radius: 12px; background: var(--fmr-field);
	cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
}
.fmr-page .fmr-trivia-opt:hover { border-color: var(--fmr-red); }
.fmr-page .fmr-trivia-opt input { width: 18px; height: 18px; accent-color: var(--fmr-red); margin: 0; flex: 0 0 auto; }
.fmr-trivia-opt-text { font-size: 0.95rem; font-weight: 600; color: var(--fmr-ink); }
.fmr-page .fmr-trivia-opt:has(input:checked) { border-color: var(--fmr-red); background: var(--fmr-red-soft); }
.fmr-trivia-feedback { margin: 0.6rem 0 0; font-size: 0.85rem; font-weight: 700; min-height: 1em; }
.fmr-trivia-feedback.is-ok { color: #1b7a3d; }
.fmr-trivia-feedback.is-bad { color: var(--fmr-red-3); }

/* ---- Trivia: correct answer celebration ---- */
.fmr-trivia-options { position: relative; }
.fmr-trivia-options.is-correct {
	animation: fmrCorrectGlow 0.9s ease;
	border-radius: 14px;
}
@keyframes fmrCorrectGlow {
	0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
	30%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.28); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
/* the correct option pulses green */
.fmr-trivia-options.is-correct .fmr-trivia-opt:has(input:checked) {
	border-color: #16a34a !important;
	background: rgba(34, 197, 94, 0.16) !important;
	animation: fmrPop 0.5s ease;
}
/* big checkmark pop */
.fmr-correct-pop {
	position: absolute; top: 50%; left: 50%; z-index: 4;
	transform: translate(-50%, -50%);
	width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
	font-size: 2rem; font-weight: 900; color: #fff;
	background: linear-gradient( 135deg, #22c55e, #16a34a );
	border-radius: 50%; box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
	pointer-events: none; animation: fmrCheckPop 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fmrCheckPop {
	0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
	35%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
	70%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	100% { transform: translate(-50%, -52%) scale(0.85); opacity: 0; }
}
/* confetti layer + pieces */
.fmr-confetti {
	position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 3;
}
.fmr-confetti i {
	position: absolute; top: 40%; width: 8px; height: 12px; border-radius: 2px;
	opacity: 0; animation: fmrConfetti 1.2s ease-out forwards;
}
@keyframes fmrConfetti {
	0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
	100% { transform: translate(var(--dx, 0), 140px) rotate(var(--rot, 360deg)); opacity: 0; }
}
/* ---- Trivia: wrong answer shake ---- */
.fmr-trivia-options.is-wrong { animation: fmrShake 0.5s ease; }
.fmr-trivia-options.is-wrong .fmr-trivia-opt:has(input:checked) {
	border-color: var(--fmr-red) !important;
	background: var(--fmr-red-soft) !important;
}
@keyframes fmrShake {
	0%, 100% { transform: translateX(0); }
	15% { transform: translateX(-9px); }
	30% { transform: translateX(8px); }
	45% { transform: translateX(-6px); }
	60% { transform: translateX(5px); }
	75% { transform: translateX(-3px); }
}
@media (prefers-reduced-motion: reduce) {
	.fmr-trivia-options.is-correct,
	.fmr-trivia-options.is-wrong,
	.fmr-correct-pop,
	.fmr-confetti i { animation: none; }
	.fmr-confetti { display: none; }
}

/* ---- Story screenshot preview ---- */
.fmr-story-preview {
	margin-top: 0.6rem; display: flex; align-items: center; gap: 0.7rem;
	padding: 0.55rem 0.65rem; border: 1.5px solid rgba(34, 197, 94, 0.4);
	background: rgba(34, 197, 94, 0.08); border-radius: 12px;
	animation: fmrPop 0.35s ease;
}
.fmr-story-preview-img {
	width: 52px; height: 52px; object-fit: cover; border-radius: 8px;
	border: 1px solid var(--fmr-line); flex: 0 0 auto;
}
.fmr-story-preview-ok { font-size: 0.85rem; font-weight: 800; color: #16a34a; }

/* ---- Share step ---- */
.fmr-share-poster { margin: 0.7rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.fmr-share-poster img { width: 100%; border-radius: 12px; border: 1px solid var(--fmr-line); }
.fmr-page .fmr-share-dl {
	display: inline-block; padding: 0.5rem 0.9rem; font-size: 0.82rem; font-weight: 700;
	color: var(--fmr-red-deep) !important; background: #fff6f6; border: 1.5px solid rgba(219, 43, 43, 0.4); border-radius: 999px;
}
.fmr-page .fmr-share-dl:hover { background: var(--fmr-red); color: #fff !important; border-color: var(--fmr-red); }

/* ---- Share the Instagram post (CTA card) ---- */
.fmr-share-post { margin: 0.75rem 0; }
.fmr-page .fmr-share-cta {
	display: flex; align-items: center; gap: 0.85rem; width: 100%;
	padding: 0.95rem 1rem; border-radius: 14px; text-decoration: none;
	color: #fff !important;
	background: linear-gradient( 100deg, #7a2ff0 0%, #d62976 48%, #fa7e1e 100% );
	box-shadow: 0 8px 22px rgba(214, 41, 118, 0.32);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fmr-page .fmr-share-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(214, 41, 118, 0.42); }
.fmr-share-cta-ico {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.18); color: #fff;
}
.fmr-share-cta-tx { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; }
.fmr-share-cta-tx strong { font-family: "Sora", "Poppins", sans-serif; font-size: 0.98rem; font-weight: 800; }
.fmr-share-cta-tx small { font-size: 0.78rem; opacity: 0.92; }
.fmr-share-cta-arrow { flex: 0 0 auto; font-size: 1.25rem; font-weight: 700; }
.fmr-checkrow { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.5rem 0; font-size: 0.9rem; font-weight: 600; color: var(--fmr-ink); cursor: pointer; }
.fmr-checkrow input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fmr-red); flex: 0 0 auto; }

/* ---- Unlock banner ---- */
.fmr-unlock-banner {
	padding: 0.8rem 1rem; text-align: center; border-radius: 14px;
	font-family: "Sora", "Poppins", sans-serif; font-size: 0.92rem; font-weight: 800; color: #fff;
	background: linear-gradient( 100deg, #1b7a3d, #29a35a );
	box-shadow: 0 14px 30px -16px rgba(27, 122, 61, 0.8);
}

/* ---- Locked registration wrapper ---- */
.fmr-locked-wrap { position: relative; }
.fmr-locked-fields { display: flex; flex-direction: column; gap: 1.15rem; }
.fmr-locked-wrap:not(.is-unlocked) .fmr-locked-fields { opacity: 0.25; pointer-events: none; filter: grayscale(0.5) blur(1px); user-select: none; }
.fmr-locked-overlay {
	position: absolute; inset: 0; z-index: 5;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
	text-align: center; border-radius: 16px;
	background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(1px);
}
.fmr-locked-wrap.is-unlocked .fmr-locked-overlay { display: none; }
.fmr-locked-ico { font-size: 2rem; }
.fmr-locked-text { font-family: "Sora", "Poppins", sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--fmr-red-deep); padding: 0 1rem; }
.fmr-page .fmr-deal-submit:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.fmr-deal-total .fmr-total-note s { opacity: 0.75; }

/* ---- Discount ticket extras ---- */
.fmr-page .fmr-ticket-deal-badge {
	display: inline-block; margin-top: 4px; align-self: flex-start;
	padding: 0.12rem 0.5rem; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--fmr-red-deep); background: #fff; border-radius: 999px;
}

/* ---- Mobile ---- */
@media (max-width: 560px) {
	.fmr-page { margin: 1rem; }
	.fmr-card { border-radius: 18px; }
	.fmr-fields { padding: 1.1rem 1.1rem 1.5rem; }
	.fmr-meta { padding: 1rem 1.1rem; }
	.fmr-head { padding: 1.1rem 1.1rem 0.25rem; }
	.fmr-notice { margin: 0.9rem 1.1rem; }
	.fmr-total-amount { font-size: 1.7rem; }
	.fmr-qr { max-width: 80%; }
	.fmr-foot { padding: 0.95rem 1.1rem 1.1rem; }
	.fmr-success { padding: 1.5rem 1.1rem 1.25rem; }
	.fmr-deal-inner > .fmr-field { padding: 1.1rem 1.1rem 0.2rem; }
	.fmr-countdown { margin: 0.9rem 1.1rem 0; }
	.fmr-optout { margin: 0.6rem 1.1rem 0; }
	.fmr-deal-unavailable { margin: 0.9rem 1.1rem 1.2rem; }
	.fmr-cd-seg { min-width: 48px; }
	.fmr-cd-seg > span:first-child { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fmr-submit, .fmr-index-card, .fmr-menu, .fmr-submit-arrow { transition: none; }
	.fmr-submit::before { display: none; }
	.fmr-pulse .fmr-total-amount, .fmr-success-check { animation: none; }
}
