/**
 * SP Contact Form styles (mirrors the membership form look)
 */

[hidden] {
	display: none !important;
}

.spcf-wrap {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px !important;
	width: var(--spcf-width, 100%);
	max-width: 100%;
}

.spcf-field {
	margin-bottom: 16px;
}

.spcf-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.spcf-required {
	color: #dc2626;
}

.spcf-field input[type="text"],
.spcf-field input[type="email"],
.spcf-field input[type="tel"],
.spcf-field input[type="search"],
.spcf-field input[type="number"],
.spcf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.4;
	background: #fff;
	color: #0f172a;
	transition: border-color .15s, box-shadow .15s;
}

.spcf-field textarea {
	resize: vertical;
}

.spcf-field input:focus,
.spcf-field textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .18);
}

.spcf-field.spcf-invalid input,
.spcf-field.spcf-invalid textarea {
	border-color: #dc2626;
}

.spcf-field-error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #dc2626;
}

.spcf-field-hint {
	margin: 4px 0 0;
	font-size: 13px;
	color: #64748b;
}

.spcf-form-actions {
	margin-top: 20px;
}

.spcf-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 0;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}

.spcf-btn-primary {
	background: #2271b1;
	color: #fff;
}

.spcf-btn-primary:hover {
	background: #1a5b92;
	color: #fff;
}

.spcf-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.spcf-msg {
	display: none;
	margin-bottom: 16px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.spcf-msg.spcf-msg-show {
	display: block;
}

.spcf-msg-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.spcf-msg-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* Honeypot (hidden from humans). */
.spcf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* ---------------------------------------------------------------------
 * Uploads
 * ------------------------------------------------------------------- */

.spcf-upload-field input[type="file"] {
	display: block;
	font-size: 14px;
}

.spcf-upload-preview {
	margin-top: 8px;
}

.spcf-upload-preview img {
	max-width: 140px;
	height: auto;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

/* ---------------------------------------------------------------------
 * Math captcha
 * ------------------------------------------------------------------- */

.spcf-captcha-math .spcf-math-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.spcf-captcha-math input[type="text"] {
	width: 120px;
}

.spcf-math-question {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #409eff !important;
	border-radius: 6px;
	background: #d9ecff !important;
	color: #409eff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
}

.spcf-math-question:hover,
.spcf-math-question:active,
.spcf-math-question:focus,
.spcf-math-question:focus-visible,
.spcf-math-question:visited {
	background: #d9ecff !important;
	color: #409eff !important;
	border-color: #409eff !important;
}

.spcf-turnstile {
	margin: 4px 0 16px;
	min-height: 65px;
}

/* ---------------------------------------------------------------------
 * Country combobox
 * ------------------------------------------------------------------- */

.spcf-field-country {
	position: relative;
}

.spcf-native-select {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.spcf-country-select {
	position: relative;
}

.spcf-country-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	text-align: left;
	color: #0f172a;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}

.spcf-country-trigger:hover {
	border-color: #94a3b8;
}

.spcf-field-country.spcf-open .spcf-country-trigger {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .18);
}

.spcf-country-trigger .spcf-country-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.spcf-country-trigger svg {
	flex: none;
	margin-left: 8px;
	fill: none;
	stroke: #64748b;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s;
}

.spcf-field-country.spcf-open .spcf-country-trigger svg {
	transform: rotate(180deg);
}

.spcf-country-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	display: none;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.spcf-field-country.spcf-open .spcf-country-panel {
	display: block;
}

.spcf-country-panel input.spcf-country-search[type="search"] {
	width: calc(100% - 20px);
	margin: 8px 10px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
}

.spcf-country-list {
	margin: 0;
	padding: 0 0 6px;
	max-height: 220px;
	overflow-y: auto;
	list-style: none;
}

.spcf-country-option {
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
}

.spcf-country-option:hover,
.spcf-country-option.selected {
	background: #eff6ff;
	color: #1e40af;
}

.spcf-country-option.empty {
	color: #94a3b8;
	cursor: default;
}

/* ---------------------------------------------------------------------
 * Responsive: form width setting applies on desktop only.
 * Tablet and mobile always render at 100%.
 * ------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.spcf-wrap {
		width: 100%;
	}
}
