/* acevoz.com's Find a teacher page (issue #2840), laid out as the
   "Students and families: find an AceVoz teacher" board on the
   acevoz.com canvas. Tokens and fonts come from site-brand.css (#3006);
   every rule is under .ft. The point swatches use the board's light
   tints, marked "board" where site-brand.css has no token. */

.ft {
  display: block;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.ft a { color: var(--color-secondary-strong); }

/* One column on a phone with the form first, so its button shows
   without scrolling past the pitch. Two columns from 900px: the pitch
   on the left, the form on the right. */
.ft-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 16px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.ft-signup { order: -1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ft-pitch { min-width: 0; }

.ft-eyebrow {
  display: inline-flex;
  margin: 0;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-lede);
}

.ft h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 22px 0 0;
}

.ft-lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--color-text-lede);
  margin: 22px 0 0;
  max-width: 540px;
}

.ft-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  max-width: 560px;
}

.ft-points li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  padding: 16px;
}

.ft-swatch { display: block; width: 32px; height: 32px; border-radius: 10px; }
.ft-swatch-pink { background: var(--color-accent-soft); }
.ft-swatch-orange { background: var(--color-warm-soft); }
.ft-swatch-purple { background: var(--color-secondary-soft); }
.ft-swatch-blue { background: #D7EFFB; }        /* board: the light blue tint */

.ft-point-title { font-weight: 800; font-size: 15px; margin: 10px 0 0; }
.ft-point-text { font-size: 14px; line-height: 1.5; color: var(--color-text-secondary); margin: 4px 0 0; }

/* ---- The form ------------------------------------------------------ */

.ft-card {
  background: var(--color-bg-alt);
  border: 2px solid var(--color-text);
  border-radius: 28px;
  padding: 20px;
  /* Smaller offset on a phone, so the shadow fits the 16px gutter. */
  box-shadow: 6px 6px 0 var(--color-secondary);
  margin: 0 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ft-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  /* 20px on a phone keeps the title on one line in both languages. */
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.ft-who { border: 0; margin: 0; padding: 0; min-width: 0; }
.ft-who legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }
.ft-who-choices { display: flex; gap: 8px; }
/* RadioSelect wraps its inputs in a <div> per choice; flatten them. */
.ft-who-choices > div { display: contents; }

.ft-who-choice {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--color-line-strong);
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.ft-who-choice:has(input:checked) {
  border: 2px solid var(--color-secondary);
  background: #F7F2FD;                         /* board: the chosen tint */
}

.ft-who-choice input { accent-color: var(--color-secondary); width: 18px; height: 18px; margin: 0; flex: none; }

.ft-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ft-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ft-field label { font-weight: 700; font-size: 14px; }
.ft-optional { font-weight: 500; color: var(--color-text-secondary); }

.ft-field input,
.ft-field select {
  font: inherit;
  font-size: 16px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  color: var(--color-text);
  width: 100%;
  box-sizing: border-box;
}

.ft-field input:focus,
.ft-field select:focus,
.ft-who-choice:has(input:focus-visible) { outline: none; border-color: var(--color-accent); box-shadow: var(--focus-ring); }

.ft-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-error-strong); }

.ft .ft-button { font-size: 17px; padding: 16px; min-height: 52px; border: 0; cursor: pointer; white-space: normal; }

.ft-fineprint { font-size: 13px; line-height: 1.5; color: var(--color-text-secondary); margin: 0; }

.ft-success {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-success-soft);
  border: 1px solid var(--color-success-strong);
  border-radius: 20px;
  padding: 16px 20px;
  color: var(--color-success-strong);
}

.ft-success svg { flex: none; margin-top: 2px; }
.ft-success p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; }

/* The honeypot: out of sight for people, still in the form for bots. */
.ft .hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .ft-layout { padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
  .ft-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ft-card { padding: clamp(22px, 3vw, 36px); gap: 16px; }
  .ft-card-title { font-size: 22px; }
}

@media (min-width: 900px) {
  .ft-layout {
    padding-top: clamp(24px, 5vw, 64px);
    padding-bottom: clamp(56px, 8vw, 96px);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
  }
  .ft-signup { order: 0; }
  .ft-card { box-shadow: 10px 10px 0 var(--color-secondary); margin-right: 10px; }
}
