/* Basic, subtle modal styling */
.tw-modal[aria-hidden="true"] { display: none; }
.tw-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
}
.tw-modal__backdrop {
  position: absolute; inset: 0; background: rgba(17,24,39,0.5);
}
.tw-modal__dialog {
  position: relative; z-index: 1;
  width: 92vw; max-width: 560px;
  background: #fff; color: #111827;
  border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 20px;
}
.tw-modal__close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0; font-size: 24px; line-height: 1; cursor: pointer;
}
.tw-modal__title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.tw-modal__desc { font-size: 14px; color: #4b5563; margin: 0 0 16px; }
.tw-field { display: grid; gap: 6px; margin-bottom: 12px; }
.tw-field span { font-size: 13px; color: #374151; }
.tw-field input, .tw-field textarea {
  width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px;
}
.tw-btn {
  width: 100%; background: #ea580c; color: #fff; border: 0; border-radius: 8px; padding: 12px; font-weight: 700; cursor: pointer;
}
.tw-btn:hover { background: #c2410c; }
.tw-modal__note { font-size: 12px; color: #6b7280; margin-top: 10px; }
.tw-modal__error { margin-top: 6px; font-size: 13px; color: #b91c1c; }

/* Checkbox group styles */
.tw-checks { margin-top: 6px; }
.tw-check {
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.tw-check input[type="checkbox"]{
  width: 1.1rem; height: 1.1rem;
  accent-color: #ea580c; /* Orange-600 */
}
.tw-check.is-checked{
  border-color: #ea580c;
  background: #fff7ed; /* orange-50 */
  box-shadow: inset 0 0 0 2px rgba(234,88,12,0.10);
}
.tw-check:hover { border-color: #f97316; }
.tw-check input[type="checkbox"]:focus-visible {
  outline: 2px solid #ea580c; outline-offset: 2px; border-radius: 6px;
}
