/*
 * The teams page, `/teams` (M12.2, 25 Sep 2026).
 *
 * New markup, so a first-class sheet rather than an override — there is no
 * counterpart to this page in the Laravel archive.
 *
 * It builds on `landing-v2.css`, loaded before it, which declares the storefront
 * palette on `:root`: `--cc-store-ink`, `--cc-store-paper`, `--cc-store-line`,
 * `--cc-store-muted`, `--cc-store-gold`, `--cc-store-night`. Reusing them is the
 * point — a brokerage arrives here from the landing page or from a search, and
 * the quote page has to be the same company. Fallbacks are given so the sheet
 * still reads if it is ever loaded alone.
 *
 * Single-theme, like the storefront, `/help` and the checkout it sits beside: a
 * fixed light composition, not a themed surface.
 */

.cc-teams {
  --cct-ink: var(--cc-store-ink, #0b1524);
  --cct-muted: var(--cc-store-muted, #617084);
  --cct-paper: var(--cc-store-paper, #f7f7f3);
  --cct-line: var(--cc-store-line, #d9dee4);
  --cct-gold: var(--cc-store-gold, #8b6324);
  --cct-gold-light: var(--cc-store-gold-light, #ead7aa);
  --cct-night: var(--cc-store-night, #071425);
  --cct-white: var(--cc-store-white, #fff);

  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background: var(--cct-paper);
  color: var(--cct-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cc-teams__shell {
  width: min(68rem, calc(100% - 2rem));
  margin-inline: auto;
}

.cc-teams__kicker {
  margin: 0 0 .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cct-gold);
}

.cc-teams__title {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.cc-teams__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cct-muted);
}

/* ---- what a rollout involves ---- */

.cc-teams__steps {
  display: grid;
  gap: 1rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.cc-teams__step {
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--cct-line);
  border-radius: 1rem;
  background: var(--cct-white);
}

.cc-teams__step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .75rem;
  border-radius: .6rem;
  background: var(--cct-night);
  color: var(--cct-gold-light);
  font-size: .8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cc-teams__step h2,
.cc-teams__step h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 700;
}

.cc-teams__step p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--cct-muted);
}

/* ---- the honest panel: what this is not ---- */

.cc-teams__note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--cct-gold-light);
  border-radius: .9rem;
  background: #fdf8ee;
  font-size: .9rem;
  line-height: 1.6;
}

.cc-teams__note strong {
  display: block;
  margin-bottom: .2rem;
}

/* ---- the form ---- */

.cc-teams__form-wrap,
.cc-teams__done {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--cct-line);
  border-radius: 1.15rem;
  background: var(--cct-white);
}

.cc-teams__form-head { margin-bottom: 1.25rem; }
.cc-teams__form-head h2 { margin: 0 0 .3rem; font-size: 1.35rem; font-weight: 700; }
.cc-teams__form-head p { margin: 0; font-size: .9rem; color: var(--cct-muted); }

.cc-teams__error {
  margin: 0 0 1.25rem;
  padding: .8rem 1rem;
  border: 1px solid #f0c3bf;
  border-radius: .7rem;
  background: #fdf1f0;
  color: #8c1d18;
  font-size: .9rem;
  line-height: 1.5;
}

.cc-teams__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cc-teams__field--wide { grid-column: 1 / -1; }

.cc-teams__label {
  display: block;
  margin-bottom: .35rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.cc-teams__control {
  width: 100%;
  min-height: 2.75rem;
  padding: .7rem .85rem;
  border: 1px solid var(--cct-line);
  border-radius: .6rem;
  background: var(--cct-white);
  color: var(--cct-ink);
  font: inherit;
  font-size: .95rem;
}

.cc-teams__control:focus-visible {
  outline: 2px solid var(--cct-gold);
  outline-offset: 1px;
}

textarea.cc-teams__control { resize: vertical; }

.cc-teams__hint {
  margin: .35rem 0 0;
  font-size: .78rem;
  color: var(--cct-muted);
}

/*
 * The honeypot. Off-screen rather than `display: none`, because some bots skip
 * what is obviously hidden; `aria-hidden` and a negative tab index keep it away
 * from anyone using the form properly.
 */
.cc-teams__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cc-teams__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
}

.cc-teams__submit {
  appearance: none;
  min-height: 3rem;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: .7rem;
  background: var(--cct-night);
  color: var(--cct-gold-light);
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}

.cc-teams__submit[disabled] { opacity: .65; cursor: progress; }

.cc-teams__reply {
  margin: 0;
  font-size: .85rem;
  color: var(--cct-muted);
}

/* ---- the confirmation, which replaces the form in place ---- */

.cc-teams__done { max-width: 44rem; }

.cc-teams__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: #e8f4ec;
  color: #1c6b3c;
}

.cc-teams__tick svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-teams__done-title {
  margin: 0 0 .6rem;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}

.cc-teams__done-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cct-muted);
}

.cc-teams__done-lead strong { color: var(--cct-ink); }

.cc-teams__next {
  display: grid;
  gap: .85rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.cc-teams__next li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .8rem;
  align-items: start;
  font-size: .92rem;
  line-height: 1.55;
}

.cc-teams__next-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: .1rem;
  border-radius: .45rem;
  background: var(--cct-night);
  color: var(--cct-gold-light);
  font-size: .7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cc-teams__next b { display: block; font-weight: 700; }
.cc-teams__next span { color: var(--cct-muted); }

.cc-teams__recap {
  margin-bottom: 1.5rem;
  border: 1px solid var(--cct-line);
  border-radius: .85rem;
  overflow: hidden;
}

.cc-teams__recap-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .95rem;
  border-bottom: 1px solid var(--cct-line);
  font-size: .86rem;
}

.cc-teams__recap-row:last-child { border-bottom: 0; }
.cc-teams__recap-row span { color: var(--cct-muted); }
.cc-teams__recap-row strong { font-weight: 600; text-align: right; }

.cc-teams__back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .7rem 1.3rem;
  border: 1px solid var(--cct-line);
  border-radius: .7rem;
  background: var(--cct-white);
  color: var(--cct-ink);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 640px) {
  .cc-teams__grid { grid-template-columns: minmax(0, 1fr); }
}
