/* Millers multi-step forms (.mf) and provider path chooser (.mf-paths). */

.mf { scroll-margin-top: 150px; --mf-ink: #073332; --mf-soft: #4e5c59; --mf-line: #e2dccb; --mf-field: #fffdf6; --mf-teal: #1f5a55; --mf-gold: #f2c063; --mf-err: #a3352b;
	font-family: var(--m-sans, "Figtree", system-ui, sans-serif); color: var(--mf-ink); }
.mf *, .mf-paths * { box-sizing: border-box; }

.mf__formname { margin: 0 0 14px; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--mf-teal); }
.mf__summary-form { margin: 0; padding: 12px 18px; border-radius: 12px; background: #073332; color: #f7f3ec; font-size: .9rem; font-weight: 600; }
.mf__notice { margin: 0 0 26px; padding: 14px 18px; border-radius: 14px; background: #fff4dc; border: 1px solid #efd9a3; font-size: .9rem; line-height: 1.55; color: #5b4514; }
.mf__notice strong { color: #3f300c; }
.mf__notice a, .mf__fail a, .mf__done a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Progress */
.mf__progress { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 6px; counter-reset: none; }
.mf__dot { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mf__dot::before { content: ""; height: 4px; border-radius: 4px; background: var(--mf-line); transition: background .25s; }
.mf__dot.is-done::before { background: var(--mf-teal); }
.mf__dot.is-current::before { background: var(--mf-ink); }
.mf__dot-num { display: none; }
.mf__dot-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a948f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf__dot.is-current .mf__dot-label, .mf__dot.is-done .mf__dot-label { color: var(--mf-ink); }
@media (max-width: 700px) { .mf__dot-label { display: none; } .mf__progress { margin-bottom: 22px; } }

/* Step */
.mf__step[hidden] { display: none; }
.mf__step-head { margin-bottom: 22px; }
.mf__step-count { margin: 0 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mf-teal); }
.mf__step-title { margin: 0; font-family: var(--m-serif, "Fraunces", Georgia, serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; color: var(--mf-ink); font-variation-settings: "opsz" 144, "SOFT" 100; outline: none; }
.mf__step-intro { margin: 8px 0 0; font-size: .95rem; line-height: 1.55; color: var(--mf-soft); }

.mf__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 16px; }
.mf__field, .mf__repeat, .mf__consent { grid-column: 1 / -1; }
.mf__field--half { grid-column: span 3; }
.mf__field--third { grid-column: span 2; }
@media (max-width: 640px) { .mf__field--half, .mf__field--third { grid-column: 1 / -1; } }
.mf__field[hidden] { display: none; }

.mf__field { display: grid; gap: 7px; align-content: start; margin: 0; min-width: 0; }
.mf__field > label, .mf__field > legend { font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--mf-ink); padding: 0; }
.mf__req { color: #b4573c; }
.mf input[type=text], .mf input[type=email], .mf input[type=tel], .mf input[type=date], .mf select, .mf textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--mf-line); border-radius: 12px; background: var(--mf-field);
	font: inherit; font-size: 1rem; color: var(--mf-ink); transition: border-color .15s, box-shadow .15s; }
.mf textarea { min-height: 0; resize: vertical; line-height: 1.5; }
.mf select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23073332' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.mf input::placeholder, .mf textarea::placeholder { color: #98a19d; }
.mf input:focus, .mf select:focus, .mf textarea:focus { outline: none; border-color: var(--mf-teal); box-shadow: 0 0 0 3px rgba(31, 90, 85, .15); }
.mf__help { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--mf-soft); }

/* Choices */
.mf__choices, .mf__consent { border: 0; padding: 0; }
.mf__choices > legend, .mf__consent > legend { margin-bottom: 10px; }
.mf__options { display: flex; flex-wrap: wrap; gap: 8px; }
.mf__choices--stack .mf__options, .mf__options--stack { flex-direction: column; }
.mf__choices--cols .mf__options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mf__option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--mf-line); border-radius: 12px; background: var(--mf-field); cursor: pointer; font-size: .95rem; line-height: 1.35; transition: border-color .15s, background .15s; }
.mf__option:hover { border-color: #b9c8c1; }
.mf__option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--mf-ink); }
.mf__option:has(input:checked) { border-color: var(--mf-ink); background: #eef4ea; box-shadow: inset 0 0 0 1px var(--mf-ink); }
.mf__option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(31, 90, 85, .25); }

/* Consent */
.mf__consent-text { margin-bottom: 12px; padding: 16px 18px; border-radius: 12px; background: #f4f1e3; border-left: 3px solid var(--mf-gold); font-size: .875rem; line-height: 1.6; color: #36423f; }
.mf__consent-text p { margin: 0; }

/* Repeat rows */
.mf__repeat { display: grid; gap: 12px; }
.mf__row { padding: 16px 18px 18px; border: 1px dashed #cfd8d0; border-radius: 14px; background: rgba(255, 255, 255, .5); }
.mf__row-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mf-teal); }
.mf__remove { margin-left: auto; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: .75rem; letter-spacing: .08em; color: var(--mf-err); cursor: pointer; text-transform: uppercase; }
.mf__add { justify-self: start; padding: 10px 16px; border: 1px solid var(--mf-line); border-radius: 999px; background: transparent; font: inherit; font-size: .9rem; font-weight: 600; color: var(--mf-ink); cursor: pointer; }
.mf__add:hover { border-color: var(--mf-ink); }
.mf__add[hidden] { display: none; }

/* Errors */
.mf__field.is-invalid input, .mf__field.is-invalid select, .mf__field.is-invalid textarea, .mf__field.is-invalid .mf__option { border-color: var(--mf-err); }
.mf__field.is-invalid > label, .mf__field.is-invalid > legend { color: var(--mf-err); }
.mf__error { margin: 18px 0 0; font-size: .875rem; font-weight: 600; color: var(--mf-err); }
.mf__error[hidden] { display: none; }

/* Nav */
.mf__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--mf-line); }
.mf__nav [data-go="next"], .mf__nav [type="submit"] { margin-left: auto; }
.mf__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--mf-ink); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.mf__btn:hover { background: var(--mf-teal); }
.mf__btn--ghost { background: transparent; color: var(--mf-ink); padding: 0 6px; }
.mf__btn--ghost:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.mf__btn:disabled { opacity: .45; cursor: not-allowed; }
.mf__fail { flex-basis: 100%; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fbeceb; text-align: left; font-size: .9rem; line-height: 1.5; color: var(--mf-err); }
@media (max-width: 640px) {
	.mf__nav { flex-direction: column-reverse; align-items: stretch; }
	.mf__nav [data-go="next"], .mf__nav [type="submit"] { margin-left: 0; width: 100%; }

}

/* Review */
.mf__summary { display: grid; gap: 14px; margin: 0 0 22px; }
.mf__summary-group { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 6px 16px; padding: 16px 18px; border-radius: 14px; background: #f6f3e6; }
.mf__summary-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mf-teal); }
.mf__edit { padding: 0; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mf-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mf__summary dt { font-size: .85rem; color: var(--mf-soft); }
.mf__summary dd { margin: 0; font-size: .9rem; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .mf__summary-group { grid-template-columns: 1fr; } .mf__summary dd { margin-bottom: 8px; } }

/* Undo the parent theme's button reset (nowrap, pink hover/focus). */
.mf button, .mf-paths button { white-space: normal; text-transform: none; }
.mf .mf__add:hover, .mf .mf__add:focus { background: transparent; color: var(--mf-ink); }
.mf .mf__edit:hover, .mf .mf__edit:focus, .mf .mf__remove:hover, .mf .mf__remove:focus { background: none; }
.mf .mf__edit:hover, .mf .mf__edit:focus { color: var(--mf-ink); }
.mf .mf__remove:hover, .mf .mf__remove:focus { color: var(--mf-err); }
.mf .mf__btn:focus { color: #fff; }
.mf .mf__btn--ghost:hover, .mf .mf__btn--ghost:focus { background: transparent; color: var(--mf-ink); }
.mf .mf__btn:disabled:hover { background: var(--mf-ink); }

/* Provider path chooser */
.mf-paths__choices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 26px; }
.mf-paths .mf-paths__card:hover, .mf-paths .mf-paths__card:focus { background: #fffdf6; color: #073332; }
.mf-paths .mf-paths__card.is-active:hover, .mf-paths .mf-paths__card.is-active:focus { background: #073332; color: #f7f3ec; }
.mf-paths .mf-paths__card:focus-visible { outline: 3px solid rgba(242, 192, 99, .7); outline-offset: 2px; }
@media (max-width: 700px) { .mf-paths__choices { grid-template-columns: 1fr; } }
.mf-paths__card { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border: 1px solid #e2dccb; border-radius: 18px; background: #fffdf6; text-align: left; font: inherit; color: #073332; cursor: pointer; scroll-margin-top: 140px; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.mf-paths__card:hover { border-color: #b9c8c1; transform: translateY(-2px); }
.mf-paths__card.is-active { border-color: #073332; background: #073332; color: #f7f3ec; box-shadow: 0 24px 50px -30px rgba(7, 51, 50, .7); }
.mf-paths__tag { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #1f5a55; }
.mf-paths__card.is-active .mf-paths__tag { color: #f2c063; }
.mf-paths__title { font-family: var(--m-serif, "Fraunces", Georgia, serif); font-size: 1.5rem; line-height: 1.15; font-variation-settings: "opsz" 144, "SOFT" 100; }
.mf-paths__text { font-size: .92rem; line-height: 1.55; opacity: .85; }
.mf-paths__meta { margin-top: 6px; font-size: .8rem; font-weight: 600; opacity: .7; }
.mf-paths__panel[hidden] { display: none; }

/* Sending: spam trap (off-screen), thank-you panel */
.mf__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mf__btn.mf__send:disabled { opacity: .7; cursor: progress; }
.mf__done { padding: 28px 30px; border-radius: 18px; background: #eef4ea; border: 1px solid #cfe0c3; outline: none; }
.mf__done[hidden] { display: none; }
.mf__done-title { margin: 0 0 8px; font-family: var(--m-serif, "Fraunces", Georgia, serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--mf-ink); }
.mf__done-title::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--mf-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c063' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 22px no-repeat; }
.mf__done-text { margin: 0; font-size: 1rem; line-height: 1.6; color: #36423f; }
/* Compact single-step form (Contact card on Home and Connect): no step header, full-width send */
.mf--compact .mf__step-head { display: none; }
.mf--compact .mf__grid { row-gap: 14px; }
.mf--compact .mf__nav { margin-top: 18px; padding-top: 0; border-top: 0; }
.mf--compact .mf__nav .mf__send { width: 100%; }
.mf--compact .mf__done { padding: 24px; }