/**
 * Contact Form widget styles. Token-driven — every brand color is a CSS
 * variable so plugin settings (and per-widget Elementor controls) can
 * override without touching this file.
 *
 * Token references use var(--mms-X, fallback) so the widget still renders
 * correctly even if the plugin's :root style block hasn't loaded yet.
 */

.mms-contact, .mms-contact *, .mms-contact *::before, .mms-contact *::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	font-family: 'DM Sans', sans-serif;
	margin: 0;
	padding: 0;
}

.mms-contact {
	background: var(--mms-bg, #ffffff);
	border: 1px solid rgba(23, 30, 59, 0.06);
	border-radius: 15px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(23, 30, 59, 0.04);
	padding: 40px;
	width: 100%;
	/* No max-width — let the parent Elementor container drive the form
	   width so "stretch" + custom-width settings work as expected. */
}

.mms-contact .field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 18px;
}

.mms-contact .field { margin-bottom: 18px; }

.mms-contact label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: #4b5563;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mms-contact input[type="text"],
.mms-contact input[type="email"],
.mms-contact input[type="tel"],
.mms-contact select {
	width: 100%;
	padding: 14px 18px;
	border: 1.5px solid #e5e7eb;
	border-radius: 999px;
	font-size: 1rem;
	color: var(--mms-ink, #171E3B);
	background: #fff;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	line-height: 1.4;
	font-family: 'DM Sans', sans-serif;
}

.mms-contact input::placeholder { color: #9ca3af; }

/* Select-specific additions: native chevron is hidden by appearance:none above,
   so we paint our own via background-image and reserve space on the right for it. */
.mms-contact select {
	cursor: pointer;
	padding-right: 44px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 18px 18px;
}

/* Placeholder state — first option with empty value shows in muted color
   to match the input placeholder treatment. */
.mms-contact select:invalid,
.mms-contact select option[value=""] {
	color: #9ca3af;
}
.mms-contact select option {
	color: var(--mms-ink, #171E3B);
}

.mms-contact input:focus,
.mms-contact select:focus {
	border-color: var(--mms-p, #1e3295);
	box-shadow: 0 0 0 3px rgba(30, 50, 149, 0.1);
}

.mms-contact input.invalid,
.mms-contact select.invalid { border-color: #dc2626; }
.mms-contact input.invalid:focus,
.mms-contact select.invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }

.mms-contact .field-error {
	font-size: 0.72rem;
	color: #dc2626;
	margin-top: 6px;
	font-weight: 500;
	display: none;
	padding-left: 18px;
}
.mms-contact .field.is-invalid .field-error { display: block; }

.mms-contact .btn-submit {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 18px 16px;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	background: linear-gradient(135deg, var(--mms-p, #1e3295), var(--mms-pdk, #171e3b));
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
	font-family: 'DM Sans', sans-serif;
	transition: all 0.3s, transform 0.4s;
	box-shadow: 0 4px 14px rgba(23, 30, 59, 0.2);
	line-height: 1;
}
.mms-contact .btn-submit:hover {
	transform: translateX(7px);
	filter: brightness(95%);
	box-shadow: 0 6px 20px rgba(23, 30, 59, 0.3);
}
.mms-contact .btn-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	filter: none;
	box-shadow: 0 4px 14px rgba(23, 30, 59, 0.1);
}

.mms-contact .disclaimer {
	font-size: 0.72rem;
	color: var(--mms-muted, #9ca3af);
	margin-top: 16px;
	line-height: 1.5;
	font-style: italic;
	text-align: center;
}

/* ── Success state ──────────────────────────────────────────────── */
.mms-contact.is-success .form-body { display: none; }
.mms-contact .success-state { display: none; text-align: center; padding: 20px 0; }
.mms-contact.is-success .success-state { display: block; }

.mms-contact .success-icon {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}
.mms-contact .success-icon svg { width: 32px; height: 32px; color: #059669; }

.mms-contact .success-state .success-heading {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--mms-ink, #171E3B);
	letter-spacing: -0.02em;
	margin-bottom: 8px;
	line-height: 1.2;
}
.mms-contact .success-state p {
	font-size: 0.95rem;
	color: var(--mms-muted, #6b7280);
	line-height: 1.6;
	max-width: 380px;
	margin: 0 auto 8px;
}
.mms-contact .success-state .call-note { font-size: 0.8rem; color: #9ca3af; margin-top: 14px; }
.mms-contact .success-state .call-note a {
	color: var(--mms-p, #1e3295);
	font-weight: 700;
	text-decoration: none;
}

/* ── Breakpoints ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.mms-contact { padding: 32px; }
}
@media (max-width: 768px) {
	.mms-contact .btn-submit:hover { transform: none; }
	.mms-contact .btn-submit:active { filter: brightness(88%); }
}
@media (max-width: 480px) {
	.mms-contact { padding: 28px 20px; }
	.mms-contact .field-row { grid-template-columns: 1fr; gap: 0; }
	.mms-contact .field-row .field { margin-bottom: 18px; }
	.mms-contact .success-state .success-heading { font-size: 1.3rem; }
}
