/* Price form — one question per screen, made for a thumb. Plain on purpose. */

:root {
	--bg: #ffffff;
	--soft: #f6f5f3;
	--text: #1c1917;
	--muted: #6b6560;
	--line: #e4e1dd;
	--accent: #c2410c;
	--accent-soft: #fff1e8;
	--focus: #ea580c;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.45;
}

button,
input,
select {
	font: inherit;
	color: inherit;
}
button {
	-webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------- header */
.top {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.brand {
	display: block;
	max-width: 560px;
	margin: 0 auto;
	padding: 14px 20px 12px;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.bar {
	height: 4px;
	background: var(--soft);
}
.bar span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--accent);
}

/* --------------------------------------------------------------- screen */
.screen {
	max-width: 560px;
	margin: 0 auto;
	padding: 24px 20px 0;
}
h1 {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.2;
}
h2 {
	margin: 26px 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--muted);
}
p {
	margin: 0 0 10px;
}
.lead {
	font-size: 18px;
	color: #44403c;
}
.eyebrow {
	margin-bottom: 6px;
	font-size: 17px;
	font-weight: 600;
	color: var(--accent);
}
.en,
.muted {
	color: var(--muted);
	font-size: 17px;
}
.en {
	margin-top: -4px;
}

/* ------------------------------------------------- tap rows (no typing) */
.picks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
}
.pick {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 64px;
	padding: 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: var(--bg);
	text-align: left;
	cursor: pointer;
}
.pick__box {
	flex: none;
	width: 28px;
	height: 28px;
	border: 2px solid #b8b2ab;
	border-radius: 8px;
	display: grid;
	place-items: center;
}
.pick__text strong {
	display: block;
	font-weight: 600;
}
.pick__text span {
	display: block;
	color: var(--muted);
	font-size: 17px;
}
.pick[aria-pressed='true'] {
	border-color: var(--accent);
	background: var(--accent-soft);
}
.pick[aria-pressed='true'] .pick__box {
	border-color: var(--accent);
	background: var(--accent);
}
.pick[aria-pressed='true'] .pick__box::after {
	content: '';
	width: 8px;
	height: 14px;
	margin-top: -3px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

/* --------------------------------------------------------- price inputs */
.amounts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 18px;
}
/* several prices on one screen (home sizes): name, minimum, maximum on one line */
.grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 104px 104px;
	align-items: center;
	gap: 10px 8px;
	margin-top: 18px;
}
.grid__head {
	font-size: 17px;
	color: var(--muted);
}
.grid__name {
	font-weight: 600;
	line-height: 1.25;
}
.grid input {
	width: 100%;
	height: 54px;
	padding: 0 8px 0 28px;
	border: 1.5px solid #cfcac4;
	border-radius: 12px;
	background: var(--bg);
	font-size: 21px;
	font-weight: 600;
}
.grid .amount__box b {
	left: 10px;
	font-size: 19px;
}
.grid input:focus {
	border-color: var(--focus);
}
.amount {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 17px;
	color: var(--muted);
}
.amount__box {
	position: relative;
}
.amount__box b {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	font-weight: 600;
	color: var(--muted);
	pointer-events: none;
}
.amount input {
	width: 100%;
	height: 64px;
	padding: 0 12px 0 36px;
	border: 1.5px solid #cfcac4;
	border-radius: 12px;
	background: var(--bg);
	font-size: 26px;
	font-weight: 600;
	color: var(--text);
}
input:focus,
select:focus,
button:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}
.amount input:focus {
	border-color: var(--focus);
}

.how {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 18px;
	color: var(--muted);
}
.how strong {
	color: var(--text);
}
.how select {
	min-height: 48px;
	padding: 0 10px;
	border: 1.5px solid #cfcac4;
	border-radius: 10px;
	background: var(--bg);
	font-size: 18px;
}

.alts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.alt {
	flex: 1 1 200px;
	min-height: 52px;
	padding: 0 16px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--soft);
	font-weight: 600;
	cursor: pointer;
}
.alt[aria-pressed='true'] {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

/* --------------------------------------------------------------- review */
.review {
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
}
/* name on top, price under it: nothing gets squeezed on a phone */
.review__row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	min-height: 56px;
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
	text-align: left;
	cursor: pointer;
}
.review__row:last-child {
	border-bottom: 0;
}
.review__group {
	margin: 0;
	padding: 12px 16px 0;
	font-weight: 700;
	border-top: 1px solid var(--line);
}
.review__group:first-child {
	border-top: 0;
}
.review__group + .review__row {
	padding-top: 6px;
}
.review__row strong.is-empty {
	color: var(--muted);
	font-weight: 500;
}

/* ---------------------------------------------------- buttons, always near */
.foot {
	position: sticky;
	bottom: 0;
	display: flex;
	gap: 10px;
	margin: 28px -20px 0;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	background: var(--bg);
	border-top: 1px solid var(--line);
}
.foot--static {
	position: static;
	border-top: 0;
}
.btn {
	flex: 1;
	min-height: 56px;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	cursor: pointer;
}
.btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.btn--ghost {
	flex: 0 0 auto;
	min-width: 110px;
	background: var(--soft);
	color: var(--text);
	border: 1.5px solid var(--line);
}

.error {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fdecea;
	color: #9f1c13;
	font-weight: 600;
}
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.screen--done {
	padding-top: 48px;
	text-align: center;
}
.ok {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #dcfce7;
	color: #166534;
	font-size: 38px;
	font-weight: 700;
}
.screen--done .foot {
	justify-content: center;
	margin-inline: 0;
}

@media (min-width: 700px) {
	.screen {
		padding-top: 40px;
	}
	h1 {
		font-size: 32px;
	}
}
