/* V8 Callback Form — стили формы и pop-up (золотая тема) */

.v8cb-form {
	max-width: 480px;
	width: 100%;
	font-family: inherit;
}

.v8cb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.v8cb-field {
	flex: 1 1 180px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.v8cb-field label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: inherit;
}

.v8cb-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
	background: #fafafa;
	color: #1a1a1a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.v8cb-field input:focus {
	outline: none;
	border-color: var(--v8cb-accent, #b98a2f);
	box-shadow: 0 0 0 3px rgba(185, 138, 47, 0.15);
	background: #fff;
}

.v8cb-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 16px;
	cursor: pointer;
	color: inherit;
	opacity: 0.9;
}

.v8cb-consent input {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	accent-color: var(--v8cb-accent, #b98a2f);
	cursor: pointer;
}

.v8cb-submit {
	display: inline-block;
	width: 100%;
	padding: 13px 24px;
	background: var(--v8cb-accent, #b98a2f);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(185, 138, 47, 0.3);
}

.v8cb-submit:hover {
	background: var(--v8cb-accent-hover, #a87a22);
	box-shadow: 0 6px 20px rgba(168, 122, 34, 0.35);
}

.v8cb-submit:active {
	transform: translateY(1px);
}

.v8cb-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.v8cb-message {
	margin-top: 14px;
	font-size: 14px;
	min-height: 1em;
	line-height: 1.4;
}

.v8cb-message.is-success {
	color: #15803d;
}

.v8cb-message.is-error {
	color: #b91c1c;
}

/* Honeypot — скрыто от людей */
.v8cb-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Pop-up --- */

.v8cb-trigger {
	display: inline-block;
	padding: 13px 28px;
	background: var(--v8cb-accent, #b98a2f);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
	box-shadow: 0 4px 14px rgba(185, 138, 47, 0.3);
}

.v8cb-trigger:hover {
	background: var(--v8cb-accent-hover, #a87a22);
	box-shadow: 0 6px 20px rgba(168, 122, 34, 0.35);
}

.v8cb-trigger:active {
	transform: translateY(1px);
}

.v8cb-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 15, 15, 0.62);
	backdrop-filter: blur(3px);
	animation: v8cb-fade 0.2s ease;
}

.v8cb-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	padding: 32px 26px 26px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	color: #1a1a1a;
	animation: v8cb-pop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.v8cb-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 0 6px;
	transition: color 0.2s ease;
}

.v8cb-close:hover {
	color: #1a1a1a;
}

.v8cb-title {
	margin: 0 0 8px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: #1a1a1a;
}

.v8cb-subtext {
	margin: 0 0 20px;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

@keyframes v8cb-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes v8cb-pop {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
	.v8cb-modal {
		padding: 24px 18px 20px;
	}
	.v8cb-title {
		font-size: 22px;
	}
}
