/*
 * Medlink v3 — the design's enquiry + newsletter form look, applied to native Elementor Pro forms.
 * Selectors use body.ml x5 to outrank the page stylesheet (prefixed body.ml x4). Values copied from the design's .enq-panel .field / .btn.btn-primary / .nc-form / .form-msg rules.
 */

/* ---------- enquiry form (.ml-enq-form) ---------- */
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-form-fields-wrapper {
	display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0;
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group {
	display: block; width: auto; max-width: none; margin: 0; padding: 0;
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group.e-form__buttons { display: flex; align-items: center; }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group.elementor-col-100,
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group.e-form__buttons { grid-column: 1 / -1; }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group > .elementor-field-label {
	display: block; font-family: var(--sans); font-weight: 700; font-size: 13px; line-height: normal;
	color: var(--navy-2); margin: 0 0 8px; padding-left: 6px;
}
body.ml.ml.ml.ml.ml .ml-enq-form.elementor-widget .elementor-mark-required .elementor-field-label::after { content: " *"; color: inherit; padding: 0; }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group .elementor-field {
	display: block; width: 100%; min-height: 0; height: auto; padding: 14px 22px; border-radius: 999px; line-height: normal;
	background-color: rgba(255,255,255,.62); border: 1.5px solid rgba(41,117,99,.24);
	font-family: var(--body); font-size: 14.5px; color: var(--ink); box-shadow: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group textarea.elementor-field { border-radius: 24px; padding: 16px 22px; resize: vertical; }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field::placeholder { color: #95AEA3; }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-select-wrapper::before,
body.ml.ml.ml.ml.ml .ml-enq-form .select-caret-down-wrapper { display: none; }
/* Elementor gives the select's wrapper the .elementor-field class too: keep the pill on the <select> only */
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field.elementor-select-wrapper {
	display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-select-wrapper select {
	display: block; width: 100%; padding: 14px 46px 14px 22px; border-radius: 999px; line-height: normal; font-family: var(--body); font-size: 14.5px; color: var(--ink);
	background-color: rgba(255,255,255,.62); border: 1.5px solid rgba(41,117,99,.24);
	appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23297563' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
	background-repeat: no-repeat; background-position: right 20px center; background-size: 15px;
}
body.ml.ml.ml.ml.ml .ml-enq-form input[type=date].elementor-field {
	position: relative; padding-left: 50px; cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23297563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M8 3v4M16 3v4M3 10h18'/></svg>");
	background-repeat: no-repeat; background-position: left 20px center; background-size: 17px;
}
body.ml.ml.ml.ml.ml .ml-enq-form input[type=date].elementor-field::-webkit-calendar-picker-indicator {
	opacity: 0; cursor: pointer; position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0;
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-select-wrapper select:focus,
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-field-group .elementor-field:focus {
	outline: none; background-color: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(72,168,144,.14);
}
body.ml.ml.ml.ml.ml .ml-enq-form .e-form__buttons { margin-top: 6px; justify-content: flex-start; }
body.ml.ml.ml.ml.ml .ml-form-note { margin-top: 14px; text-align: left; }

/* ---------- shared button = design .btn.btn-primary ---------- */
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-button,
body.ml.ml.ml.ml.ml .ml-news-form .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; flex: 0 0 auto; min-height: 0;
	font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.2;
	padding: 15px 30px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
	background: var(--teal); color: #fff; box-shadow: 0 12px 26px rgba(72,168,144,.34);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-button:hover,
body.ml.ml.ml.ml.ml .ml-news-form .elementor-button:hover {
	background: var(--teal-700); color: #fff; transform: translateY(-3px); box-shadow: 0 18px 34px rgba(41,117,99,.4);
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-button .elementor-button-content-wrapper { gap: 10px; flex-direction: row-reverse; }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-button-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- newsletter (.ml-news-form) = design .nc-form ---------- */
body.ml.ml.ml.ml.ml .ml-news-form { position: relative; z-index: 1; }
body.ml.ml.ml.ml.ml .ml-news-form .elementor-form-fields-wrapper { display: flex; flex-wrap: nowrap; gap: 12px; margin: 0; }
body.ml.ml.ml.ml.ml .ml-news-form .elementor-field-group { flex: 1; width: auto; max-width: none; margin: 0; padding: 0; }
body.ml.ml.ml.ml.ml .ml-news-form .elementor-field-group.e-form__buttons { flex: 0 0 auto; }
body.ml.ml.ml.ml.ml .ml-news-form .elementor-field-group .elementor-field {
	padding: 16px 20px; border-radius: 999px; border: 0; min-height: 0; line-height: normal;
	font-size: 15px; font-family: var(--body); color: var(--ink); background: #fff;
}
body.ml.ml.ml.ml.ml .ml-news-form .elementor-field:focus { outline: 2px solid var(--teal); }
body.ml.ml.ml.ml.ml .ml-news-form .elementor-button,
body.ml.ml.ml.ml.ml .ml-news-form .elementor-button:hover { box-shadow: none; }

/* ---------- messages = design .form-msg.ok ---------- */
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-message,
body.ml.ml.ml.ml.ml .ml-news-form .elementor-message {
	margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-family: var(--sans); font-weight: 600; line-height: 1.5;
}
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-message-success,
body.ml.ml.ml.ml.ml .ml-news-form .elementor-message-success { background: var(--mint); color: var(--teal-800); border: 1px solid var(--mint-2); }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-message::before,
body.ml.ml.ml.ml.ml .ml-news-form .elementor-message::before { content: "✓ "; }
body.ml.ml.ml.ml.ml .ml-enq-form .elementor-message-danger::before,
body.ml.ml.ml.ml.ml .ml-news-form .elementor-message-danger::before { content: ""; }
body.ml.ml.ml.ml.ml .ml-news-form .elementor-message-success { grid-column: 1 / -1; }

@media (max-width: 560px) {
	body.ml.ml.ml.ml.ml .ml-enq-form .elementor-form-fields-wrapper { grid-template-columns: 1fr; gap: 14px; }
	body.ml.ml.ml.ml.ml .ml-enq-form .elementor-button { width: 100%; }
	body.ml.ml.ml.ml.ml .ml-news-form .elementor-form-fields-wrapper { flex-direction: column; }
}
