/* Stonegate QR Sign-Up — scoped to .sgqr so the theme isn't affected.
   Brand colours match stonegatelegalservices.ca (Avada palette). */

/* Hide the site-wide Avada title bar on sign-up pages only: the form has its own headline. */
body:has(.sgqr) .fusion-page-title-bar { display: none !important; }

/* Plain white page behind the form (theme default is grey). */
html:has(.sgqr), body:has(.sgqr), body:has(.sgqr) #boxed-wrapper, body:has(.sgqr) #wrapper, body:has(.sgqr) #main { background: #ffffff !important; }

.sgqr {
	--sgqr-bg: transparent;
	--sgqr-card: #013e62;
	--sgqr-ink: #ffffff;
	--sgqr-muted: #c6d6e3;
	--sgqr-accent: #f6ec19;
	--sgqr-accent-ink: #013e62;
	--sgqr-field: #ffffff;
	--sgqr-field-ink: #1c1c1c;
	--sgqr-error: #ffb4ab;
	--sgqr-ok: #a8e6b4;
	background: var(--sgqr-bg);
	padding: 32px 16px;
	font-family: inherit;
	box-sizing: border-box;
}
.sgqr *, .sgqr *::before, .sgqr *::after { box-sizing: border-box; }
.sgqr .sgqr-card {
	max-width: 460px;
	margin: 0 auto;
	background: var(--sgqr-card);
	border-radius: 16px;
	padding: 28px 22px;
	color: var(--sgqr-ink);
	box-shadow: 0 12px 32px rgba(1,62,98,.25);
}
.sgqr .sgqr-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sgqr-accent);
	text-align: center;
}
.sgqr .sgqr-title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sgqr-ink);
	text-align: center;
}
.sgqr .sgqr-sub { margin: 0 0 22px; color: var(--sgqr-muted); text-align: center; font-size: 15px; line-height: 1.5; }
.sgqr .sgqr-field { display: block; margin: 0 0 14px; }
.sgqr .sgqr-field > span:first-child { display: block; font-size: 13px; margin: 0 0 6px; color: var(--sgqr-muted); }
.sgqr input[type=text], .sgqr input[type=email], .sgqr input[type=tel] {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--sgqr-field);
	color: var(--sgqr-field-ink);
	font-size: 17px;
	margin: 0;
	box-shadow: none;
}
.sgqr input:focus { outline: none; border-color: var(--sgqr-accent); }
.sgqr .sgqr-phone { display: flex; gap: 8px; }
.sgqr .sgqr-cc {
	display: flex; align-items: center; padding: 0 12px; border-radius: 10px;
	background: rgba(255,255,255,.12); color: var(--sgqr-ink); font-size: 15px; white-space: nowrap;
}
.sgqr .sgqr-code { text-align: center; font-size: 28px !important; letter-spacing: .4em; }
.sgqr .sgqr-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: 13px; line-height: 1.45; color: var(--sgqr-muted); cursor: pointer; }
.sgqr .sgqr-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--sgqr-accent); }
.sgqr .sgqr-btn {
	display: block; width: 100%; height: 52px; line-height: 52px; padding: 0 16px; margin: 0 0 12px;
	border: 0; border-radius: 10px; background: var(--sgqr-accent); color: var(--sgqr-accent-ink) !important;
	font-size: 16px; font-weight: 700; text-align: center; text-decoration: none !important; cursor: pointer;
}
.sgqr .sgqr-btn:disabled { opacity: .6; cursor: wait; }
.sgqr .sgqr-btn-ghost { background: transparent; border: 2px solid var(--sgqr-accent); color: var(--sgqr-accent) !important; line-height: 48px; }
.sgqr .sgqr-fine { font-size: 12px; color: var(--sgqr-muted); text-align: center; margin: 8px 0 0; line-height: 1.5; }
.sgqr .sgqr-fine a, .sgqr .sgqr-link { color: var(--sgqr-accent); }
.sgqr .sgqr-lead { text-align: center; font-size: 16px; margin: 0 0 18px; }
.sgqr .sgqr-links { text-align: center; font-size: 14px; color: var(--sgqr-muted); margin: 4px 0 0; }
.sgqr .sgqr-link { background: none; border: 0; padding: 4px; font: inherit; text-decoration: underline; cursor: pointer; }
.sgqr .sgqr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sgqr .sgqr-msg { min-height: 1.2em; margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--sgqr-error); }
.sgqr .sgqr-msg.is-ok { color: var(--sgqr-ok); }
.sgqr .sgqr-tick {
	width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
	border: 3px solid var(--sgqr-accent); color: var(--sgqr-accent);
	display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.sgqr .sgqr-sender { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); font-size: 11px; color: var(--sgqr-muted); text-align: center; line-height: 1.5; }
.sgqr [hidden] { display: none !important; }

/* Instagram follow step */
.sgqr .sgqr-kicker { text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sgqr-muted); margin: 6px 0 16px; }
.sgqr .sgqr-btn-ig {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	height: 58px; line-height: normal; border-radius: 999px; font-size: 17px;
	background: linear-gradient(90deg, #833ab4, #e1306c 55%, #f77737); color: #ffffff !important;
	box-shadow: 0 8px 24px rgba(225,48,108,.35);
}
.sgqr input[type=tel] { width: 100%; }

/* Keep headline capitalization as written (theme forces Title Case). */
.sgqr .sgqr-title, .sgqr .sgqr-btn, .sgqr .sgqr-sub { text-transform: none !important; }
.sgqr input::placeholder { color: #9aa5ae !important; opacity: 1; }

/* Follow step: numbered instructions so people know to come back from Instagram */
.sgqr .sgqr-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.sgqr .sgqr-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--sgqr-ink); font-size: 15px; line-height: 1.4; text-align: left; }
.sgqr .sgqr-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--sgqr-accent); color: var(--sgqr-accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sgqr .sgqr-steps small { color: var(--sgqr-muted); font-size: 13px; }
.sgqr .sgqr-steps b { color: var(--sgqr-ink); }
.sgqr .sgqr-mail { text-align: center; color: var(--sgqr-muted); font-size: 13px; margin: 4px 0 0; }

/* iPhone turns the phone number into a link in the theme's navy (invisible on navy). Keep it readable. */
.sgqr a[href^="tel"], .sgqr .sgqr-sender a { color: inherit !important; text-decoration: none !important; }

/* Slides: presentation name + picker */
.sgqr .sgqr-deck { margin: -2px 0 10px; text-align: center; color: var(--sgqr-accent); font-size: 18px; font-weight: 700; line-height: 1.3; }
.sgqr select { width: 100%; height: 50px; padding: 0 12px; border-radius: 10px; border: 2px solid transparent; background: var(--sgqr-field); color: var(--sgqr-field-ink); font-size: 16px; margin: 0; }
.sgqr select:focus { outline: none; border-color: var(--sgqr-accent); }
