/* OK Park — стилі валідації номера та попапу підтвердження */

.wpcf7-form input[type="submit"]:disabled {
	opacity: .45;
	cursor: not-allowed;
	box-shadow: none;
}

.wpcf7-form-control-wrap { position: relative; }

.okp-hint {
	position: absolute;
	top: 100%;
	left: 24px;
	right: 0;
	z-index: 2;
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
	color: #E5484D;
	text-align: left;
}
.okp-hint:empty { display: none; }

.wpcf7-form input.okp-invalid { outline: 1px solid #E5484D !important; }

/* попап */
html.okp-lock { overflow: hidden; }

.okp-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background-color: rgba(0, 0, 0, .9);
	font-family: 'Raleway', sans-serif;
	animation: okp-fade .2s ease-out;
}
.okp-modal[hidden] { display: none; }

.okp-modal__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 100%;
	overflow-y: auto;
	padding: 40px 32px 32px;
	background: #fff;
	border-radius: 24px;
	text-align: center;
	color: #000;
	animation: okp-pop .25s ease-out;
}

.okp-modal__close {
	position: absolute;
	top: 12px;
	right: 16px;
	padding: 4px 8px;
	border: 0;
	background: none;
	font-size: 32px;
	line-height: 1;
	color: #000;
	cursor: pointer;
}

.okp-modal h3 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #131313;
}

.okp-sub,
.okp-msg-text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.4;
	color: #1E1E1E;
}

.okp-phone {
	margin: 0 0 24px;
	padding: 16px 12px;
	border-radius: 16px;
	background: #F2F2F2;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: .5px;
	white-space: nowrap;
	color: #000;
}

.okp-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 2px solid #FFC700;
	border-radius: 16px;
	background: #FFF9E0;
	text-align: left;
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}
.okp-check input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: #FF7A00;
	cursor: pointer;
}

.okp-btn {
	display: block;
	width: 100%;
	padding: 18px 32px;
	border: none;
	border-radius: 76px;
	background: linear-gradient(95deg, #FFC700 5.13%, #FF7A00 90.59%);
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	color: #000;
	cursor: pointer;
	transition: all .3s linear;
}
.okp-btn:hover:not(:disabled),
.okp-btn:focus-visible { box-shadow: 0 5px 7px 0 #D16906 inset; }
.okp-btn:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.okp-link {
	margin-top: 14px;
	padding: 4px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 15px;
	color: #5d5d5d;
	text-decoration: underline;
	cursor: pointer;
}

.okp-icon { margin-bottom: 16px; }
.okp-icon svg { display: inline-block; }

.okp-spinner {
	width: 48px;
	height: 48px;
	margin: 12px auto 20px;
	border: 5px solid #F2F2F2;
	border-top-color: #FFB801;
	border-radius: 50%;
	animation: okp-spin .8s linear infinite;
}

@keyframes okp-spin { to { transform: rotate(360deg); } }
@keyframes okp-fade { from { opacity: 0; } }
@keyframes okp-pop { from { transform: scale(.94); opacity: 0; } }

@media (max-width: 480px) {
	.okp-modal__box { padding: 36px 20px 24px; }
	.okp-phone { font-size: 22px; }
	.okp-modal h3 { font-size: 21px; }
}
