/* ================================================================
   Map Field for CF7 Pro — Admin Page Styles
   Loaded only on: ?page=map-field-for-contact-form-7
   ================================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.mfcf-wrap {
	max-width: 860px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Hero header ─────────────────────────────────────────────── */
.mfcf-hero {
	background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
	border-radius: 12px;
	padding: 28px 32px;
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 4px 20px rgba(26, 115, 232, .25);
}
.mfcf-hero-icon {
	font-size: 42px;
	line-height: 1;
	flex-shrink: 0;
}
.mfcf-hero h1 {
	color: #fff;
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
}
.mfcf-hero p {
	color: rgba(255, 255, 255, .80);
	margin: 0;
	font-size: 13px;
}
.mfcf-hero-links {
	margin-left: auto;
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}
.mfcf-hero-links a {
	background: rgba(255, 255, 255, .18);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}
.mfcf-hero-links a:hover {
	background: rgba(255, 255, 255, .30);
}

/* ── Cards ───────────────────────────────────────────────────── */
.mfcf-card {
	background: #fff;
	border: 1px solid #e0e5ee;
	border-radius: 10px;
	margin-bottom: 22px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}
.mfcf-card-head {
	padding: 14px 22px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid #e8ecf4;
	background: #f8f9fc;
}
.mfcf-card-head .mfcf-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}
.mfcf-card-head h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
}
.mfcf-card-head p {
	margin: 1px 0 0;
	font-size: 12px;
	color: #646970;
}
.mfcf-card-body {
	padding: 22px;
}

/* ── Icon colour badges ──────────────────────────────────────── */
.mfcf-icon-blue   { background: #e8f0fe; color: #1a73e8; }
.mfcf-icon-green  { background: #e6f4ea; color: #1e8e3e; }
.mfcf-icon-orange { background: #fef3e2; color: #e8710a; }
.mfcf-icon-purple { background: #f3e8fd; color: #9334e6; }
.mfcf-icon-teal   { background: #e6f7f5; color: #0d9e8e; }

/* ── Field rows ──────────────────────────────────────────────── */
.mfcf-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	align-items: start;
	gap: 10px 20px;
	padding: 14px 0;
	border-bottom: 1px solid #f0f2f7;
}
.mfcf-row:last-child  { border-bottom: none; padding-bottom: 0; }
.mfcf-row:first-child { padding-top: 0; }

.mfcf-label {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	padding-top: 7px;
	line-height: 1.4;
}
.mfcf-label small {
	display: block;
	font-weight: 400;
	color: #8c8f94;
	font-size: 11px;
	margin-top: 2px;
}

/* ── Inputs ──────────────────────────────────────────────────── */
.mfcf-input,
.mfcf-input-sm {
	border: 1.5px solid #dde1ea;
	border-radius: 7px;
	padding: 8px 12px;
	font-size: 13px;
	color: #1d2327;
	background: #fafbfd;
	transition: border-color .15s, box-shadow .15s;
	outline: none;
	width: 100%;
	box-sizing: border-box;
}
.mfcf-input:focus,
.mfcf-input-sm:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
	background: #fff;
}
.mfcf-input-sm { width: 100px; }

.mfcf-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mfcf-input-row span {
	font-size: 13px;
	color: #646970;
	font-weight: 500;
}

.mfcf-hint {
	font-size: 11.5px;
	color: #8c8f94;
	margin: 5px 0 0;
	line-height: 1.5;
}
.mfcf-hint a { color: #1a73e8; text-decoration: none; }
.mfcf-hint a:hover { text-decoration: underline; }

/* ── Two-column grid (lat / lng) ─────────────────────────────── */
.mfcf-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ── Checkbox grid ───────────────────────────────────────────── */
.mfcf-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}
.mfcf-check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8f9fc;
	border: 1.5px solid #e0e5ee;
	border-radius: 7px;
	padding: 8px 12px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.mfcf-check-item:has(input:checked) {
	border-color: #1a73e8;
	background: #e8f0fe;
}
.mfcf-check-item input[type="checkbox"] {
	margin: 0;
	accent-color: #1a73e8;
	width: 15px;
	height: 15px;
	cursor: pointer;
}
.mfcf-check-item span {
	font-size: 12.5px;
	font-weight: 500;
	color: #1d2327;
}

/* ── Save button ─────────────────────────────────────────────── */
.mfcf-save-wrap {
	padding-top: 6px;
}
.mfcf-save-wrap .button-primary {
	background: linear-gradient(135deg, #1a73e8, #0d47a1) !important;
	border-color: transparent !important;
	border-radius: 8px !important;
	padding: 8px 26px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	box-shadow: 0 2px 8px rgba(26, 115, 232, .35) !important;
	height: auto !important;
	line-height: 1.5 !important;
	transition: opacity .15s !important;
}
.mfcf-save-wrap .button-primary:hover {
	opacity: .88 !important;
}
