/**
 * marketo-forms/base.css
 *
 * Shared resets and structural styles applied to ALL Marketo form themes.
 * This file is always loaded when any Marketo Form widget is on the page.
 *
 * Do not put visual design here — colours, fonts, button styles etc.
 * belong in the individual theme files (general.css, footer.css, etc.)
 */

/* ==========================================================================
   Layout & structural resets
   ========================================================================== */

.mfe-marketo-form {
	width: 100%;
}

/* Strip Marketo's inline width overrides and font resets */
.mfe-marketo-form .mktoForm,
.mfe-marketo-form .mktoForm * {
	box-sizing: border-box;
	font-family: inherit;
}

.mfe-marketo-form .mktoForm {
	width: 100% !important;
}

/* Full-width rows */
.mfe-marketo-form .mktoFormRow,
.mfe-marketo-form .mktoFieldWrap,
.mfe-marketo-form .mktoGutter {
	width: 100% !important;
	float: none !important;
	clear: both;
}

.mfe-marketo-form .mktoFieldWrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Labels always full width */
.mfe-marketo-form .mktoLabel {
	width: 100% !important;
	padding-bottom: 0 !important;
}

/* All field types full width */
.mfe-marketo-form .mktoField,
.mfe-marketo-form input[type="text"],
.mfe-marketo-form input[type="email"],
.mfe-marketo-form input[type="tel"],
.mfe-marketo-form input[type="url"],
.mfe-marketo-form input[type="number"],
.mfe-marketo-form select,
.mfe-marketo-form textarea {
	width: 100% !important;
	max-width: 100% !important;
	display: block;
	-webkit-appearance: none;
	appearance: none;
}

/* Button row full width */
.mfe-marketo-form .mktoButtonRow {
	width: 100% !important;
}

.mfe-marketo-form .mktoButtonWrap,
.mfe-marketo-form .mktoButton {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

/* Required asterisk */
.mfe-marketo-form .mktoAsterix {
	margin-left: 2px;
}

/* ==========================================================================
   Editor placeholders (Elementor edit mode only)
   ========================================================================== */

.mfe-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 32px;
	background: #f9fafb;
	border: 2px dashed #d1d5db;
	border-radius: 6px;
	color: #9ca3af;
	text-align: center;
	font-size: 0.875rem;
}

.mfe-placeholder .eicon-form-horizontal {
	font-size: 2rem;
	color: #d1d5db;
}

.mfe-placeholder--error {
	border-color: #fca5a5;
	background: #fef2f2;
	color: #ef4444;
}

.mfe-editor-preview {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 16px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 0.875rem;
	color: #374151;
}

.mfe-editor-preview .eicon-form-horizontal {
	font-size: 1.25rem;
	color: #6366f1;
	margin-bottom: 4px;
}

.mfe-editor-preview em {
	font-size: 0.75rem;
	color: #9ca3af;
}
