/* Chance estimator widget — shared by the homepage and the school blog pages.
   Colour tokens come from the host page (:root in index.html and blog.css).
   Cached immutable by vercel.json: bump ?v= in the <link> when editing. */

.chances {
  background: #fff;
  border: 1px solid rgba(10, 10, 9, 0.12);
  padding: clamp(22px, 3vw, 40px);
  margin: 2.5rem 0;
  font-family: var(--ff-body, system-ui, sans-serif);
  color: var(--black, #0A0A09);
  text-align: left;
}
/* Filled badge, same shape as .promo__badge on the homepage */
.chances__label {
  display: inline-block;
  background: var(--cobalt, #C8102E);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  margin: 0 0 1rem;
}
.chances__h {
  font-family: var(--ff-display, Georgia, serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
}
.chances__intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--mid, #6B6860);
  margin: 0 0 1.6rem;
  max-width: 60ch;
}
.chances__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
}
.chances__field { display: block; }
.chances__field--wide { grid-column: 1 / -1; }
.chances__field span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.chances select,
.chances input[type="text"],
.chances input[type="email"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid rgba(10, 10, 9, 0.2);
  background: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  color: inherit;
  border-radius: 0;
  outline: none;
}
.chances select:focus,
.chances input:focus { border-color: var(--cobalt, #C8102E); }
.chances__btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.95rem 2.2rem;
  background: var(--cobalt, #C8102E);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}
.chances__btn:hover { background: var(--cobalt-dark, #9A0B23); }
.chances__btn[disabled] { opacity: 0.55; cursor: default; }

.chances__thanks {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--bone-dark, #EDE9E2);
  border-left: 3px solid var(--cobalt, #C8102E);
  font-size: 0.92rem;
  line-height: 1.7;
}
.chances__thanks[hidden] { display: none; }
.chances__thanks b { color: var(--cobalt, #C8102E); }

@media (max-width: 700px) {
  .chances__grid { grid-template-columns: 1fr; }
}
