
section.ok-tool {
  display: block;
  padding: 56px 0 128px;
}

.ok-tool {
  --ok-blue: #034694;
  --ok-blue-dark: #02356f;
  --ok-blue-light: #1961ac;
  --ok-ink: #101820;
  --ok-body: #4a5866;
  --ok-muted: #8a95a1;
  --ok-line: #dde6f0;
  --ok-bg-tint: #eaf2fb;
  --ok-red: #9c2b2b;

  font-family: Poppins, system-ui, -apple-system, sans-serif;
  color: var(--ok-ink);
  background: linear-gradient(180deg, #eaf1fa 0%, #f6f9fc 55%, #ffffff 100%);
  padding: 56px 0 128px;
  -webkit-font-smoothing: antialiased;
}
.ok-tool *, .ok-tool *::before, .ok-tool *::after { box-sizing: border-box; }

.ok-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ok-wrap--narrow { max-width: 880px; }
.ok-wrap--mid { max-width: 1000px; }

/* ---------- Intro ---------- */
.ok-head { margin-bottom: 30px; text-align: center; }
.ok-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ok-blue-light); margin: 0 0 12px; }
/* Matches site h1: 25px base, 35px from 1024px up. */
.ok-title { font-size: 25px; line-height: 1.28; font-weight: 700; margin: 0; color: var(--ok-ink); text-wrap: balance; }
.ok-title em { font-style: normal; color: var(--ok-blue); }
/* 35px only once the container is wide enough to keep the longest heading
   on one line; 30px covers the 1024-1099px gap. */
@media (min-width: 1024px) { .ok-title { font-size: 30px; } }
@media (min-width: 1100px) { .ok-title { font-size: 35px; } }

.ok-hub-head { text-align: center; }
.ok-strap { font-size: 16px; line-height: 1.7; color: var(--ok-body); margin: 12px 0 0; }

.ok-cards { display: grid; gap: 20px; margin-top: 96px; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); align-items: stretch; }

@media (min-width: 720px) and (max-width: 1179px) {
  .ok-cards { grid-template-columns: 1fr 1fr; }
}
.ok-card { display: flex; flex-direction: column; gap: 12px; text-align: left; background: #fff; border: 1px solid var(--ok-line); border-top: 4px solid var(--ok-blue); border-radius: 10px; padding: 26px 24px; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(3,70,148,.06); transition: box-shadow .16s ease, transform .16s ease; }
.ok-card:hover, .ok-card:focus-visible { box-shadow: 0 14px 34px rgba(3,70,148,.14); transform: translateY(-3px); color: inherit; text-decoration: none; }
.ok-card__tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ok-blue); }
.ok-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1180px) {
  .ok-card__title { font-size: 16px; }
}

.ok-card__body { font-size: 14px; line-height: 1.7; color: var(--ok-body); flex: 1 0 auto; }
.ok-card__cta { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ok-blue); display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Icons ---------- */
.ok-ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.125em; }

/* ---------- Quiz ---------- */
.ok-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ok-back { background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--ok-body); display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.ok-back:hover { color: var(--ok-blue); }
.ok-step { font-size: 13px; font-weight: 600; color: var(--ok-body); }
.ok-bar { height: 6px; background: #e2eaf3; border-radius: 99px; margin-top: 14px; overflow: hidden; }
.ok-bar__fill { height: 100%; background: var(--ok-blue); border-radius: 99px; transition: width .26s ease; }

.ok-panel { background: #fff; border: 1px solid var(--ok-line); border-radius: 12px; padding: 36px; margin-top: 22px; box-shadow: 0 6px 26px rgba(3,70,148,.07); }
/* No fixed height: the panel wraps its content, so short questions do not
   leave a block of empty space below the options. */
@keyframes okIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ok-result { animation: none; } .ok-card, .ok-bar__fill { transition: none; } }

.ok-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ok-blue-light); }
.ok-q { font-size: 22px; line-height: 1.4; font-weight: 600; margin: 0 0 4px; }
@media (min-width: 1024px) { .ok-q { font-size: 25px; } }
.ok-hint { font-size: 14px; line-height: 1.7; color: var(--ok-muted); margin: 0; }

.ok-opts { display: grid; gap: 10px; margin-top: 20px; }
/* Short-label questions go two-up on desktop so long lists stay scannable. */
@media (min-width: 720px) {
  .ok-opts--split { grid-template-columns: 1fr 1fr; }
}
.ok-opt { text-align: left; width: 100%; cursor: pointer; font: inherit; padding: 15px 18px; border-radius: 8px; font-size: 15px; line-height: 1.6; font-weight: 500; background: #fff; border: 2px solid var(--ok-line); color: #23303c; transition: background .13s, border-color .13s; }
.ok-opt:hover { border-color: var(--ok-blue); background: #f2f7fd; }
.ok-opt[aria-pressed="true"] { border-color: var(--ok-blue); background: var(--ok-bg-tint); color: var(--ok-blue); font-weight: 600; }
/* Multi-select options do not advance the quiz on click, so they carry a
   checkbox to show they can be stacked and are waiting on Continue. */
.ok-opt--multi { display: flex; align-items: flex-start; gap: 12px; }
.ok-opt--multi::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 4px; border: 2px solid var(--ok-line); background: #fff; transition: background .13s, border-color .13s; }
.ok-opt--multi:hover::before { border-color: var(--ok-blue); }
.ok-opt--multi[aria-pressed="true"]::before {
  border-color: var(--ok-blue); background: var(--ok-blue) no-repeat center / 11px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.5 8.5l4 4 7-9' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ok-note { font-size: 13px; color: var(--ok-muted); }
.ok-panel__foot { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Form ---------- */
.ok-sub { font-size: 15px; line-height: 1.6; color: var(--ok-body); margin: 8px 0 0; }
/* Two equal columns: Name + Email on row 1, Phone + Job title on row 2. A
   single grid (not a grid nested in a flex column) keeps the widths even. */
.ok-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
@media (max-width: 560px) {
  .ok-form { grid-template-columns: 1fr; }
}
/* align-items: stretch so children (including the .ok-phone grid) fill the
   row width instead of shrinking to their content. */
.ok-field { display: flex; flex-direction: column; align-items: stretch; gap: 7px; font-size: 13px; font-weight: 600; color: #23303c; }
/* One flex item per label, so text and the required star share a line. */
.ok-label { display: block; line-height: 1.4; }
/* Required-field marker, matching the red star on the site's enquiry forms. */
.ok-req { color: #e02020; font-weight: 700; }
.ok-input, .ok-select { font: inherit; font-size: 14px; color: var(--ok-ink); padding: 10px 12px; border: 1px solid #d7e1ec; border-radius: 6px; background: #fff; outline: none; width: 100%; min-width: 0; }
/* Native arrow is inconsistent once we restyle the box - draw our own. */
.ok-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234a5866' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.ok-input:focus, .ok-select:focus { border-color: var(--ok-blue); }
.ok-input::placeholder { color: var(--ok-muted); font-size: 14px; font-weight: 400; opacity: 1; }
/* Matches the site's enquiry forms: ISO code select, dial-code prefix, number.
   One bordered box so the three parts read as a single field. */
/* Height is set here once and the three parts stretch to fill it, so the row
   matches the plain inputs above instead of stacking their padding. */
.ok-phone {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: stretch;
  width: 100%;
  /* 20px padding + 2px borders + 20px line-height on .ok-input */
  height: 42px;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.ok-phone:focus-within { border-color: var(--ok-blue); }
/* Fixed width so the closed box shows just the ISO code; the browser sizes
   the open dropdown to its content, so full country names still show there.
   The arrow is drawn over the clipped text, matching the site's own forms. */
.ok-phone__code {
  width: 54px;
  min-width: 54px;
  border: 0;
  border-radius: 0;
  /* Right padding is wide enough that the label is cut straight after the
     2-letter code, leaving room for the arrow drawn on top of it. */
  padding: 0 22px 0 10px;
  background-color: #fff;
  background-position: right 6px center;
  font-size: 14px;
  color: var(--ok-body);
  height: 100%;
}
.ok-phone__code:focus { border: 0; }
/* Sits over the select's right edge so a clipped "- Country" cannot show
   through next to the arrow. */
.ok-phone__prefix {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 6px;
  font-size: 14px;
  color: var(--ok-body);
  white-space: nowrap;
}
.ok-phone .ok-input { border: 0; border-radius: 0; padding: 0 12px 0 2px; font-size: 14px; height: 100%; }
.ok-phone .ok-input:focus { border: 0; }
.ok-alert { margin-top: 16px; border-radius: 6px; padding: 12px 14px; font-size: 14px; font-weight: 500; background: #fdf1f1; border: 1px solid #f0cccc; color: var(--ok-red); }

/* ---------- Buttons ---------- */
.ok-btn { font: inherit; cursor: pointer; border-radius: 6px; border: 2px solid transparent; padding: 13px 28px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; transition: background .14s, color .14s, border-color .14s; }
.ok-btn--primary { background: var(--ok-blue); color: #fff; }
.ok-btn--primary:hover { background: var(--ok-blue-dark); color: #fff; }
.ok-btn--ghost { background: #fff; color: var(--ok-blue); border-color: var(--ok-blue); }
.ok-btn--ghost:hover { background: #f2f7fd; color: var(--ok-blue); }
.ok-btn--quiet { background: none; border: 0; color: var(--ok-body); padding: 13px 4px; font-weight: 600; }
.ok-btn--quiet:hover { color: var(--ok-blue); }
/* Continue on a multi-select before anything is picked, and the send button
   mid-request. */
.ok-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ok-btn[disabled]:hover { background: var(--ok-blue); }

/* ---------- Result ---------- */
/* Confirmation above the result card, on the thank-you page only. */
.ok-thanks { margin-top: 18px; }
.ok-thanks__title { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 0; color: var(--ok-ink); }
@media (min-width: 1024px) { .ok-thanks__title { font-size: 34px; } }
.ok-thanks__sub { font-size: 16px; line-height: 1.7; color: var(--ok-body); margin: 8px 0 0; }
.ok-result { background: #fff; border: 1px solid var(--ok-line); border-radius: 12px; overflow: hidden; margin-top: 14px; box-shadow: 0 8px 34px rgba(3,70,148,.09); animation: okIn .3s ease both; }
.ok-result__head { background: linear-gradient(120deg, var(--ok-blue) 0%, var(--ok-blue-light) 100%); color: #fff; padding: 36px; }
.ok-result__head .ok-kicker { color: #a9cbef; }
.ok-result__title { font-size: 25px; line-height: 1.3; font-weight: 700; margin: 10px 0 0; }
@media (min-width: 1024px) { .ok-result__title { font-size: 30px; } }
.ok-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 99px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.ok-result__body { padding: 32px 36px 36px; }
.ok-result__copy { font-size: 16px; line-height: 1.7; color: #23303c; margin: 0; max-width: 720px; }
/* Result copy is split into paragraphs; space them without adding a gap
   before the chips that follow. */
.ok-result__copy + .ok-result__copy { margin-top: 16px; }
.ok-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; list-style: none; padding: 0; }
.ok-chips li { background: #f1f6fc; border: 1px solid #d5e3f3; border-radius: 6px; padding: 10px 14px; font-size: 14px; color: #23303c; }
.ok-chips b { color: var(--ok-blue); }
.ok-steps { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ok-steps > div { border: 1px solid #e2eaf3; border-left: 4px solid var(--ok-blue-light); border-radius: 8px; padding: 19px 21px; background: #fbfdff; }
.ok-steps h3 { font-size: 16px; font-weight: 700; color: var(--ok-ink); margin: 0; }
.ok-steps p { font-size: 14px; line-height: 1.55; color: var(--ok-body); margin: 7px 0 0; }
.ok-fineprint { font-size: 12px; line-height: 1.6; color: var(--ok-muted); margin: 22px 0 0; max-width: 720px; }

/* ---------- Sales payload ---------- */
.ok-payload { margin-top: 24px; background: #0f1c2b; border-radius: 12px; padding: 24px 26px; color: #dbe7f4; }
.ok-payload__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ok-payload__head .ok-kicker { color: #7fb2e8; flex: 1; }
.ok-payload__rows { display: grid; gap: 6px 26px; margin: 16px 0 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ok-payload__rows > div { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #23364a; }
.ok-payload__rows dt { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #7fb2e8; min-width: 150px; margin: 0; }
.ok-payload__rows dd { font-size: 14px; line-height: 1.5; color: #eef4fb; margin: 0; }
.ok-copy { background: var(--ok-blue-light); color: #fff; border: 0; border-radius: 5px; padding: 9px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ok-copy:hover { background: #2472c6; }

.ok-hide { display: none !important; }

@media (max-width: 600px) {
  section.ok-tool, .ok-tool { padding: 36px 0 64px; }
  .ok-panel, .ok-result__head, .ok-result__body { padding: 24px 20px; }
  /* Stays a single row on mobile too - it is compact enough now. */
}
