/* ================================================================
   Map Field for CF7 Pro — Frontend Styles
   ================================================================ */

/* ── Outer wrapper ───────────────────────────────────────────── */
.wpcf7-form-control-wrap-main {
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Autocomplete row (PlaceAutocompleteElement lives here) ──── */
.wpcf7-form-control-wrap-main > span[data-name] {
	display: block;
	position: relative;
}

/* Style the native GMP autocomplete element */
.wpcf7-form-control-wrap-main gmp-place-autocomplete,
.wpcf7-form-control-wrap-main google-maps-place-autocomplete-element {
	width: 100%;
	display: block;
}

/* ── Shared input base ───────────────────────────────────────── */
.full-field input,
.slim-field-left input,
.slim-field-right input {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid #d8dce6;
	border-radius: 8px;
	background: #ffffff;
	font-size: 14px;
	color: #1d2327;
	transition: border-color .18s, box-shadow .18s, background .18s;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.full-field input:focus,
.slim-field-left input:focus,
.slim-field-right input:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, .14);
	background: #fafcff;
}

.full-field input::placeholder,
.slim-field-left input::placeholder,
.slim-field-right input::placeholder {
	color: #aab0bc;
}

/* ── Labels ──────────────────────────────────────────────────── */
.full-field label,
.slim-field-left label,
.slim-field-right label {
	display: block;
	width: 100%;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #5a6270;
	letter-spacing: .3px;
	text-transform: uppercase;
}

/* ── Full-width field ────────────────────────────────────────── */
.full-field {
	display: block;
	width: 100%;
	margin-top: 12px;
}

/* ── Side-by-side fields (state + postcode) ──────────────────── */
.slim-field-left,
.slim-field-right {
	display: inline-block;
	width: calc(50% - 6px);
	margin-top: 12px;
	vertical-align: top;
}
.slim-field-left { margin-right: 6px; }
.slim-field-right { margin-left: 6px; }

/* ── Map container ───────────────────────────────────────────── */
.mfcf_map {
	border-radius: 10px;
	overflow: hidden;
	margin-top: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
	border: 1.5px solid #e0e5ee;
}

/* ── Google Maps autocomplete dropdown z-index ───────────────── */
.pac-container {
	z-index: 9999999 !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 20px rgba(0,0,0,.15) !important;
	border: 1px solid #e0e5ee !important;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	margin-top: 4px !important;
}

/* ── CF7 validation error ────────────────────────────────────── */
.wpcf7-not-valid-tip {
	font-size: 12px;
	color: #d93025;
	margin-top: 4px;
	display: block;
}

.wpcf7-form-control-wrap-main .wpcf7-not-valid {
	border-color: #d93025 !important;
	box-shadow: 0 0 0 3px rgba(217,48,37,.10) !important;
}
