/* Cerere reparație */
.rpq {
	--rpq-primary: #ffab12;
	--rpq-select: #3d3fc4;
	--rpq-ink: #1d1a33;
	--rpq-muted: #6a6880;
	--rpq-line: #d9d9e0;
	--rpq-soft: #f1f1f6;
	--rpq-bg: #fff;
	max-width: 1120px;
	margin: 0 auto;
	color: var(--rpq-ink);
	font-size: 16px;
	line-height: 1.45;
}
.rpq *, .rpq *::before, .rpq *::after { box-sizing: border-box; }
.rpq [hidden] { display: none !important; }
.rpq button, .rpq input, .rpq textarea { font-family: inherit; }

.rpq-progress { height: 4px; background: var(--rpq-soft); border-radius: 4px; overflow: hidden; margin-bottom: 28px; }
.rpq-progress span { display: block; height: 100%; width: 6%; background: var(--rpq-primary); transition: width .35s ease; }
.rpq-screen { animation: rpq-in .25s ease-out; }
@keyframes rpq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Titluri */
.rpq .rpq-h { margin: 0 0 8px; color: var(--rpq-ink); font-weight: 700; line-height: 1.25; }
.rpq .rpq-h:focus { outline: none; }
.rpq .rpq-h-lg { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.rpq .rpq-h-q { font-size: 1.3rem; margin-bottom: 18px; }
.rpq .rpq-h-c { font-size: 1.25rem; text-align: center; margin: 4px 0 18px; }
.rpq-sub { margin: 0 0 30px; }
.rpq-kicker { font-size: .85rem; font-weight: 600; color: var(--rpq-select); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.rpq-empty { color: var(--rpq-muted); text-align: center; padding: 20px; }

/* Pasul 1: carduri */
.rpq-cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rpq .rpq-card {
	all: unset; box-sizing: border-box; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	padding: 28px 16px 22px; min-height: 270px;
	border: 1px solid var(--rpq-ink); border-radius: 12px; background: var(--rpq-bg);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.rpq .rpq-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29, 26, 51, .1); }
.rpq .rpq-card:focus-visible { outline: 3px solid var(--rpq-select); outline-offset: 2px; }
.rpq .rpq-card.is-active { border-color: var(--rpq-select); box-shadow: 0 0 0 1px var(--rpq-select); }
.rpq-pic { display: flex; align-items: center; justify-content: center; height: 170px; width: 100%; }
.rpq-pic svg { max-height: 100%; max-width: 88%; width: auto; height: 160px; }
.rpq-cname { margin-top: 16px; font-weight: 600; font-size: 1.05rem; text-align: center; color: var(--rpq-ink); }

/* Pasul 2: ecran împărțit */
.rpq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.rpq-visual { display: flex; align-items: center; justify-content: center; min-height: 440px; position: sticky; top: 24px; }
.rpq-visual svg { width: 100%; height: auto; max-height: 440px; }
.rpq-visual[data-shape="telefon"] svg, .rpq-visual[data-shape="ceas"] svg { max-width: 260px; }
.rpq-panel { display: flex; flex-direction: column; padding-top: 4px; }

/* Câmpuri */
.rpq-field { display: block; margin-bottom: 14px; }
.rpq-field > span, .rpq-fs legend { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; padding: 0; color: var(--rpq-ink); }
.rpq-field input, .rpq-field textarea {
	width: 100%; padding: 11px 14px; font-size: 1rem; color: var(--rpq-ink);
	border: 1px solid var(--rpq-line); border-radius: 8px; background: var(--rpq-bg); margin: 0;
}
.rpq-field textarea { min-height: 96px; resize: vertical; }
.rpq-field input:focus, .rpq-field textarea:focus { outline: 2px solid var(--rpq-select); outline-offset: 0; border-color: transparent; }
.rpq-fs { border: 0; padding: 0; margin: 4px 0 16px; min-width: 0; }
.rpq-hint { font-size: .82rem; color: var(--rpq-muted); margin: -6px 0 0; }

/* Butoane mici */
.rpq .rpq-chip {
	all: unset; box-sizing: border-box; cursor: pointer; text-align: center;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 14px; min-height: 42px; font-size: .9rem; font-weight: 600; line-height: 1.2;
	background: var(--rpq-soft); border: 1px solid var(--rpq-line); border-radius: 8px; color: var(--rpq-ink);
	transition: border-color .15s, background .15s, color .15s;
}
.rpq .rpq-chip:hover { border-color: var(--rpq-select); }
.rpq .rpq-chip:focus-visible { outline: 2px solid var(--rpq-select); outline-offset: 2px; }
.rpq .rpq-chip.is-active { background: var(--rpq-bg); border-color: var(--rpq-select); color: var(--rpq-select); box-shadow: inset 0 0 0 1px var(--rpq-select); }
.rpq-brands { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.rpq .rpq-chip-sm { min-height: 32px; padding: 5px 11px; font-size: .8rem; font-weight: 500; border-radius: 999px; }
.rpq-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rpq-problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rpq .rpq-check { justify-content: flex-start; text-align: left; padding-left: 40px; position: relative; background: var(--rpq-bg); font-weight: 500; }
.rpq .rpq-check::before {
	content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
	width: 17px; height: 17px; border: 1.5px solid var(--rpq-line); border-radius: 5px; background: var(--rpq-bg);
}
.rpq .rpq-check.is-active::before {
	background: var(--rpq-select); border-color: var(--rpq-select);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 13px; background-position: center; background-repeat: no-repeat;
}

/* Navigare */
.rpq-nav { display: flex; justify-content: flex-end; align-items: center; gap: 28px; padding-top: 26px; }
.rpq .rpq-back { all: unset; cursor: pointer; font-weight: 700; color: var(--rpq-ink); padding: 8px 4px; }
.rpq .rpq-back:hover { text-decoration: underline; }
.rpq .rpq-back:focus-visible { outline: 2px solid var(--rpq-select); outline-offset: 2px; }
.rpq .rpq-next {
	all: unset; box-sizing: border-box; cursor: pointer; text-align: center;
	min-width: 185px; padding: 11px 22px; border-radius: 4px; font-weight: 700;
	background: var(--rpq-primary); color: var(--rpq-ink); transition: filter .15s;
}
.rpq .rpq-next:hover { filter: brightness(1.05); }
.rpq .rpq-next:focus-visible { outline: 2px solid var(--rpq-select); outline-offset: 2px; }
.rpq .rpq-next:disabled { background: var(--rpq-soft); color: #a7a6b4; cursor: not-allowed; filter: none; }

/* Pasul 3 */
.rpq-center { max-width: 600px; margin: 0 auto; }
.rpq-summary { display: flex; gap: 16px; align-items: center; background: #f6f6f9; border: 1px solid #e6e6ec; border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; }
.rpq-thumb { width: 70px; height: 70px; flex: none; background: #fff; border: 1px solid #e6e6ec; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.rpq-thumb svg { max-width: 100%; max-height: 100%; width: auto; height: 100%; }
.rpq-sum-name { font-weight: 700; }
.rpq-sum-meta { font-size: .85rem; color: var(--rpq-muted); margin-top: 2px; }
.rpq-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rpq-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--rpq-muted); cursor: pointer; margin-top: 4px; }
.rpq-consent input { margin-top: 3px; accent-color: var(--rpq-select); width: 16px; height: 16px; flex: none; }
.rpq-consent a { color: var(--rpq-select); }
.rpq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rpq-err { color: #b3261e; font-weight: 600; font-size: .9rem; margin: 12px 0 0; }
.rpq-done { text-align: center; padding: 30px 0; color: var(--rpq-select); }
.rpq-done .rpq-h { color: var(--rpq-ink); }
.rpq-number { color: var(--rpq-ink); margin: 0 0 20px; font-size: 1.05rem; }

@media (max-width: 820px) {
	.rpq-split { grid-template-columns: 1fr; gap: 16px; }
	.rpq-visual { min-height: 0; position: static; }
	.rpq-visual svg { max-height: 170px; }
}
@media (max-width: 560px) {
	.rpq-cgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.rpq .rpq-card { min-height: 190px; padding: 18px 10px 16px; }
	.rpq-pic { height: 110px; }
	.rpq-pic svg { height: 100px; }
	.rpq-problems { grid-template-columns: 1fr; }
	.rpq-frow { grid-template-columns: 1fr; }
	.rpq-nav { justify-content: space-between; }
	.rpq .rpq-next { min-width: 0; flex: 1; max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
	.rpq-screen { animation: none; }
	.rpq-progress span, .rpq .rpq-card { transition: none; }
}
