/* Professional retouching offer under the result (core/includes/retouch-offer.php) */

.iu-rt-offer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	max-width: 760px;
	margin: 24px auto 8px;
	padding: 18px 22px;
	border: 1px solid #d7e3fb;
	border-radius: 14px;
	background: #f2f6fe;
	text-align: start;
}
.iu-rt-offer__text b {
	display: block;
	font-size: 17px;
	line-height: 1.35;
	color: #111;
}
.iu-rt-offer__text p {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.45;
	color: #444;
}
.iu-rt-offer__btn {
	flex: 0 0 auto;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	background: #5a70cf;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s;
}
.iu-rt-offer__btn:hover { background: #4a5fbd; }
.iu-rt-offer__btn:disabled { opacity: .55; cursor: default; }

@media (max-width: 640px) {
	.iu-rt-offer { flex-direction: column; align-items: stretch; margin: 20px 0 4px; padding: 16px; text-align: center; }
	.iu-rt-offer__btn { width: 100%; white-space: normal; }
}

/* The form */
html.iu-rt-lock { overflow: hidden; }

.iu-rt-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 20, 38, .55);
}
.iu-rt-modal.is-open { display: flex; }
.iu-rt-modal__box {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 26px 24px;
	border-radius: 16px;
	background: #fff;
	color: #222;
	text-align: start;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.iu-rt-modal__close {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f1f2f5;
	color: #555;
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
}
.iu-rt-modal h3 {
	margin: 0 0 8px;
	padding-inline-end: 40px;
	font-size: 22px;
	line-height: 1.3;
}
.iu-rt-intro, .iu-rt-thanks p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: #444; }
.iu-rt-label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: #222; }
.iu-rt-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.iu-rt-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #d5d9e3;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}
.iu-rt-choice:has(input:checked) { border-color: #5a70cf; background: #f2f6fe; }
.iu-rt-choice input { flex: 0 0 auto; margin: 0; accent-color: #5a70cf; }
.iu-rt-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d5d9e3;
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	color: #222;
	background: #fff;
	resize: vertical;
}
.iu-rt-input:focus { outline: 2px solid #5a70cf; outline-offset: 0; border-color: #5a70cf; }
.iu-rt-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; line-height: 1.4; color: #555; cursor: pointer; }
.iu-rt-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #5a70cf; }
.iu-rt-note { margin: 14px 0 0; font-size: 14px; color: #555; }
.iu-rt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.iu-rt-error { min-height: 1.2em; margin: 12px 0 4px; font-size: 14px; color: #d0342c; }
.iu-rt-submit, .iu-rt-thanks .iu-rt-offer__btn { width: 100%; margin-top: 4px; }

@media (max-width: 480px) {
	.iu-rt-modal { align-items: flex-end; padding: 0; }
	.iu-rt-modal__box { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 24px 18px 20px; }
	.iu-rt-choices { grid-template-columns: 1fr; }
}
