/* Hassims moving quote form. Loaded only on the page with the form. */

.hq { width: 100%; max-width: 860px; margin-inline: auto; text-align: left; }
.hq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Steps: all visible without JS; one at a time with JS */
.hq.is-js .hq__step:not(.is-active) { display: none; }
.hq__step + .hq__step { margin-top: 48px; }
.hq.is-js .hq__step + .hq__step { margin-top: 0; }
.hq__legend {
	display: block; width: 100%; padding: 0 0 20px; outline: none;
	font-family: var(--wp--preset--font-family--rubik); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--h-red);
}
.hq__intro { margin: -8px 0 16px; }

/* Progress */
.hq__progress { display: none; list-style: none; margin: 0 0 32px; padding: 0; counter-reset: s; }
.hq.is-js .hq__progress { display: flex; gap: 8px; }
.hq__progress li {
	flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px;
	border-bottom: 4px solid #e3e3e3; color: #666; font-size: 14px; font-weight: 600;
}
.hq__progress li span {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 26px; height: 26px; border-radius: 50%; background: #e3e3e3; color: #fff; font-size: 13px;
}
.hq__progress li[aria-current="step"] { color: var(--h-navy); border-color: var(--h-red); }
.hq__progress li[aria-current="step"] span { background: var(--h-red); }
.hq__progress li.is-done { color: var(--h-navy); border-color: var(--h-navy); }
.hq__progress li.is-done span { background: var(--h-navy); }
@media (max-width: 600px) {
	.hq__progress li { font-size: 0; justify-content: center; }
	.hq__progress li span { font-size: 13px; }
}
.hq__restored { margin: -16px 0 24px; font-size: 14px; color: #666; }
.hq__restored button { background: none; border: 0; padding: 0; color: var(--h-navy); text-decoration: underline; cursor: pointer; font: inherit; }

/* Layout */
.hq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 700px) { .hq__grid { grid-template-columns: 1fr; } }
.hq__panel { background: var(--h-light); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.hq__panel-title { margin: 0 0 12px; font-size: 18px; color: var(--h-navy); }

/* Fields */
.hq__field { display: grid; gap: 5px; margin-bottom: 16px; }
.hq__field > label { font-weight: 700; color: #333; }
.hq__req { color: var(--h-red); }
.hq__opt { font-weight: 400; color: #666; font-size: 14px; }
.hq__help { margin: 0; font-size: 14px; color: #666; }
.hq input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="number"]),
.hq select, .hq textarea {
	width: 100%; padding: 11px 12px; font: inherit; color: var(--h-text); background: #fff;
	border: 1px solid #bdbdbd; border-radius: 6px; min-height: 46px;
}
.hq textarea { resize: vertical; }
.hq [aria-invalid="true"] { border-color: var(--h-red) !important; }
.hq input:focus-visible, .hq select:focus-visible, .hq textarea:focus-visible { outline: 2px solid var(--h-navy); outline-offset: 1px; }
.hq__check { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; cursor: pointer; }
.hq__check input { width: 20px; height: 20px; accent-color: var(--h-red); flex-shrink: 0; }
.hq__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 700px) { .hq__checks { grid-template-columns: 1fr; } }
.hq__check--card { margin: 0; padding: 14px 16px; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; }
.hq__check--card:has(input:checked) { border-color: var(--h-navy); background: #eef2fa; }

/* List / describe choice */
.hq__mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media (max-width: 600px) { .hq__mode { grid-template-columns: 1fr; } }
.hq__mode-option { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 2px solid #d9d9d9; border-radius: 8px; cursor: pointer; }
.hq__mode-option strong { display: block; color: var(--h-navy); }
.hq__mode-option span { font-size: 14px; }
.hq__mode-option input { margin-top: 4px; accent-color: var(--h-red); }
.hq__mode-option:has(input:checked) { border-color: var(--h-red); }

/* Rooms and items */
.hq__search { margin-bottom: 12px; }
.hq-room { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 10px; background: #fff; }
.hq-room.is-hidden { display: none; }
.hq-room__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 700; color: var(--h-navy);
}
.hq-room__head::-webkit-details-marker { display: none; }
.hq-room__head::after {
	content: ""; width: 10px; height: 10px; flex-shrink: 0; margin-left: auto;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.hq-room[open] > .hq-room__head::after { transform: rotate(-135deg) translateY(-3px); }
.hq-room__count { font-weight: 600; font-size: 14px; color: #fff; background: var(--h-red); border-radius: 20px; padding: 0 10px; }
.hq-room__count:empty { display: none; }
.hq-room__items { padding: 0 16px 12px; }
.hq-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #f0f0f0; }
.hq.is-js .hq-room:not(.show-all) .hq-item.is-more:not(.has-qty) { display: none; }
.hq.is-searching .hq-item.is-more { display: flex !important; }
.hq-item.is-hidden { display: none !important; }
.hq-item.has-qty .hq-item__name { color: var(--h-navy); font-weight: 700; }
.hq-qty { display: flex; align-items: center; flex-shrink: 0; }
.hq-qty__btn {
	width: 38px; height: 38px; border: 1px solid #c9c9c9; background: #fff; color: var(--h-navy);
	font-size: 22px; line-height: 1; cursor: pointer; border-radius: 6px; touch-action: manipulation;
}
.hq-qty__btn:hover { border-color: var(--h-navy); }
.hq-qty input[type="number"] {
	width: 46px; height: 38px; margin: 0 4px; text-align: center; font: inherit; font-weight: 700;
	border: 1px solid #c9c9c9; border-radius: 6px; -moz-appearance: textfield; appearance: textfield;
}
.hq-qty input::-webkit-outer-spin-button, .hq-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hq-room__more { display: none; margin-top: 8px; background: none; border: 0; padding: 6px 0; color: var(--h-navy); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.hq.is-js .hq-room__more { display: inline-block; }
.hq.is-searching .hq-room__more { display: none; }
.hq__list > .hq__field { margin-top: 20px; }

.hq__tally {
	position: sticky; bottom: 0; z-index: 5; margin: 16px 0 0; padding: 12px 16px;
	background: var(--h-navy); color: #fff; border-radius: 8px; font-weight: 700; text-align: center;
}

/* Navigation */
.hq__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.hq__nav .hq__btn:only-child { margin-left: auto; }
.hq.is-js .hq__nav { display: flex; }
.hq:not(.is-js) .hq__nav [data-next], .hq:not(.is-js) .hq__nav [data-prev] { display: none; }
.hq__btn {
	font-family: var(--wp--preset--font-family--rubik); font-size: 16px; cursor: pointer;
	border: 2px solid var(--h-red); background: var(--h-red); color: #fff; border-radius: 30px; padding: 12px 28px;
	transition: background-color .2s, border-color .2s;
}
.hq__btn:hover, .hq__btn:focus-visible { background: var(--h-navy); border-color: var(--h-navy); }
.hq__btn--back { background: #fff; color: var(--h-navy); border-color: var(--h-navy); }
.hq__btn--back:hover { color: #fff; }
.hq.is-sending .hq__btn--submit { opacity: .7; cursor: progress; }

/* Review */
.hq__review { background: var(--h-light); border-radius: 10px; padding: 20px; margin: 4px 0 8px; }
.hq__review-title { margin: 0 0 10px; font-weight: 700; color: var(--h-navy); }
.hq__review dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.hq__review dt { font-weight: 700; }
.hq__review dd { margin: 0; }
@media (max-width: 600px) { .hq__review dl { grid-template-columns: 1fr; } .hq__review dd { margin-bottom: 8px; } }

.hq + .hassims-form__success, .hq__done { max-width: 860px; margin-inline: auto; }
.hq__done strong { display: block; font-size: 22px; margin-bottom: 6px; }
.hq__done p { margin: 0; }
.hq .hassims-form__status { margin-top: 16px; }
