.ds-quote-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.ds-quote-modal[hidden] {
	display: none !important;
}

.ds-quote-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.ds-quote-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: calc(100vh - 2.5rem);
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	padding: 1.75rem 1.75rem 1.5rem;
}

.ds-quote-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.ds-quote-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	color: var(--ds-navy, #1d3267);
}

.ds-quote-modal__lead {
	margin: 0 0 1rem;
	color: #475569;
	font-size: 0.95rem;
}

.ds-quote-modal__product {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	background: #f8fafc;
	border-radius: 10px;
	color: #334155;
	font-size: 0.92rem;
}

.ds-quote-modal__field {
	display: block;
	margin-bottom: 0.85rem;
}

.ds-quote-modal__field > span {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
}

.ds-quote-modal__field input,
.ds-quote-modal__field textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 0.65rem 0.8rem;
	font: inherit;
	color: #0f172a;
	background: #fff;
}

.ds-quote-modal__field input:focus,
.ds-quote-modal__field textarea:focus {
	outline: 2px solid rgba(243, 103, 53, 0.35);
	border-color: var(--ds-accent, #f36735);
}

.ds-quote-modal__status {
	min-height: 1.25rem;
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
}

.ds-quote-modal__status.is-success {
	color: #15803d;
}

.ds-quote-modal__status.is-error {
	color: #b91c1c;
}

.ds-quote-modal__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 0.8rem 1.25rem;
	background: var(--ds-accent, #f36735);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.ds-quote-modal__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.ds-quote-trigger {
	cursor: pointer;
}

html.ds-quote-modal-open,
body.ds-quote-modal-open {
	overflow: hidden;
}

/* Consultation scheduling fields (shown only in consultation mode). */
.ds-quote-modal__schedule {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ds-quote-modal__schedule .ds-quote-modal__field:last-child {
	grid-column: 1 / -1;
}

.ds-quote-modal__schedule[hidden] {
	display: none;
}

@media (max-width: 480px) {
	.ds-quote-modal__schedule {
		grid-template-columns: 1fr;
	}
}
