/**
 * Request a Quote / Inquiry page — aligned with aurellia.holehite.in/inquiry
 */

.at-inquiry {
	padding: 40px 0 var(--at-section-pad-y);
	background: var(--at-bg);
}

.at-inquiry__inner {
	width: min(100% - 40px, 1100px);
	margin-inline: auto;
}

.at-inquiry__head {
	text-align: center;
	margin-bottom: 28px;
}

.at-inquiry__intro {
	margin: 0 auto;
	max-width: 760px;
	font-size: var(--at-fs-body);
	line-height: var(--at-lh-body);
	color: #74665f;
}

.at-inquiry-notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: var(--at-radius-btn);
	font-size: var(--at-fs-body);
}

.at-inquiry-notice--success {
	background: #edf7f0;
	border: 1px solid #b8dcc4;
	color: #1d6e4f;
}

.at-inquiry-notice--error {
	background: #fdf0ee;
	border: 1px solid #e8c4bc;
	color: #742a15;
}

/* ── Form wrap (reference: atip-wrap) ── */
.atip-wrap,
.atip-wrap * {
	box-sizing: border-box;
}

.atip-wrap {
	max-width: 1100px;
	margin: 0;
	padding: 0;
}

#at-inquiry-form {
	background: #fff;
	border-radius: 28px;
	padding: 32px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ── Section head ── */
.atip-head {
	margin-bottom: 28px;
}

.atip-head h5 {
	margin: 0 0 20px;
	font-family: var(--at-font-body);
	font-size: 18px;
	font-weight: 700;
	color: #2b1a12;
}

.at-required {
	color: #c0392b;
}

.atip-optional {
	font-weight: 400;
	color: #74665f;
	font-size: 12px;
}

/* ── Category cards ── */
.atip-categories {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 26px;
}

.atip-cat-card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 16px;
	border: 2px solid #d8c8bf;
	border-radius: 999px;
	background: #f3ece8;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	color: #9b431b;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.atip-cat-card span {
	flex: 1;
	min-width: 0;
}

.atip-cat-card:has(input:checked) {
	background: #f4e5db;
	border-color: #9b431b;
}

/* ── Custom checkbox ── */
.atip-cat-card input[type="checkbox"],
.atip-product input[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 2px solid #d8c8bf;
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	box-shadow: none;
	outline: none;
	transition: background 0.15s, border-color 0.15s;
}

.atip-cat-card input[type="checkbox"]:checked,
.atip-product input[type="checkbox"]:checked {
	background: #9b431b;
	border-color: #9b431b;
}

.atip-cat-card input[type="checkbox"]:checked::after,
.atip-product input[type="checkbox"]:checked::after {
	content: "";
	display: block;
	position: absolute;
	left: 4px;
	top: 1px;
	width: 6px;
	height: 10px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg);
}

/* ── Category / products loading hints ── */
.atip-cat-hint,
.atip-products-loading {
	font-size: 12px;
	color: #74665F;
	margin: 6px 0 14px;
}

.atip-products-loading {
	font-weight: 600;
	color: #9b431b;
}

#atip-products.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

/* ── Locked category summary ── */
.atip-cat-summary {
	display: none;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.atip-cat-summary.visible {
	display: flex;
}

.atip-cat-tag {
	padding: 4px 14px;
	border: 1.5px solid #9b431b;
	border-radius: 999px;
	background: #f4e5db;
	font-size: 13px;
	font-weight: 700;
	color: #9b431b;
}

.atip-cat-edit {
	padding: 0;
	border: none;
	background: none;
	font-size: 12px;
	font-weight: 700;
	color: #9b431b;
	text-decoration: underline;
	cursor: pointer;
}

/* ── Products ── */
#atip-products {
	margin-bottom: 26px;
}

.atip-product-group {
	margin-bottom: 16px;
}

.atip-product-group-title {
	margin: 0 0 10px;
	padding: 6px 4px;
	border-bottom: 2px solid #f3ece8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #9b431b;
}

.atip-product-group-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.atip-product {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: 1px solid #d8c8bf;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #2b1a12;
	transition: border-color 0.2s, background 0.2s;
}

.atip-product.is-checked {
	border-color: #9b431b;
	background: #fff9f7;
}

.atip-product-label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	cursor: pointer;
}

.atip-product-label span {
	flex: 1;
	line-height: 1.4;
}

/* qty wrap — visibility controlled by inline style in JS */
.atip-product-qty-wrap {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.atip-qty-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.atip-qty-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #9b431b;
	white-space: nowrap;
}

.atip-product-case-qty {
	width: 68px;
	padding: 7px 6px;
	border: 1.5px solid #d8c8bf;
	border-radius: 10px;
	background: #f3ece8;
	font-size: 14px;
	font-weight: 700;
	color: #9b431b;
	text-align: center;
	outline: none;
	box-shadow: none;
}

.atip-product-case-qty:focus {
	border-color: #9b431b;
	background: #fff;
}

.atip-product-case-badge {
	align-self: flex-end;
	margin-bottom: 4px;
	padding: 4px 10px;
	border: 1.5px solid #d8c8bf;
	border-radius: 999px;
	background: #f3ece8;
	font-size: 13px;
	font-weight: 700;
	color: #3f3f3f;
	white-space: nowrap;
}

/* ── Form grid ── */
.atip-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.atip-full {
	grid-column: 1 / -1;
}

.atip-field {
	display: block;
}

.atip-field > label:first-child {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #2b1a12;
}

.atip-error {
	display: none;
	margin: 6px 0 0;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: #c0392b;
}

.atip-error.is-visible {
	display: block;
}

.atip-error--products.is-visible {
	margin: 10px 0 16px;
	padding: 10px 14px;
	border: 1px solid #f0c2bc;
	border-radius: 10px;
	background: #fff5f4;
	color: #b33a2b;
}

.atip-field.has-error input[type="text"],
.atip-field.has-error input[type="email"],
.atip-field.has-error input[type="tel"],
.atip-field.has-error input[type="number"],
.atip-field.has-error textarea,
.atip-field.has-error .atip-phone-wrap {
	border-color: #c0392b;
}

.atip-categories.has-error {
	outline: 1px solid #c0392b;
	outline-offset: 4px;
	border-radius: 12px;
}

#atip-products.has-error .atip-product-group {
	outline: 1px solid #c0392b;
	outline-offset: 4px;
	border-radius: 12px;
}

.atip-field.has-error .atip-radio-wrap {
	outline: 1px solid #c0392b;
	outline-offset: 2px;
	border-radius: 8px;
}

/* ── Phone input ── */
.atip-phone-wrap {
	display: grid;
	grid-template-columns: auto 1fr;
	overflow: hidden;
	border: 1px solid #d8c8bf;
	border-radius: 14px;
	background: #fff;
}

.atip-phone-wrap:focus-within {
	border-color: #9b431b;
}

.atip-phone-code {
	-webkit-appearance: none;
	appearance: none;
	min-width: 100px;
	padding: 14px 10px 14px 12px;
	border: none;
	border-radius: 0;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #2b1a12;
	cursor: pointer;
	outline: none;
	box-shadow: none;
	flex-shrink: 0;
}

.atip-phone-wrap input[type="tel"] {
	flex: 1 1 auto;
	width: auto;
	min-width: 120px;
	padding: 14px;
	border: none;
	border-radius: 0;
	background: #fff;
	font-family: var(--at-font-body);
	font-size: 14px;
	color: #2b1a12;
	outline: none;
	box-shadow: none;
}

/* ── Text inputs & textarea ── */
.atip-field input[type="text"],
.atip-field input[type="email"],
.atip-field input[type="number"],
.atip-field input[type="tel"],
.atip-field textarea {
	display: block;
	width: 100%;
	padding: 14px;
	border: 1px solid #d8c8bf;
	border-radius: 14px;
	background: #fff;
	font-family: var(--at-font-body);
	font-size: 14px;
	color: #2b1a12;
	outline: none;
	box-shadow: none;
	transition: border-color 0.2s;
}

.atip-field textarea {
	resize: vertical;
}

.atip-field input[type="text"]:focus,
.atip-field input[type="email"]:focus,
.atip-field input[type="number"]:focus,
.atip-field textarea:focus {
	border-color: #9b431b;
	box-shadow: none;
}

/* ── Custom radio ── */
.atip-radio-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.atip-radio-wrap > label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border: 2px solid #d8c8bf;
	border-radius: 999px;
	background: #f3ece8;
	font-size: 13px;
	font-weight: 600;
	color: #2b1a12;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.atip-radio-wrap > label:has(input:checked) {
	border-color: #9b431b;
	background: #f4e5db;
	color: #9b431b;
}

.atip-radio-wrap input[type="radio"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 2px solid #d8c8bf;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s;
}

.atip-radio-wrap input[type="radio"]:checked {
	border-color: #9b431b;
	background: #fff;
}

.atip-radio-wrap input[type="radio"]:checked::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #9b431b;
	transform: translate(-50%, -50%);
}

/* ── Submit button ── */
#at-inquiry-form button.atip-btn {
	display: block;
	width: 100%;
	margin-top: 28px;
	padding: 16px;
	border: none;
	border-radius: 16px;
	background: #9b431b;
	font-family: var(--at-font-body);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: opacity 0.2s;
}

#at-inquiry-form button.atip-btn:hover {
	opacity: 0.88;
	color: #fff;
}

/* Page banner spacing */
.site-main--inquiry {
	padding-top: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.atip-categories {
		grid-template-columns: repeat(2, 1fr);
	}

	.atip-product-group-items,
	.atip-grid {
		grid-template-columns: 1fr;
	}

	#at-inquiry-form {
		padding: 20px;
	}

	.atip-product {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.atip-product-qty-wrap {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		padding-top: 8px;
		border-top: 1px solid #f3ece8;
	}

	.atip-product-case-qty {
		width: 80px;
	}
}

@media (max-width: 480px) {
	#at-inquiry-form {
		padding: 16px;
		border-radius: 20px;
	}

	.atip-categories {
		gap: 12px;
	}

	.atip-cat-card {
		padding: 12px 16px;
	}
}
