/* Minimal Contact Form — Frontend Styles
   Modern, professional, minimalist form design. Fields and button share a
   consistent scale (padding, radius, height) so they read as one cohesive
   component instead of mismatched pieces. !important is used defensively
   on box-model properties only, to prevent host themes from re-flowing our
   layout (a common cause of icon/placeholder overlap on client sites). */

.mcf-form-wrapper {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mcf-form * {
	box-sizing: border-box;
}

.mcf-field-wrap {
	position: relative;
	width: 100%;
	margin-bottom: 16px;
}

/* Icon — a real element sitting on top of the field, never a background
   image on the input itself. This is what actually fixes the overlap:
   the icon's position no longer depends on the input's padding being
   respected by the theme. */
.mcf-field-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 19px;
	height: 19px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9a9aa2;
	pointer-events: none;
	z-index: 2;
	transition: color 0.2s ease;
}

.mcf-field-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.mcf-field-icon-textarea {
	top: 20px;
	transform: none;
}

.mcf-input,
.mcf-textarea {
	width: 100% !important;
	display: block !important;
	box-sizing: border-box !important;
	position: relative;
	padding: 16px 18px 16px 50px !important;
	font-size: 15.5px;
	line-height: 1.4;
	font-family: inherit;
	color: #16161a;
	background-color: #f3f3f5;
	border: none !important;
	border-radius: 14px;
	box-shadow: 0 0 0 1.5px transparent inset;
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
	outline: none !important;
	appearance: none;
	-webkit-appearance: none;
}

.mcf-textarea {
	resize: vertical;
	min-height: 140px;
	padding-top: 16px !important;
}

.mcf-input:focus,
.mcf-textarea:focus {
	background-color: #ffffff;
	box-shadow: 0 0 0 1.5px #16161a inset, 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mcf-input:focus ~ .mcf-field-icon,
.mcf-field-wrap:focus-within .mcf-field-icon {
	color: #16161a;
}

.mcf-input::placeholder,
.mcf-textarea::placeholder {
	color: #9a9aa2;
	font-weight: 400;
}

.mcf-input.mcf-invalid,
.mcf-textarea.mcf-invalid {
	background-color: #fdf3f3;
	box-shadow: 0 0 0 1.5px #d33d3d inset;
}

/* Honeypot — invisible to humans, present for bots.
   display:none is used (in addition to off-screen positioning) because
   most password managers and browser autofill respect display:none and
   won't populate it, whereas some can still autofill absolutely-positioned
   fields that remain in normal layout flow. */
.mcf-hp-wrap {
	display: none !important;
	position: absolute !important;
	left: -9999px !important;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* Submit button — deliberately matched to the field scale: same radius,
   same vertical padding rhythm, full-width by default so it reads as the
   natural final "row" of the form rather than a small floating pill. */
.mcf-submit-wrap {
	margin-bottom: 0;
	margin-top: 4px;
}

.mcf-submit-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 17px 28px !important;
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	font-family: inherit;
	color: #ffffff;
	background-color: #16161a;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

/* If a user explicitly chooses "Auto" width in the widget style settings */
.mcf-btn-width-auto .mcf-submit-btn {
	width: auto;
	min-width: 200px;
}

.mcf-btn-icon {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.mcf-btn-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.mcf-submit-btn:hover,
.mcf-submit-btn:focus-visible {
	background-color: #2e2e34;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.mcf-submit-btn:hover .mcf-btn-icon {
	transform: translateX(3px);
}

.mcf-submit-btn:active {
	transform: scale(0.98) translateY(0);
}

.mcf-submit-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* Loading spinner shown inside the button while submitting */
.mcf-btn-spinner {
	display: none;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: mcf-spin 0.6s linear infinite;
}

.mcf-form.mcf-submitting .mcf-btn-spinner {
	display: inline-block;
}

.mcf-form.mcf-submitting .mcf-btn-icon {
	display: none;
}

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

/* Response / status message */
.mcf-response {
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.5;
	display: none;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border-radius: 12px;
}

.mcf-response.mcf-visible {
	display: flex;
}

.mcf-response::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-size: contain;
	margin-top: 1px;
}

.mcf-response.mcf-success {
	color: #1a7a3a;
	background-color: #eefaf1;
}

.mcf-response.mcf-success::before {
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231a7a3a%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2011.08V12a10%2010%200%201%201-5.93-9.14%22%3E%3C/path%3E%3Cpolyline%20points%3D%2222%204%2012%2014.01%209%2011.01%22%3E%3C/polyline%3E%3C/svg%3E");
}

.mcf-response.mcf-error {
	color: #b02a2a;
	background-color: #fdecec;
}

.mcf-response.mcf-error::before {
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23b02a2a%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%3E%3C/circle%3E%3Cline%20x1%3D%2212%22%20y1%3D%228%22%20x2%3D%2212%22%20y2%3D%2212%22%3E%3C/line%3E%3Cline%20x1%3D%2212%22%20y1%3D%2216%22%20x2%3D%2212.01%22%20y2%3D%2216%22%3E%3C/line%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 480px) {
	.mcf-input,
	.mcf-textarea {
		padding: 14px 16px 14px 46px !important;
		font-size: 15px;
	}

	.mcf-field-icon {
		left: 16px;
		width: 17px;
		height: 17px;
	}

	.mcf-submit-btn {
		padding: 15px 24px !important;
	}

	.mcf-field-wrap {
		margin-bottom: 14px;
	}
}
