/* Quinn Google Ads ROI Calculator */
.qmgac {
	--qmgac-navy: #0d1b3e;
	--qmgac-navy-2: #16264f;
	--qmgac-accent: #1f7aec;
	--qmgac-green: #16c172;
	--qmgac-gold: #f5a623;
	--qmgac-bg: #ffffff;
	--qmgac-soft: #f4f7fb;
	--qmgac-line: #e2e8f0;
	--qmgac-ink: #1a2435;
	--qmgac-mut: #66748b;
	--qmgac-radius: 16px;

	max-width: 880px;
	margin: 32px auto;
	background: var(--qmgac-bg);
	border: 1px solid var(--qmgac-line);
	border-radius: var(--qmgac-radius);
	box-shadow: 0 12px 40px rgba(13, 27, 62, .10);
	overflow: hidden;
	color: var(--qmgac-ink);
	font-family: inherit;
	line-height: 1.45;
}

.qmgac *, .qmgac *::before, .qmgac *::after { box-sizing: border-box; }

.qmgac__head {
	background: linear-gradient(135deg, var(--qmgac-navy), var(--qmgac-navy-2));
	color: #fff;
	padding: 26px 28px;
}
.qmgac__title { margin: 0 0 6px; color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.qmgac__sub { margin: 0; color: #c7d3ea; font-size: .95rem; }

.qmgac__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 720px) { .qmgac__grid { grid-template-columns: 1fr; } }

/* ---------- Inputs ---------- */
.qmgac__inputs { padding: 26px 28px; border-right: 1px solid var(--qmgac-line); }
@media (max-width: 720px) { .qmgac__inputs { border-right: 0; border-bottom: 1px solid var(--qmgac-line); } }

.qmgac__field { display: block; margin-bottom: 20px; }
.qmgac__field--sm { margin-bottom: 14px; }
.qmgac__label {
	display: flex; align-items: center; justify-content: space-between;
	font-size: .85rem; font-weight: 700; color: var(--qmgac-ink); margin-bottom: 8px;
}
.qmgac__val { font-weight: 800; color: var(--qmgac-accent); font-size: 1rem; }
.qmgac__hint {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 50%; background: var(--qmgac-soft);
	color: var(--qmgac-mut); font-size: .7rem; cursor: help; margin-left: 6px;
}

.qmgac__select, .qmgac__num {
	width: 100%; padding: 12px 14px; border: 1px solid var(--qmgac-line);
	border-radius: 10px; font-size: 1rem; background: #fff; color: var(--qmgac-ink);
	font-family: inherit; -webkit-appearance: none; appearance: none;
}
.qmgac__select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2366748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.qmgac__select:focus, .qmgac__num:focus { outline: none; border-color: var(--qmgac-accent); box-shadow: 0 0 0 3px rgba(31, 122, 236, .15); }

.qmgac__money { display: flex; align-items: center; border: 1px solid var(--qmgac-line); border-radius: 10px; padding-left: 12px; background: #fff; }
.qmgac__money:focus-within { border-color: var(--qmgac-accent); box-shadow: 0 0 0 3px rgba(31, 122, 236, .15); }
.qmgac__money > span { color: var(--qmgac-mut); font-weight: 700; }
.qmgac__money .qmgac__num { border: 0; box-shadow: none; padding-left: 6px; }
.qmgac__money--pct { padding-left: 0; padding-right: 12px; }
.qmgac__money--pct .qmgac__num { padding-left: 12px; }

.qmgac__range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: var(--qmgac-line); outline: none; margin: 4px 0 2px; }
.qmgac__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--qmgac-accent); cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(13,27,62,.3); }
.qmgac__range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--qmgac-accent); cursor: pointer; border: 3px solid #fff; }
.qmgac__rangehint { display: flex; justify-content: space-between; font-size: .72rem; color: var(--qmgac-mut); }

.qmgac__adv-toggle { background: none; border: 0; color: var(--qmgac-accent); font-weight: 700; cursor: pointer; padding: 4px 0; font-size: .85rem; font-family: inherit; }
.qmgac__chev { display: inline-block; transition: transform .2s; }
.qmgac__adv-toggle.is-open .qmgac__chev { transform: rotate(180deg); }
.qmgac__adv { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--qmgac-line); }

/* ---------- Results ---------- */
.qmgac__results { padding: 26px 28px; background: var(--qmgac-soft); display: flex; flex-direction: column; }

.qmgac__open { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.qmgac__open .qmgac__metric--hero { grid-column: 1 / -1; }

.qmgac__metric { background: #fff; border: 1px solid var(--qmgac-line); border-radius: 12px; padding: 16px; text-align: center; }
.qmgac__metric-num { display: block; font-size: 1.7rem; font-weight: 800; color: var(--qmgac-navy); line-height: 1.1; }
.qmgac__metric-lbl { display: block; font-size: .78rem; color: var(--qmgac-mut); margin-top: 4px; font-weight: 600; }
.qmgac__annual { margin: 12px 0 6px; text-align: center; }
.qmgac__annual-pill {
	display: inline-block; padding: 9px 18px; border-radius: 999px;
	background: rgba(22, 193, 114, .12); color: #0f8f53; font-weight: 800; font-size: 1.02rem;
	border: 1px solid rgba(22, 193, 114, .35);
}
.qmgac__annual-pill strong { font-size: 1.18rem; }
.qmgac__annual-pill--neg { background: var(--qmgac-soft); color: var(--qmgac-mut); border-color: var(--qmgac-line); font-weight: 600; font-size: .9rem; }
.qmgac__metric-note { margin: 8px 2px 14px; font-size: .72rem; color: var(--qmgac-mut); line-height: 1.45; text-align: center; }
.qmgac__metric--hero { background: linear-gradient(135deg, var(--qmgac-navy), var(--qmgac-navy-2)); border-color: transparent; }
.qmgac__metric--hero .qmgac__metric-num { color: #fff; font-size: 2.1rem; }
.qmgac__metric--hero .qmgac__metric-lbl { color: #c7d3ea; }

/* ---------- Gated ---------- */
.qmgac__locked { position: relative; border-radius: 12px; overflow: hidden; }
/* Blurred tiles sit behind the form as a backdrop; the form is in normal flow
   so it always defines the height and the submit button is never clipped. */
.qmgac__locked-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; filter: blur(7px); opacity: .5; pointer-events: none; user-select: none; }
.qmgac__locked-grid .qmgac__metric--hero { grid-column: 1 / -1; }

.qmgac__form {
	position: relative; display: flex; flex-direction: column; gap: 8px;
	padding: 18px; border-radius: 12px;
	background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98));
	backdrop-filter: blur(2px); border: 1px solid var(--qmgac-line);
}
.qmgac__form-head { text-align: center; margin-bottom: 4px; }
.qmgac__form-head strong { display: block; font-size: 1.05rem; color: var(--qmgac-navy); }
.qmgac__form-head p { margin: 4px 0 0; font-size: .82rem; color: var(--qmgac-mut); }
.qmgac__lock { font-size: 1.3rem; }
.qmgac__row { display: flex; gap: 8px; }
.qmgac__row input { flex: 1; width: 100%; padding: 11px 12px; border: 1px solid var(--qmgac-line); border-radius: 9px; font-size: .95rem; font-family: inherit; min-width: 0; }
.qmgac__row input:focus { outline: none; border-color: var(--qmgac-accent); box-shadow: 0 0 0 3px rgba(31,122,236,.15); }
.qmgac__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.qmgac__btn {
	margin-top: 4px; width: 100%; padding: 14px 18px; border: 0; border-radius: 10px;
	background: var(--qmgac-green); color: #fff; font-size: 1rem; font-weight: 800;
	cursor: pointer; font-family: inherit; transition: filter .15s, transform .05s;
}
.qmgac__btn:hover { filter: brightness(1.05); }
.qmgac__btn:active { transform: translateY(1px); }
.qmgac__btn:disabled { opacity: .7; cursor: default; }
.qmgac__err { color: #c0392b; font-size: .82rem; margin: 2px 0 0; text-align: center; }
.qmgac__fineprint { margin: 2px 0 0; font-size: .72rem; color: var(--qmgac-mut); text-align: center; }

@media (max-width: 720px) {
	.qmgac__form { position: static; inset: auto; margin-top: 12px; }
	.qmgac__locked-grid { display: none; }
}

/* ---------- Unlocked ---------- */
.qmgac__unlocked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qmgac__unlocked-grid .qmgac__metric--hero { grid-column: 1 / -1; }
.qmgac__unlocked-grid .qmgac__metric-num { color: var(--qmgac-green); }
.qmgac__unlocked-grid .qmgac__metric--hero .qmgac__metric-num { color: #fff; }

.qmgac__compare { margin-top: 16px; background: #fff; border: 1px solid var(--qmgac-line); border-radius: 12px; padding: 16px; }
.qmgac__compare-head { font-size: .8rem; font-weight: 800; color: var(--qmgac-navy); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.qmgac__compare-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: .92rem; border-bottom: 1px solid var(--qmgac-line); }
.qmgac__compare-row:last-of-type { border-bottom: 0; }
.qmgac__compare-row strong { font-weight: 800; }
.qmgac__compare-row--win { color: var(--qmgac-green); }
.qmgac__compare-row--win strong { color: var(--qmgac-green); }
.qmgac__compare-note { margin: 8px 0 0; font-size: .85rem; color: var(--qmgac-ink); }

.qmgac__cta {
	display: block; margin-top: 16px; text-align: center; text-decoration: none;
	padding: 15px 18px; border-radius: 10px; font-weight: 800; font-size: 1rem;
	background: var(--qmgac-gold); color: var(--qmgac-navy); transition: filter .15s;
}
.qmgac__cta:hover { filter: brightness(1.04); color: var(--qmgac-navy); }

.qmgac__disclaimer { margin: 0; padding: 14px 28px; font-size: .72rem; color: var(--qmgac-mut); background: var(--qmgac-soft); border-top: 1px solid var(--qmgac-line); }
