/* MH Forms — front end. Every colour/size is a CSS variable on .mhf-form (Elementor widget style tab sets them). */
.mhf-form{--mhf-gap:18px;--mhf-radius:8px;--mhf-border:#d0d5dd;--mhf-focus:#4f46e5;--mhf-btn-bg:#111827;--mhf-btn-color:#fff;--mhf-error:#c0392b;--mhf-success-bg:#e8f5e9;--mhf-success-color:#1b5e20;--mhf-font-size:15px;--mhf-input-bg:#fff;--mhf-star:#f5a623;
	max-width:100%;font-size:var(--mhf-font-size);position:relative}
.mhf-form *,.mhf-form *::before,.mhf-form *::after{box-sizing:border-box}
.mhf-title{margin:0 0 6px}
.mhf-description{margin:0 0 var(--mhf-gap);opacity:.85}
.mhf-description p:last-child{margin-bottom:0}

/* Layout */
.mhf-fields{display:flex;flex-wrap:wrap;gap:var(--mhf-gap);margin:0 0 var(--mhf-gap)}
.mhf-field{flex:0 0 100%;min-width:0;margin:0}
.mhf-w-half{flex-basis:calc(50% - var(--mhf-gap) / 2)}
.mhf-w-third{flex-basis:calc(33.333% - var(--mhf-gap) * 2 / 3)}
.mhf-w-two-thirds{flex-basis:calc(66.666% - var(--mhf-gap) / 3)}
@media (max-width:600px){.mhf-w-half,.mhf-w-third,.mhf-w-two-thirds{flex-basis:100%}}
.mhf-field.mhf-hidden{display:none}
.mhf-field fieldset{border:0;padding:0;margin:0;min-width:0}
.mhf-label{display:block;font-weight:600;margin:0 0 6px;line-height:1.35;padding:0;float:none;width:auto}
.mhf-label-hidden > .mhf-label,.mhf-label-hidden > fieldset > .mhf-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mhf-req{color:var(--mhf-error)}
.mhf-sublabel{display:block;font-size:.8em;opacity:.65;margin-top:4px;font-weight:400}
.mhf-row-sub{display:flex;gap:12px}
.mhf-row-sub > div{flex:1;min-width:0}
.mhf-address{display:flex;flex-direction:column;gap:10px}
@media (max-width:480px){.mhf-row-sub{flex-direction:column;gap:10px}}

/* Inputs (scoped high enough to beat theme styles) */
.mhf-form .mhf-field input[type=text],.mhf-form .mhf-field input[type=email],.mhf-form .mhf-field input[type=tel],.mhf-form .mhf-field input[type=url],.mhf-form .mhf-field input[type=number],.mhf-form .mhf-field input[type=date],.mhf-form .mhf-field input[type=time],.mhf-form .mhf-field input[type=datetime-local],.mhf-form .mhf-field select,.mhf-form .mhf-field textarea{
	display:block;width:100%;max-width:100%;height:auto;min-height:0;margin:0;padding:11px 13px;border:1px solid var(--mhf-border);border-radius:var(--mhf-radius);font:inherit;font-size:1em;background:var(--mhf-input-bg);color:inherit;line-height:1.4;box-shadow:none;outline:none;-webkit-appearance:none;appearance:none}
.mhf-form .mhf-field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667085' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:36px}
.mhf-form .mhf-field textarea{min-height:120px;resize:vertical}
.mhf-form .mhf-field input:focus,.mhf-form .mhf-field select:focus,.mhf-form .mhf-field textarea:focus{border-color:var(--mhf-focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--mhf-focus) 18%,transparent)}
.mhf-form .mhf-size-small input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),.mhf-form .mhf-size-small select,.mhf-form .mhf-size-small textarea{max-width:33%}
.mhf-form .mhf-size-medium input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),.mhf-form .mhf-size-medium select,.mhf-form .mhf-size-medium textarea{max-width:66%}
@media (max-width:600px){.mhf-form .mhf-size-small input,.mhf-form .mhf-size-small select,.mhf-form .mhf-size-medium input,.mhf-form .mhf-size-medium select,.mhf-form .mhf-size-small textarea,.mhf-form .mhf-size-medium textarea{max-width:100%!important}}
.mhf-form .mhf-field .mhf-size-small > *{max-width:33%}
.mhf-form .mhf-field .mhf-size-medium > *{max-width:66%}

/* Choices */
.mhf-choices{display:grid;gap:8px 18px}
.mhf-choices-two{grid-template-columns:1fr 1fr}
.mhf-choices-three{grid-template-columns:1fr 1fr 1fr}
.mhf-choices-inline{display:flex;flex-wrap:wrap;gap:8px 22px}
@media (max-width:480px){.mhf-choices-two,.mhf-choices-three{grid-template-columns:1fr}}
.mhf-choice{display:flex;align-items:flex-start;gap:9px;font-weight:400;cursor:pointer;margin:0;line-height:1.4}
.mhf-choice input{margin:3px 0 0;flex:0 0 auto;width:17px;height:17px;accent-color:var(--mhf-focus)}
.mhf-consent a{color:inherit;text-decoration:underline}

/* Slider, rating, file */
.mhf-slider{display:flex;align-items:center;gap:14px}
.mhf-slider input[type=range]{flex:1;accent-color:var(--mhf-focus)}
.mhf-slider output{min-width:3ch;text-align:center;font-weight:700;padding:4px 10px;border-radius:var(--mhf-radius);background:color-mix(in srgb,var(--mhf-focus) 10%,transparent)}
.mhf-rating{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px}
.mhf-rating input{position:absolute;opacity:0;width:1px;height:1px}
.mhf-rating .mhf-star{font-size:30px;line-height:1;color:#d0d5dd;cursor:pointer;transition:color .1s,transform .1s;margin:0}
.mhf-rating .mhf-star:hover,.mhf-rating .mhf-star:hover ~ .mhf-star,.mhf-rating input:checked ~ .mhf-star{color:var(--mhf-star)}
.mhf-rating .mhf-star:hover{transform:scale(1.12)}
.mhf-rating input:focus-visible + .mhf-star{outline:2px solid var(--mhf-focus);outline-offset:2px;border-radius:4px}
.mhf-file-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:22px 16px;border:2px dashed var(--mhf-border);border-radius:var(--mhf-radius);text-align:center;cursor:pointer;transition:border-color .15s,background .15s;background:var(--mhf-input-bg)}
.mhf-file-drop:hover,.mhf-file-drop.is-over{border-color:var(--mhf-focus);background:color-mix(in srgb,var(--mhf-focus) 5%,transparent)}
.mhf-file-drop.has-files{border-style:solid}
.mhf-file-icon{font-size:22px;opacity:.6}
.mhf-file-text{font-weight:600}
.mhf-file-drop small{opacity:.6}
.mhf-file-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.mhf-file-list{list-style:none;margin:8px 0 0;padding:0;font-size:.9em}
.mhf-file-list li{padding:4px 0;opacity:.8}
.mhf-file-list li::before{content:"📎 "}

/* Text bits */
.mhf-desc{font-size:.87em;opacity:.7;margin-top:5px}
.mhf-counter{font-size:.8em;opacity:.6;text-align:right;margin-top:4px}
.mhf-counter.is-full{color:var(--mhf-error);opacity:1}
.mhf-error{color:var(--mhf-error);font-size:.87em;margin-top:5px;display:none}
.mhf-invalid .mhf-error{display:block}
.mhf-form .mhf-invalid input:not([type=checkbox]):not([type=radio]),.mhf-form .mhf-invalid select,.mhf-form .mhf-invalid textarea,.mhf-invalid .mhf-file-drop{border-color:var(--mhf-error)}
.mhf-html{margin:0}
.mhf-divider{border-bottom:1px solid var(--mhf-border);padding-bottom:10px;margin-top:6px}
.mhf-divider h3{margin:0 0 4px;font-size:1.2em}
.mhf-divider p{margin:0;opacity:.75}
.mhf-hp{position:absolute!important;left:-9999px!important;top:-9999px!important;width:1px;height:1px;overflow:hidden}

/* Buttons */
.mhf-nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.mhf-form .mhf-btn{display:inline-block;margin:0;padding:13px 28px;border:0;border-radius:var(--mhf-radius);background:var(--mhf-btn-bg);background-image:none;color:var(--mhf-btn-color);font:inherit;font-weight:600;text-transform:none;letter-spacing:normal;box-shadow:none;height:auto;min-height:0;cursor:pointer;line-height:1.2;transition:opacity .15s,background-color .15s,color .15s}
.mhf-form .mhf-btn:hover{opacity:.88}
.mhf-form .mhf-btn:disabled{opacity:.6;cursor:wait}
.mhf-form .mhf-btn[hidden]{display:none}
.mhf-form .mhf-btn-back{background:transparent;color:inherit;border:1px solid var(--mhf-border)}

/* Messages */
.mhf-msg{margin-top:14px;display:none;padding:14px 16px;border-radius:var(--mhf-radius);line-height:1.5}
.mhf-msg p:last-child{margin-bottom:0}
.mhf-msg-success{display:block;background:var(--mhf-success-bg);color:var(--mhf-success-color)}
.mhf-msg-error{display:block;background:#fdecea;color:var(--mhf-error)}
.mhf-msg-info{display:block;background:#f2f4f7;color:#344054;margin:0}

/* Multi-page */
.mhf-step{display:none}.mhf-step.active{display:block}
.mhf-progress{list-style:none;display:flex;margin:0 0 var(--mhf-gap);padding:0}
.mhf-progress li{flex:1;display:flex;align-items:center;gap:8px;padding:8px 0;margin:0;border-bottom:3px solid var(--mhf-border);opacity:.5;font-size:.9em}
.mhf-progress li.active{opacity:1;border-bottom-color:var(--mhf-btn-bg)}
.mhf-progress li.done{opacity:.8;border-bottom-color:var(--mhf-btn-bg)}
.mhf-progress-num{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--mhf-border);font-size:.8em;font-weight:700;flex:none}
.mhf-progress li.active .mhf-progress-num,.mhf-progress li.done .mhf-progress-num{background:var(--mhf-btn-bg);color:var(--mhf-btn-color)}
.mhf-progress-bar{margin:0 0 var(--mhf-gap)}
.mhf-progress-text{font-size:.88em;font-weight:600;margin-bottom:6px;opacity:.8}
.mhf-progress-track{height:8px;border-radius:8px;background:var(--mhf-border);overflow:hidden}
.mhf-progress-track span{display:block;height:100%;background:var(--mhf-btn-bg);border-radius:8px;transition:width .3s}

.mhf-recaptcha-note{font-size:.75em;opacity:.6;margin:10px 0 0}
.mhf-turnstile{margin-bottom:var(--mhf-gap)}
.mhf-busy{opacity:.85;pointer-events:none}
