/* True Bright — CF7 modal overlays (compact, white panel, site typography) */

.tb-cf7-modal-root {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: max(20px, min(56px, 8vh), env(safe-area-inset-top, 0px)) 12px max(20px, env(safe-area-inset-bottom, 0px));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tb-cf7-modal-root.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.tb-cf7-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 30, 35, 0.5);
	cursor: pointer;
}

.tb-cf7-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	flex-shrink: 0;
	overflow-x: hidden;
	overflow-y: visible;
	background: #ffffff;
	border: 1px solid rgba(65, 72, 78, 0.14);
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(28, 30, 35, 0.16);
	padding: 14px 16px 16px;
	font-family: inherit;
	color: #41484e;
}

.tb-cf7-modal-panel[hidden] {
	display: none !important;
}

.tb-cf7-modal-close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #41484e;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.55;
	transition: opacity 0.2s ease;
	z-index: 2;
}

.tb-cf7-modal-close:hover,
.tb-cf7-modal-close:focus {
	opacity: 1;
}

.tb-cf7-modal-heading {
	margin: 0 0 6px;
	padding-right: 28px;
	font-size: 14px;
	font-weight: 600;
	color: #41484e;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	line-height: 1.3;
}

.tb-cf7-modal-form-wrap {
	margin: 0;
	padding: 0;
}

.tb-cf7-modal-panel .wpcf7-form {
	margin: 0;
}

.tb-cf7-modal-panel .wpcf7 label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #41484e;
	line-height: 1.35;
	letter-spacing: 0.4px;
}

.tb-cf7-modal-panel .wpcf7 input[type='text'],
.tb-cf7-modal-panel .wpcf7 input[type='email'],
.tb-cf7-modal-panel .wpcf7 input[type='tel'],
.tb-cf7-modal-panel .wpcf7 input[type='number'],
.tb-cf7-modal-panel .wpcf7 select,
.tb-cf7-modal-panel .wpcf7 textarea {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
	margin-top: 3px;
	padding: 7px 10px;
	border: 1px solid rgba(65, 72, 78, 0.22);
	border-radius: 4px;
	background: #fff;
	color: #2b2f33;
	font-size: 14px;
	line-height: 1.35;
	font-family: inherit;
}

.tb-cf7-modal-panel .wpcf7 textarea {
	min-height: 88px;
	resize: vertical;
}

/* CF7 ставит рядом со Send span.ajax-loader — общий text-align:center сдвигает кнопку влево */
.tb-cf7-modal-panel .wpcf7-form p:has(.wpcf7-submit),
.tb-cf7-modal-panel .wpcf7-form p:has(input[type='submit']),
.tb-cf7-modal-panel .wpcf7-form p:has(button[type='submit']) {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 8px;
	margin-bottom: 0;
}

.tb-cf7-modal-panel .wpcf7 input[type='submit'],
.tb-cf7-modal-panel .wpcf7 button[type='submit'] {
	display: block !important;
	width: fit-content;
	max-width: 100%;
	margin-top: 4px;
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
	padding: 5px 16px !important;
	min-height: 32px;
	background: #d5ac63 !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: 45px !important;
	font-size: 9px !important;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
	font-family: inherit;
	line-height: 1.2 !important;
	box-sizing: border-box;
}

.tb-cf7-modal-panel .wpcf7 input[type='submit']:hover,
.tb-cf7-modal-panel .wpcf7 button[type='submit']:hover {
	background: #1b1b1b !important;
	border-color: #fff !important;
}

.tb-cf7-modal-panel .wpcf7 .ajax-loader {
	flex: 0 0 auto;
	margin: 6px 0 0;
	display: block;
}

.tb-cf7-modal-panel .wpcf7-response-output {
	margin: 8px 0 0 !important;
	padding: 6px 8px !important;
	font-size: 12px !important;
	line-height: 1.4 !important;
	border-radius: 4px;
}

.tb-cf7-thanks {
	padding: 8px 4px 4px;
	text-align: center;
}

.tb-cf7-thanks-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #41484e;
}

.tb-cf7-thanks-text a {
	color: #d5ac63;
	word-break: break-all;
}

html.tb-cf7-modal-open,
html.tb-cf7-modal-open body {
	overflow: hidden;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
