/*!
 * Instant Quote AI — [iqa_estimator] calculator
 * Design: MALAKA blueprint system (porcelain + slate + emerald, Space Grotesk / Plus Jakarta Sans / JetBrains Mono)
 * Fonts are NOT loaded by the plugin (GDPR): the stacks fall back gracefully if the theme doesn't load them.
 */

.iqa-est {
	--e-ink: #0f172a;
	--e-ink-2: #334155;
	--e-muted: #64748b;
	--e-line: #e2e8f0;
	--e-line-2: #f1f5f9;
	--e-surface: #f8fafc;
	--e-card: #ffffff;
	--e-page: #fbfbfc;
	--e-accent: #047857;          /* text + button fill (white on it = 5.5:1) */
	--e-accent-hover: #065f46;
	--e-accent-bright: #10b981;   /* decoration only */
	--e-accent-soft: #ecfdf5;
	--e-accent-line: #a7f3d0;
	--e-dark: #0b1120;
	--e-dark-2: #0f172a;
	--e-dark-line: #1e293b;
	--e-amber: #b45309;
	--e-amber-soft: #fffbeb;
	--e-amber-line: #fde68a;
	--e-rose: #be123c;
	--e-radius: 16px;
	--e-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	--e-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--e-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 40px;
	box-sizing: border-box;
	font-family: var(--e-sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--e-ink);
	background: var(--e-card);
	border: 1px solid var(--e-line);
	border-radius: 24px;
	box-shadow: 0 30px 60px -30px rgba(5, 150, 105, .18), 0 1px 3px rgba(15, 23, 42, .05);
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
}
.iqa-est *, .iqa-est *::before, .iqa-est *::after { box-sizing: border-box; }
.iqa-est [hidden] { display: none !important; }
.iqa-est ::selection { background: var(--e-accent-bright); color: #fff; }

/* blueprint grid behind the header, fading out */
.iqa-est::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 320px;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 50% 0%, rgba(16, 185, 129, .10) 0%, transparent 60%),
		linear-gradient(to right, rgba(226, 232, 240, .55) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(226, 232, 240, .55) 1px, transparent 1px);
	background-size: 100% 100%, 32px 32px, 32px 32px;
	-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}

/* ---------- Typography helpers ---------- */
.iqa-est__mono { font-family: var(--e-mono); }
.iqa-est svg { flex-shrink: 0; }

/* ---------- Header ---------- */
.iqa-est__head { text-align: center; max-width: 44rem; margin: 0 auto 28px; }
.iqa-est__eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 14px; border-radius: 999px;
	background: #fff; border: 1px solid var(--e-line);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	font-family: var(--e-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: #475569;
}
.iqa-est__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--e-accent-bright); flex-shrink: 0; }
.iqa-est__dot--ping { animation: iqaEstPing 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes iqaEstPing { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 80%, 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

.iqa-est .iqa-est__title {
	margin: 18px 0 0; padding: 0;
	font-family: var(--e-display); font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em;
	color: var(--e-ink);
}
.iqa-est__sub { margin: 12px 0 0; font-size: 15px; color: #475569; }

/* ---------- Status strip ---------- */
.iqa-est__status {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
	padding: 12px 16px; margin: 0 0 28px;
	border: 1px solid var(--e-line); border-radius: 14px; background: rgba(248, 250, 252, .85);
	font-family: var(--e-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.iqa-est__status-l { display: inline-flex; align-items: center; gap: 10px; color: var(--e-accent); font-weight: 700; }
.iqa-est__rate {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--e-line);
	color: var(--e-ink-2); font-weight: 600; letter-spacing: .02em; text-transform: none;
}
.iqa-est__rate.is-unlocked { background: var(--e-accent-soft); border-color: var(--e-accent-line); color: #065f46; }

/* ---------- Form ---------- */
.iqa-est__form { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.iqa-est__fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.iqa-est__label {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	margin: 0 0 12px; padding: 0;
	font-family: var(--e-sans); font-size: 15px; font-weight: 700; color: var(--e-ink);
}
.iqa-est__step {
	font-family: var(--e-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em;
	color: var(--e-accent); background: var(--e-accent-soft); border: 1px solid var(--e-accent-line);
	border-radius: 8px; padding: 3px 7px; line-height: 1.2;
}
.iqa-est__hint { font-family: var(--e-mono); font-size: 11px; font-weight: 500; color: var(--e-muted); letter-spacing: .02em; }

.iqa-est__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iqa-est .iqa-est__opt {
	appearance: none; -webkit-appearance: none;
	display: flex; align-items: center; gap: 14px;
	width: 100%; min-height: 72px; margin: 0; padding: 14px 16px;
	text-align: left; cursor: pointer;
	font: inherit; color: var(--e-ink);
	background: #fff; border: 1px solid var(--e-line); border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
.iqa-est .iqa-est__opt:hover { border-color: #94a3b8; transform: translateY(-1px); }
.iqa-est .iqa-est__opt:focus-visible { outline: 3px solid rgba(16, 185, 129, .35); outline-offset: 2px; }
.iqa-est .iqa-est__opt.is-active {
	background: var(--e-accent-soft); border-color: var(--e-accent-bright);
	box-shadow: 0 0 0 1px var(--e-accent-bright), 0 12px 24px -16px rgba(5, 150, 105, .45);
}
.iqa-est__opt-ico {
	width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--e-surface); border: 1px solid var(--e-line); color: var(--e-ink-2);
	transition: all .2s ease;
}
.iqa-est__opt.is-active .iqa-est__opt-ico { background: #fff; border-color: var(--e-accent-line); color: var(--e-accent); }
.iqa-est__opt-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.iqa-est__opt-txt strong { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--e-ink); }
.iqa-est__opt-txt small { font-size: 12.5px; line-height: 1.4; color: var(--e-muted); }
.iqa-est__check {
	width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
	border: 1.5px solid #cbd5e1; background: #fff;
	transition: all .2s ease;
}
.iqa-est__opt.is-active .iqa-est__check {
	border-color: var(--e-accent); background-color: var(--e-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-size: 13px; background-position: center; background-repeat: no-repeat;
}

/* inputs */
.iqa-est__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.iqa-est__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.iqa-est__field-label { font-size: 12.5px; font-weight: 600; color: var(--e-ink-2); }
.iqa-est__field-label em { font-style: normal; color: var(--e-rose); }
.iqa-est__input {
	display: flex; align-items: center; gap: 10px;
	min-height: 50px; padding: 0 14px;
	background: #fff; border: 1px solid var(--e-line); border-radius: 12px;
	color: var(--e-muted);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.iqa-est__input:focus-within { border-color: var(--e-accent-bright); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); color: var(--e-accent); }
.iqa-est .iqa-est__input input {
	flex: 1; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0;
	border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
	font: inherit; font-size: 15px; color: var(--e-ink);
}
.iqa-est .iqa-est__input input::placeholder { color: #94a3b8; opacity: 1; }
.iqa-est__input.is-invalid { border-color: #fda4af; box-shadow: 0 0 0 4px rgba(225, 29, 72, .08); }

.iqa-est__submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.iqa-est__legal { margin: 0; font-size: 12.5px; color: var(--e-muted); max-width: 30rem; }
.iqa-est__legal a { color: var(--e-accent); text-decoration: underline; text-underline-offset: 2px; }
.iqa-est__err {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 14px; border-radius: 12px;
	background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239;
	font-size: 13.5px; font-weight: 600;
}
.iqa-est__turnstile { min-height: 0; }

/* consent */
.iqa-est__consent { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px dashed #cbd5e1; border-radius: 14px; background: var(--e-surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.iqa-est__consent:hover { border-color: #94a3b8; }
.iqa-est .iqa-est__consent input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.iqa-est__consent-box { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 7px; border: 1.5px solid #cbd5e1; background: #fff; transition: all .2s ease; }
.iqa-est__consent input:checked + .iqa-est__consent-box {
	border-color: var(--e-accent); background-color: var(--e-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.iqa-est__consent input:focus-visible + .iqa-est__consent-box { outline: 3px solid rgba(16, 185, 129, .35); outline-offset: 2px; }
.iqa-est__consent:has(input:checked) { border-style: solid; border-color: var(--e-accent-line); background: var(--e-accent-soft); }
.iqa-est__consent.is-locked,
.iqa-est__consent:has(input[data-locked="1"]:checked) {
	border-color: rgba(16, 185, 129, .5);
	background: rgba(16, 185, 129, .08);
	cursor: default;
}
.iqa-est__consent.is-locked input { pointer-events: none; }
.iqa-est__consent-txt { font-size: 13px; line-height: 1.55; color: var(--e-ink-2); }
.iqa-est__consent-txt strong { color: var(--e-ink); }
.iqa-est__consent-txt a { color: var(--e-accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.iqa-est .iqa-est__btn {
	appearance: none; -webkit-appearance: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; margin: 0; padding: 0 22px;
	border: 1px solid transparent; border-radius: 12px;
	font-family: var(--e-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	line-height: 1.2; text-decoration: none !important; cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.iqa-est .iqa-est__btn:focus-visible { outline: 3px solid rgba(16, 185, 129, .4); outline-offset: 2px; }
.iqa-est .iqa-est__btn[disabled] { opacity: .65; cursor: wait; transform: none !important; }
.iqa-est .iqa-est__btn--primary { background: var(--e-accent); color: #fff !important; box-shadow: 0 10px 25px -8px rgba(5, 150, 105, .45); }
.iqa-est .iqa-est__btn--primary:hover { background: var(--e-accent-hover); transform: translateY(-1px); }
.iqa-est .iqa-est__btn--dark { background: var(--e-ink); color: #fff !important; }
.iqa-est .iqa-est__btn--dark:hover { background: #1e293b; box-shadow: 0 10px 25px -8px rgba(16, 185, 129, .35); }
.iqa-est .iqa-est__btn--ghost { background: #fff; color: var(--e-ink) !important; border-color: #cbd5e1; }
.iqa-est .iqa-est__btn--ghost:hover { border-color: var(--e-ink); }
.iqa-est .iqa-est__btn--block { width: 100%; }
.iqa-est .iqa-est__btn--lg { min-height: 54px; padding: 0 28px; font-size: 13px; }
.iqa-est__btn .iqa-est__arrow { transition: transform .2s ease; }
.iqa-est__btn:hover .iqa-est__arrow { transform: translateX(3px); }
.iqa-est__spinner {
	width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
	animation: iqaEstSpin .8s linear infinite;
}
@keyframes iqaEstSpin { to { transform: rotate(360deg); } }

/* ---------- Proposal ---------- */
.iqa-est__proposal { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--e-line); animation: iqaEstUp .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes iqaEstUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.iqa-est__steps {
	display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; padding: 0; list-style: none;
	font-family: var(--e-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--e-muted);
}
.iqa-est__steps li { display: inline-flex; align-items: center; gap: 8px; }
.iqa-est__steps li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.iqa-est__steps li.is-done { color: var(--e-accent); }
.iqa-est__steps li.is-done::before { background: var(--e-accent-bright); }
.iqa-est__steps li.is-now { color: var(--e-ink); font-weight: 700; }
.iqa-est__steps li.is-now::before { background: var(--e-ink); box-shadow: 0 0 0 3px rgba(15, 23, 42, .12); }

.iqa-est__cockpit { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.iqa-est__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* dark price console */
.iqa-est__price {
	position: relative; overflow: hidden;
	padding: 24px; border-radius: 20px; color: #fff;
	background-color: var(--e-dark);
	background-image:
		radial-gradient(circle at 100% 0%, rgba(16, 185, 129, .22) 0%, transparent 55%),
		linear-gradient(to right, rgba(51, 65, 85, .35) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(51, 65, 85, .35) 1px, transparent 1px);
	background-size: 100% 100%, 32px 32px, 32px 32px;
	box-shadow: 0 25px 50px -20px rgba(15, 23, 42, .45);
}
.iqa-est__price-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.iqa-est__tag {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 4px 10px; border-radius: 999px;
	font-family: var(--e-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	background: rgba(52, 211, 153, .12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .35);
}
.iqa-est__tag--amber { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .35); }
.iqa-est__tag--official { background: #10b981; color: #022c22; border-color: #10b981; }
.iqa-est__price-zone {
	position: relative;
	margin-top: 14px;
	min-height: 86px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 12px;
}
.iqa-est__amount {
	margin-top: 0;
	font-family: var(--e-display); font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -.03em;
	color: #fff; font-variant-numeric: tabular-nums;
	transition: opacity .25s ease, filter .5s ease, transform .5s ease;
}
.iqa-est__amount.is-blurred {
	filter: blur(24px) !important;
	opacity: 0 !important;
	user-select: none;
	pointer-events: none;
}
.iqa-est__vat {
	margin-top: 8px;
	font-family: var(--e-mono);
	font-size: 12px;
	color: #94a3b8;
	transition: opacity .3s ease;
}
.iqa-est__vat[hidden] {
	display: none !important;
}
.iqa-est__price-zone.is-locked .iqa-est__vat {
	display: none !important;
}
.iqa-est__blur-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(10, 17, 30, 0.94);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(110, 231, 183, 0.35);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
	transition: opacity .4s ease, visibility .4s ease;
	z-index: 5;
}
.iqa-est__blur-overlay[hidden] {
	display: none !important;
	opacity: 0;
	visibility: hidden;
}
.iqa-est__blur-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.2);
	border: 1px solid rgba(52, 211, 153, 0.45);
	font-family: var(--e-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6ee7b7;
}
.iqa-est__blur-icon {
	display: inline-flex;
	align-items: center;
	width: 14px;
	height: 14px;
}
.iqa-est__blur-icon svg { width: 100%; height: 100%; fill: currentColor; }
.iqa-est__blur-hint {
	margin: 6px 0 0;
	font-size: 11.5px;
	line-height: 1.4;
	color: #94a3b8;
}
.iqa-est__amount.is-updating { opacity: .45; }
.iqa-est__vat { margin-top: 8px; font-family: var(--e-mono); font-size: 12px; color: #94a3b8; }
.iqa-est__meta {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
	margin: 20px 0 0; padding: 0;
	background: var(--e-dark-line); border: 1px solid var(--e-dark-line); border-radius: 12px; overflow: hidden;
}
.iqa-est__meta > div { background: var(--e-dark-2); padding: 12px; min-width: 0; }
.iqa-est__meta dt { margin: 0; font-family: var(--e-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.iqa-est__meta dd { margin: 4px 0 0; font-family: var(--e-mono); font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iqa-est__meta small { display: block; margin-top: 2px; white-space: nowrap; font-family: var(--e-mono); font-size: 9.5px; color: #64748b; }
.iqa-est__how { margin-top: 16px; border-top: 1px solid var(--e-dark-line); padding-top: 12px; }
.iqa-est__how summary {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	cursor: pointer; list-style: none;
	font-family: var(--e-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #cbd5e1;
}
.iqa-est__how summary::-webkit-details-marker { display: none; }
.iqa-est__how summary::after { content: "+"; font-size: 16px; color: #6ee7b7; transition: transform .2s ease; }
.iqa-est__how[open] summary::after { transform: rotate(45deg); }
.iqa-est__how p { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #cbd5e1; }
.iqa-est__how strong { color: #fff; }
.iqa-est__guarantee { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-family: var(--e-mono); font-size: 11px; color: #6ee7b7; }

/* light cards */
.iqa-est__card { padding: 18px; border-radius: var(--e-radius); background: #fff; border: 1px solid var(--e-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.iqa-est__card-title { margin: 0 0 12px; font-family: var(--e-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--e-muted); }
.iqa-est__react { display: flex; flex-direction: column; gap: 8px; }
.iqa-est .iqa-est__react-btn {
	appearance: none; -webkit-appearance: none;
	display: flex; align-items: center; gap: 12px;
	width: 100%; min-height: 50px; margin: 0; padding: 10px 14px;
	font: inherit; font-size: 14px; font-weight: 600; text-align: left; color: var(--e-ink);
	background: #fff; border: 1px solid var(--e-line); border-radius: 12px; cursor: pointer;
	transition: all .2s ease;
}
.iqa-est .iqa-est__react-btn:hover { border-color: #94a3b8; }
.iqa-est .iqa-est__react-btn:focus-visible { outline: 3px solid rgba(16, 185, 129, .35); outline-offset: 2px; }
.iqa-est__react-ico { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.iqa-est .iqa-est__react-btn.is-accept { background: var(--e-accent); border-color: var(--e-accent); color: #fff; }
.iqa-est .iqa-est__react-btn.is-accept:hover { background: var(--e-accent-hover); }
.iqa-est .iqa-est__react-btn.is-accept .iqa-est__react-ico { background: rgba(255, 255, 255, .16); }
.iqa-est .iqa-est__react-btn.is-budget .iqa-est__react-ico { background: var(--e-amber-soft); color: var(--e-amber); border: 1px solid var(--e-amber-line); }
.iqa-est .iqa-est__react-btn.is-reject { color: var(--e-ink-2); }
.iqa-est .iqa-est__react-btn.is-reject .iqa-est__react-ico { background: var(--e-surface); color: var(--e-muted); border: 1px solid var(--e-line); }
.iqa-est .iqa-est__react-btn.is-chosen { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
.iqa-est .iqa-est__react-btn[disabled] { opacity: .6; cursor: default; }

/* scope */
.iqa-est__scope { padding: 0; overflow: hidden; }
.iqa-est .iqa-est__scope-toggle {
	appearance: none; -webkit-appearance: none;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; min-height: 56px; margin: 0; padding: 14px 18px;
	font: inherit; text-align: left; color: var(--e-ink); background: transparent; border: 0; cursor: pointer;
}
.iqa-est__scope-toggle:focus-visible { outline: 3px solid rgba(16, 185, 129, .35); outline-offset: -3px; }
.iqa-est__scope-title { display: flex; flex-direction: column; gap: 2px; }
.iqa-est__scope-title strong { font-size: 14px; font-weight: 700; }
.iqa-est__scope-title span { font-family: var(--e-mono); font-size: 11px; color: var(--e-muted); }
.iqa-est__chev { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--e-line); display: flex; align-items: center; justify-content: center; color: var(--e-muted); transition: transform .25s ease, background-color .2s ease; }
.iqa-est__scope.is-open .iqa-est__chev { transform: rotate(180deg); background: var(--e-surface); }
.iqa-est__scope-body { padding: 0 18px 16px; border-top: 1px solid var(--e-line-2); }
.iqa-est__scope-hint { margin: 12px 0 10px; font-size: 12.5px; color: var(--e-muted); }
.iqa-est__task {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 12px 0; border-bottom: 1px solid var(--e-line-2); cursor: pointer;
}
.iqa-est__task:last-child { border-bottom: 0; }
.iqa-est .iqa-est__task input[type="checkbox"] {
	appearance: none; -webkit-appearance: none;
	width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0;
	border: 1.5px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer;
	transition: all .15s ease;
}
.iqa-est .iqa-est__task input[type="checkbox"]:checked {
	border-color: var(--e-accent); background-color: var(--e-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.iqa-est .iqa-est__task input[type="checkbox"]:focus-visible { outline: 3px solid rgba(16, 185, 129, .35); outline-offset: 2px; }
.iqa-est .iqa-est__task input[disabled] { cursor: not-allowed; opacity: .6; }
.iqa-est__task-txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--e-ink-2); }
.iqa-est__task-code { display: inline-block; margin-right: 6px; font-family: var(--e-mono); font-size: 11px; font-weight: 700; color: var(--e-accent); }
.iqa-est__task-hrs { flex-shrink: 0; font-family: var(--e-mono); font-size: 12px; font-weight: 600; color: var(--e-ink); }
.iqa-est__task.is-off .iqa-est__task-txt, .iqa-est__task.is-off .iqa-est__task-hrs { color: #94a3b8; text-decoration: line-through; }

.iqa-est__actions { display: flex; flex-direction: column; gap: 10px; }
.iqa-est__actions:empty { display: none; }

/* ---------- Elena chat ---------- */
.iqa-est__chat {
	display: flex; flex-direction: column;
	min-width: 0; height: 720px; max-height: calc(100vh - 120px);
	background: #fff; border: 1px solid var(--e-line); border-radius: 20px;
	box-shadow: 0 30px 60px -35px rgba(15, 23, 42, .25);
	overflow: hidden;
}
.iqa-est__chat-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 16px 20px; border-bottom: 1px solid var(--e-line);
	background: linear-gradient(180deg, #fff 0%, var(--e-surface) 100%);
}
.iqa-est__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.iqa-est__avatar { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.iqa-est__avatar img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--e-line); display: block; }
.iqa-est__avatar-fallback { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--e-ink); color: #6ee7b7; font-family: var(--e-display); font-weight: 700; font-size: 18px; }
.iqa-est__avatar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--e-accent-bright); border: 2px solid #fff; }
.iqa-est__who-txt { min-width: 0; }
.iqa-est__who-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-family: var(--e-display); font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--e-ink); }
.iqa-est__ai-badge {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 8px; border-radius: 999px;
	font-family: var(--e-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	background: var(--e-accent-soft); color: #065f46; border: 1px solid var(--e-accent-line);
}
.iqa-est__who-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iqa-est__modes { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: #eef2f6; border: 1px solid var(--e-line); }
.iqa-est .iqa-est__mode {
	appearance: none; -webkit-appearance: none;
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 36px; margin: 0; padding: 0 12px;
	font-family: var(--e-mono); font-size: 11.5px; font-weight: 600; color: var(--e-muted);
	background: transparent; border: 0; border-radius: 9px; cursor: pointer; transition: all .2s ease;
}
.iqa-est .iqa-est__mode.is-active { background: #fff; color: var(--e-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.iqa-est .iqa-est__mode.is-active svg { color: var(--e-accent); }

.iqa-est__disclosure {
	display: flex; align-items: center; gap: 8px;
	margin: 0; padding: 8px 20px;
	font-size: 12px; color: var(--e-muted); background: var(--e-surface); border-bottom: 1px solid var(--e-line-2);
}
.iqa-est__stream {
	flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 12px;
	padding: 20px;
	scroll-behavior: smooth;
}
.iqa-est__msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; word-wrap: break-word; animation: iqaEstMsg .3s ease; }
@keyframes iqaEstMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.iqa-est__msg--ai { align-self: flex-start; background: var(--e-surface); border: 1px solid var(--e-line); border-top-left-radius: 6px; color: var(--e-ink); }
.iqa-est__msg--user { align-self: flex-end; background: var(--e-ink); color: #fff; border-top-right-radius: 6px; }
.iqa-est__msg--note { align-self: center; max-width: 100%; padding: 6px 12px; background: transparent; font-family: var(--e-mono); font-size: 11px; color: var(--e-muted); }
.iqa-est__msg strong { font-weight: 700; }
.iqa-est__msg a { color: inherit; text-decoration: underline; }
.iqa-est__typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--e-surface); border: 1px solid var(--e-line); font-family: var(--e-mono); font-size: 11px; color: var(--e-muted); }
.iqa-est__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--e-accent-bright); animation: iqaEstDot 1.2s infinite ease-in-out; }
.iqa-est__typing i:nth-child(3) { animation-delay: .15s; }
.iqa-est__typing i:nth-child(4) { animation-delay: .3s; }
@keyframes iqaEstDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.iqa-est__handoff { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--e-accent-soft); border: 1px solid var(--e-accent-line); font-size: 13px; color: #065f46; }

.iqa-est__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.iqa-est__chips:empty { display: none; }
.iqa-est .iqa-est__chip {
	appearance: none; -webkit-appearance: none;
	min-height: 36px; margin: 0; padding: 6px 12px;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--e-ink-2);
	background: #fff; border: 1px solid var(--e-line); border-radius: 999px; cursor: pointer; transition: all .2s ease;
}
.iqa-est .iqa-est__chip:hover { border-color: var(--e-accent-bright); color: var(--e-accent); background: var(--e-accent-soft); }

.iqa-est__composer { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px 16px; border-top: 1px solid var(--e-line); background: #fff; }
.iqa-est__composer-field { flex: 1; display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--e-line); background: var(--e-surface); transition: all .2s ease; }
.iqa-est__composer-field:focus-within { border-color: var(--e-accent-bright); background: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, .12); }
.iqa-est .iqa-est__composer input {
	flex: 1; width: 100%; height: 48px; margin: 0; padding: 0;
	border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
	font: inherit; font-size: 15px; color: var(--e-ink);
}
.iqa-est .iqa-est__attach-btn {
	appearance: none; -webkit-appearance: none;
	width: 48px; min-width: 48px; height: 48px; margin: 0; padding: 0;
	border: 1px solid var(--e-line); border-radius: 14px;
	background: var(--e-surface); color: var(--e-ink-2);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; transition: all .2s ease;
}
.iqa-est .iqa-est__attach-btn:hover {
	border-color: var(--e-accent); color: var(--e-accent); background: var(--e-accent-soft);
}
.iqa-est .iqa-est__attach-btn svg { width: 18px; height: 18px; }
.iqa-est .iqa-est__send { width: 50px; min-width: 50px; height: 50px; padding: 0; border-radius: 14px; }

.iqa-est__voice { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 16px 20px; border-top: 1px solid var(--e-line); }
.iqa-est .iqa-est__orb {
	appearance: none; -webkit-appearance: none;
	position: relative; width: 76px; height: 76px; margin: 0; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer;
	background: var(--e-ink); color: #6ee7b7;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .45);
	transition: transform .2s ease, background-color .2s ease;
}
.iqa-est .iqa-est__orb:hover { transform: scale(1.04); }
.iqa-est .iqa-est__orb::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(16, 185, 129, .0); transition: border-color .2s ease; }
.iqa-est .iqa-est__orb.is-listening { background: var(--e-accent); color: #fff; }
.iqa-est .iqa-est__orb.is-listening::before { border-color: rgba(16, 185, 129, .45); animation: iqaEstRing 1.4s ease-out infinite; }
.iqa-est .iqa-est__orb.is-speaking { background: #1e293b; }
.iqa-est .iqa-est__orb.is-speaking::before { border-color: rgba(110, 231, 183, .4); animation: iqaEstRing 2s ease-out infinite; }
@keyframes iqaEstRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.iqa-est__voice-title { font-weight: 700; font-size: 14px; text-align: center; }
.iqa-est__voice-sub { font-family: var(--e-mono); font-size: 11px; color: var(--e-muted); text-align: center; }
.iqa-est__voice-live { max-width: 100%; padding: 8px 12px; border-radius: 12px; background: var(--e-surface); border: 1px dashed var(--e-line); font-size: 13px; color: var(--e-ink-2); text-align: center; }

/* ---------- Mobile dock ---------- */
.iqa-est__dock { display: none; }

/* ---------- Dark theme ---------- */
.iqa-est[data-theme="dark"] {
	--e-ink: #f8fafc; --e-ink-2: #cbd5e1; --e-muted: #94a3b8; --e-line: #1e293b; --e-line-2: #172033;
	--e-surface: #0f172a; --e-card: #0b1120; --e-accent: #10b981; --e-accent-hover: #34d399; --e-accent-soft: rgba(16, 185, 129, .12); --e-accent-line: rgba(16, 185, 129, .35);
	background: var(--e-card);
}
.iqa-est[data-theme="dark"] .iqa-est__opt,
.iqa-est[data-theme="dark"] .iqa-est__input,
.iqa-est[data-theme="dark"] .iqa-est__card,
.iqa-est[data-theme="dark"] .iqa-est__chat,
.iqa-est[data-theme="dark"] .iqa-est__composer,
.iqa-est[data-theme="dark"] .iqa-est__react-btn,
.iqa-est[data-theme="dark"] .iqa-est__eyebrow,
.iqa-est[data-theme="dark"] .iqa-est__rate,
.iqa-est[data-theme="dark"] .iqa-est__chip,
.iqa-est[data-theme="dark"] .iqa-est__btn--ghost { background: #0f172a; color: var(--e-ink); }
.iqa-est[data-theme="dark"] .iqa-est__chat-head { background: #0f172a; }
.iqa-est[data-theme="dark"] .iqa-est__msg--user { background: var(--e-accent); color: #022c22; }
.iqa-est[data-theme="dark"] .iqa-est__btn--primary,
.iqa-est[data-theme="dark"] .iqa-est__react-btn.is-accept { color: #022c22 !important; }
.iqa-est[data-theme="dark"]::before { opacity: .25; }

/* ---------- Mobile Segmented Tabs (Desktop hidden) ---------- */
.iqa-est__mobile-tabs {
	display: none;
}

/* ---------- Responsive & Screen Budgets ---------- */
/* Small Laptops & Tablets (1024px - 1200px or compact vertical screens) */
@media (min-width: 768px) and (max-height: 850px) {
	.iqa-est { padding: 24px 28px; }
	.iqa-est__head { margin-bottom: 16px; }
	.iqa-est .iqa-est__title { font-size: 26px; }
	.iqa-est__sub { font-size: 13.5px; margin-top: 6px; }
	.iqa-est__cockpit { min-height: 480px; max-height: calc(100vh - 160px); }
	.iqa-est__side { max-height: 100%; overflow-y: auto; padding-right: 6px; }
	.iqa-est__side::-webkit-scrollbar { width: 5px; }
	.iqa-est__side::-webkit-scrollbar-thumb { background: var(--e-line); border-radius: 99px; }
	.iqa-est__chat { height: 100%; max-height: 100%; }
}

@media (max-width: 1100px) and (min-width: 768px) {
	.iqa-est { padding: 28px 20px; }
	.iqa-est__cockpit { grid-template-columns: 1fr 1fr; gap: 16px; }
	.iqa-est__side { gap: 14px; }
	.iqa-est__amount { font-size: 38px; }
}

/* Mobile Devices & Phones (max-width: 767px) */
@media (max-width: 767px) {
	.iqa-est { padding: 20px 14px; border-radius: 20px; font-size: 14.5px; }
	.iqa-est .iqa-est__title { font-size: 24px; line-height: 1.25; }
	.iqa-est__sub { font-size: 13.5px; margin-top: 8px; }
	.iqa-est__status { margin-bottom: 20px; padding: 10px 12px; font-size: 10.5px; border-radius: 12px; }
	.iqa-est__options, .iqa-est__grid2 { grid-template-columns: 1fr; gap: 10px; }
	.iqa-est .iqa-est__opt { min-height: 64px; padding: 12px 14px; border-radius: 14px; }
	.iqa-est .iqa-est__opt:active { transform: scale(0.98); }
	.iqa-est__submit-row { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
	.iqa-est__submit-row .iqa-est__btn { width: 100%; min-height: 52px; font-size: 15px; }
	.iqa-est__legal { text-align: center; max-width: none; font-size: 12px; }
	.iqa-est__proposal { margin-top: 24px; padding-top: 20px; }

	/* Steps horizontal scroll on small screens */
	.iqa-est__steps { overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; font-size: 11px; }

	/* Segmented Tab Switcher */
	.iqa-est__mobile-tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px;
		margin: 0 0 16px;
		padding: 4px;
		background: var(--e-line-2);
		border-radius: 14px;
		border: 1px solid var(--e-line);
	}
	.iqa-est[data-theme="dark"] .iqa-est__mobile-tabs {
		background: #0f172a;
		border-color: #1e293b;
	}
	.iqa-est__mobile-tab {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 44px;
		padding: 8px 12px;
		font-family: var(--e-sans);
		font-size: 13px;
		font-weight: 600;
		color: var(--e-muted);
		background: transparent;
		border: 0;
		border-radius: 10px;
		cursor: pointer;
		transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
		-webkit-tap-highlight-color: transparent;
	}
	.iqa-est__mobile-tab.is-active {
		color: var(--e-ink);
		background: var(--e-card);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}
	.iqa-est[data-theme="dark"] .iqa-est__mobile-tab.is-active {
		color: #fff;
		background: #1e293b;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	}
	.iqa-est__mobile-tab-ico {
		display: inline-flex;
		align-items: center;
	}
	.iqa-est__mobile-tab-ico svg {
		width: 16px;
		height: 16px;
	}
	.iqa-est__tab-dot {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--e-accent-bright);
		box-shadow: 0 0 8px var(--e-accent-bright);
		animation: iqaEstPing 1.8s cubic-bezier(0, 0, .2, 1) infinite;
	}

	/* Controlled Pane Visibility on Mobile */
	.iqa-est__cockpit { display: flex; flex-direction: column; }
	.iqa-est__cockpit[data-est-active-pane="scope"] .iqa-est__side { display: flex; flex-direction: column; }
	.iqa-est__cockpit[data-est-active-pane="scope"] .iqa-est__chat { display: none !important; }
	.iqa-est__cockpit[data-est-active-pane="chat"] .iqa-est__side { display: none !important; }
	.iqa-est__cockpit[data-est-active-pane="chat"] .iqa-est__chat {
		display: flex !important;
		order: 0;
		height: min(74vh, 640px);
		max-height: none;
		border-radius: 18px;
	}

	.iqa-est__amount { font-size: 36px; }
	.iqa-est__meta dd { font-size: 13px; white-space: normal; overflow: visible; }
	.iqa-est__meta > div { padding: 10px; }

	.iqa-est__chat-head { padding: 12px 14px; }
	.iqa-est__who-sub { white-space: normal; }
	.iqa-est__disclosure { padding: 8px 14px; font-size: 11.5px; }
	.iqa-est__stream { padding: 14px; }
	.iqa-est__msg { max-width: 90%; font-size: 14.5px; }
	.iqa-est__chips { padding: 0 14px 10px; }
	.iqa-est__composer { padding: 10px 12px 12px; }
	.iqa-est .iqa-est__composer input { font-size: 16px !important; } /* prevents iOS zoom */
	.iqa-est .iqa-est__input input { font-size: 16px !important; }

	.iqa-est.has-proposal { padding-bottom: 96px; }
	.iqa-est.has-proposal .iqa-est__dock {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
		z-index: 9990;
		padding: 10px 10px 10px 16px; border-radius: 18px;
		background: rgba(11, 17, 32, .96); color: #fff;
		-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .5);
		transition: transform .25s ease, opacity .25s ease;
	}
	.iqa-est.has-proposal.is-typing .iqa-est__dock,
	.iqa-est.has-proposal.dock-hidden .iqa-est__dock { transform: translateY(140%); opacity: 0; pointer-events: none; }
	.iqa-est__dock-price { display: flex; flex-direction: column; min-width: 0; }
	.iqa-est__dock-price strong { font-family: var(--e-display); font-size: 19px; line-height: 1.1; font-variant-numeric: tabular-nums; }
	.iqa-est__dock-price span { font-family: var(--e-mono); font-size: 10px; color: #94a3b8; letter-spacing: .04em; }
	.iqa-est__dock-actions { display: flex; gap: 8px; }
	.iqa-est .iqa-est__dock .iqa-est__btn { min-height: 44px; padding: 0 14px; font-size: 12px; font-weight: 700; border-radius: 12px; }
	.iqa-est .iqa-est__dock .iqa-est__btn--ghost { background: transparent; color: #e2e8f0 !important; border-color: #334155; }
}

@media (max-width: 380px) {
	.iqa-est__meta { grid-template-columns: 1fr 1fr; }
	.iqa-est__meta > div:last-child { grid-column: 1 / -1; }
	.iqa-est .iqa-est__dock .iqa-est__btn { padding: 0 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.iqa-est *, .iqa-est *::before, .iqa-est *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* screen-reader-only label (themes/builders don't always ship .screen-reader-text) */
.iqa-est .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Modals (Brand Assets & Stripe Payment) ---------- */
.iqa-modal-backdrop {
	position: fixed; inset: 0; z-index: 99999;
	display: grid; place-items: center; padding: 16px;
	background: rgba(10, 15, 29, 0.84);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	animation: iqaEstFade .2s ease both;
}
@keyframes iqaEstFade { from { opacity: 0; } to { opacity: 1; } }

.iqa-modal-dialog {
	position: relative; width: 100%; max-width: 520px; max-height: 90vh;
	overflow-y: auto; padding: 32px 28px; border-radius: 20px;
	background: #0f172a; border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
	color: #f1f5f9; box-sizing: border-box;
	animation: iqaEstPop .25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes iqaEstPop { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: none; } }

.iqa-modal-dialog h3, .iqa-modal-title {
	margin: 0 0 8px; font-size: 1.35rem; font-weight: 700; color: #fff; line-height: 1.25;
}
.iqa-modal-dialog p {
	margin: 0 0 18px; color: #94a3b8; font-size: 0.92rem; line-height: 1.5;
}

.iqa-modal-close {
	position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
	border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.08); color: #cbd5e1;
	display: grid; place-items: center; cursor: pointer; font-size: 15px;
	transition: all .2s ease;
}
.iqa-modal-close:hover {
	background: rgba(255, 255, 255, 0.2); color: #fff; transform: scale(1.08);
}

.iqa-modal-dialog .iqa-chip {
	appearance: none; -webkit-appearance: none;
	padding: 8px 14px; border-radius: 9999px; font-size: 13px; font-weight: 600;
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
	color: #e2e8f0; cursor: pointer; transition: all .2s ease;
}
.iqa-modal-dialog .iqa-chip:hover {
	background: rgba(255, 255, 255, 0.14); color: #fff;
}
.iqa-modal-dialog .iqa-chip.is-on {
	background: #10b981 !important; border-color: #10b981 !important; color: #fff !important;
	box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.iqa-dropzone {
	display: grid; place-items: center; min-height: 110px; padding: 20px;
	border: 2px dashed rgba(16, 185, 129, 0.4); border-radius: 16px;
	background: rgba(16, 185, 129, 0.05); color: #cbd5e1; cursor: pointer;
	text-align: center; transition: all .2s ease; margin: 12px 0;
}
.iqa-dropzone:hover, .iqa-dropzone.is-dragover {
	border-color: #10b981; background: rgba(16, 185, 129, 0.12); color: #fff;
}
.iqa-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.iqa-drop-icon { font-size: 26px; }
.iqa-drop-text { font-size: 13.5px; }

.iqa-brand-colors-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.iqa-brand-colors-label { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.iqa-color-input-wrapper { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.3); cursor: pointer; flex: none; }
.iqa-color-input-wrapper input[type="color"] { width: 150%; height: 150%; margin: -25%; cursor: pointer; border: 0; background: none; }
.iqa-modal-dialog input[type="url"], .iqa-modal-dialog input[type="text"] {
	flex: 1; padding: 10px 14px; font-size: 13px; color: #fff; background: #1e293b;
	border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; outline: none;
}
.iqa-modal-dialog input[type="url"]:focus, .iqa-modal-dialog input[type="text"]:focus {
	border-color: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}
.iqa-modal-dialog .iqa-btn {
	width: 100%; min-height: 48px; border-radius: 12px; font-weight: 700;
	background: #10b981; color: #fff; border: 0; cursor: pointer;
	box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.5);
}
.iqa-modal-dialog .iqa-btn:hover { background: #059669; }
.iqa-modal-dialog .iqa-error { color: #f87171; font-size: 13px; margin: 10px 0; font-weight: 600; }
