*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #111;
  --muted: #8a8a8a;
  --line: #d9d9d9;
  --req: #e5484d;
  --radius: 8px;
}

html, body { margin: 0; background: #fff; color: var(--ink); }

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

/* Stepper */
.stepper {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 14px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--muted);
}
.step .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
}
.step .label {
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.35;
  max-width: 110px;
}
.step.done .dot,
.step.active .dot { background: var(--ink); color: #fff; }
.step.active .label { color: var(--ink); font-weight: 700; }

/* Card */
.card {
  border: 1.5px solid #222;
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  background: #fff;
}
.pager {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-top: 30px;
}

/* Step 1 */
.tc-title {
  font-size: 34px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.tc-star { display: block; font-size: 30px; line-height: 1; margin-top: 4px; }

.tc-box {
  border: 1.5px solid #222;
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.tc-box p { margin: 0 0 14px; }
.tc-box p:last-child { margin: 0; }
.tc-list { margin: 0 0 16px; padding-left: 26px; }
.tc-list li { margin-bottom: 8px; padding-left: 2px; }

.charges { display: flex; flex-direction: column; padding-left: 30px; }
.charges.small { padding-left: 30px; font-size: 11px; letter-spacing: .04em; line-height: 1.55; color: #333; }

hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0 18px; }

.eoi-lead { font-weight: 700; font-size: 14px; line-height: 1.45; letter-spacing: .01em; margin: 0 0 12px; }
.eoi-sub { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.highlights-title { font-size: 28px; line-height: 1.45; font-weight: 600; margin: 0 0 8px; }
.highlights { margin: 0; padding-left: 30px; font-size: 14px; line-height: 1.6; }
.highlights li { margin-bottom: 7px; }

.accept {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.accept input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #000; }
.req { color: var(--req); }

/* Buttons */
.actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}
.btn {
  font: inherit;
  font-size: 14px;
  min-width: 78px;
  padding: 7px 18px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}
.btn:disabled { color: #aaa; border-color: #ccc; cursor: not-allowed; }
.btn:not(:disabled):active { background: #f2f2f2; }

/* Form fields */
.field { margin-bottom: 22px; position: relative; }
.group-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  margin: 8px 0 6px;
}
.lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 8px;
}
.input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.input::placeholder { color: #9b9b9b; }
.input:focus { border-color: #555; box-shadow: 0 0 0 1px #555; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-left: 20px;
}

.with-icon { position: relative; }
.with-icon .icon { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: #888; }
.with-icon .input { padding-left: 30px; }

.phone {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
}
.phone:focus-within { border-color: #555; box-shadow: 0 0 0 1px #555; }
.phone .flag svg { width: 20px; height: 14px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.phone .chev {
  width: 5px; height: 5px;
  border-right: 1px solid #999; border-bottom: 1px solid #999;
  transform: rotate(45deg);
  margin: -3px 10px 0 5px;
}
.phone input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 14px; height: 100%; min-width: 0; background: transparent; }

.error { color: #d11a2a; font-size: 12px; margin-top: 6px; min-height: 0; }
.error:empty { display: none; }

/* Multi select */
.multi { position: relative; }
.multi-box {
  width: 100%;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.multi.open .multi-box { border: 2px solid #777; }
.multi-box .placeholder { color: #9b9b9b; }
.chip {
  font-size: 11px;
  background: #eee;
  border-radius: 4px;
  padding: 4px 8px;
  color: #222;
}
.multi-menu {
  position: absolute;
  left: 0;
  right: 18px;
  top: calc(100% + 8px);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  font-size: 12px;
  letter-spacing: .02em;
}
.multi-menu[hidden] { display: none; }
.multi-menu label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.multi-menu.inline label { gap: 0; }
.multi-menu input { width: 14px; height: 14px; margin: 0; accent-color: #000; }

.add-charges { margin-top: 10px; font-size: 11px; letter-spacing: .04em; }
.add-charges strong { display: block; font-weight: 700; margin-bottom: 2px; }

/* File upload */
.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  font-size: 13px;
}
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file svg { width: 20px; height: 20px; color: #333; flex-shrink: 0; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 10px; }
.file.has-file .file-name { color: var(--ink); }

.panel[hidden],
.thank-you[hidden],
.stepper[hidden],
.submit-errors[hidden] { display: none; }

.submit-errors {
  margin: 0;
  padding: 10px 14px 10px 30px;
  border: 1px solid #f3c2c5;
  background: #fff5f5;
  border-radius: 4px;
  color: #b3261e;
  font-size: 13px;
}

.thank-you { text-align: center; padding: 40px 24px; }
.thank-you h2 { font-size: 28px; font-weight: 600; margin: 0 0 10px; }
.thank-you p { margin: 0; color: #444; }
