/* ── WPForms API Connector — Frontend Form Styles ── */

/* Wrapper */
.wfac-wrapper {
	box-sizing: border-box;
	width: 100%;
}
.wfac-wrapper *,
.wfac-wrapper *::before,
.wfac-wrapper *::after { box-sizing: inherit; }

/* Field group */
.wfac-field { margin-bottom: 20px; }

/* Label */
.wfac-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #1a1a2e;
	line-height: 1.4;
}
.wfac-req { color: #c0392b; margin-left: 3px; }

/* Inputs */
.wfac-form input[type="text"],
.wfac-form select,
.wfac-form textarea {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 2px solid #d8dde4;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: #222;
	background: #f9fafb;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wfac-form input[type="text"]:focus,
.wfac-form select:focus,
.wfac-form textarea:focus {
	border-color: #920259;
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(146, 2, 89, .14);
}

.wfac-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	cursor: pointer;
}

.wfac-form textarea { resize: vertical; min-height: 100px; }

/* Field error */
.wfac-field-error {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	color: #c0392b;
	font-weight: 500;
	min-height: 16px;
}

/* Notices */
.wfac-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.5;
}
.wfac-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #b8dfc4;
}
.wfac-error {
	background: #fce8e8;
	color: #7b1a1a;
	border: 1px solid #f5c6c6;
}

/* Submit button */
.wfac-btn {
	display: block;
	width: 100%;
	padding: 13px 24px;
	background: linear-gradient(135deg, #920259 0%, #7a004a 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: .3px;
	cursor: pointer;
	transition: opacity .2s, transform .15s, box-shadow .2s;
	box-shadow: 0 3px 12px rgba(146, 2, 89, .28);
	margin-top: 8px;
}
.wfac-btn:hover:not(:disabled) {
	opacity: .9;
	transform: translateY(-1px);
	box-shadow: 0 5px 18px rgba(146, 2, 89, .36);
}
.wfac-btn:active:not(:disabled) { transform: translateY(0); }
.wfac-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Spinner */
.wfac-btn-loader {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.wfac-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wfac-spin .75s linear infinite;
	flex-shrink: 0;
}
@keyframes wfac-spin { to { transform: rotate(360deg); } }

/* Config error (admin/developer message) */
.wfac-config-error {
	padding: 10px 14px;
	background: #fce8e8;
	color: #7b1a1a;
	border: 1px solid #f5c6c6;
	border-radius: 6px;
	font-size: 13px;
}
