/* Razrez Configurator — B2B "offer by email" card (Review step) + details modal. */

.rz-offer-card {
	box-sizing: border-box;
	margin: 14px 0 0;
	padding: 16px 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
}

.rz-offer-card__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
}

.rz-offer-card__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.rz-offer-card__input {
	flex: 1 1 180px;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rz-offer-card__input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.rz-offer-card__input--invalid,
.rz-offer-modal__input--invalid {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.rz-offer-card__submit {
	flex: 0 0 auto;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: rgb(29 111 184);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rz-offer-card__submit:hover {
	background: rgb(24 93 154);
}

.rz-offer-card__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.rz-offer-card__msg {
	min-height: 16px;
	margin: 8px 0 0;
	font-size: 13px;
	color: #475569;
}

.rz-offer-card__msg--error {
	color: #dc2626;
}

.rz-offer-card__msg--success {
	color: #16a34a;
	font-weight: 600;
}

/* Modal */

.rz-offer-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.rz-offer-modal--open {
	display: flex;
}

.rz-offer-modal__card {
	width: 100%;
	max-width: 440px;
	box-sizing: border-box;
	padding: 28px 26px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #0f172a;
	animation: rz-offer-modal-in 0.18s ease-out;
}

@keyframes rz-offer-modal-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.rz-offer-modal__title {
	margin: 0 0 6px;
	font-size: 19px;
	font-weight: 700;
}

.rz-offer-modal__desc {
	margin: 0 0 16px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #475569;
	overflow-wrap: anywhere;
}

.rz-offer-modal__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rz-offer-modal__grid {
	display: flex;
	gap: 10px;
}

.rz-offer-modal__grid > .rz-offer-modal__field {
	flex: 1 1 0;
}

.rz-offer-modal__field label {
	display: block;
	margin: 0 0 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
}

.rz-offer-modal__input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	font-size: 14px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rz-offer-modal__input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.rz-offer-modal__error {
	min-height: 18px;
	font-size: 13px;
	color: #dc2626;
}

.rz-offer-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.rz-offer-modal__cancel {
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	background: #f1f5f9;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.rz-offer-modal__cancel:hover {
	background: #e2e8f0;
}

.rz-offer-modal__submit {
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: rgb(29 111 184);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.rz-offer-modal__submit:hover {
	background: rgb(24 93 154);
}

.rz-offer-modal__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 480px) {
	.rz-offer-modal__grid {
		flex-direction: column;
	}
}
