/* IW Cabinet Quote — single-page form styles
   Clean white form, minimal chrome. Accent color is warm brass/oak
   (cabinetry-appropriate), used only for selection state + the submit
   button — everything else stays neutral white/gray/ink so it drops
   cleanly into any theme. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.iwcq-wrap {
	--iwcq-ink: #262220;
	--iwcq-oak: #a9805a;
	--iwcq-brass: #b98b4e;
	--iwcq-white: #ffffff;
	--iwcq-bg: #fafaf9;
	--iwcq-line: #e3e0da;
	--iwcq-muted: #767066;
	--iwcq-error: #c0392b;
	--iwcq-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 860px;
	margin: 0 auto;
	font-family: var(--iwcq-font) !important;
	color: var(--iwcq-ink);
	background: var(--iwcq-white);
	box-sizing: border-box;
}
.iwcq-wrap *, .iwcq-wrap *::before, .iwcq-wrap *::after { box-sizing: inherit; }
.iwcq-wrap button, .iwcq-wrap input, .iwcq-wrap textarea {
	font-family: var(--iwcq-font) !important;
}

/* ---------- Header ---------- */
.iwcq-header { text-align: center; margin-bottom: 36px; }
.iwcq-title {
	font-family: var(--iwcq-font) !important;
	font-size: 30px;
	font-weight: 700;
	color: var(--iwcq-ink) !important;
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}
.iwcq-intro {
	color: var(--iwcq-muted) !important;
	font-size: 15px;
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ---------- Groups (single-page sections) ---------- */
.iwcq-form { display: block; }
.iwcq-group {
	background: var(--iwcq-white);
	border: 1px solid var(--iwcq-line);
	border-radius: 12px;
	padding: 24px 26px 26px;
	margin-bottom: 20px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.iwcq-group.is-invalid { border-color: var(--iwcq-error); box-shadow: 0 0 0 3px rgba(192,57,43,0.10); }
.iwcq-group-error { display: none; color: var(--iwcq-error) !important; font-size: 13px; margin: 10px 0 0; font-weight: 500; }
.iwcq-group.is-invalid .iwcq-group-error { display: block; }

.iwcq-group-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--iwcq-ink) !important;
}
.iwcq-group-num {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: var(--iwcq-bg);
	border: 1px solid var(--iwcq-line);
	color: var(--iwcq-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.iwcq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
}

.iwcq-card {
	position: relative;
	border: 1.5px solid var(--iwcq-line) !important;
	background: var(--iwcq-white) !important;
	border-radius: 10px;
	padding: 9px;
	cursor: pointer;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: border-color .15s ease, transform .1s ease, box-shadow .15s ease;
	font-family: inherit;
	appearance: none;
	-webkit-appearance: none;
}
.iwcq-card:hover { border-color: var(--iwcq-oak) !important; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(38,34,32,0.08); }
.iwcq-card:focus-visible { outline: 2px solid var(--iwcq-brass); outline-offset: 2px; }
.iwcq-card.is-selected { border-color: var(--iwcq-brass) !important; box-shadow: 0 0 0 1px var(--iwcq-brass); }
.iwcq-card-check {
	position: absolute;
	top: 7px;
	right: 7px;
	width: 21px;
	height: 21px;
	border-radius: 999px;
	background: var(--iwcq-brass);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	opacity: 0;
	transform: scale(.6);
	transition: all .15s ease;
}
.iwcq-card.is-selected .iwcq-card-check { opacity: 1; transform: scale(1); }

.iwcq-card-img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background-size: cover;
	background-position: center;
	border-radius: 7px;
	background-color: var(--iwcq-bg);
}
.iwcq-card-swatch {
	display: block;
	width: 100%;
	height: 40px;
	border-radius: 7px;
	background: linear-gradient(135deg, var(--iwcq-oak), var(--iwcq-brass));
}
.iwcq-card-label { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--iwcq-ink) !important; }

.iwcq-empty { color: var(--iwcq-muted); font-style: italic; grid-column: 1 / -1; }

/* ---------- Contact fields ---------- */
.iwcq-contact-form { display: grid; gap: 16px; max-width: 480px; }
.iwcq-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--iwcq-ink) !important; }
.iwcq-field input, .iwcq-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid var(--iwcq-line) !important;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: var(--iwcq-ink) !important;
	background: var(--iwcq-white) !important;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none !important;
}
.iwcq-field input:focus, .iwcq-field textarea:focus {
	outline: none !important;
	border-color: var(--iwcq-brass) !important;
	box-shadow: 0 0 0 3px rgba(185,139,78,0.15) !important;
}

/* ---------- Submit ---------- */
.iwcq-submit-row { text-align: center; margin-top: 8px; }
.iwcq-error { color: var(--iwcq-error) !important; font-size: 14px; margin: 0 0 14px; font-weight: 500; }

.iwcq-btn {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	border-radius: 9px;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s ease, opacity .15s ease, transform .1s ease;
}
.iwcq-btn-primary { background: var(--iwcq-ink) !important; color: #fff !important; }
.iwcq-btn-primary:hover:not(:disabled) { background: #100e0c !important; transform: translateY(-1px); }
.iwcq-btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.iwcq-btn-submit { width: 100%; max-width: 340px; padding: 15px 26px; font-size: 15.5px; }
.iwcq-btn-secondary { background: var(--iwcq-white) !important; color: var(--iwcq-ink) !important; border: 1.5px solid var(--iwcq-line) !important; }
.iwcq-btn-secondary:hover { border-color: var(--iwcq-oak) !important; }

/* ---------- Success ---------- */
.iwcq-success { text-align: center; padding: 8px 0; }
.iwcq-success-icon {
	width: 50px; height: 50px; border-radius: 999px;
	background: var(--iwcq-brass); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 22px; margin: 0 auto 16px;
}
.iwcq-success-msg { font-size: 18px; font-weight: 600; max-width: 520px; margin: 0 auto 22px; line-height: 1.5; color: var(--iwcq-ink) !important; }
.iwcq-preview-img {
	max-width: 360px;
	width: 100%;
	border-radius: 12px;
	border: 1px solid var(--iwcq-line);
	box-shadow: 0 12px 30px rgba(38,34,32,0.14);
	margin: 0 auto 26px;
	display: block;
}
.iwcq-summary { text-align: left; max-width: 420px; margin: 0 auto 24px; background: var(--iwcq-bg); border: 1px solid var(--iwcq-line); border-radius: 12px; padding: 20px 22px; }
.iwcq-summary h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--iwcq-muted) !important; font-weight: 700; }
.iwcq-summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.iwcq-summary-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--iwcq-line); color: var(--iwcq-ink) !important; }
.iwcq-summary-list li:last-child { border-bottom: none; padding-bottom: 0; }
.iwcq-summary-list strong { color: var(--iwcq-muted) !important; font-weight: 600; }

@media (max-width: 480px) {
	.iwcq-title { font-size: 24px; }
	.iwcq-group { padding: 18px 16px 20px; }
	.iwcq-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; }
	.iwcq-btn-submit { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	.iwcq-card:hover { transform: none; }
}
