/* SoftWest Contact form. Palette matches the homepage (deep-space blue, neon violet, mint pulse). */

.sw-cf {
	--cf-text: #EDF1FF;
	--cf-muted: #939DBC;
	--cf-violet: #8B7CFF;
	--cf-mint: #43F5B6;
	--cf-coral: #FF6B4A;
	--cf-field: rgba(9, 13, 38, 0.6);
	--cf-line: rgba(147, 157, 188, 0.24);

	position: relative;
	max-width: 560px;
	margin: 28px auto 0;
	text-align: left;
	font-family: 'Manrope', system-ui, sans-serif;
	color: var(--cf-text);
}

.sw-cf [hidden] { display: none !important; }

/* Honeypot: off-screen for people, visible to naive bots. */
.sw-cf .sw-cf-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sw-cf .sw-cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.sw-cf .sw-cf-field { margin: 0 0 14px; }

.sw-cf .sw-cf-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cf-text);
}

.sw-cf .sw-cf-label small {
	font-size: inherit;
	font-weight: 500;
	color: var(--cf-muted);
}

.sw-cf .sw-cf-input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	font: 500 16px/1.5 'Manrope', system-ui, sans-serif; /* 16px keeps iOS from zooming in */
	color: var(--cf-text);
	background: var(--cf-field);
	border: 1px solid var(--cf-line);
	border-radius: 12px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sw-cf textarea.sw-cf-input {
	min-height: 150px;
	resize: vertical;
}

.sw-cf .sw-cf-input:hover { border-color: rgba(139, 124, 255, 0.45); }

.sw-cf .sw-cf-input:focus {
	outline: none;
	border-color: var(--cf-violet);
	box-shadow: 0 0 0 3px rgba(139, 124, 255, 0.2), 0 0 22px rgba(139, 124, 255, 0.35);
}

.sw-cf .sw-cf-input[aria-invalid="true"] {
	border-color: var(--cf-coral);
	box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.18);
}

/* Keep browser autofill from painting the dark fields light. */
.sw-cf .sw-cf-input:-webkit-autofill {
	-webkit-text-fill-color: var(--cf-text);
	caret-color: var(--cf-text);
	box-shadow: 0 0 0 1000px #0b1030 inset;
}

.sw-cf .sw-cf-foot {
	margin-top: 22px;
	text-align: center;
}

.sw-cf .sw-cf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	margin: 0;
	padding: 15px 32px;
	border: 0;
	border-radius: 999px;
	font: 700 16px/1 'Manrope', system-ui, sans-serif;
	color: #0A0E24;
	background: var(--cf-violet);
	box-shadow: 0 0 0 1px rgba(139, 124, 255, 0.6), 0 0 28px rgba(139, 124, 255, 0.5);
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.sw-cf .sw-cf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(139, 124, 255, 0.9), 0 0 40px rgba(139, 124, 255, 0.75);
}

.sw-cf .sw-cf-btn:focus-visible {
	outline: 2px solid var(--cf-mint);
	outline-offset: 3px;
}

.sw-cf .sw-cf-btn:disabled {
	opacity: 0.7;
	transform: none;
	cursor: progress;
}

.sw-cf .sw-cf-status,
.sw-cf .sw-cf-note {
	margin: 12px 0 0;
	padding: 0;
	line-height: 1.5;
}

.sw-cf .sw-cf-status {
	font-size: 14px;
	font-weight: 600;
	color: var(--cf-coral);
}

.sw-cf .sw-cf-status:empty { display: none; }

.sw-cf .sw-cf-note {
	font-size: 13px;
	color: var(--cf-muted);
}

/* Sent: the pulse line draws itself once, echoing the hero. */
.sw-cf .sw-cf-done {
	padding: 8px 0 4px;
	text-align: center;
	outline: none;
}

.sw-cf .sw-cf-beat {
	display: block;
	width: 240px;
	max-width: 100%;
	height: 40px;
	margin: 0 auto 20px;
	overflow: visible;
}

.sw-cf .sw-cf-beat path {
	fill: none;
	stroke: var(--cf-mint);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	filter: drop-shadow(0 0 6px rgba(67, 245, 182, 0.8));
	animation: sw-cf-draw 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.1s forwards;
}

@keyframes sw-cf-draw {
	to { stroke-dashoffset: 0; }
}

.sw-cf .sw-cf-done-title {
	margin: 0 0 6px;
	padding: 0;
	font: 600 22px/1.2 'Sora', system-ui, sans-serif;
	color: var(--cf-text);
}

.sw-cf .sw-cf-done-text {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.7;
	color: var(--cf-muted);
}

@media (max-width: 640px) {
	.sw-cf .sw-cf-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.sw-cf .sw-cf-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.sw-cf .sw-cf-input,
	.sw-cf .sw-cf-btn { transition: none; }
	.sw-cf .sw-cf-btn:hover { transform: none; }
	.sw-cf .sw-cf-beat path {
		animation: none;
		stroke-dashoffset: 0;
	}
}
