.trip-main {
  flex: 1;
  display: grid;
  gap: 20px;
  justify-items: center;
  align-content: start;
  padding: 110px 20px 48px;
}
/* stay.ejs and listing.ejs sit under the real sitewide header (taller at the top of the page
   than the other trip.css pages' own header, forced permanently into its shorter "scrolled"
   state), so they need more top clearance, matching .page-head elsewhere on the site. */
.trip-main.site-chrome {
  padding-top: 150px;
}
.trip-card {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
  max-width: 640px;
  width: 100%;
  border: 1px solid var(--line-subtle);
}
.trip-card h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 10px;
}
.trip-card .lede {
  margin: 0 0 20px;
}
.trip-form {
  display: grid;
  gap: 12px;
}
.trip-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.trip-form input,
.trip-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--color-surface-base);
}
.trip-error {
  color: var(--color-semantic-danger);
  margin: 0;
}
.trip-item {
  border: 1px solid var(--line-subtle);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 12px;
}
.trip-item h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.trip-item .meta {
  color: var(--muted, var(--color-text-muted));
  font-size: 0.92rem;
  margin: 0 0 8px;
}
.trip-item .rule {
  font-size: 0.9rem;
  margin: 4px 0;
  color: var(--color-text-primary);
}
.trip-item .rule.strict {
  color: var(--color-semantic-danger);
}
.trip-item .pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-brand-tealMist);
  color: var(--color-brand-teal700);
  margin-right: 6px;
}
.trip-item .pill.off {
  background: var(--color-border-subtle);
  color: var(--color-text-muted);
}
.trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.trip-panel {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 12px 0;
  background: var(--color-neutral-figmaBackground);
}
.trip-panel h3 {
  margin: 0 0 8px;
}
.trip-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.trip-line.total {
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 800;
  font-size: 1.1rem;
}
.trip-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 6px 0;
}
.trip-ok {
  background: var(--color-brand-tealMist);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
}
/* The phone check under the field (builder.js bindPhone): says what is wrong while typing. */
.trip-field-err {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #b42318;
}
.trip-field-err:empty {
  display: none;
}

/* California Seller of Travel disclosures above the pay button: legible, never louder than the price. */
.trip-note.cst {
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.5;
}
.trip-note.cst p {
  margin: 0 0 6px;
}
