/* =====================================================
   Web Squad Pro Contact Form — Public Styles
   Modern, premium, glassmorphism-inspired, fully responsive
   ===================================================== */

.wspcf-wrapper {
	--wspcf-primary: #2563eb;
	--wspcf-primary-dark: #1d4ed8;
	--wspcf-text: #1f2937;
	--wspcf-muted: #6b7280;
	--wspcf-border: #e5e7eb;
	--wspcf-error: #dc2626;
	--wspcf-success: #16a34a;
	--wspcf-radius: 14px;

	max-width: 640px;
	margin: 0 auto;
	padding: 32px;
	border-radius: var(--wspcf-radius);
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 8px 32px rgba(31, 41, 55, 0.08);
	font-family: inherit;
	box-sizing: border-box;
}

.wspcf-wrapper * {
	box-sizing: border-box;
}

.wspcf-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--wspcf-text);
}

.wspcf-description {
	margin: 0 0 20px;
	color: var(--wspcf-muted);
	font-size: 14px;
	line-height: 1.6;
}

.wspcf-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.wspcf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wspcf-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--wspcf-text);
}

.wspcf-required {
	color: var(--wspcf-error);
}

.wspcf-field input,
.wspcf-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--wspcf-border);
	border-radius: 10px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--wspcf-text);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	font-family: inherit;
}

.wspcf-field input:hover,
.wspcf-field textarea:hover {
	border-color: #cbd5e1;
}

.wspcf-field input:focus,
.wspcf-field textarea:focus {
	outline: none;
	border-color: var(--wspcf-primary);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.wspcf-field input.wspcf-invalid,
.wspcf-field textarea.wspcf-invalid {
	border-color: var(--wspcf-error);
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.wspcf-field textarea {
	resize: vertical;
	min-height: 120px;
}

.wspcf-field-error {
	min-height: 16px;
	font-size: 12px;
	color: var(--wspcf-error);
}

.wspcf-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wspcf-submit-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 28px;
	background: var(--wspcf-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.wspcf-submit-btn:hover {
	background: var(--wspcf-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.wspcf-submit-btn:active {
	transform: translateY(0);
}

.wspcf-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.wspcf-spinner {
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wspcf-spin 0.7s linear infinite;
}

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

.wspcf-alert {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 16px;
}

.wspcf-alert-success {
	background: rgba(22, 163, 74, 0.1);
	color: var(--wspcf-success);
	border: 1px solid rgba(22, 163, 74, 0.25);
}

.wspcf-alert-error {
	background: rgba(220, 38, 38, 0.08);
	color: var(--wspcf-error);
	border: 1px solid rgba(220, 38, 38, 0.25);
}

/* =====================================================
   Continuous Pulse Effect (Elementor button animation)
   Applied when the widget's "Pulse" animation is enabled.
   ===================================================== */
.wspcf-pulse-animation .elementor-button {
	animation: wspcf-pulse-effect 2s infinite;
	box-shadow: 0 0 0 0 rgba(93, 156, 199, 0.7);
	transition: all 0.3s ease;
}

.wspcf-pulse-animation .elementor-button:hover {
	animation: none;
}

@keyframes wspcf-pulse-effect {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(93, 156, 199, 0.7);
	}
	70% {
		transform: scale(1.05);
		box-shadow: 0 0 0 15px rgba(93, 156, 199, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(93, 156, 199, 0);
	}
}

.wspcf-pulse-animation {
	line-height: 0;
}

.wspcf-pulse-animation .elementor-button {
	position: relative;
	overflow: hidden;
	z-index: 1;
	transition: 0.4s;
}

.wspcf-pulse-animation .elementor-button::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: #fedc5a;
	transition: left 0.4s ease;
	z-index: -1;
}

.wspcf-pulse-animation .elementor-button:hover::before {
	left: 0;
}

/* =====================================================
   Responsive breakpoints
   ===================================================== */
@media (max-width: 991px) {
	.wspcf-wrapper {
		max-width: 100%;
		padding: 26px;
	}
}

@media (max-width: 600px) {
	.wspcf-wrapper {
		padding: 20px;
		border-radius: 10px;
	}

	.wspcf-title {
		font-size: 20px;
	}

	.wspcf-submit-btn {
		width: 100%;
	}
}
