/* Quote estimator: copy left, two-pane glass panel right (controls | result). */
.quote { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.quote__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.quote__points { margin-top: 28px; display: grid; gap: 12px; }
.quote__points li { display: flex; align-items: center; gap: 12px; color: var(--paper-dim); font-size: 15px; }
.quote__points li::before {
	content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
	background: rgba(127, 231, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%237fe7ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

.quote-panel {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border-radius: 28px; overflow: hidden;
	background: rgba(14, 19, 36, .55); border: 1px solid var(--line-strong);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.quote-panel::before { /* faint blue bloom behind the result */
	content: ""; position: absolute; inset: auto -10% -40% 40%; height: 120%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(59, 123, 255, .18), transparent);
}

/* ---------- form ---------- */
.quote-form { position: relative; padding: clamp(22px, 3vw, 34px); display: grid; gap: 26px; align-content: start; border-right: 1px solid var(--line); }
.qf-row { margin: 0; padding: 0; border: 0; min-width: 0; }
.qf-label { display: block; margin-bottom: 10px; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); }

.qf-row--route { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: 14px; }
.qf-value { display: flex; align-items: center; height: 48px; font-size: 16px; font-weight: 600; }
.qf-arrow { display: grid; place-items: center; height: 48px; color: var(--paper-faint); }

.quote-form select {
	width: 100%; height: 48px; padding: 0 40px 0 16px; border-radius: 14px;
	appearance: none; -webkit-appearance: none;
	background: rgba(238, 241, 248, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23eef1f8' stroke-opacity='.6' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center/12px no-repeat;
	border: 1px solid var(--line-strong); color: var(--paper); font: inherit; font-size: 15.5px; font-weight: 500;
	transition: border-color .3s, box-shadow .3s;
}
.quote-form select:focus-visible { outline: 0; border-color: rgba(141, 176, 255, .65); box-shadow: 0 0 0 4px rgba(59, 123, 255, .16); }
.quote-form option, .quote-form optgroup { background: #0e1324; color: var(--paper); }

/* segmented control */
.qf-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: rgba(238, 241, 248, .05); border: 1px solid var(--line); }
.qf-seg label { position: relative; cursor: pointer; }
.qf-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qf-seg span {
	display: grid; place-items: center; height: 40px; border-radius: 10px;
	font-size: 14.5px; font-weight: 600; color: var(--paper-dim);
	transition: background-color .35s var(--ease), color .35s;
}
.qf-seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.qf-seg input:focus-visible + span { outline: 2px solid var(--blue-soft); outline-offset: 2px; }

/* weight slider */
.qf-weight-head { display: flex; align-items: baseline; justify-content: space-between; }
.qf-kg { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.quote-form input[type="range"] {
	--fill: 6%;
	width: 100%; height: 28px; margin: 4px 0 0; background: transparent;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.quote-form input[type="range"]::-webkit-slider-runnable-track {
	height: 4px; border-radius: 4px;
	background: linear-gradient(90deg, var(--amber), var(--blue) var(--fill), rgba(238, 241, 248, .12) var(--fill));
}
.quote-form input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(238, 241, 248, .12); }
.quote-form input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amber), var(--blue)); }
.quote-form input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
	background: var(--paper); border: 0; box-shadow: 0 0 0 6px rgba(59, 123, 255, .18), 0 4px 10px rgba(0, 0, 0, .5);
	transition: box-shadow .25s;
}
.quote-form input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 0; box-shadow: 0 0 0 6px rgba(59, 123, 255, .18); }
.quote-form input[type="range"]:focus-visible { outline: 0; }
.quote-form input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(59, 123, 255, .35); }
.qf-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--paper-faint); }

/* ---------- result ---------- */
.quote-result { position: relative; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; }
.qr-route { display: flex; align-items: center; gap: 12px; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--paper-faint); }
.qr-route span:last-child { color: var(--cyan); }
.qr-route i { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.qr-route b {
	position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 2px;
	background: var(--amber); box-shadow: 0 0 10px var(--amber);
	animation: qr-move 3.6s var(--ease-io) infinite;
}
@keyframes qr-move { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 85% { left: calc(100% - 7px); opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }

.qr-label { margin-top: clamp(28px, 4vw, 48px); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); }
.qr-price { margin-top: 10px; font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.qr-cur { font-size: .42em; font-weight: 500; letter-spacing: .02em; color: var(--paper-dim); vertical-align: .55em; }
.qr-days { margin-top: 12px; color: var(--paper-dim); }
.qr-actions { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.qr-actions .icon { width: 18px; height: 18px; color: var(--cyan); }
.qr-note { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--paper-faint); }

.quote-result.is-other .qr-price { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.03em; }
.quote-result.is-other .qr-cur, .quote-result.is-other .qr-label .sample-tag { display: none; }

@media (max-width: 1099px) {
	.quote__inner { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
	.quote-panel { grid-template-columns: 1fr; border-radius: 22px; }
	.quote-form { border-right: 0; border-bottom: 1px solid var(--line); }
	.qf-row--route { grid-template-columns: 1fr; gap: 8px; }
	.qf-arrow { display: none; }
	.qf-value { height: auto; }
	.qr-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.qr-route b { animation: none; left: 55%; }
}
