/* inquiry.css — global "Залишити заявку" modal triggered from any
   .js--request link site-wide. Self-contained so it doesn't need any
   other stylesheet to look right. */

.iq-modal[hidden] { display: none !important; }
.iq-modal {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: #1B3B50;
}
.iq-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 30, 50, .55);
	backdrop-filter: blur(2px);
}
.iq-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	padding: 28px 32px 24px;
	box-sizing: border-box;
}
.iq-close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #6b7585;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: background .15s ease, color .15s ease;
}
.iq-close:hover { background: #f1f4f8; color: #1b3b50; }

.iq-head { margin-bottom: 18px; }
.iq-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #F0621A;
	margin-bottom: 4px;
}
.iq-title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: #1B3B50;
}

.iq-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.iq-field {
	display: block;
	margin-bottom: 12px;
}
.iq-label {
	display: block;
	font-size: 12px;
	color: #4b5871;
	margin-bottom: 5px;
	font-weight: 600;
}
.iq-field input,
.iq-field select,
.iq-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d6dce5;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #1B3B50;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.iq-field textarea { resize: vertical; min-height: 70px; }
.iq-field input:focus,
.iq-field select:focus,
.iq-field textarea:focus {
	outline: none;
	border-color: #F0621A;
	box-shadow: 0 0 0 3px rgba(240, 98, 26, .15);
}

/* app.css globally strips native input chrome; restore it inside the modal
   so the consent checkbox is visible. */
.iq-modal input[type="checkbox"],
.iq-modal input[type="radio"] {
	-webkit-appearance: auto;
	   -moz-appearance: auto;
	        appearance: auto;
	width: 16px;
	height: 16px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	accent-color: #F0621A;
	flex-shrink: 0;
}

.iq-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #4b5871;
	margin-bottom: 14px;
}
.iq-consent input { margin-top: 3px; }
.iq-consent a { color: #F0621A; text-decoration: underline; }

.iq-error {
	margin-bottom: 12px;
	padding: 10px 12px;
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f7c4c0;
	border-radius: 8px;
	font-size: 13px;
}

.iq-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}
.iq-submit {
	flex: 0 1 auto;
	padding: 11px 22px;
	background: #F0621A;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .5px;
	text-transform: uppercase;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}
.iq-submit:hover { background: #d9521a; }
.iq-submit:disabled { background: #f5b693; cursor: wait; }
.iq-cancel {
	color: #4b5871;
	font-size: 13px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px 10px;
}
.iq-cancel:hover { color: #1B3B50; text-decoration: underline; }

.iq-success {
	text-align: center;
	padding: 12px 0 4px;
}
.iq-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	background: #e8f7ee;
	color: #2a8a45;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 800;
}
.iq-success-title {
	margin: 0 0 6px;
	color: #1B3B50;
	font-size: 20px;
	font-weight: 800;
}
.iq-success-text {
	margin: 0 0 16px;
	color: #4b5871;
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.iq-modal { padding: 0; }
	.iq-dialog {
		max-width: 100%;
		max-height: 100vh;
		min-height: 100vh;
		border-radius: 0;
		padding: 22px 18px 22px;
	}
	.iq-row { grid-template-columns: 1fr; }
	.iq-actions { flex-direction: column-reverse; align-items: stretch; }
	.iq-submit  { width: 100%; }
	.iq-cancel  { width: 100%; text-align: center; }
}
