/* Ensure Elementor wrapper itself is allowed to be full width */
.elementor-widget-three_piece_selector_ae425237 {
	width: 100%;
}

.tps-container-ae425237 {
	font-family: inherit;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	overflow: hidden;
	position: relative;
	z-index: 1; /* Establish stacking context */
	width: 100%;
}

/* Background Overlay */
.tps-container-ae425237::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1; /* Sit behind the content, but above the background color/image set on the main container via Elementor */
	pointer-events: none;
	transition: background 0.3s, opacity 0.3s;
}

/* Ensure content stays above the overlay */
.tps-tabs-header,
.tps-tabs-content {
	position: relative;
	z-index: 2;
}

.tps-tabs-header {
	display: flex;
	border-bottom: 1px solid #eee;
	background: #fafafa;
}

.tps-tab {
	flex: 1;
	padding: 15px 20px;
	border: none;
	background: transparent;
	font-weight: 600;
	font-size: 16px;
	color: #555;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
}

.tps-tab:hover {
	background: #f1f1f1;
}

.tps-tab.active {
	background: #fff;
	color: #0073aa;
	border-bottom-color: #0073aa;
}

.tps-tabs-content {
	padding: 30px;
}

.tps-tab-pane {
	display: none;
	animation: fadeIn 0.4s;
}

.tps-tab-pane.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.tps-form-group {
	margin-bottom: 20px;
}

.tps-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.tps-form-group input[type="text"],
.tps-form-group input[type="email"],
.tps-form-group textarea,
.tps-form-group input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
	box-sizing: border-box;
}

.tps-form-group input[type="text"]:focus,
.tps-form-group input[type="email"]:focus,
.tps-form-group textarea:focus {
	outline: none;
	border-color: #0073aa;
}

.tps-checkbox {
	display: flex;
	align-items: center;
}

.tps-checkbox input {
	margin-right: 10px;
}

.tps-privacy-link {
	color: #0073aa;
	text-decoration: underline;
	cursor: pointer;
}

.tps-btn-submit {
	background: #0073aa;
	color: #fff;
	padding: 12px 25px;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
}

.tps-btn-submit:hover {
	opacity: 0.9;
}

.tps-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.tps-form-message {
	margin-top: 15px;
	font-weight: 500;
}

.tps-form-message.success {
	color: green;
}

.tps-form-message.error {
	color: red;
}

.tps-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.tps-modal-overlay.active {
	display: flex;
}

.tps-modal {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.tps-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #333;
}