/* Abstract Quote Calculator
 * Visual layout mirrors the reference screenshot:
 *  - centered single column on mobile
 *  - two-column buyer/seller fee panels on wider screens
 *  - dotted leaders between label and right-aligned amount
 */

.aqc-wrap {
	--aqc-primary: #1f5fa6;
	--aqc-text: #1d1d1f;
	--aqc-muted: #666;
	--aqc-border: #e3e3e3;
	--aqc-bg-soft: #fafafa;

	max-width: 760px;
	margin: 1.5rem auto;
	color: var(--aqc-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.aqc-form {
	background: var(--aqc-bg-soft);
	border: 1px solid var(--aqc-border);
	border-radius: 8px;
	padding: 1.5rem;
	display: grid;
	gap: 1rem;
}

.aqc-logo img {
	max-width: 220px;
	height: auto;
}

.aqc-company {
	margin: 0;
	color: var(--aqc-primary);
}

.aqc-heading {
	margin: 0;
	font-size: 1.25rem;
}

.aqc-field {
	display: grid;
	gap: 0.35rem;
}

.aqc-field label {
	font-weight: 600;
	font-size: 0.95rem;
}

.aqc-hint {
	font-weight: 400;
	color: var(--aqc-muted);
	font-size: 0.85rem;
}

.aqc-field input[type="text"],
.aqc-field select {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--aqc-border);
	border-radius: 6px;
	font-size: 1rem;
	background: #fff;
	box-sizing: border-box;
	width: 100%;
}

.aqc-field input[type="text"]:focus,
.aqc-field select:focus {
	outline: 2px solid var(--aqc-primary);
	outline-offset: 1px;
	border-color: var(--aqc-primary);
}

.aqc-checkbox label {
	font-weight: 500;
	display: flex;
	gap: 0.5rem;
	align-items: center;
	cursor: pointer;
}

.aqc-submit {
	background: var(--aqc-primary);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0.85rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.aqc-submit:hover {
	filter: brightness(0.92);
}

.aqc-error {
	color: #b00020;
	font-weight: 600;
}

.aqc-error-panel {
	background: #fdecea;
	color: #b00020;
	padding: 1rem;
	border-radius: 6px;
}

/* === Quote result === */

.aqc-quote {
	margin-top: 1.5rem;
	background: #fff;
	border: 1px solid var(--aqc-border);
	border-radius: 8px;
	padding: 1.75rem;
}

.aqc-summary h3,
.aqc-fees h3 {
	margin: 0 0 0.75rem;
	color: var(--aqc-text);
	border-bottom: 1px solid var(--aqc-border);
	padding-bottom: 0.5rem;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
}

.aqc-summary {
	margin-bottom: 1.5rem;
}

.aqc-summary dl {
	margin: 0;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.5rem;
}

.aqc-summary dt {
	color: var(--aqc-muted);
}

.aqc-summary dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
}

.aqc-fees {
	margin-bottom: 1.5rem;
}

.aqc-fees ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aqc-fees li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px dotted #d4d4d4;
}

.aqc-fees li:last-child {
	border-bottom: 0;
}

.aqc-fees .aqc-amount {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.aqc-est {
	color: var(--aqc-muted);
	font-size: 0.85em;
	font-style: italic;
}

.aqc-fees .aqc-total {
	font-weight: 700;
	border-top: 2px solid var(--aqc-text);
	border-bottom: 0;
	padding-top: 0.6rem;
	margin-top: 0.4rem;
}

.aqc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.aqc-cta {
	display: inline-block;
	background: var(--aqc-primary);
	color: #fff;
	padding: 0.65rem 1rem;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	border: 0;
	cursor: pointer;
}

.aqc-cta:hover { filter: brightness(0.92); }

.aqc-disclaimer {
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--aqc-muted);
}

.aqc-over-limit h3 { margin-top: 0; }

@media (min-width: 720px) {
	.aqc-quote {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem 2rem;
	}
	.aqc-summary { grid-column: 1 / -1; }
	.aqc-actions { grid-column: 1 / -1; }
	.aqc-disclaimer { grid-column: 1 / -1; }
	.aqc-over-limit { grid-column: 1 / -1; }
	.aqc-error-panel { grid-column: 1 / -1; }
}

@media print {
	.aqc-form,
	.aqc-actions,
	.aqc-submit { display: none !important; }
	.aqc-wrap { max-width: 100%; margin: 0; }
	.aqc-quote { border: 0; padding: 0; }
}
