/**
 * Mediation Cost Estimator — front-end styles.
 * Self-contained, scoped to .mce-* so it won't disturb the host theme.
 */

.mce-modal {
	--mce-accent: #1a3226;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 5vh 16px;
	background: rgba(15, 18, 16, 0.55);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.mce-modal.is-open { display: flex; }

/* Inline form — the same form embedded in a page (no modal). Renders as a
   self-contained white card so it sits cleanly on any background. */
.mce-inline {
	--mce-accent: #1a3226;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	padding: 2rem 2rem 1.75rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #222;
	line-height: 1.5;
	box-sizing: border-box;
}
.mce-inline * { box-sizing: border-box; }

@media (max-width: 540px) {
	.mce-inline { padding: 1.5rem 1.25rem; }
}

.mce-dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 2rem 2rem 1.75rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #222;
	line-height: 1.5;
	box-sizing: border-box;
}
.mce-dialog * { box-sizing: border-box; }

.mce-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
}
.mce-close:hover { color: #222; }

.mce-title {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
}
.mce-intro {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	color: #555;
}

.mce-row { display: flex; gap: 0.9rem; }
.mce-row .mce-field { flex: 1; }
.mce-row .mce-grow { flex: 2; }
.mce-field { margin-bottom: 0.9rem; }
.mce-field label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #444;
	margin-bottom: 0.3rem;
}
.mce-field input[type="text"],
.mce-field input[type="email"],
.mce-field input[type="tel"],
.mce-field input[type="number"],
.mce-field select,
.mce-field textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.95rem;
	color: #222;
	background: #fff;
	font-family: inherit;
}
.mce-field input:focus,
.mce-field select:focus,
.mce-field textarea:focus {
	outline: none;
	border-color: var(--mce-accent);
	box-shadow: 0 0 0 3px rgba(26, 50, 38, 0.12);
}

.mce-hr { border: none; border-top: 1px solid #eee; margin: 0.5rem 0 1.1rem; }

.mce-checks { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.mce-radios { display: flex; flex-direction: column; gap: 0.45rem; }
.mce-check {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #333;
	margin-bottom: 0;
}
.mce-check input { width: auto; }

.mce-btn {
	display: inline-block;
	background: var(--mce-accent);
	color: #fff;
	border: 1px solid var(--mce-accent);
	border-radius: 6px;
	padding: 0.7rem 1.4rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s;
	font-family: inherit;
}
.mce-btn:hover { opacity: 0.9; color: #fff; }
.mce-btn-block { width: 100%; margin-top: 0.5rem; }

.mce-link {
	color: var(--mce-accent);
	text-decoration: underline;
	cursor: pointer;
}

.mce-privacy { font-size: 0.72rem; color: #444; margin: 0.85rem 0 0; text-align: center; }

.mce-powered {
	font-size: 0.72rem;
	color: #444;
	text-align: center;
	margin: 1.1rem 0 0;
	padding-top: 0.9rem;
	border-top: 1px solid #eee;
}
.mce-powered a { color: inherit; text-decoration: underline; font-weight: 600; }
.mce-powered a:hover { color: var(--mce-accent); }

.mce-error {
	background: #fdecec;
	color: #b03030;
	border: 1px solid #f3c4c4;
	border-radius: 6px;
	padding: 0.6rem 0.8rem;
	font-size: 0.85rem;
	margin: 0.5rem 0;
}

/* Honeypot */
.mce-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* Result */
.mce-result { text-align: center; padding: 0.5rem 0; }
.mce-result-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #777;
}
.mce-price {
	font-size: 3rem;
	font-weight: 700;
	color: var(--mce-accent);
	line-height: 1.1;
	margin: 0.35rem 0 1rem;
}
.mce-breakdown {
	list-style: none;
	margin: 0 auto 1rem;
	padding: 0;
	max-width: 360px;
	text-align: left;
	border-top: 1px solid #eee;
}
.mce-breakdown li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
	font-size: 0.88rem;
	color: #444;
}
.mce-result-note { font-size: 0.8rem; color: #888; max-width: 420px; margin: 0 auto 1rem; }
.mce-result-thanks { font-size: 0.95rem; color: #2a7a52; font-weight: 600; margin: 0 0 1rem; }
.mce-reject { font-size: 1rem; line-height: 1.6; color: #333; margin: 1rem 0 1.5rem; text-align: center; }

@media (max-width: 540px) {
	.mce-row { flex-direction: column; gap: 0; }
	.mce-dialog { padding: 1.5rem 1.25rem; }
	.mce-price { font-size: 2.4rem; }
}

/* Bootstrap-mode: pad the modal body and keep the close button placed.
   Also a minimal fallback so the Bootstrap-structured markup still appears
   if Bootstrap JS/CSS happens to be missing. */
#mce-modal.modal .modal-content { position: relative; }
#mce-modal.modal .modal-body { padding: 2rem; }
#mce-modal.modal.is-open {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 100000;
	overflow-y: auto;
	background: rgba(15, 18, 16, 0.55);
}
#mce-modal.modal.is-open .modal-dialog { max-width: 560px; margin: 5vh auto; }
#mce-modal.modal.is-open .modal-content {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
