/* PartyPlate page AI features — Q&A helper + customer cost estimator.
   Mobile-first, coral/cream theme matching the site. */

.pp-ai .section-head { max-width: 710px; }

/* --- Q&A helper --- */
.pp-ask-box {
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}
.pp-ask-row { display: flex; gap: 10px; }
.pp-ask-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
.pp-ask-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pp-ask-row .button { flex: 0 0 auto; min-height: 52px; white-space: nowrap; }
.pp-ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pp-chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.pp-chip:hover { border-color: var(--accent); }
.pp-answer {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  font-size: 16px;
  line-height: 1.6;
}
.pp-answer[hidden] { display: none; }
.pp-answer .pp-answer-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.pp-ask-status { margin-top: 12px; color: var(--muted); font-size: 15px; }
.pp-ask-status[hidden] { display: none; }

/* --- Estimator --- */
.pp-est-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}
.pp-est-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}
.pp-est-form label { display: block; font-size: 13px; font-weight: 750; margin: 16px 0 6px; }
.pp-est-form label:first-child { margin-top: 0; }
.pp-est-form input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
.pp-est-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-seg button {
  min-height: 52px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.pp-seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pp-est-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
.pp-est-form .button { width: 100%; min-height: 52px; margin-top: 20px; }
.pp-est-results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}
.pp-est-results h3 { margin: 0 0 4px; font-size: 20px; }
.pp-est-results .pp-est-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.pp-cost-range {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}
.pp-cost-range strong { color: var(--ink); font-size: clamp(28px, 5vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.pp-cost-range span { color: var(--accent-text); font-size: 13px; font-weight: 800; }
.pp-est-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.pp-est-line:last-of-type { border-bottom: 0; }
.pp-est-line strong { font-size: 17px; white-space: nowrap; }
.pp-est-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.pp-est-empty { color: var(--muted); font-size: 15px; }
.pp-est-refine { width: 100%; margin-top: 18px; }
#pp-estimate-answer h3 { margin: 0 0 4px; font-size: 20px; }
#pp-estimate-answer .pp-est-line:last-of-type { border-bottom: 0; }

@media (max-width: 760px) {
  .pp-est-grid { grid-template-columns: 1fr; }
  .pp-ask-row { flex-direction: column; }
  .pp-ask-row .button { width: 100%; }
  .pp-ask-box, .pp-est-form, .pp-est-results { padding: 18px; }
  .pp-est-line { display: grid; justify-content: stretch; gap: 4px; }
  .pp-est-line strong { white-space: normal; overflow-wrap: anywhere; }
}

/* --- Platter smart matching --- */
#pp-matches[hidden] { display: none; }
.pp-match-intro { margin: 0 0 14px; font-size: 16px; }
.pp-match-empty { margin: 0; font-size: 15px; color: var(--muted); }
.pp-match-cards { display: grid; gap: 10px; }
.pp-match-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.pp-match-card:active { transform: scale(.99); }
.pp-match-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}
.pp-match-body { display: grid; gap: 4px; min-width: 0; }
.pp-match-body strong { font-size: 15px; }
.pp-match-spec {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pp-match-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-match-reasons em {
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

/* --- Event timeline planner --- */
.pp-est-form input[type="date"],
.pp-est-form input[type="time"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
.pp-est-form input[type="date"]:focus,
.pp-est-form input[type="time"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pp-seg-2 { grid-template-columns: repeat(2, 1fr); }
.pp-tl { list-style: none; margin: 0; padding: 0; }
.pp-tl li { position: relative; padding: 0 0 16px 30px; }
.pp-tl li:last-child { padding-bottom: 0; }
.pp-tl li::before { content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pp-tl li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.pp-tl li:last-child::after { display: none; }
.pp-tl-date { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.pp-tl-title { display: block; font-size: 16px; font-weight: 750; margin: 3px 0 2px; color: var(--ink); }
.pp-tl-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* --- Email-app handoff confirmation --- */
.mail-checklist {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.mail-checklist[hidden] { display: none; }
.mail-checklist h3 { margin: 0 0 8px; font-size: 17px; }
.mail-checklist ol { margin: 0; padding-left: 22px; }
.mail-checklist li { margin: 5px 0; line-height: 1.45; }
.mail-checklist p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
