.ctm-modal {
	--ctm-ink: #0f1a26;
	--ctm-body: #1b2430;
	--ctm-text: #3b4654;
	--ctm-muted: #5b6675;
	--ctm-line: #d5dce4;
	--ctm-line-2: #e3e8ee;
	--ctm-line-3: #eef1f5;
	--ctm-soft: #f7f9fb;
	--ctm-chip: #f2f5f8;
	--ctm-green: #36c777;
	--ctm-green-hover: #2fb86b;
	--ctm-green-ink: #07210f;
	--ctm-green-dark: #17924e;
	--ctm-green-text: #146c3c;
	--ctm-green-bg: #eaf8f0;
	--ctm-green-soft: #f3fbf6;
	font-family: "Open Sans", sans-serif;
}
.modal {
	color-scheme: light dark;
}
.modal .modal-dialog {
	color-scheme: light;
}
.ctm-i {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ctm-modal .modal-dialog {
	max-width: 600px;
	height: auto;
	min-height: 100%;
	margin: 0 auto;
	padding: 64px 0;
	box-sizing: border-box;
}
.ctm-modal .modal-content {
	border: 0;
	border-radius: 20px;
	box-shadow: 0 40px 100px rgba(9, 32, 63, 0.4), 0 2px 8px rgba(9, 32, 63, 0.12);
	overflow: hidden;
}
.ctm-modal .modal-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 20px 18px 28px;
	border-bottom: 1px solid var(--ctm-line-3);
	border-radius: 0;
}
.ctm-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ctm-green-bg);
	color: var(--ctm-green-dark);
}
.ctm-icon .ctm-i {
	width: 21px;
	height: 21px;
}
.ctm-modal .modal-title {
	flex: 1;
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--ctm-ink);
}
.ctm-x {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ctm-chip);
	color: var(--ctm-body);
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.ctm-x:hover {
	background: #e6ebf0;
}
.ctm-x .ctm-i {
	width: 18px;
	height: 18px;
	stroke-width: 2.4;
}
.ctm-modal .modal-body {
	padding: 24px 28px 26px;
	font-size: 15.5px;
	line-height: 1.65;
	font-weight: 400;
	color: var(--ctm-text);
}
.ctm-modal .modal-body p {
	margin: 0 0 14px;
}
.ctm-modal .modal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px 14px 28px;
	border-top: 1px solid var(--ctm-line-3);
	background: var(--ctm-soft);
}
.ctm-modal .modal-footer > * {
	margin: 0;
}
.ctm-note {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ctm-text);
}
.ctm-modal .modal-body a,
.ctm-note a {
	font-weight: 600;
	color: var(--ctm-green-text);
}
.ctm-modal .modal-body a:hover,
.ctm-note a:hover {
	color: var(--ctm-green-dark);
}

.ctm-contacts {
	display: grid;
	gap: 10px;
}
.ctm-modal .modal-body a.ctm-contact {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--ctm-line-2);
	border-radius: 12px;
	font-weight: 400;
	color: var(--ctm-ink);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ctm-modal .modal-body a.ctm-contact:hover {
	border-color: var(--ctm-green);
	background: var(--ctm-green-soft);
}
.ctm-contact-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--ctm-chip);
	color: var(--ctm-ink);
}
.ctm-contact-icon .ctm-i {
	width: 19px;
	height: 19px;
}
.ctm-contact-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.4;
}
.ctm-contact-text strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--ctm-ink);
}
.ctm-contact-text span {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ctm-green-text);
	overflow-wrap: anywhere;
}

.ctm-row {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 14px;
}
.ctm-field {
	display: block;
	margin: 0 0 16px;
}
.ctm-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13.5px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--ctm-ink);
}
.ctm-input {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--ctm-line);
	border-radius: 10px;
	background-color: #fff;
	color: var(--ctm-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ctm-input::placeholder {
	color: #8a94a1;
	opacity: 1;
}
.ctm-input:hover {
	border-color: #b9c3ce;
}
.ctm-input:focus {
	border-color: var(--ctm-green);
	box-shadow: 0 0 0 3px rgba(54, 199, 119, 0.2);
	outline: none;
}
.ctm-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317924e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px 14px;
	cursor: pointer;
}
textarea.ctm-input {
	min-height: 150px;
	resize: vertical;
}
.ctm-modal .modal-body .ctm-field-last {
	margin-bottom: 0;
}
.ctm-docs {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--ctm-line-2);
	background: var(--ctm-soft);
	font-size: 14px;
	line-height: 1.55;
}
.ctm-docs b {
	display: block;
	font-weight: 700;
	color: var(--ctm-ink);
}
.ctm-docs ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.ctm-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
.ctm-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ctm-btn-ghost,
.ctm-btn-ghost:focus {
	background: #fff;
	border-color: var(--ctm-line);
	color: var(--ctm-ink);
}
.ctm-btn-ghost:hover {
	border-color: var(--ctm-ink);
	color: var(--ctm-ink);
}
.ctm-btn-green,
.ctm-btn-green:focus {
	background: var(--ctm-green);
	border-color: var(--ctm-green);
	color: var(--ctm-green-ink);
}
.ctm-btn-green:hover {
	background: var(--ctm-green-hover);
	border-color: var(--ctm-green-hover);
	color: var(--ctm-green-ink);
}
.ctm-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
.ctm-modal a:focus-visible,
.ctm-modal button:focus-visible,
.ctm-modal select:focus-visible {
	outline: 2px solid var(--ctm-green);
	outline-offset: 2px;
}

@media (max-width: 575px) {
	.ctm-modal .modal-dialog {
		margin: 0 12px;
		padding: 12px 0;
	}
	.ctm-modal .modal-header {
		padding: 16px 16px 14px 20px;
	}
	.ctm-modal .modal-body {
		padding: 20px;
	}
	.ctm-modal .modal-footer {
		flex-wrap: wrap;
		padding: 12px 16px 12px 20px;
	}
	.ctm-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
}
