/**
 * CCLS Bot Protection — Styles
 *
 * Styles for the reCAPTCHA contact-protection system on Ultimate Member
 * member-directory pages.
 *
 * @package CCLS_Bot_Protection
 * @since   1.0.0
 */

/* ---- Scroll lock when modal is open ------------------------------------ */
body.ccls-bp-no-scroll {
	overflow: hidden;
}

/* ---- Inline unlock button inside UM member cards ----------------------- */
.ccls-bp-protected {
	display: inline-block;
}

.ccls-bp-unlock-btn {
	display:         inline-flex;
	align-items:     center;
	padding:         6px 14px;
	background:      #F26522 !important;
	color:           #ffffff !important;
	border:          2px solid #F26522 !important;
	border-radius:   5px;
	font-size:       13px;
	font-weight:     600;
	line-height:     1.4;
	cursor:          pointer;
	transition:      background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	white-space:     nowrap;
}

.ccls-bp-unlock-btn:hover,
.ccls-bp-unlock-btn:focus-visible {
	background:   #d9551a !important;
	border-color: #d9551a !important;
	color:        #ffffff !important;
	transform:    translateY(-1px);
	outline:      none;
}

/* ---- Modal overlay ----------------------------------------------------- */
.ccls-bp-modal {
	position: fixed;
	inset:    0;
	z-index:  999999;
}

.ccls-bp-overlay {
	position:   absolute;
	inset:      0;
	background: rgba(0, 0, 0, 0.65);
	cursor:     pointer;
}

/* ---- Modal content box ------------------------------------------------- */
.ccls-bp-modal-content {
	position:      relative;
	max-width:     480px;
	margin:        10vh auto 0;
	background:    #ffffff;
	border-radius: 10px;
	padding:       36px 40px 32px;
	box-shadow:    0 12px 48px rgba(0, 0, 0, 0.28);
	text-align:    center;
}

.ccls-bp-modal-close {
	position:   absolute;
	top:        12px;
	right:      14px;
	background: transparent !important;
	border:     none !important;
	font-size:  36px;
	line-height: 1;
	color:      #888 !important;
	cursor:     pointer;
	padding:    0;
	transition: color 0.15s;
}

.ccls-bp-modal-close:hover,
.ccls-bp-modal-close:focus-visible {
	color:   #222 !important;
	outline: none;
}

.ccls-bp-modal-content h2 {
	margin:    0 0 12px;
	color:     #1B3668;
	font-size: 22px;
}

.ccls-bp-instruction {
	color:       #444;
	font-size:   14px;
	margin:      0 0 18px;
	line-height: 1.5;
}

/* ---- reCAPTCHA widget wrapper ------------------------------------------ */
.ccls-bp-recaptcha-wrap {
	display:       inline-block;
	margin:        0 auto 18px;
	padding:       10px;
	background:    #fff;
	border:        1px solid #d0e6f5;
	border-radius: 5px;
}

/* ---- Verify button ----------------------------------------------------- */
.ccls-bp-verify-btn {
	display:      inline-flex;
	align-items:  center;
	padding:      11px 24px;
	background:   #F26522 !important;
	color:        #ffffff !important;
	border:       2px solid #F26522 !important;
	border-radius: 6px;
	font-size:    15px;
	font-weight:  600;
	cursor:       pointer;
	transition:   background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s;
}

.ccls-bp-verify-btn:hover:not(:disabled),
.ccls-bp-verify-btn:focus-visible:not(:disabled) {
	background:   #d9551a !important;
	border-color: #d9551a !important;
	color:        #ffffff !important;
	transform:    translateY(-2px);
	outline:      none;
}

.ccls-bp-verify-btn:disabled {
	opacity: 0.6;
	cursor:  not-allowed;
	transform: none;
}

/* ---- Spinner ----------------------------------------------------------- */
.ccls-bp-spinner {
	display:       inline-block;
	width:         15px;
	height:        15px;
	border:        2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation:     ccls-bp-spin 0.7s linear infinite;
	vertical-align: middle;
}

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

/* ---- Inline error message ---------------------------------------------- */
.ccls-bp-error {
	margin:        14px 0 0;
	padding:       10px 14px;
	background:    #fde8e8;
	border-left:   3px solid #d9534f;
	border-radius: 4px;
	color:         #721c24;
	font-size:     13px;
	text-align:    left;
}
