/* CF7 Enhancer Styles */

/* Error Styling */
.cf7-enhancer-error {
  color: #d63638;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

input.cf7-invalid,
textarea.cf7-invalid,
select.cf7-invalid {
  border: 1px solid #d63638 !important;
  background-color: #fff0f0;
}

/* Error Summary */
.cf7-enhancer-summary {
  padding: 10px 15px;
  background-color: #f8d7da;
  border-left: 4px solid #d63638;
  color: #721c24;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  /*display: none;*/
}

.cf7-enhancer-summary:empty {
  display: none;
}

.cf7-enhancer-summary p {
  margin: 0;
}

/* Loading Indicator */
form.cf7-enhancer-loading::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: cf7-spinner 0.6s linear infinite;
  transform: translateY(-50%);
  z-index: 99;
}

@keyframes cf7-spinner {
  to {
    transform: rotate(360deg) translateY(-50%);
  }
}

/* Floating Labels (if enabled in future) */
.cf7-floating-label {
  position: relative;
}

.cf7-floating-label input,
.cf7-floating-label textarea {
  padding: 12px 12px 12px 0;
}

.cf7-floating-label label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: 0.2s;
  pointer-events: none;
  color: #999;
  font-size: 14px;
}

.cf7-floating-label input:focus + label,
.cf7-floating-label input:not(:placeholder-shown) + label,
.cf7-floating-label textarea:focus + label,
.cf7-floating-label textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #000;
  transform: translateY(-100%);
}
.wpcf7-not-valid-tip,
.wpcf7-response-output.wpcf7-validation-errors {
  display: none !important;
}
.wpcf7 .screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.wpcf7 form .wpcf7-response-output {
	margin: 2em 0.5em 1em;
	padding: 0.2em 1em;
	border: 2px solid #00a0d2; /* Blue */
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #46b450; /* Green */
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #dc3232; /* Red */
}

.wpcf7 form.spam .wpcf7-response-output {
	border-color: #f56e28; /* Orange */
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #ffb900; /* Yellow */
}

.wpcf7-form-control-wrap {
	position: relative;
}

.wpcf7-not-valid-tip {
	color: #dc3232; /* Red */
	font-size: 1em;
	font-weight: normal;
	display: block;
}

.use-floating-validation-tip .wpcf7-not-valid-tip {
	position: relative;
	top: -2ex;
	left: 1em;
	z-index: 100;
	border: 1px solid #dc3232;
	background: #fff;
	padding: .2em .8em;
	width: 24em;
}

.wpcf7-list-item {
	display: inline-block;
	margin: 0 0 0 1em;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
	content: " ";
}

.wpcf7-spinner {
	visibility: hidden;
	display: inline-block;
	background-color: #23282d; /* Dark Gray 800 */
	opacity: 0.75;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 100%;
	padding: 0;
	margin: 0 24px;
	position: relative;
}

form.submitting .wpcf7-spinner {
	visibility: visible;
}

.wpcf7-spinner::before {
	content: '';
	position: absolute;
	background-color: #fbfbfc; /* Light Gray 100 */
	top: 4px;
	left: 4px;
	width: 6px;
	height: 6px;
	border: none;
	border-radius: 100%;
	transform-origin: 8px 8px;
	animation-name: spin;
	animation-duration: 1000ms;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
	.wpcf7-spinner::before {
		animation-name: blink;
		animation-duration: 2000ms;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes blink {
	from {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

.wpcf7 [inert] {
	opacity: 0.5;
}

.wpcf7 input[type="file"] {
	cursor: pointer;
}

.wpcf7 input[type="file"]:disabled {
	cursor: default;
}

.wpcf7 .wpcf7-submit:disabled {
	cursor: not-allowed;
}

.wpcf7 input[type="url"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
	direction: ltr;
}

.wpcf7-reflection > output {
	display: list-item;
	list-style: none;
}

.wpcf7-reflection > output[hidden] {
	display: none;
}
