/* The "Get a quote" drawer (template-parts/components/quote-drawer.php, quote-form.js): a panel
   that slides in from the right over a dimmed page, in the cart drawer's warm paper colours. */

.seamkt-quote {
	--q-ink: #0d0d0c;
	--q-soft: #55534d;
	--q-muted: #8a877f;
	--q-line: #e2ded6;
	--q-paper: #f4f2ee;
	--q-ease: cubic-bezier(0.22, 1, 0.36, 1);
	position: fixed;
	inset: 0 0 0 auto;
	width: min(500px, 100%);
	max-width: 100%;
	height: 100%;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: var(--q-paper);
	box-shadow: -28px 0 80px rgba(0, 0, 0, 0.24);
	color: var(--q-ink);
	font-family: var(--seamkt-font, 'Manrope', system-ui, sans-serif);
	opacity: 0;
	transform: translateX(100%);
	transition: opacity 320ms ease, transform 420ms var(--q-ease);
}

.seamkt-quote,
.seamkt-quote *,
.seamkt-quote *::before,
.seamkt-quote *::after {
	box-sizing: border-box;
}

.seamkt-quote:not([open]) {
	display: none;
}

.seamkt-quote.is-open {
	opacity: 1;
	transform: none;
}

.seamkt-quote::backdrop {
	background: rgba(8, 8, 9, 0.54);
	opacity: 0;
	transition: opacity 320ms ease;
}

.seamkt-quote.is-open::backdrop {
	opacity: 1;
}

.seamkt-quote__panel {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.seamkt-quote__header {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 28px 20px;
	border-bottom: 1px solid var(--q-line);
}

.seamkt-quote__eyebrow {
	margin: 0 0 8px;
	color: #77746d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.seamkt-quote .seamkt-quote__title {
	margin: 0;
	padding: 0;
	color: var(--q-ink);
	font-family: inherit;
	font-size: clamp(28px, 5vw, 34px);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1;
	text-transform: none;
}

.seamkt-quote button.seamkt-quote__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #191919;
	border-radius: 50%;
	background: #191919;
	color: #fff;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease;
}

.seamkt-quote button.seamkt-quote__close:hover,
.seamkt-quote button.seamkt-quote__close:focus-visible {
	border-color: #191919;
	background: #fff;
	color: #191919;
}

.seamkt-quote__close svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.seamkt-quote__scroll {
	flex: 1 1 auto;
	min-height: 0;
	padding: 22px 28px calc(28px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.seamkt-quote__form {
	display: grid;
	gap: 16px;
	margin: 0;
}

.seamkt-quote__form[hidden],
.seamkt-quote__thanks[hidden],
.seamkt-quote__picked[hidden],
.seamkt-quote__error[hidden] {
	display: none;
}

.seamkt-quote__lead {
	margin: 0;
	color: var(--q-soft);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.55;
}

/* The plan the visitor clicked, in the colours of its card's header. */
.seamkt-quote__picked {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 16px;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 224, 122, 0.55), transparent 55%),
		linear-gradient(120deg, #ffd2b0, #e4d4ff);
	color: var(--q-ink);
}

.seamkt-quote__picked-label {
	color: rgba(13, 13, 12, 0.6);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.seamkt-quote__picked strong {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.seamkt-quote__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 12px;
}

/* Email addresses usually need more room than phone numbers. The extra end padding also keeps
   long values clear of the browser's contacts/autofill control. */
.seamkt-quote__row--contact {
	grid-template-columns: minmax(0, 3fr) minmax(160px, 2fr);
}

.seamkt-quote .seamkt-quote__field input[type='email'] {
	padding-inline-end: 42px;
}

.seamkt-quote__field {
	display: grid;
	gap: 7px;
	min-width: 0;
}

.seamkt-quote__field label {
	margin: 0;
	color: var(--q-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.seamkt-quote__field label span {
	color: #d4473a;
}

.seamkt-quote .seamkt-quote__field input,
.seamkt-quote .seamkt-quote__field select,
.seamkt-quote .seamkt-quote__field textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 15px;
	border: 1px solid var(--q-line);
	border-radius: 14px;
	outline: none;
	background: #fff;
	box-shadow: none;
	color: var(--q-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	transition: border-color 160ms ease, box-shadow 160ms ease;
	-webkit-appearance: none;
	appearance: none;
}

.seamkt-quote .seamkt-quote__field textarea {
	min-height: 110px;
	resize: vertical;
}

.seamkt-quote .seamkt-quote__field input::placeholder,
.seamkt-quote .seamkt-quote__field textarea::placeholder {
	color: #aaa69d;
}

.seamkt-quote .seamkt-quote__field input:focus,
.seamkt-quote .seamkt-quote__field select:focus,
.seamkt-quote .seamkt-quote__field textarea:focus {
	border-color: var(--q-ink);
	box-shadow: 0 0 0 3px rgba(13, 13, 12, 0.08);
}

.seamkt-quote .seamkt-quote__field .is-invalid,
.seamkt-quote .seamkt-quote__field .is-invalid:focus {
	border-color: #d4473a;
	box-shadow: 0 0 0 3px rgba(212, 71, 58, 0.12);
}

.seamkt-quote__select {
	position: relative;
	display: block;
}

.seamkt-quote .seamkt-quote__select select {
	padding-right: 44px;
	cursor: pointer;
}

.seamkt-quote__select > svg {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--q-ink);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: translateY(-50%);
	pointer-events: none;
}

/* The service picker: quote-form.js replaces the native select (kept hidden, it still holds
   the value) with a button and a styled list, grouped by service. */
.seamkt-quote__select.is-enhanced > select,
.seamkt-quote__select.is-enhanced > svg {
	display: none;
}

.seamkt-quote button.seamkt-quote__combo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 15px;
	border: 1px solid var(--q-line);
	border-radius: 14px;
	outline: none;
	background: #fff;
	box-shadow: none;
	color: var(--q-ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.seamkt-quote button.seamkt-quote__combo:hover {
	border-color: #c9c4ba;
	background: #fff;
	color: var(--q-ink);
}

.seamkt-quote button.seamkt-quote__combo:focus-visible,
.seamkt-quote__select.is-open button.seamkt-quote__combo {
	border-color: var(--q-ink);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(13, 13, 12, 0.08);
	color: var(--q-ink);
}

.seamkt-quote__combo-value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.seamkt-quote__combo svg {
	flex: none;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 240ms var(--q-ease);
}

.seamkt-quote__select.is-open .seamkt-quote__combo svg {
	transform: rotate(180deg);
}

.seamkt-quote__list {
	position: absolute;
	z-index: 5;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	max-height: min(340px, 52vh);
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--q-line);
	border-radius: 16px;
	outline: none;
	background: #fff;
	box-shadow: 0 24px 50px -20px rgba(13, 13, 12, 0.35), 0 2px 6px rgba(13, 13, 12, 0.06);
	animation: seamkt-quote-drop 220ms var(--q-ease) both;
}

.seamkt-quote__list[hidden] {
	display: none;
}

.seamkt-quote__group {
	padding: 14px 12px 6px;
	color: var(--q-muted);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.seamkt-quote__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--q-ink);
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.seamkt-quote__option.is-active {
	background: #f1eee8;
}

.seamkt-quote__option[aria-selected='true'] {
	font-weight: 700;
}

.seamkt-quote__option svg {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
}

.seamkt-quote__option[aria-selected='true'] svg {
	opacity: 1;
}

/* "Not sure yet" sits on its own above the groups. */
.seamkt-quote__option.is-other {
	margin-bottom: 4px;
	border-bottom: 1px solid #f0ede7;
	border-radius: 10px 10px 0 0;
}

@keyframes seamkt-quote-drop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

/* Out of sight for people; robots fill it. */
.seamkt-quote__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.seamkt-quote__error {
	margin: 0;
	padding: 11px 14px;
	border-radius: 12px;
	background: #fdecea;
	color: #a1281d;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.seamkt-quote button.seamkt-quote__send {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin: 4px 0 0;
	padding: 0 22px;
	border: 1px solid #111;
	border-radius: 999px;
	background: linear-gradient(180deg, #2a2a2d, #0d0d0f);
	box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1;
	text-transform: none;
	transition: transform 300ms var(--q-ease), box-shadow 300ms var(--q-ease), opacity 200ms ease;
}

.seamkt-quote button.seamkt-quote__send:hover,
.seamkt-quote button.seamkt-quote__send:focus-visible {
	border-color: #111;
	background: linear-gradient(180deg, #2a2a2d, #0d0d0f);
	box-shadow: 0 18px 32px -18px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.26);
	color: #fff;
	outline: none;
	transform: translateY(-2px);
}

.seamkt-quote button.seamkt-quote__send:focus-visible {
	outline: 2px solid var(--q-ink);
	outline-offset: 3px;
}

.seamkt-quote button.seamkt-quote__send:disabled {
	cursor: progress;
	opacity: 0.6;
	transform: none;
}

/* Sending: the arrow gives way to a spinning ring and the button stays solid. */
.seamkt-quote__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.28);
	border-top-color: #fff;
	border-radius: 50%;
	animation: seamkt-quote-spin 700ms linear infinite;
}

.seamkt-quote button.seamkt-quote__send.is-sending {
	opacity: 1;
}

.seamkt-quote__send.is-sending svg {
	display: none;
}

.seamkt-quote__send.is-sending .seamkt-quote__spinner {
	display: block;
}

@keyframes seamkt-quote-spin {
	to {
		transform: rotate(360deg);
	}
}

/* The fields fade and are locked while the request is on its way, then the whole form fades
   out before the "Request sent" screen replaces it. */
.seamkt-quote__form {
	transition: opacity 260ms ease, transform 260ms var(--q-ease);
}

.seamkt-quote__form.is-sending > :not(.seamkt-quote__send) {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 200ms ease;
}

.seamkt-quote__form.is-leaving {
	opacity: 0;
	transform: translateY(-10px);
}

.seamkt-quote__send svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 300ms var(--q-ease);
}

.seamkt-quote__send:hover svg {
	transform: translateX(3px);
}

.seamkt-quote__fine {
	margin: -4px 0 0;
	color: var(--q-muted);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
}

/* The "Request sent" screen: centred in the drawer, its parts rising in one after another. */
.seamkt-quote.is-sent .seamkt-quote__scroll {
	display: grid;
	align-content: center;
}

.seamkt-quote__thanks {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 12px 4px 40px;
	text-align: center;
}

.seamkt-quote__thanks > :not(.seamkt-quote__thanks-icon) {
	animation: seamkt-quote-rise 560ms var(--q-ease) both;
}

.seamkt-quote__thanks > :nth-child(2) { animation-delay: 220ms; }
.seamkt-quote__thanks > :nth-child(3) { animation-delay: 280ms; }
.seamkt-quote__thanks > :nth-child(4) { animation-delay: 340ms; }
.seamkt-quote__thanks > :nth-child(5) { animation-delay: 390ms; }
.seamkt-quote__thanks > :nth-child(6) { animation-delay: 440ms; }

@keyframes seamkt-quote-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.seamkt-quote .seamkt-quote__thanks-eyebrow {
	margin: 10px 0 -6px;
	color: #15803d;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.seamkt-quote .seamkt-quote__thanks-note {
	margin: -4px 0 0;
	color: var(--q-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.seamkt-quote__thanks-note[hidden] {
	display: none;
}

.seamkt-quote__thanks-icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.14), 0 16px 32px -14px rgba(22, 163, 74, 0.6);
	color: #fff;
	animation: seamkt-quote-pop 520ms var(--q-ease) both;
}

.seamkt-quote__thanks-icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The tick is drawn on just after the circle pops in. */
.seamkt-quote__thanks-icon path {
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
	animation: seamkt-quote-tick 420ms 260ms var(--q-ease) forwards;
}

@keyframes seamkt-quote-tick {
	to {
		stroke-dashoffset: 0;
	}
}

.seamkt-quote .seamkt-quote__thanks-title {
	margin: 6px 0 0;
	padding: 0;
	color: var(--q-ink);
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.1;
	text-transform: none;
	outline: none;
}

.seamkt-quote__thanks .seamkt-quote__lead {
	max-width: 30em;
}

.seamkt-quote__thanks .seamkt-quote__send {
	margin-top: 14px;
}

@keyframes seamkt-quote-pop {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
}

/* The header's chat icon (site-scroll-header.php, home-hero.php): a little larger than the
   default 21px header icon (the cart's size), so the bubble and its dots read clearly. */
.seamkt-scroll-header .seamkt-scroll-header__quote svg,
.seamkt-home-header .seamkt-home-header__expanded-action[data-quote-open] svg {
	width: 23px;
	height: 23px;
}

/* Phones: the header buttons shrink to 36px (home.css). */
@media (max-width: 767px) {
	.seamkt-scroll-header .seamkt-scroll-header__quote svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 560px) {
	.seamkt-quote {
		width: 100%;
	}

	.seamkt-quote__header {
		padding: 22px 18px 16px;
	}

	.seamkt-quote__scroll {
		padding: 18px 18px calc(24px + env(safe-area-inset-bottom));
	}

	.seamkt-quote__row {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.seamkt-quote {
		transform: none;
		transition: opacity 200ms ease;
	}

	.seamkt-quote__thanks-icon,
	.seamkt-quote__thanks > *,
	.seamkt-quote__list {
		animation: none;
	}

	.seamkt-quote__thanks-icon path {
		stroke-dashoffset: 0;
		animation: none;
	}

	.seamkt-quote__spinner {
		animation-duration: 1.6s;
	}
}
