:root {
  --ink: #23282b;
  --muted: #5c6670;
  --line: #e3e1da;
  --accent: #0e6b5c;
  --accent-ink: #ffffff;
  --bg: #faf9f6;
  --card: #ffffff;
  --error: #a33b2e;
}
* { box-sizing: border-box; }
/* An author rule that sets display (.grid below) beats the user agent's
   [hidden] rule, so hidden panels would still show. Restate it here. */
[hidden] { display: none !important; }
body {
  margin: 0;
  padding: 2.5rem 1.25rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
main { max-width: 60rem; margin: 0 auto; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 0.75rem; }
.lead { color: var(--muted); margin: 0 0 2rem; }
.small, small { color: var(--muted); font-size: 0.85rem; }
.error { color: var(--error); font-weight: 600; }

.mode-switch { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.mode {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
}
.mode.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem; }
.plan {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.plan h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.plan .price { font-size: 1.15rem; font-weight: 700; }
.plan .seats { color: var(--muted); font-size: 0.85rem; }
.plan.selected { border-color: var(--accent); outline: 2px solid var(--accent); }

/* Build your own: the catalogue on the left, the basket beside it. One
   column until there is room for two, so the basket sits under the features on
   a phone rather than being squeezed alongside them. */
.builder { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
@media (min-width: 52rem) {
  .builder { grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); }
  .basket { position: sticky; top: 1.5rem; }
}

.module-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.9rem 0.7rem;
}
.module-group legend {
  padding: 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.module { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.15rem 0; cursor: pointer; }
.module .mname { flex: 1 1 auto; font-weight: 600; }
.module .mprice { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* One department: the choice, what it is for, and what it opens. The list of
   destinations is behind a disclosure because there can be a dozen of them and
   a wall of names is harder to read than a price with a way in. */
.department { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.department:first-of-type { border-top: 0; }
.department .dtagline {
  margin: 0.15rem 0 0 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.department .dincludes { margin: 0.3rem 0 0 1.6rem; font-size: 0.85rem; }
.department .dincludes summary { cursor: pointer; color: var(--muted); }
.department .dincludes ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.5rem;
}
.department .dincludes li { break-inside: avoid; }
@media (max-width: 34rem) {
  .department .dincludes ul { columns: 1; }
}

.basket {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 1rem 1.1rem 1.2rem;
}
.basket h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.basket-lines { list-style: none; margin: 0; padding: 0; }
.basket-lines li { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.2rem 0; border-bottom: 1px solid var(--line); }
.basket-lines .bname { flex: 1 1 auto; font-size: 0.92rem; }
.basket-lines .bprice { font-variant-numeric: tabular-nums; color: var(--muted); }
.basket-lines .remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
}
.basket-lines .remove:hover { color: var(--error); }

.quote { margin: 1rem 0 0.5rem; }
.quote-line { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0; }
.quote-line dt { color: var(--muted); font-size: 0.9rem; }
.quote-line dd { margin: 0; font-variant-numeric: tabular-nums; }
.quote-total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.5rem; }
.quote-total dt { color: var(--ink); font-weight: 600; font-size: 1rem; }
.quote-total dd { font-size: 1.25rem; font-weight: 700; }

.field { display: block; margin: 0.9rem 0; font-weight: 600; }
.field input, .field select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
.field input:focus, .field select:focus, .mode:focus-visible, .plan:focus-visible, .module input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 1.1rem;
}
#total { font-size: 1.4rem; font-variant-numeric: tabular-nums; }

#submit {
  margin-top: 1rem;
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
#submit[disabled] { opacity: 0.6; cursor: default; }

/* A discount code sits with the basket, not with the sign-up form: it changes
   the total, so it belongs beside the total. */
.promo { display: flex; gap: 0.5rem; align-items: flex-end; flex-wrap: wrap; margin-top: 0.5rem; }
.promo .field { flex: 1 1 8rem; margin: 0.4rem 0 0; }
#discount-apply {
  padding: 0.55rem 0.9rem;
  font: inherit;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}
#discount-apply:disabled { opacity: 0.6; cursor: default; }
.promo-msg { flex: 1 0 100%; margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); }
.promo-msg.bad { color: var(--error); }
.promo-msg.good { color: var(--accent); font-weight: 600; }
.quote-line.discount dt, .quote-line.discount dd { color: var(--accent); }

/* The mark, so a page that asks for bank details looks like it belongs to the
   website the customer arrived from. */
.brand { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.5rem; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
