/* MODAL SYSTEM */
.section-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kavkaz-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all .35s ease;
}

.kavkaz-modal.active {
	opacity: 1;
	visibility: visible;
}

.kavkaz-modal-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(6px);
}

.kavkaz-modal-container {
	position: relative;
	z-index: 10;
	background: #fff;
	border-radius: 20px;
/* 	max-width: 760px; */
/* 	width: 95%;
	max-height: 90vh; */
	overflow: auto;
	animation: kavkazModalIn .35s ease;
}

@keyframes kavkazModalIn {

	from {
		transform: translateY(40px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}

}

.kavkaz-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	border: none;
	background: #f1f1f1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	transition: .2s;
}

.kavkaz-modal-close:hover {
	background: #e4e4e4;
}

.kavkaz-modal-body {
	padding: 20px;
}

.kavkaz-modal-body img {
    width: 100%;
    object-fit: contain;
    display: block;
    max-width: 500px;
    max-height: 800px;
}

.kavkaz-modal-body video,
.kavkaz-modal-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

/* body.kavkaz-modal-open {
	overflow: hidden;
} */

/* ===== Payment Form UI ===== */
.card-payment-form {
	background: #ffffff;
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
	max-width: 720px;
}

.card-payment-form h3 {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 10px;
}

.card-payment-form p {
	font-size: 15px;
	color: #6b7280;
	margin-bottom: 30px;
	line-height: 1.6;
}

/* Grid spacing */
.card-payment-form .grid-spacer-2 {
	row-gap: 20px;
	margin-bottom: 20px;
}

/* Label */
.card-payment-form label {
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}

/* Inputs */
.card-payment-form input,
.card-payment-form textarea {
	width: 100%;
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	font-size: 15px;
	transition: all .25s ease;
	background: #fafafa;
}

/* Placeholder */
.card-payment-form input::placeholder,
.card-payment-form textarea::placeholder {
	color: #9ca3af;
}

/* Focus effect */
.card-payment-form input:focus,
.card-payment-form textarea:focus {
	outline: none;
	border-color: #6366f1;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Textarea */
.card-payment-form textarea {
	resize: none;
	min-height: 120px;
}

/* ===== Payment amount with USD ===== */
.card-payment-form #make_payment+span {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	pointer-events: none;
}

/* container relative */
.card-payment-form label[for="make_payment"]+div {
	position: relative;
}

/* input padding to avoid overlap with USD */
.card-payment-form #make_payment {
	padding-right: 60px;
}

/* optional divider effect */
.card-payment-form label[for="make_payment"]+div span::before {
	content: "";
	position: absolute;
	left: -10px;
	top: 50%;
	transform: translateY(-50%);
	height: 18px;
	width: 1px;
	background: #e5e7eb;
}

/* Error text */
.card-payment-form .error-text {
	font-size: 12px;
	color: #ef4444;
	margin-top: 4px;
}

/* Global error */
.card-payment-form .form-error-global {
	color: #ef4444;
	margin-bottom: 15px;
}

/* Button */
.card-payment-form .btn-accent {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 26px;
	border-radius: 12px;
	border: none;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #fff;
	transition: all .25s ease;
}

/* Button hover */
.card-payment-form .btn-accent:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);
}

/* Icon circle */
.card-payment-form .icon-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	transition: .25s;
}

/* Hover icon animation */
.card-payment-form .btn-accent:hover .icon-circle {
	transform: translateX(4px);
}

/* Spinner */
.card-payment-form .spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top: 2px solid #fff;
	border-radius: 50%;
	animation: payment-spin .6s linear infinite;
}

@keyframes payment-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media (max-width:768px) {
	.card-payment-form {
		padding: 30px 20px;
	}

	.card-payment-form h3 {
		font-size: 22px;
	}
}