/* Pin Access Protection Styles */

/* PIN Protection Modal Styles */
.pin-protection-modal {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.pin-protection-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.8) 0%,
		rgba(255, 255, 255, 0.8) 20%,
		rgba(255, 255, 255, 0.8) 50%,
		rgba(255, 255, 255, 1) 100%
	);
}

.pin-protection-content {
	position: relative;
	background: #fff;
	border-radius: 15px;
	padding: 2rem;
	max-width: 400px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	text-align: center;		
}

.pin-protection-header h3 {
	margin: 0 0 0.5rem 0;
	color: #333;
	font-size: 1.5rem;
}

.pin-protection-header p {
	margin: 0 0 1.5rem 0;
	color: #666;
	font-size: 1rem;
}

.pin-input-wrapper {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1rem;
	justify-content: center;
}

.pin-input {
	width: 60px;
	height: 60px;
	padding: 0;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1.5rem;
	text-align: center;
	transition: all 0.3s ease;
	background: #fff;
	font-weight: 600;
}

.pin-input:focus {
	outline: none;
	border-color: var(--accent-color, #007cba);
}

.pin-submit {
	padding: 1rem 1.5rem;
	background: var(--accent-color, #007cba);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pin-submit .dashicons {
	font-size: 1.2rem;
	width: 1.2rem;
	height: 1.2rem;
}

.pin-error {
	background: #fee;
	color: #c33;
	padding: 0.75rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.pin-error .dashicons {
	color: #c33;
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
}

.pin-contact-info {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e0e0e0;
}

.pin-contact-info p {
	margin: 0;
	color: #666;
	font-size: 0.9rem;
	line-height: 1.4;
}

.pin-contact-info a {
	color: var(--accent-color, #007cba);
	text-decoration: none;
	font-weight: 500;
}

.pin-contact-info a:hover {
	text-decoration: underline;
}

/* Discovery Form PIN Protection - EXACT SAME AS BEFORE */
.discovery-form {
	position: relative;
	transition: max-height 0.5s ease;
}

/* Limit height and hide form content when PIN not verified */
.discovery-form:not(.pin-verified) {
	max-height: 600px;
	overflow: hidden;
	position: relative;
}

.discovery-form:not(.pin-verified)::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9998;
	pointer-events: none;
	opacity: 0;
	animation: fadeInOverlay 0.3s ease forwards;
}

@keyframes fadeInOverlay {
	to {
		opacity: 1;
	}
}

.discovery-form:not(.pin-verified) > *:not(#pin-protection-modal) {
	pointer-events: none;
	user-select: none;
}

/* Show full content when PIN is verified */
.discovery-form.pin-verified {
	max-height: none;
	overflow: visible;
}

.discovery-form.pin-verified::after {
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.discovery-form.pin-verified > * {
	pointer-events: auto;
	user-select: auto;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
	.pin-protection-content {
		padding: 1.5rem;
		margin: 1rem;
	}
	
	.pin-input {
		width: 50px;
		height: 50px;
		font-size: 1.25rem;
	}
	
	.pin-input-wrapper {
		gap: 0.5rem;
	}
}

@media only screen and (max-width: 480px) {
	.pin-protection-content {
		padding: 1rem;
		margin: 0.5rem;
	}
	
	.pin-input {
		width: 45px;
		height: 45px;
		font-size: 1.1rem;
	}
	
	.pin-input-wrapper {
		gap: 0.4rem;
	}
	
	.pin-protection-header h3 {
		font-size: 1.25rem;
	}
	
	.pin-protection-header p {
		font-size: 0.9rem;
	}
} 