/* Shared modal component: independent of Bootstrap and Tailwind. */
.eco-dialog { border: 1px solid #dce6df; border-radius: 20px; padding: 0; width: min(480px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; background: #fff; color: #213d2b; box-shadow: 0 24px 90px #102e3540; font-family: Inter, system-ui, sans-serif; overflow-y: auto; overscroll-behavior: contain; }
.eco-dialog::backdrop { background: #10271bd1; backdrop-filter: blur(3px); }
.eco-dialog-form { padding: 22px; margin: 0; }
.eco-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eco-dialog-heading h2 { margin: 0; font-size: 1.2rem; line-height: 1.4; font-weight: 700; }
.eco-dialog button { font-family: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; min-height: 44px; }
.eco-dialog-close { width: 44px; flex: 0 0 44px; border: 0; border-radius: 10px; background: #f0f5f1; color: #486451; font-size: 1.5rem !important; padding: 0; }
.eco-dialog-description { font-size: .875rem; line-height: 1.6; color: #617569; white-space: pre-line; margin: 12px 0 18px; overflow-wrap: anywhere; }
.eco-dialog-body { display: grid; gap: 12px; }
.eco-dialog-body > :not(.eco-dialog-field) { min-width: 0; }
.eco-dialog-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 5px; color: #304f3b; }
.eco-dialog-field input { box-sizing: border-box; width: 100%; height: 46px; min-height: 44px; border: 1px solid #c9d9cf; border-radius: 9px; padding: 10px 12px; background: white; color: #203d2b; font: inherit; font-size: 1rem; }
.eco-dialog-field input:focus { outline: 3px solid #d6ecdd; border-color: #19844e; }
.eco-dialog-field-error, .eco-dialog-error { color: #a72c2c; font-size: .8125rem; line-height: 1.5; margin: 5px 0 0; }
.eco-dialog-error { background: #fff4f2; padding: 10px; border-radius: 8px; margin-top: 12px; }
.eco-dialog-help { font-size: .75rem; color: #698272; margin: 5px 0 0; line-height: 1.5; }
.eco-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.eco-dialog-primary, .eco-dialog-secondary { padding: 10px 16px; border-radius: 10px; border: 1px solid #d3dfd7; line-height: 1.4; }
.eco-dialog-primary { color: white; background: #137b48; border-color: #137b48; }
.eco-dialog-secondary { color: #44664f; background: white; }
.eco-dialog button:focus-visible { outline: 3px solid #80bc96; outline-offset: 2px; }
.eco-dialog [hidden] { display: none !important; }
.eco-dialog button:disabled { opacity: .7; cursor: wait; }
@media (max-height: 650px) { .eco-dialog-form { padding: 16px; } .eco-dialog-body { gap: 8px; } .eco-dialog-description { margin: 8px 0 12px; } .eco-dialog-actions { margin-top: 14px; } }
