/* OnMerch Quote — form styles
   Palette : terracotta #C97B5A / dark teal #1A2E35 / crème #FBF6F2 */

.omq-wrap {
	--omq-primary: #C97B5A;
	--omq-primary-dark: #B4663F;
	--omq-primary-soft: #F2D9CD;
	--omq-cream: #FBF6F2;
	--omq-ink: #1A2E35;
	--omq-muted: #6B7A80;
	--omq-border: #F0E4DC;
	--omq-radius: 14px;

	font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
	color: var(--omq-ink);
	line-height: 1.55;
}

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

/* ---------- Hero ---------- */
.omq-hero {
	background: linear-gradient(135deg, #C97B5A 0%, #DFA083 100%);
	color: #fff;
	text-align: center;
	padding: 72px 24px 80px;
	border-radius: 0 0 var(--omq-radius) var(--omq-radius);
}

.omq-hero h1 {
	margin: 0 0 14px;
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 600;
	color: #fff;
}

.omq-hero p {
	margin: 0 auto;
	max-width: 560px;
	font-size: 1.05rem;
	opacity: 0.95;
}

/* ---------- Container ---------- */
.omq-inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 48px 20px 64px;
}

/* ---------- Progress ---------- */
.omq-progress {
	display: flex;
	justify-content: center;
	gap: clamp(24px, 8vw, 120px);
	list-style: none;
	margin: 0 0 48px;
	padding: 0;
}

.omq-progress li {
	position: relative;
	text-align: center;
	min-width: 110px;
}

.omq-progress li:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 20px;
	left: calc(100% + 12px);
	width: clamp(20px, 6vw, 90px);
	height: 1px;
	background: var(--omq-border);
}

.omq-progress__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--omq-primary-soft);
	color: var(--omq-primary-dark);
	font-weight: 600;
	margin-bottom: 8px;
	transition: background 0.25s, color 0.25s;
}

.omq-progress li.is-active .omq-progress__dot {
	background: var(--omq-primary);
	color: #fff;
}

.omq-progress li.is-done .omq-progress__dot {
	background: var(--omq-primary);
	color: #fff;
}

.omq-progress__label {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
}

.omq-progress__hint {
	display: block;
	font-size: 0.78rem;
	color: var(--omq-muted);
}

/* ---------- Steps ---------- */
.omq-step[hidden] {
	display: none;
}

.omq-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--omq-ink);
}

.omq-subtitle {
	color: var(--omq-muted);
	margin: 0 0 32px;
}

.omq-section-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 36px 0 16px;
}

/* ---------- Grid & cards ---------- */
.omq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.omq-card {
	border: 1px solid var(--omq-border);
	border-radius: var(--omq-radius);
	padding: 24px;
	margin: 0;
}

.omq-card__title {
	font-size: 1.15rem;
	font-weight: 600;
	padding: 0;
	margin-bottom: 14px;
}

/* Checkbox pills */
.omq-check {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid var(--omq-border);
	border-radius: 12px;
	padding: 13px 16px;
	margin: 0 0 12px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.2s, background 0.2s;
}

.omq-check:hover {
	border-color: var(--omq-primary);
}

.omq-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.omq-check__box {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border: 1.5px solid #D8CDC5;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #fff;
	transition: background 0.2s, border-color 0.2s;
}

.omq-check input:checked ~ .omq-check__box {
	background: var(--omq-primary);
	border-color: var(--omq-primary);
}

.omq-check input:checked ~ .omq-check__box::after {
	content: '✓';
}

.omq-check:has(input:checked) {
	background: var(--omq-cream);
	border-color: var(--omq-primary);
}

.omq-check input:focus-visible ~ .omq-check__box {
	outline: 2px solid var(--omq-primary);
	outline-offset: 2px;
}

/* ---------- Quantity ---------- */
.omq-quantity {
	background: var(--omq-primary-soft);
	border-radius: var(--omq-radius);
	padding: 24px 28px;
	margin-top: 36px;
}

.omq-quantity__title {
	font-weight: 600;
	margin: 0;
}

.omq-quantity__hint {
	font-size: 0.85rem;
	color: var(--omq-primary-dark);
	margin: 2px 0 16px;
}

.omq-quantity__row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.omq-quantity__row input[type='range'] {
	flex: 1 1 auto;
	accent-color: var(--omq-primary);
	height: 4px;
}

.omq-quantity__row input[type='number'] {
	width: 96px;
	border: none;
	border-radius: 999px;
	padding: 10px 16px;
	font: inherit;
	text-align: center;
	background: #fff;
}

.omq-quantity__unit {
	color: var(--omq-primary-dark);
	font-size: 0.9rem;
}

/* ---------- Radio cards (branding) ---------- */
.omq-grid--radios {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.omq-radio-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	border: 1px solid var(--omq-border);
	border-radius: var(--omq-radius);
	padding: 22px 24px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.2s, background 0.2s;
}

.omq-radio-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.omq-radio-card__label {
	display: block;
	font-weight: 600;
	font-size: 1.05rem;
}

.omq-radio-card__desc {
	display: block;
	color: var(--omq-muted);
	font-size: 0.88rem;
	margin-top: 4px;
}

.omq-radio-card__dot,
.omq-delivery__dot {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 1.5px solid #D8CDC5;
	border-radius: 50%;
	margin-top: 4px;
	position: relative;
	transition: border-color 0.2s;
}

.omq-radio-card input:checked ~ .omq-radio-card__dot,
.omq-delivery__row input:checked ~ .omq-delivery__dot {
	border-color: var(--omq-primary);
}

.omq-radio-card input:checked ~ .omq-radio-card__dot::after,
.omq-delivery__row input:checked ~ .omq-delivery__dot::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--omq-primary);
}

.omq-radio-card:has(input:checked) {
	border-color: var(--omq-primary);
	background: var(--omq-cream);
}

.omq-radio-card input:focus-visible ~ .omq-radio-card__dot {
	outline: 2px solid var(--omq-primary);
	outline-offset: 2px;
}

/* ---------- Delivery rows ---------- */
.omq-delivery {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.omq-delivery__row {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid var(--omq-border);
	border-radius: var(--omq-radius);
	padding: 18px 22px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.2s, background 0.2s;
}

.omq-delivery__row input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.omq-delivery__row:has(input:checked) {
	border-color: var(--omq-primary);
	background: var(--omq-cream);
}

.omq-delivery__dot {
	margin-top: 0;
}

.omq-delivery__label {
	flex: 1 1 auto;
	font-weight: 500;
}

.omq-delivery__badge {
	color: var(--omq-primary);
	font-weight: 600;
	font-size: 0.9rem;
}

.omq-delivery__row input:focus-visible ~ .omq-delivery__dot {
	outline: 2px solid var(--omq-primary);
	outline-offset: 2px;
}

/* ---------- Note ---------- */
.omq-note {
	background: var(--omq-cream);
	border: 1px solid var(--omq-border);
	border-radius: var(--omq-radius);
	padding: 20px 24px;
	margin-top: 32px;
	font-size: 0.92rem;
}

.omq-note__title {
	font-weight: 600;
	margin: 0 0 6px;
}

.omq-note p {
	margin: 0;
	color: var(--omq-muted);
}

/* ---------- Fields ---------- */
.omq-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 28px;
}

.omq-field--full {
	grid-column: 1 / -1;
}

.omq-field label {
	display: block;
	font-weight: 500;
	font-size: 0.92rem;
	margin-bottom: 8px;
}

.omq-req {
	color: var(--omq-primary);
}

.omq-field input,
.omq-field textarea {
	width: 100%;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--omq-cream);
	padding: 13px 16px;
	font: inherit;
	color: var(--omq-ink);
	transition: border-color 0.2s, background 0.2s;
}

.omq-field input:focus,
.omq-field textarea:focus {
	outline: none;
	border-color: var(--omq-primary);
	background: #fff;
}

.omq-field.omq-field--error input,
.omq-field.omq-field--error textarea {
	border-color: #D64545;
}

.omq-field__error {
	color: #D64545;
	font-size: 0.82rem;
	margin: 6px 0 0;
}

/* ---------- Upload logo ---------- */
.omq-upload {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	border: 1.5px dashed var(--omq-primary-soft);
	border-radius: var(--omq-radius);
	background: var(--omq-cream);
	padding: 28px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.omq-upload:hover {
	border-color: var(--omq-primary);
	background: #fff;
}

.omq-upload__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--omq-primary-soft);
	color: var(--omq-primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	margin-bottom: 4px;
}

.omq-upload__text {
	font-weight: 500;
	font-size: 0.92rem;
}

.omq-upload__hint {
	font-size: 0.8rem;
	color: var(--omq-muted);
}

.omq-upload__input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.omq-field--error .omq-upload {
	border-color: #D64545;
}

/* Honeypot : hors écran */
.omq-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Summary ---------- */
.omq-summary {
	background: var(--omq-primary-soft);
	border-radius: var(--omq-radius);
	padding: 28px 32px;
	margin-top: 36px;
}

.omq-summary h3 {
	margin: 0 0 18px;
	font-size: 1.35rem;
	font-weight: 600;
}

.omq-summary dl {
	margin: 0;
}

.omq-summary dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(180, 102, 63, 0.18);
}

.omq-summary dt {
	color: var(--omq-primary-dark);
	font-weight: 400;
}

.omq-summary dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.omq-summary__footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-top: 18px;
}

.omq-summary__budget-label {
	margin: 0;
	color: var(--omq-primary-dark);
	font-size: 0.9rem;
}

.omq-summary__budget {
	margin: 2px 0 0;
	font-size: 2.2rem;
	font-weight: 600;
	color: var(--omq-primary);
}

.omq-summary__disclaimer {
	margin: 0;
	color: var(--omq-primary-dark);
	font-size: 0.85rem;
	text-align: right;
	max-width: 240px;
}

/* ---------- Nav & buttons ---------- */
.omq-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--omq-border);
}

.omq-nav--end {
	justify-content: flex-end;
}

.omq-btn {
	font: inherit;
	font-weight: 500;
	border: none;
	border-radius: 999px;
	padding: 14px 30px;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.omq-btn--primary {
	background: var(--omq-primary);
	color: #fff;
}

.omq-btn--primary:hover {
	background: var(--omq-primary-dark);
}

.omq-btn--ghost {
	background: var(--omq-primary-soft);
	color: var(--omq-ink);
}

.omq-btn--ghost:hover {
	background: #ecd0c2;
}

.omq-btn:focus-visible {
	outline: 2px solid var(--omq-ink);
	outline-offset: 2px;
}

.omq-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* ---------- Alert & success ---------- */
.omq-alert {
	background: #FDECEC;
	color: #B03030;
	border: 1px solid #F3C4C4;
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 0.92rem;
}

.omq-success {
	text-align: center;
	padding: 48px 0;
}

.omq-success__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--omq-primary);
	color: #fff;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.omq-fields {
		grid-template-columns: 1fr;
	}

	.omq-progress {
		gap: 20px;
	}

	.omq-progress li:not(:last-child)::after {
		display: none;
	}

	.omq-progress__hint {
		display: none;
	}

	.omq-summary__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.omq-summary__disclaimer {
		text-align: left;
		max-width: none;
	}

	.omq-nav {
		flex-direction: column-reverse;
		gap: 14px;
	}

	.omq-nav .omq-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.omq-wrap * {
		transition: none !important;
	}
}
