.ccp-wrap {
	--ccp-border: #e6d7bf;
	--ccp-background: #fff;
	--ccp-field: #fbf8f3;
	--ccp-text: #2e241c;
	--ccp-muted: #8f806e;
	--ccp-button: #566e5c;
	--ccp-button-hover: #435849;
	--ccp-popup-accent: #526b5a;
	max-width: 550px;
	margin: 0 auto;
	color: var(--ccp-text);
}

.ccp-form {
	background: var(--ccp-background);
	border: 1px solid var(--ccp-border);
	border-radius: 13px;
	box-shadow: 0 22px 35px rgba(37, 31, 24, 0.18);
	padding: 24px;
}

.ccp-form h2 {
	margin: 0 0 7px;
	font-size: clamp(28px, 4vw, 36px);
	line-height: 1.15;
	font-weight: 500;
}

.ccp-subtitle {
	margin: 0 0 18px;
	font-size: 15px;
}

.ccp-single-field-row .ccp-field {
	width: 100%;
}

.ccp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ccp-field {
	margin-bottom: 13px;
}

.ccp-field input,
.ccp-field select,
.ccp-field textarea {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	border: 1px solid var(--ccp-border);
	border-radius: 10px;
	background: var(--ccp-field);
	color: var(--ccp-text);
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ccp-field input,
.ccp-field select {
	min-height: 50px;
	padding: 0 13px;
}

.ccp-field textarea {
	min-height: 150px;
	padding: 13px;
	resize: vertical;
}

.ccp-field input:focus,
.ccp-field select:focus,
.ccp-field textarea:focus {
	border-color: var(--ccp-button);
	box-shadow: 0 0 0 3px rgba(86, 110, 92, 0.12);
}

.ccp-submit-wrap {
	text-align: center;
}

.ccp-submit {
	display: inline-block;
	width: 100%;
	min-height: 49px;
	border: 0;
	border-radius: 5px;
	background-color: var(--ccp-button);
	background-image: none;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ccp-submit:hover,
.ccp-submit:focus {
	background-color: var(--ccp-button-hover);
	transform: translateY(-1px);
}

.ccp-submit:disabled {
	cursor: wait;
	opacity: 0.7;
	transform: none;
}

.ccp-security {
	margin: 15px 0 0;
	text-align: center;
	color: var(--ccp-muted);
	font-size: 12px;
}

.ccp-hp {
	position: absolute !important;
	left: -99999px !important;
	opacity: 0 !important;
}

.ccp-form-message {
	margin-top: 12px;
	font-size: 14px;
}

.ccp-form-message.is-error {
	color: #b42318;
}

.ccp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 28px 18px;
	overflow-y: auto;
}

.ccp-modal[aria-hidden="false"] {
	display: flex;
}

.ccp-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(18, 24, 20, 0.72);
	backdrop-filter: blur(8px);
}

.ccp-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	margin: auto;
	border: 1px solid rgba(255, 255, 255, 0.82);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
	padding: 22px;
	overflow: hidden;
}

.ccp-modal-dialog::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--ccp-popup-accent), #88a092);
}

.ccp-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #e7ebe8;
	border-radius: 50%;
	background: #f6f8f6;
	color: #26302a;
	font-size: 25px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.ccp-modal-close:hover,
.ccp-modal-close:focus {
	background: #000;
	transform: rotate(4deg);
}

.ccp-modal-header {
	padding: 2px 50px 16px 0;
	border-bottom: 1px solid #edf0ed;
}

.ccp-secure-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #edf4ef;
	color: var(--ccp-popup-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ccp-secure-badge::before {
	content: "✓";
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ccp-popup-accent);
	color: #fff;
	font-size: 10px;
}

.ccp-modal-header h3 {
	margin: 0 0 7px;
	color: #252b27;
	font-size: clamp(24px, 3vw, 31px);
	line-height: 1.18;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.ccp-modal-header p {
	margin: 0;
	color: #707970;
	font-size: 14px;
	line-height: 1.55;
}

.ccp-modal-header strong {
	color: #252b27;
}

.ccp-payment-loading {
	position: relative;
	min-height: 320px;
	padding: 56px 10px;
	color: #667068;
	text-align: center;
	font-size: 14px;
}

.ccp-payment-loading::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 auto 16px;
	border: 4px solid #e7ece8;
	border-top-color: var(--ccp-popup-accent);
	border-radius: 50%;
	animation: ccp-spin 0.8s linear infinite;
}

@keyframes ccp-spin {
	to { transform: rotate(360deg); }
}

.ccp-payment-frame {
	display: none;
	width: 100%;
	min-height: 560px;
	margin-top: 14px;
	border: 0;
	background: #fff;
}

.ccp-payment-frame.is-ready {
	display: block;
}

.ccp-payment-success {
	margin-top: 22px;
	padding: 42px 28px;
	border: 1px solid #cbe6d1;
	border-radius: 18px;
	background: linear-gradient(135deg, #f2fbf4, #eaf7ed);
	color: #166534;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
}

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

@media (max-width: 640px) {
	.ccp-form {
		padding: 18px;
	}

	.ccp-grid {
		grid-template-columns: 1fr;
	}

	.ccp-modal {
		padding: 10px;
	}

	.ccp-modal-dialog {
		border-radius: 18px;
		padding: 20px 16px;
	}

	.ccp-modal-close {
		top: 11px;
		right: 11px;
		width: 38px;
		height: 38px;
	}

	.ccp-modal-header {
		padding: 6px 45px 18px 0;
	}

	.ccp-modal-header h3 {
		font-size: 23px;
	}

	.ccp-payment-frame {
		min-height: 760px;
		margin-top: 14px;
	}
}
