.agq-wrap {
	--q-blue: #1743b0;
	--q-blue2: #0e2a73;
	--q-navy: #0a1633;
	--q-gold: #ffc907;
	--q-green: #198754;
	--q-muted: #68738a;
	--q-line: #dfe5ef;
	--q-soft: #f5f7fb;
	max-width: 1120px;
	margin: clamp(38px, 7vw, 92px) auto;
	padding: 0 22px;
	color: var(--q-navy);
}
.agq-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .65fr); gap: 50px; align-items: end; margin-bottom: 34px; }
.agq-intro h1 { max-width: 820px; margin: 8px 0 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.03; letter-spacing: -.045em; }
.agq-intro > p { margin: 0; color: var(--q-muted); font-size: 16px; line-height: 1.7; }
.agq-kicker { color: var(--q-blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.agq-page-alert { margin: -12px 0 22px; padding: 13px 16px; border: 1px solid #efb2b2; border-radius: 11px; background: #fff2f2; color: #8e2525; font-size: 13px; }

.agq-layout { overflow: hidden; border: 1px solid var(--q-line); border-radius: 26px; background: #fff; box-shadow: 0 24px 70px rgba(10, 22, 51, .1); }
.agq-rail { padding: 24px clamp(24px, 5vw, 58px) 20px; border-bottom: 1px solid var(--q-line); background: linear-gradient(180deg, #fbfcff, #f5f8ff); }
.agq-progress { color: #536078; font-size: 12px; font-weight: 700; }
.agq-progress strong { float: right; color: var(--q-blue); }
.agq-progress > div { height: 5px; overflow: hidden; margin-top: 9px; border-radius: 999px; background: #dfe6f3; }
.agq-progress i { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--q-blue2), var(--q-blue)); transition: width .25s ease; }
.agq-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.agq-steps li { position: relative; min-width: 0; }
.agq-steps li:not(:last-child)::after { position: absolute; z-index: 0; top: 17px; left: calc(50% + 24px); width: calc(100% - 48px); height: 2px; background: #d7deea; content: ""; transition: background .2s ease; }
.agq-steps li.is-complete::after { background: var(--q-green); }
.agq-steps button { position: relative; z-index: 1; display: grid; justify-items: center; width: 100%; padding: 0 6px; border: 0; background: transparent; color: var(--q-muted); text-align: center; cursor: pointer; }
.agq-steps button > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border: 2px solid #ccd5e4; border-radius: 50%; background: #fff; color: #66738a; font-size: 12px; font-weight: 800; transition: .2s ease; }
.agq-steps b { color: #41506a; font-size: 13px; line-height: 1.2; }
.agq-steps small { margin-top: 3px; color: #8691a5; font-size: 10px; line-height: 1.2; }
.agq-steps .is-current button > span { border-color: var(--q-blue); background: var(--q-blue); color: #fff; box-shadow: 0 0 0 5px rgba(23, 67, 176, .1); }
.agq-steps .is-current b { color: var(--q-blue); }
.agq-steps .is-complete button > span { border-color: var(--q-green); background: var(--q-green); color: #fff; }

.agq-form { min-width: 0; }
.agq-panel { max-width: 780px; margin: 0 auto; padding: clamp(34px, 5vw, 62px); }
.agq-panel[hidden], .agq-conditional[hidden], [data-agq-submit][hidden], [data-agq-next][hidden], [data-agq-back][hidden] { display: none !important; }
.agq-panel-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; }
.agq-panel-head > span { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #edf2ff; color: var(--q-blue); font-size: 12px; font-weight: 800; }
.agq-panel-head p { margin: 0 0 3px; color: var(--q-blue); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.agq-panel-head h2 { margin: 0; outline: none; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }

.agq-capture-card { margin: 0 0 36px; padding: 25px; border: 1px solid #cfdcff; border-radius: 17px; background: linear-gradient(135deg, #f8faff, #eef3ff); box-shadow: inset 0 1px 0 #fff; }
.agq-capture-card > div:first-child { position: relative; padding-left: 46px; }
.agq-capture-card strong, .agq-capture-card small { display: block; }
.agq-capture-card strong { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.25; letter-spacing: -.015em; }
.agq-capture-card small { max-width: 650px; margin-top: 7px; color: #65728a; font-size: 13px; line-height: 1.55; }
.agq-capture-icon { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--q-blue); color: #fff; font-size: 15px; }
.agq-capture-card .agq-fields { margin-top: 18px; }
.agq-capture-card .agq-field { margin-bottom: 0; }
.agq-prefill-note { display: flex; gap: 6px 18px; align-items: center; margin: -10px 0 24px; padding: 13px 16px; border-radius: 11px; background: #edf8f2; color: #285e42; font-size: 12px; }
.agq-prefill-note strong { flex: 0 0 auto; }
.agq-prefill-note span { color: #547363; }

.agq-fields { display: grid; grid-template-columns: 1fr; gap: 0; }
.agq-field { display: block; min-width: 0; margin: 0 0 28px; }
.agq-field > span, .agq-field legend { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 750; line-height: 1.35; }
.agq-field em { color: #c43c3c; font-style: normal; }
.agq-field small, .agq-hint { display: block; margin: -2px 0 9px; color: var(--q-muted); font-size: 13px; line-height: 1.5; }
.agq-field input[type=text], .agq-field input[type=email], .agq-field input[type=tel], .agq-field input[type=url], .agq-field input[type=date], .agq-field select, .agq-field textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid #ccd4e1; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(10, 22, 51, .03); color: var(--q-navy); font: inherit; line-height: 1.45; transition: border .15s, box-shadow .15s; }
.agq-field input, .agq-field select { min-height: 48px; }
.agq-field textarea { min-height: 96px; resize: vertical; }
.agq-field input:focus, .agq-field select:focus, .agq-field textarea:focus { border-color: var(--q-blue); outline: 0; box-shadow: 0 0 0 3px rgba(23, 67, 176, .12); }
.agq-field [aria-invalid=true] { border-color: #c43c3c; box-shadow: 0 0 0 3px rgba(196, 60, 60, .1); }
fieldset.agq-field { padding: 0; border: 0; }
.agq-conditional { margin: 2px 0 28px; padding: 24px 24px 0; border: 0; border-left: 4px solid #c9d7fa; border-radius: 0 14px 14px 0; background: #f7f9fe; }

.agq-choice-grid, .agq-choice-grid.is-compact, .agq-choice-grid.is-two { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: none; }
.agq-choice { position: relative; cursor: pointer; }
.agq-choice input { position: absolute; opacity: 0; }
.agq-choice > span { box-sizing: border-box; display: flex; gap: 11px; align-items: center; min-height: 52px; padding: 12px 15px; border: 1px solid #d4dbe7; border-radius: 11px; background: #fff; font-size: 14px; font-weight: 680; line-height: 1.3; }
.agq-choice i { position: relative; flex: 0 0 auto; width: 16px; height: 16px; border: 1.5px solid #aab4c5; border-radius: 4px; }
.agq-choice input[type=radio] + span i { border-radius: 50%; }
.agq-choice input:checked + span { border-color: var(--q-blue); background: #f1f5ff; color: var(--q-blue); }
.agq-choice input:checked + span i { border-color: var(--q-blue); background: var(--q-blue); }
.agq-choice input:checked + span i::after { position: absolute; top: 1px; left: 4px; width: 5px; height: 9px; transform: rotate(45deg); border: solid #fff; border-width: 0 2px 2px 0; content: ""; }
.agq-choice input:focus-visible + span { outline: 3px solid rgba(23, 67, 176, .18); outline-offset: 2px; }

.agq-date-control { position: relative; display: block; margin: 0 !important; }
.agq-date-control > button { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #c5d1e4; border-radius: 11px; background: linear-gradient(180deg, #fff, #f7f9fe); color: var(--q-navy); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.agq-date-control > button:hover, .agq-date-control > button:focus { border-color: var(--q-blue); outline: 0; box-shadow: 0 0 0 3px rgba(23, 67, 176, .12); }
.agq-date-control > button i { position: relative; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: #eaf0ff; }
.agq-date-control > button i::before, .agq-date-control > button i::after { position: absolute; content: ""; }
.agq-date-control > button i::before { inset: 6px 5px 5px; border: 1.7px solid var(--q-blue); border-radius: 3px; }
.agq-date-control > button i::after { top: 9px; left: 6px; width: 14px; border-top: 1.7px solid var(--q-blue); box-shadow: 3px -5px 0 -2px var(--q-blue), 10px -5px 0 -2px var(--q-blue); }
.agq-calendar { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; box-sizing: border-box; width: min(100%, 360px); padding: 18px; border: 1px solid #d8e0ed; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(10, 22, 51, .18); }
.agq-calendar[hidden] { display: none !important; }
.agq-calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.agq-calendar-head strong { font-size: 15px; }
.agq-calendar-head button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #d9e0eb; border-radius: 9px; background: #f7f9fc; color: var(--q-navy); font-size: 19px; cursor: pointer; }
.agq-calendar-week, .agq-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.agq-calendar-week span { padding: 4px 0 7px; color: #7b879b; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.agq-calendar-days button, .agq-calendar-days span { display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 9px; background: transparent; color: #25324b; font: inherit; font-size: 12px; cursor: pointer; }
.agq-calendar-days button:hover, .agq-calendar-days button:focus { background: #edf2ff; color: var(--q-blue); outline: 0; }
.agq-calendar-days button.is-today { box-shadow: inset 0 0 0 1px #9cb3ec; }
.agq-calendar-days button.is-selected { background: var(--q-blue); color: #fff; font-weight: 800; }
.agq-calendar-days button:disabled { color: #c2c8d2; cursor: not-allowed; }
.agq-calendar-clear { width: 100%; margin-top: 12px; padding: 8px 10px; border: 0; border-radius: 9px; background: #f1f3f7; color: #536078; font-size: 12px; font-weight: 700; cursor: pointer; }
.agq-date-field > small { margin-top: 7px; }

.agq-review { margin-bottom: 19px; padding: 17px 18px; border: 1px solid var(--q-line); border-radius: 14px; background: var(--q-soft); }
.agq-review strong { font-size: 13px; }
.agq-review p { margin: 7px 0 0; color: #536078; font-size: 13px; }
.agq-actions { display: flex; gap: 14px; align-items: center; padding: 18px clamp(28px, 5vw, 58px); border-top: 1px solid var(--q-line); background: #fbfcfe; }
.agq-actions > span { margin-right: auto; color: #6f7d93; font-size: 11px; }
.agq-actions button, .agq-button { display: inline-flex; gap: 9px; align-items: center; padding: 12px 21px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; }
.agq-next, .agq-submit, .agq-button { background: linear-gradient(135deg, var(--q-blue2), var(--q-blue)); box-shadow: 0 7px 20px rgba(23, 67, 176, .22); color: #fff; }
.agq-back { background: #eef1f6; color: var(--q-navy); }
.agq-actions button:disabled { opacity: .65; cursor: wait; }
.agq-alert { margin: 0 clamp(28px, 5vw, 58px) 14px; padding: 11px 14px; border: 1px solid #efb2b2; border-radius: 9px; background: #fff0f0; color: #8e2525; font-size: 13px; }
.agq-hp { position: absolute !important; left: -9999px !important; }

.agq-success { max-width: 720px; margin: 80px auto; padding: 64px 34px; border: 1px solid #dfe5ef; border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(10, 22, 51, .1); text-align: center; }
.agq-success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; background: #eaf8f0; color: #14804b; font-size: 25px; }
.agq-success h1 { margin: 10px auto 16px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.agq-success p { max-width: 580px; margin: 0 auto 26px; color: #68738a; line-height: 1.7; }
.agq-success-actions { display: flex; gap: 20px; align-items: center; justify-content: center; }
.agq-text-link { color: #1743b0; font-size: 13px; font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
	.agq-intro { grid-template-columns: 1fr; gap: 15px; }
	.agq-rail { padding: 20px 18px 17px; }
	.agq-steps { margin-top: 18px; }
	.agq-steps button { padding: 0 2px; }
	.agq-steps button > span { width: 30px; height: 30px; }
	.agq-steps li:not(:last-child)::after { top: 15px; left: calc(50% + 20px); width: calc(100% - 40px); }
	.agq-steps b { font-size: 11px; }
	.agq-steps small { display: none; }
	.agq-prefill-note { display: block; }
	.agq-prefill-note span { display: block; margin-top: 3px; }
}
@media (max-width: 620px) {
	.agq-wrap { margin: 28px auto; padding: 0 12px; }
	.agq-intro { padding: 0 5px; }
	.agq-layout { border-radius: 17px; }
	.agq-panel { padding: 28px 20px; }
	.agq-fields, .agq-choice-grid, .agq-choice-grid.is-compact, .agq-choice-grid.is-two { grid-template-columns: 1fr; }
	.agq-capture-card { padding: 18px; }
	.agq-capture-card > div:first-child { padding-left: 42px; }
	.agq-capture-card .agq-fields { gap: 0; }
	.agq-capture-card .agq-field { margin-bottom: 15px; }
	.agq-actions { flex-wrap: wrap; padding: 15px 20px; }
	.agq-actions > span { order: 3; width: 100%; text-align: center; }
	.agq-actions button { flex: 1; justify-content: center; }
	.agq-panel-head { margin-bottom: 26px; }
	.agq-success { margin: 35px 12px; padding: 46px 22px; }
	.agq-success-actions { flex-direction: column; }
}
@media (max-width: 430px) {
	.agq-steps b { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.agq-steps button > span { width: 28px; height: 28px; margin-bottom: 6px; }
	.agq-steps li:not(:last-child)::after { top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.agq-progress i, .agq-steps *, .agq-field input, .agq-field select, .agq-field textarea { transition: none; }
}
