.iop-flow,
.iop-checker,
.iop-thank-you {
  --iop-blue: #1284c7;
  --iop-orange: #f58220;
  --iop-ink: #20252a;
  --iop-muted: #626b73;
  --iop-line: #dce1e5;
  --iop-soft: #f5f7f8;
  --iop-success: #157347;
  --iop-danger: #b42318;
  color: var(--iop-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.iop-flow *,
.iop-checker *,
.iop-thank-you * {
  box-sizing: border-box;
}

.iop-flow [hidden],
.iop-checker [hidden],
.iop-thank-you [hidden] {
  display: none !important;
}

.iop-flow {
  width: min(1120px, 100%);
  margin: 38px auto;
}

.iop-flow h2,
.iop-flow h3,
.iop-flow h4,
.iop-checker h2,
.iop-thank-you h1,
.iop-thank-you h2 {
  color: var(--iop-ink);
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
  padding: 0;
}

.iop-flow h2 { font-size: clamp(2rem, 4vw, 3rem); }
.iop-flow h3 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
.iop-flow h4 { font-size: 1.1rem; }
.iop-step__heading > p:last-child,
.iop-gate__inner > p {
  color: var(--iop-muted);
  margin: 10px 0 0;
}

.iop-eyebrow,
.iop-step-kicker,
.iop-summary__eyebrow {
  color: var(--iop-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.iop-gate {
  margin: 0;
  max-width: 680px;
  padding: 0;
}

.iop-gate__inner { max-width: 680px; margin: 0; }
.iop-gate .iop-checker__form { margin-top: 0; }

.iop-progress {
  margin: 0 0 22px;
  padding: 0 6px;
}

.iop-progress__track {
  background: #e8ecef;
  border-radius: 999px;
  height: 5px;
  margin-bottom: 12px;
  overflow: hidden;
}

.iop-progress__track span {
  background: var(--iop-orange);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 220ms ease;
  width: 0;
}

.iop-progress ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.iop-progress li {
  align-items: center;
  color: #7a8289;
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 7px;
}

.iop-progress li:nth-child(2) { justify-content: center; }
.iop-progress li:nth-child(3) { justify-content: flex-end; }
.iop-progress li span {
  align-items: center;
  background: #e8ecef;
  border-radius: 50%;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.iop-progress li[aria-current="step"],
.iop-progress li.is-complete { color: var(--iop-ink); }
.iop-progress li[aria-current="step"] span { background: var(--iop-orange); color: #fff; }
.iop-progress li.is-complete span { background: var(--iop-blue); color: #fff; }

.iop-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 310px;
}

.iop-form,
.iop-summary__inner {
  background: #fff;
  border: 1px solid var(--iop-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(26, 39, 49, 0.065);
}

.iop-step { padding: clamp(24px, 5vw, 44px); }
.iop-step__heading { margin-bottom: 30px; }
.iop-step__heading h3:focus { outline: none; }

.iop-fieldset {
  border: 0;
  margin: 0 0 30px;
  min-width: 0;
  padding: 0;
}

.iop-fieldset legend,
.iop-field label,
.iop-combobox label,
.iop-coupon > label {
  color: var(--iop-ink);
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  margin: 0 0 9px;
}

.iop-fieldset legend > span,
.iop-field > label > span { color: var(--iop-danger); }

.iop-help {
  color: var(--iop-muted);
  font-size: 0.85rem;
  margin: -5px 0 12px;
}

.iop-segments {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iop-segments--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iop-choice { cursor: pointer; display: block; margin: 0; position: relative; }
.iop-choice > input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.iop-choice--compact > span {
  align-items: center;
  background: #fff;
  border: 1.5px solid #cfd5da;
  border-radius: 11px;
  display: flex;
  font-weight: 700;
  justify-content: center;
  min-height: 54px;
  padding: 10px 14px;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.iop-choice > input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(18, 132, 199, 0.18);
  outline: 2px solid var(--iop-blue);
  outline-offset: 2px;
}

.iop-choice > input:checked + span {
  background: color-mix(in srgb, var(--iop-blue) 7%, white);
  border-color: var(--iop-blue);
  box-shadow: inset 0 0 0 1px var(--iop-blue);
}

.iop-service-cards {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iop-choice--card .iop-choice__content {
  background: #fff;
  border: 1.5px solid #cfd5da;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 24px;
  position: relative;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.iop-choice--card:hover .iop-choice__content { border-color: #9ba6ae; transform: translateY(-1px); }
.iop-choice--card strong { font-size: 1.15rem; margin: 0 0 8px; }
.iop-choice--card small { color: var(--iop-muted); display: block; font-size: 0.9rem; line-height: 1.5; }
.iop-choice--card em {
  color: var(--iop-blue);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
  margin-top: auto;
  padding-top: 18px;
}

.iop-fields {
  display: grid;
  gap: 19px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 30px;
}

.iop-field--full { grid-column: 1 / -1; }
.iop-input {
  appearance: none;
  background: #fff;
  border: 1.5px solid #bac2c8;
  border-radius: 9px;
  color: var(--iop-ink);
  font: inherit;
  min-height: 52px;
  padding: 12px 16px !important;
  text-indent: 0 !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

textarea.iop-input { min-height: 130px; resize: vertical; }
.iop-input:focus,
.iop-check input:focus-visible + span,
.iop-terms input:focus-visible + span {
  border-color: var(--iop-blue);
  box-shadow: 0 0 0 4px rgba(18, 132, 199, 0.14);
  outline: none;
}

.iop-input.is-invalid,
.iop-fieldset.is-invalid .iop-choice > span,
.iop-fieldset.is-invalid .iop-check > span,
.iop-upload input.is-invalid {
  border-color: var(--iop-danger);
}

.iop-municipality-pill {
  align-items: center;
  background: #eef7fc;
  border: 1px solid #cbe6f5;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin: 0 0 28px;
  padding: 12px 14px;
}

.iop-municipality-pill button,
.iop-text-button {
  background: transparent;
  border: 0;
  color: var(--iop-blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 3px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iop-check-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iop-check { cursor: pointer; margin: 0; position: relative; }
.iop-check input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.iop-check > span {
  align-items: flex-start;
  border: 1.5px solid #cfd5da;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  min-height: 84px;
  padding: 15px 16px 14px 46px;
  position: relative;
}

.iop-check > span::before {
  border: 1.5px solid #9ba6ae;
  border-radius: 5px;
  content: '';
  height: 20px;
  left: 15px;
  position: absolute;
  top: 16px;
  width: 20px;
}

.iop-check input:checked + span { background: #f5fbfe; border-color: var(--iop-blue); }
.iop-check input:checked + span::before {
  background: var(--iop-blue);
  border-color: var(--iop-blue);
  box-shadow: inset 0 0 0 4px var(--iop-blue);
}
.iop-check input:checked + span::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: '';
  height: 9px;
  left: 22px;
  position: absolute;
  top: 20px;
  transform: rotate(45deg);
  width: 5px;
}
.iop-check strong { font-size: 0.93rem; }
.iop-check small { color: var(--iop-muted); font-size: 0.8rem; margin-top: 2px; }

.iop-upload {
  align-items: center;
  border: 1.5px dashed #aab4bb;
  border-radius: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 76px;
  padding: 14px;
  position: relative;
}

.iop-upload input { cursor: pointer; inset: 0; opacity: 0; position: absolute; width: 100%; }
.iop-upload span {
  background: var(--iop-blue);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 750;
  padding: 8px 14px;
}
.iop-upload small { color: var(--iop-muted); font-size: 0.8rem; }
.iop-file-list { color: var(--iop-muted); font-size: 0.8rem; margin: 8px 0 0; padding-left: 20px; }

.iop-coupon { margin: 0 0 24px; }
.iop-coupon > div { display: flex; gap: 9px; }
.iop-coupon .iop-input { flex: 1; }

.iop-terms {
  align-items: flex-start;
  border: 1px solid var(--iop-line);
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0 0 24px;
  padding: 15px;
}
.iop-terms input { height: 20px; margin: 2px 0 0; min-width: 20px; width: 20px; }
.iop-terms span { font-size: 0.88rem; }
.iop-terms small { color: var(--iop-muted); display: block; margin-top: 3px; }
.iop-terms a { color: var(--iop-blue); font-weight: 700; }

.iop-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
}
.iop-actions--end { justify-content: flex-end; }
.iop-button {
  align-items: center;
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  text-decoration: none;
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.iop-button:hover { filter: brightness(0.96); transform: translateY(-1px); }
.iop-button:focus-visible { box-shadow: 0 0 0 4px rgba(18, 132, 199, 0.2); outline: 2px solid var(--iop-blue); outline-offset: 2px; }
.iop-button:disabled { cursor: wait; opacity: 0.7; transform: none; }
.iop-button--primary { background: var(--iop-orange); color: #fff; }
.iop-button--secondary { background: #edf0f2; color: var(--iop-ink); }
.iop-button--small { background: var(--iop-ink); color: #fff; min-height: 46px; padding: 10px 17px; }

.iop-spinner {
  animation: iop-spin 700ms linear infinite;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
  border-top-color: #fff;
  display: none;
  height: 18px;
  margin-left: 9px;
  width: 18px;
}
.iop-button.is-loading .iop-spinner { display: inline-block; }
@keyframes iop-spin { to { transform: rotate(360deg); } }

.iop-summary { position: sticky; top: 24px; }
.iop-summary__inner { background: #f4f1ef; box-shadow: none; padding: 25px; }
.iop-summary h3 { font-size: 1.3rem; margin-bottom: 17px; }
.iop-summary dl { margin: 0; }
.iop-summary dl > div { border-bottom: 1px solid #d6d0cc; display: grid; gap: 10px; grid-template-columns: 44% 56%; padding: 11px 0; }
.iop-summary dt { color: var(--iop-muted); font-size: 0.78rem; }
.iop-summary dd { font-size: 0.8rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; text-align: right; }
.iop-summary__note { color: var(--iop-muted); font-size: 0.76rem; line-height: 1.5; margin: 19px 0 0; }

.iop-inline-error,
.iop-field-message,
.iop-submit-message {
  color: var(--iop-danger);
  font-size: 0.82rem;
  margin: 8px 0 0;
  min-height: 1.2em;
}
.iop-field-message.is-success { color: var(--iop-success); }
.iop-field-message.is-error { color: var(--iop-danger); }
.iop-honeypot { height: 0; left: -10000px; overflow: hidden; position: absolute; width: 0; }

.iop-checker {
  margin: 0;
  max-width: 680px;
  width: 100%;
}
.iop-checker__form { align-items: end; display: grid; gap: 11px; grid-template-columns: minmax(0, 1fr) auto; }
.iop-combobox { min-width: 0; }
.iop-combobox__control { position: relative; }
.iop-combobox__list {
  background: #fff;
  border: 1px solid var(--iop-line);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(21, 34, 44, 0.14);
  left: 0;
  max-height: 270px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 50;
}
.iop-combobox__list [role="option"] { border-radius: 7px; cursor: pointer; font-size: 0.9rem; padding: 10px 11px; }
.iop-combobox__list [role="option"]:hover,
.iop-combobox__list [role="option"].is-active { background: #eef7fc; color: #075e91; }

.iop-success,
.iop-thank-you {
  background: #fff;
  border: 1px solid var(--iop-line);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(23, 38, 50, 0.08);
  margin: 40px auto;
  max-width: 720px;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
}
.iop-success:focus { outline: none; }
.iop-success__icon { align-items: center; background: var(--iop-orange); border-radius: 50%; color: #fff; display: flex; font-size: 1.7rem; height: 62px; justify-content: center; margin: 0 auto 20px; width: 62px; }
.iop-success > p,
.iop-thank-you > p { color: var(--iop-muted); }
.iop-reference { background: var(--iop-soft); border-radius: 9px; display: inline-block; font-size: 0.86rem; padding: 9px 13px; }

.iop-feedback { border-top: 1px solid var(--iop-line); margin-top: 30px; padding-top: 25px; text-align: left; }
.iop-feedback h2,
.iop-feedback h4 { font-size: 1.05rem; text-align: center; }
.iop-feedback__buttons { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.iop-feedback__buttons button { background: #fff; border: 1px solid var(--iop-line); border-radius: 50%; cursor: pointer; font-size: 1.35rem; height: 50px; width: 50px; }
.iop-feedback__buttons button.is-selected { background: #fff5ec; border-color: var(--iop-orange); box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15); }
.iop-feedback__comment label { display: block; font-size: 0.85rem; font-weight: 700; }
.iop-feedback__comment label > span { color: var(--iop-muted); font-weight: 400; }
.iop-feedback__comment textarea { margin: 7px 0 10px; }
.iop-feedback [data-iop-feedback-message] { color: var(--iop-success); font-size: 0.82rem; text-align: center; }
.iop-thank-you { max-width: 620px; padding: clamp(24px, 5vw, 38px); }
.iop-thank-you .iop-feedback { border-top: 0; margin-top: 0; padding-top: 0; }
.iop-thank-you .iop-feedback h2 { line-height: 1.35; }

@media (max-width: 880px) {
  .iop-layout { grid-template-columns: 1fr; }
  .iop-summary { grid-row: 1; position: static; }
  .iop-summary__inner { padding: 18px 20px; }
  .iop-summary dl { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .iop-flow { margin: 22px auto; }
  .iop-progress li { font-size: 0; }
  .iop-progress li span { font-size: 0.78rem; }
  .iop-step { padding: 24px 18px; }
  .iop-segments--three,
  .iop-service-cards,
  .iop-check-grid,
  .iop-fields { grid-template-columns: 1fr; }
  .iop-field--full { grid-column: auto; }
  .iop-choice--card .iop-choice__content { min-height: 170px; padding: 20px; }
  .iop-checker__form { align-items: stretch; grid-template-columns: 1fr; }
  .iop-checker__form .iop-button { width: 100%; }
  .iop-actions .iop-button { min-width: 0; padding-inline: 18px; }
  .iop-summary dl { grid-template-columns: 1fr; }
  .iop-municipality-pill { align-items: flex-start; gap: 8px; }
  .iop-coupon > div { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .iop-flow *,
  .iop-checker *,
  .iop-thank-you * {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
