/**
 * Team Members Repeater & Registration Enhancements Styles
 * Header Banner, Math CAPTCHA, Dynamic Repeater, and Confetti Success Screen
 */

/* ==========================================================================
   1. Registration Form Header
   ========================================================================== */
.aptech-form-header {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-radius: 12px;
	padding: 28px 24px;
	margin-bottom: 25px;
	text-align: center;
	color: #ffffff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.aptech-form-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 250px;
	height: 250px;
	background: radial-gradient(circle, rgba(255, 153, 0, 0.25) 0%, rgba(255, 153, 0, 0) 70%);
	border-radius: 50%;
	pointer-events: none;
}

.aptech-form-header-badge {
	display: inline-block;
	background: rgba(255, 153, 0, 0.2);
	color: #ffb74d;
	border: 1px solid rgba(255, 153, 0, 0.4);
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.aptech-form-title {
	font-size: 26px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.2 !important;
}

.aptech-form-subtitle {
	font-size: 14px;
	color: #94a3b8;
	margin: 0 auto;
	max-width: 540px;
	line-height: 1.5;
}

/* ==========================================================================
   2. Team Members Repeater
   ========================================================================== */
.aptech-team-members-wrapper {
	margin-top: 10px;
	margin-bottom: 20px;
}

.aptech-team-members-title {
	font-size: 15px;
	font-weight: 600;
	color: #222;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.aptech-team-members-title .required-star {
	color: #e53935;
}

.aptech-team-members-container {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aptech-member-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease-in-out;
}

.aptech-member-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
}

.aptech-member-card.is-leader {
	border-left: 4px solid #ff9900;
	background: #fffdfa;
}

.aptech-member-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.aptech-member-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.aptech-member-badge .leader-tag {
	background: #fff3e0;
	color: #d97706;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 1px solid #fde68a;
}

.aptech-member-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 600px) {
	.aptech-member-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

.aptech-input-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.aptech-input-group label {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.aptech-input-group label .req {
	color: #e53935;
}

.aptech-input-group input[type="text"] {
	width: 100% !important;
	padding: 10px 12px !important;
	font-size: 14px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	outline: none !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	background-color: #ffffff !important;
	color: #1e293b !important;
	box-sizing: border-box !important;
}

.aptech-input-group input[type="text"]:focus {
	border-color: #ff9900 !important;
	box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15) !important;
}

.aptech-input-group input[type="text"].input-error {
	border-color: #ef4444 !important;
	background-color: #fef2f2 !important;
}

.aptech-validation-error-msg {
	display: none;
	color: #dc2626;
	font-size: 12px;
	margin-top: 6px;
	font-weight: 500;
}

/* ==========================================================================
   3. Math CAPTCHA Box
   ========================================================================== */
.aptech-captcha-container {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 18px;
	margin-top: 15px;
	margin-bottom: 20px;
}

.aptech-captcha-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 8px;
}

.aptech-captcha-box {
	display: flex;
	align-items: center;
	gap: 10px;
}

.aptech-captcha-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: #ffedd5;
	color: #d97706;
	border-radius: 6px;
	font-size: 16px;
	flex-shrink: 0;
}

.aptech-captcha-box .wpcf7-form-control-wrap {
	flex-grow: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.aptech-captcha-box .wpcf7-quiz-label {
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
	background: #e2e8f0;
	padding: 6px 12px;
	border-radius: 6px;
	white-space: nowrap;
}

.aptech-captcha-box input.wpcf7-quiz {
	max-width: 140px;
	padding: 8px 12px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-align: center;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
}

.aptech-captcha-help {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 6px;
}

/* ==========================================================================
   4. Thank You Success Screen Card
   ========================================================================== */
.aptech-success-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 40px 30px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	margin: 20px auto;
	max-width: 650px;
	animation: aptechFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aptechFadeInUp {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.aptech-success-icon-wrap {
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	background: #ecfdf5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 10px #f0fdf4;
	animation: aptechPulse 2s infinite;
}

@keyframes aptechPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3);
	}
	70% {
		box-shadow: 0 0 0 16px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.aptech-success-icon-wrap svg {
	width: 44px;
	height: 44px;
	color: #10b981;
}

.aptech-success-title {
	font-size: 28px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 0 10px 0 !important;
	line-height: 1.2 !important;
}

.aptech-success-subtitle {
	font-size: 16px;
	color: #475569;
	margin-bottom: 24px;
	line-height: 1.5;
}

.aptech-success-details {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px 22px;
	margin-bottom: 28px;
	text-align: left;
}

.aptech-success-detail-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px dashed #e2e8f0;
	font-size: 14px;
}

.aptech-success-detail-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.aptech-success-detail-row .detail-label {
	color: #64748b;
	font-weight: 500;
}

.aptech-success-detail-row .detail-value {
	color: #1e293b;
	font-weight: 700;
}

.aptech-success-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

.aptech-btn-register-another {
	background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	padding: 12px 26px !important;
	border-radius: 8px !important;
	border: none !important;
	cursor: pointer !important;
	transition: transform 0.2s, box-shadow 0.2s !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
}

.aptech-btn-register-another:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 153, 0, 0.35) !important;
}

/* Hide original WPForms textarea fields when repeater is active */
.wpforms-field-team-members-orig-hidden {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}
