/* Public form styles are self-contained and do not change theme controls. */
.maha-wa-form, .maha-wa-form *, .maha-wa-form-widget, .maha-wa-form-widget * { box-sizing: border-box; }
.maha-wa-form { --maha-form-ink: #17352a; --maha-form-green: #14694e; width: 100%; max-width: 640px; margin: 0; padding: 30px; border: 1px solid #dce7df; border-radius: 20px; background: #fff; color: var(--maha-form-ink); font-family: inherit; text-align: start; line-height: 1.55; box-shadow: 0 6px 28px #133a2205; }
.maha-wa-form [hidden], .maha-wa-form-widget [hidden] { display: none !important; }
.maha-wa-form .maha-wa-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #42765a; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; line-height: 1.4; text-transform: uppercase; }
.maha-wa-eyebrow svg { flex-shrink: 0; width: 17px; height: 17px; }
.maha-wa-form h2 { margin: 0 0 24px; padding: 0; color: #17352a; font-size: 28px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; overflow-wrap: anywhere; }
.maha-wa-form .maha-wa-form-notice { padding: 13px 15px; margin: 0 0 24px; background: #fff8e9; border: 1px solid #efdfba; border-radius: 10px; color: #78571e; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.maha-wa-form .maha-wa-form-notice[data-kind="info"] { background: #f0f7f1; border-color: #d9e9dc; color: #466a51; }
.maha-wa-form .maha-wa-form-notice[data-kind="success"] { background: #eaf7ee; border-color: #c0e1cc; color: #1c6641; }
.maha-wa-form .maha-wa-field { margin: 0 0 20px; }
.maha-wa-form .maha-wa-field label { display: block; margin: 0 0 8px; color: #2b4b39; font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.maha-wa-form .maha-wa-field input:not([type="checkbox"]), .maha-wa-form .maha-wa-field textarea, .maha-wa-form .maha-wa-field select { display: block; width: 100%; max-width: none; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid #c9d8ce; border-radius: 10px; background: #fcfdfb; color: #17352a; font: inherit; font-size: 16px; line-height: 1.45; box-shadow: 0 1px 2px #17352203; transition: border-color .15s ease, box-shadow .15s ease; }
.maha-wa-form .maha-wa-field input::placeholder, .maha-wa-form .maha-wa-field textarea::placeholder { color: #66796b; opacity: 1; font-size: 14px; }
.maha-wa-form .maha-wa-field select { padding-right: 30px; }
.maha-wa-form .maha-wa-field input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; min-height: 0; margin: 0 7px 0 0; padding: 0; vertical-align: middle; accent-color: #14694e; }
.maha-wa-form .maha-wa-field:has(input[type="checkbox"]) label { display: flex; align-items: center; gap: 3px; min-height: 44px; font-weight: 400; }
.maha-wa-form .maha-wa-field:has(input[type="checkbox"]) { margin-bottom: 10px; }
.maha-wa-form .maha-wa-field textarea { min-height: 108px; resize: vertical; }
.maha-wa-form .maha-wa-required { color: #a24734; }
.maha-wa-form .maha-wa-submit { position: relative; display: block; width: 100%; min-height: 50px; margin: 8px 0 0; padding: 13px 40px; border: 1px solid #14694e; border-radius: 11px; background: #14694e; color: #fff; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.5; cursor: pointer; box-shadow: 0 3px 8px #134a2c12; transition: background .15s ease; }
.maha-wa-form .maha-wa-submit::after { content: '↗'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 400; }
.maha-wa-form .maha-wa-submit:hover { background: #0b513a; }
.maha-wa-form .maha-wa-submit:disabled { background: #edf1ed; border-color: #dfe7df; color: #76877a; cursor: not-allowed; opacity: 1; box-shadow: none; }
.maha-wa-form .maha-wa-submit:disabled::after { content: none; }
.maha-wa-form .maha-wa-check { display: block; width: 100%; min-height: 46px; margin-top: 10px; padding: 11px 14px; border: 1px solid #cbdacf; border-radius: 10px; background: #fff; color: #3f6650; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.maha-wa-form :is(input, select, textarea, button, .maha-wa-form-notice):focus-visible, .maha-wa-form-widget button:focus-visible { outline: 3px solid #2d8161; outline-offset: 3px; }
.maha-wa-form .maha-wa-field input:disabled, .maha-wa-form .maha-wa-field textarea:disabled, .maha-wa-form .maha-wa-field select:disabled { color: #516b59; background: #f3f6f2; opacity: 1; -webkit-text-fill-color: #516b59; }
.maha-wa-form .maha-wa-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.maha-wa-form[aria-busy="true"] { cursor: progress; }
.maha-wa-form[aria-busy="true"] .maha-wa-submit::after { content: ''; width: 15px; height: 15px; border: 2px solid #a9c7b8; border-top-color: #346e51; border-radius: 50%; animation: maha-wa-spin .8s linear infinite; }
@keyframes maha-wa-spin { to { transform: translateY(-50%) rotate(360deg); } }
.maha-wa-form-widget { position: fixed; right: clamp(12px, var(--maha-wa-right, 30px), max(12px, calc(100vw - 352px))); bottom: clamp(12px, var(--maha-wa-bottom, 30px), calc(100dvh - 80px)); z-index: 9999; font-family: inherit; }
.maha-wa-form-widget .maha-wa-toggle { display: flex; align-items: center; gap: 10px; max-width: min(340px, calc(100vw - 24px)); min-height: 62px; padding: 7px 20px 7px 7px; border: 1px solid #d4e5d9; border-radius: 34px; background: #fff; color: #214431; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.45; box-shadow: 0 6px 28px #123f2926; cursor: pointer; }
.maha-wa-form-widget .maha-wa-toggle:not(:has(span)) { padding: 7px; }
.maha-wa-form-widget .maha-wa-toggle span { min-width: 0; overflow-wrap: anywhere; }
.maha-wa-form-widget .maha-wa-toggle svg { display: block; flex: 0 0 46px; width: 46px; height: 46px; }
.maha-wa-form-widget .maha-wa-form-panel { position: fixed; width: min(390px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; border: 1px solid #d5e4da; border-radius: 20px; background: #fff; box-shadow: 0 18px 60px #0b302a2b; text-align: start; scrollbar-width: thin; scrollbar-color: #c3d6c9 transparent; }
.maha-wa-form-panel > header { display: flex; align-items: start; gap: 12px; padding: 22px; background: #103f33; border-top: 4px solid var(--maha-wa-accent, #2db742); }
.maha-wa-form-panel > header > div { flex: 1; min-width: 0; }
.maha-wa-form-panel .maha-wa-panel-eyebrow { margin: 0 0 7px; color: #b5d7c6; font-size: 9px; font-weight: 600; letter-spacing: 1.4px; line-height: 1.5; text-transform: uppercase; }
.maha-wa-form-panel > header h2 { margin: 0; color: #fff; font: inherit; font-size: 22px; font-weight: 650; letter-spacing: -.5px; line-height: 1.35; overflow-wrap: anywhere; }
.maha-wa-form-widget .maha-wa-close { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; flex: 0 0 44px; margin: -4px -6px 0 0; padding: 0; border: 1px solid #ffffff26; border-radius: 11px; background: #ffffff0d; color: #e7f5ed; font-size: 26px; font-weight: 300; line-height: 1; cursor: pointer; }
.maha-wa-form-panel .maha-wa-form { max-width: none; margin: 0; padding: 22px; border: 0; border-radius: 0; box-shadow: none; }
.maha-wa-form-panel .maha-wa-field { margin-bottom: 17px; }
.maha-wa-form-panel .maha-wa-form-notice { margin-bottom: 22px; font-size: 12px; }
@media (max-width: 480px) { .maha-wa-form { padding: 22px; border-radius: 16px; } .maha-wa-form h2 { font-size: 25px; } .maha-wa-form-panel .maha-wa-form { padding: 20px; } .maha-wa-form-panel > header { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .maha-wa-form *, .maha-wa-form-widget * { animation: none !important; transition: none !important; } }
