/**
 * Gatherly dialogs: shared modal shell, forms, quote comparison and seed parser.
 */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 32, 48, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: grid;
}
.modal-dialog {
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 25px 60px rgba(42, 32, 48, 0.25);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-dialog.modal-large {
  width: 860px;
}
@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.modal-header {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-header h2,
.modal-header h3 {
  margin: 4px 0 0;
  font: 600 1.5rem Fraunces;
  color: var(--plum);
}
.modal-tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  background: #fffaf6;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  min-height: 44px;
}
.tab-btn.active {
  color: var(--coral-text);
  border-bottom-color: var(--coral-text);
}
.modal-body {
  padding: 24px 26px;
}
.modal-form {
  display: grid;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border-ui);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.8125rem;
  background: #fff;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkbox-group {
  justify-content: center;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}