/* ==========================================================================
   24-hour proposal modal
   Uses the global design tokens from styles.css — dark-only, like the rest.
   ========================================================================== */

.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow-y: auto;
}

.pm-overlay.in { opacity: 1; }

.pm-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.25rem, 3.5vw, 2.1rem);
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 89, 0.12), transparent 55%),
    var(--surface, #0e0e11);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-overlay.in .pm-panel { transform: none; }

.pm-close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.pm-close:hover { color: var(--text); border-color: var(--gold); }

/* --- head ---------------------------------------------------------------- */
.pm-kicker {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pm-head h2 {
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(1.3rem, 3.6vw, 1.75rem);
  line-height: 1.15;
}

.pm-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pm-dots {
  display: flex;
  gap: 0.4rem;
  margin: 1.1rem 0 0.2rem;
}

.pm-dot {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.25s ease;
}

.pm-dot.on { background: var(--gold); }
.pm-dot.done { background: color-mix(in srgb, var(--gold) 45%, transparent); }

/* --- body ---------------------------------------------------------------- */
.pm-body { padding: 1.35rem 0 0.4rem; }

.pm-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.pm-h4 {
  margin: 1.35rem 0 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.pm-sub {
  margin: 0 0 0.95rem;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.pm-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 0.55rem;
}

.pm-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 12px);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pm-chip:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); color: var(--text); }

.pm-chip.on {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--text);
}

.pm-ico { font-size: 1.05rem; line-height: 1; }

/* --- form fields --------------------------------------------------------- */
.pm-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.8rem;
}

.pm-fields label,
.pm-notes {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.pm-notes { margin-top: 0.9rem; }

.pm-req { color: var(--gold); }

.pm-fields input,
.pm-notes textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 12px);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  resize: vertical;
}

.pm-fields input:focus,
.pm-notes textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.pm-privacy {
  margin: 0.85rem 0 0;
  color: var(--muted-2);
  font-size: 0.74rem;
}

/* --- nav ----------------------------------------------------------------- */
.pm-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.3rem;
}

.pm-spacer { flex: 1; }

.pm-back {
  border: 1px solid var(--line);
  border-radius: var(--r-md, 12px);
  padding: 0.6rem 0.95rem;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.pm-back:hover { color: var(--text); border-color: var(--gold); }

.pm-nav .primary-button[disabled] { opacity: 0.6; cursor: progress; }

/* --- done ---------------------------------------------------------------- */
.pm-done { padding: 1.5rem 0 0.5rem; text-align: center; }

.pm-tick {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 56px;
}

.pm-done h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }

.pm-done p {
  margin: 0 auto 1.4rem;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .pm-overlay,
  .pm-panel { transition: none; }
}
