/* Dumpster Broker Quote System – theme-agnostic, mobile first */
:root { --dbq-accent: #e8590c; }
.dbq, .dbq-location {
	--dbq-ink: #1f2328;
	--dbq-muted: #5c6370;
	--dbq-line: #d9dde3;
	--dbq-bg: #ffffff;
	--dbq-soft: #f5f6f8;
	--dbq-ok: #1a7f37;
	--dbq-warn: #b35900;
	--dbq-err: #c62828;
	--dbq-radius: 12px;
	box-sizing: border-box;
}
.dbq *, .dbq *::before, .dbq *::after { box-sizing: inherit; }

.dbq {
	color: var(--dbq-ink);
	background: var(--dbq-bg);
	border: 1px solid var(--dbq-line);
	border-radius: var(--dbq-radius);
	padding: 20px 16px;
	margin: 24px 0;
	box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
	font-size: 16px;
	line-height: 1.45;
}
@media (min-width: 640px) { .dbq { padding: 28px 32px; } }

.dbq-title { margin: 0 0 4px; font-size: 1.4em; line-height: 1.2; }
.dbq-sub { margin: 0 0 14px; color: var(--dbq-muted); font-size: .95em; }

.dbq-progress { height: 6px; background: var(--dbq-soft); border-radius: 99px; overflow: hidden; }
.dbq-progress span { display: block; height: 100%; width: 0; background: var(--dbq-accent); transition: width .3s ease; }
.dbq-progress-text { margin: 6px 0 16px; font-size: .8em; color: var(--dbq-muted); text-transform: uppercase; letter-spacing: .04em; }

.dbq-step { animation: dbq-in .25s ease; }
.dbq-step[hidden] { display: none; }
@keyframes dbq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dbq-step-title { margin: 0 0 14px; font-size: 1.15em; outline: none; }

/* Choice cards */
.dbq-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 8px; }
.dbq-cards--sizes, .dbq-cards--compact, .dbq-cards--multi { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) {
	.dbq-cards { grid-template-columns: repeat(3, 1fr); }
	.dbq-cards--types { grid-template-columns: repeat(3, 1fr); }
	.dbq-cards--compact, .dbq-cards--multi { grid-template-columns: repeat(3, 1fr); }
}
.dbq-card { position: relative; display: block; margin: 0; cursor: pointer; }
.dbq-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dbq-card span {
	display: flex; flex-direction: column; justify-content: center; gap: 4px;
	min-height: 56px; height: 100%;
	padding: 12px 14px;
	border: 2px solid var(--dbq-line);
	border-radius: 10px;
	background: var(--dbq-bg);
	font-weight: 600;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.dbq-card small { font-weight: 400; color: var(--dbq-muted); font-size: .85em; line-height: 1.3; }
.dbq-card:hover span { border-color: var(--dbq-accent); }
.dbq-card input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dbq-accent) 35%, transparent); }
.dbq-card.is-checked span, .dbq-card:has(input:checked) span {
	border-color: var(--dbq-accent);
	background: color-mix(in srgb, var(--dbq-accent) 8%, #fff);
}
.dbq-cards--multi .dbq-card span { padding-left: 40px; }
.dbq-cards--multi .dbq-card span::before {
	content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
	border: 2px solid var(--dbq-line); border-radius: 4px; background: #fff;
}
.dbq-cards--multi .dbq-card.is-checked span::before, .dbq-cards--multi .dbq-card:has(input:checked) span::before {
	background: var(--dbq-accent); border-color: var(--dbq-accent);
	box-shadow: inset 0 0 0 3px #fff;
}

/* Fields */
.dbq-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .dbq-grid { grid-template-columns: 1fr 1fr; } }
.dbq-field { margin: 0 0 14px; }
.dbq-field label, .dbq-label { display: block; margin: 0 0 6px; font-weight: 600; font-size: .95em; }
.dbq-field em { font-weight: 400; color: var(--dbq-muted); font-style: normal; }
.dbq input[type="text"], .dbq input[type="tel"], .dbq input[type="email"], .dbq input[type="date"], .dbq select, .dbq textarea {
	width: 100%; min-height: 48px;
	padding: 10px 12px;
	border: 1.5px solid var(--dbq-line);
	border-radius: 8px;
	background: #fff; color: var(--dbq-ink);
	font: inherit; font-size: 16px; /* prevents iOS zoom */
}
.dbq input:focus, .dbq select:focus, .dbq textarea:focus { outline: none; border-color: var(--dbq-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dbq-accent) 20%, transparent); }
.dbq .dbq-invalid { border-color: var(--dbq-err) !important; }
.dbq-hint { color: var(--dbq-muted); font-size: .85em; margin: 6px 0 0; }
.dbq-period { margin-top: 6px; }
.dbq-period[hidden] { display: none; }

.dbq-zip-row { display: flex; gap: 8px; }
.dbq-zip-row input { flex: 1; }
.dbq-zip-result:empty { display: none; }
.dbq-zip-result { margin-top: 10px; }

.dbq-upload { display: inline-block; cursor: pointer; }
.dbq-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dbq-upload span { display: inline-block; padding: 10px 16px; border: 2px dashed var(--dbq-line); border-radius: 8px; font-weight: 600; }
.dbq-upload:hover span { border-color: var(--dbq-accent); }
.dbq-upload-list { display: block; margin-top: 6px; font-size: .85em; color: var(--dbq-muted); }

/* Buttons */
.dbq-btn, a.dbq-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 10px 22px;
	border: 0; border-radius: 8px;
	background: var(--dbq-accent); color: #fff !important;
	font: inherit; font-weight: 700; text-decoration: none;
	cursor: pointer; transition: filter .15s;
}
.dbq-btn:hover { filter: brightness(.92); }
.dbq-btn:disabled { opacity: .6; cursor: wait; }
.dbq-btn--big { width: 100%; min-height: 56px; font-size: 1.05em; letter-spacing: .02em; margin-top: 6px; }
.dbq-next { margin-top: 8px; }
.dbq-nav { margin-top: 12px; }
.dbq-back { background: none; border: 0; padding: 6px 0; color: var(--dbq-muted); font: inherit; cursor: pointer; }
.dbq-back:hover { color: var(--dbq-ink); }
.dbq-back[hidden] { display: none; }
.dbq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 0; }
.dbq-link { font-weight: 600; }

/* Messages */
.dbq-error { color: var(--dbq-err); font-weight: 600; margin: 8px 0 0; min-height: 0; }
.dbq-error:empty { display: none; }
.dbq-ok { color: var(--dbq-ok); font-weight: 600; margin: 0 0 6px; }
.dbq-warn { color: var(--dbq-warn); margin: 0 0 6px; }
.dbq-done { text-align: center; padding: 24px 8px; }
.dbq-done[hidden] { display: none; }
.dbq-check { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--dbq-ok); color: #fff; font-size: 30px; line-height: 56px; }
.dbq-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ZIP check widget */
.dbq-zipcheck { padding: 18px 16px; }
.dbq-zipcheck .dbq-label { font-size: 1.05em; }

/* Location pages */
.dbq-crumbs { font-size: .85em; color: #5c6370; margin: 0 0 14px; }
.dbq-crumbs a { color: inherit; }
.dbq-sep { margin: 0 6px; }
.dbq-intro { font-size: 1.1em; }
.dbq-type-grid, .dbq-directory-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) {
	.dbq-type-grid { grid-template-columns: 1fr 1fr; }
	.dbq-directory-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
.dbq-type-card, .dbq-directory-state { border: 1px solid #d9dde3; border-radius: 12px; padding: 16px 18px; }
.dbq-type-card h3, .dbq-directory-state h2 { margin-top: 0; font-size: 1.15em; }
.dbq-directory-state ul, .dbq-city-list { margin: 0; padding-left: 18px; }
.dbq-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.dbq-chips li { padding: 6px 12px; border-radius: 99px; background: #f5f6f8; font-size: .9em; }
.dbq-faqs details { border-bottom: 1px solid #d9dde3; padding: 12px 0; }
.dbq-faqs summary { cursor: pointer; font-weight: 600; }
.dbq-location section { margin: 32px 0; }

/* Mobile click-to-call bar */
.dbq-callbar { display: none; }
@media (max-width: 767px) {
	.dbq-callbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
		box-shadow: 0 -2px 12px rgba(0,0,0,.15);
		padding-bottom: env(safe-area-inset-bottom);
		background: #1f2328;
	}
	.dbq-callbar a { flex: 1; padding: 14px 8px; text-align: center; font-weight: 700; color: #fff; text-decoration: none; font-family: inherit; }
	.dbq-callbar-call { background: var(--dbq-accent, #e8590c); flex: 2 !important; }
	body { padding-bottom: 56px; }
}
