:root {
  --yb-orange: #ff6200;
  --yb-orange-dark: #ed4c05;
  --yb-ink: #12100f;
  --yb-muted: #716b67;
  --yb-line: #e8e3df;
  --yb-soft: #fff8f1;
  --yb-shadow: 0 20px 42px rgba(35, 27, 22, .08);
}

.yb-builder,
.yb-builder * {
  box-sizing: border-box;
}

.yb-builder {
  color: var(--yb-ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.yb-builder button,
.yb-builder input,
.yb-builder textarea {
  font: inherit;
}

.yb-builder button {
  cursor: pointer;
}

.yb-builder-hero {
  margin: 48px 0 34px;
}

.yb-builder-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -.07em;
  line-height: 1.02;
}

.yb-builder-hero > p:last-child,
.yb-section-intro > p:last-child {
  color: var(--yb-muted);
  font-size: 18px;
}

.yb-eyebrow {
  color: var(--yb-orange-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.yb-city-stage,
.yb-config-stage,
.yb-lead-stage {
  align-items: flex-start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) 350px;
}

.yb-city-panel,
.yb-city-summary,
.yb-live-summary,
.yb-config-card,
.yb-plan-card,
.yb-lead-form,
.yb-selected-plan-box {
  background: #fff;
  border: 1px solid var(--yb-line);
  border-radius: 28px;
}

.yb-city-panel {
  padding: 25px;
}

.yb-search-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.yb-search {
  align-items: center;
  border: 1px solid var(--yb-line);
  border-radius: 18px;
  display: flex;
  flex: 1;
  gap: 10px;
  padding: 0 16px;
}

.yb-search span {
  color: #a9a19c;
  font-size: 26px;
}

.yb-search input {
  background: transparent;
  border: 0;
  height: 52px;
  outline: 0;
  width: 100%;
}

.yb-selection-count,
.yb-summary-chip {
  background: var(--yb-soft);
  border-radius: 999px;
  color: var(--yb-orange-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  white-space: nowrap;
}

.yb-panel-heading {
  align-items: center;
  border-top: 1px solid var(--yb-line);
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 22px;
}

.yb-panel-heading h2 {
  font-size: 20px;
}

.yb-panel-heading span {
  color: var(--yb-muted);
}

.yb-city-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.yb-city-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--yb-line);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  text-align: left;
  transition: .2s ease;
}

.yb-city-option:hover,
.yb-city-option.is-selected {
  border-color: var(--yb-orange);
  box-shadow: 0 0 0 3px rgba(255, 98, 0, .1);
}

.yb-city-icon,
.yb-summary-title > span {
  align-items: center;
  background: var(--yb-soft);
  border-radius: 12px;
  color: var(--yb-orange);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.yb-city-option small {
  color: #a49c97;
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  margin-top: 5px;
}

.yb-city-option i {
  border: 1px solid var(--yb-line);
  border-radius: 50%;
  height: 22px;
  margin-left: auto;
  width: 22px;
}

.yb-city-option.is-selected i {
  background: var(--yb-orange);
  border-color: var(--yb-orange);
  box-shadow: inset 0 0 0 5px #fff;
}

.yb-city-summary,
.yb-live-summary {
  padding: 24px;
  position: sticky;
  top: 110px;
}

.yb-summary-title {
  align-items: center;
  display: flex;
  gap: 12px;
}

.yb-summary-title h2,
.yb-live-summary h2 {
  font-size: 21px;
  margin: 0;
}

.yb-summary-title p,
.yb-live-summary p {
  color: var(--yb-muted);
  font-size: 14px;
  margin: 5px 0;
}

.yb-city-placeholder {
  align-items: center;
  background: #fbfaf9;
  border: 1px dashed var(--yb-line);
  border-radius: 18px;
  color: #aaa39e;
  display: flex;
  justify-content: center;
  margin: 22px 0;
  min-height: 90px;
}

.yb-city-summary ul,
.yb-plan-card ul {
  background: #fbfaf9;
  border-radius: 18px;
  color: #514b47;
  font-size: 14px;
  line-height: 2;
  list-style: none;
  margin: 0 0 18px;
  padding: 15px 18px;
}

.yb-city-summary li::before,
.yb-plan-card li::before {
  color: var(--yb-orange);
  content: "✓";
  font-weight: 800;
  margin-right: 8px;
}

.yb-primary-button {
  align-items: center;
  background: linear-gradient(135deg, var(--yb-orange), var(--yb-orange-dark));
  border: 0;
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  transition: .2s ease;
}

.yb-primary-button:hover {
  box-shadow: 0 14px 24px rgba(255, 98, 0, .2);
  transform: translateY(-1px);
}

.yb-primary-button:disabled {
  background: #ece9e7;
  box-shadow: none;
  color: #b8b1ac;
  cursor: not-allowed;
  transform: none;
}

.yb-city-summary .yb-primary-button,
.yb-live-summary .yb-primary-button {
  width: 100%;
}

.yb-section-intro {
  margin: 24px auto 30px;
  max-width: 760px;
  text-align: center;
}

.yb-section-intro h2,
.yb-lead-copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.06em;
  line-height: 1.08;
  margin: 8px 0;
}

.yb-config-main {
  display: grid;
  gap: 18px;
}

.yb-config-main .yb-section-intro {
  grid-column: 1 / -1;
}

.yb-config-card {
  display: flex;
  gap: 16px;
  padding: 26px;
}

.yb-config-card > div:last-child {
  min-width: 0;
}

.yb-step-number {
  align-items: center;
  background: var(--yb-orange);
  border-radius: 50%;
  box-shadow: 0 7px 14px rgba(255, 98, 0, .18);
  color: #fff;
  display: flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.yb-config-card h3 {
  font-size: 18px;
  margin: 8px 0 18px;
}

.yb-config-card small {
  color: var(--yb-muted);
  font-size: 14px;
  font-weight: 400;
  margin-left: 4px;
}

.yb-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yb-choice,
.yb-selected-city,
.yb-text-button {
  background: #fff;
  border: 1px solid var(--yb-line);
  border-radius: 999px;
  color: #4d4844;
  min-height: 42px;
  padding: 0 18px;
}

.yb-choice.is-selected,
.yb-selected-city {
  background: var(--yb-orange);
  border-color: var(--yb-orange);
  color: #fff;
  font-weight: 800;
}

.yb-live-summary {
  margin-top: 155px;
}

.yb-summary-chip {
  display: inline-block;
  margin: 16px 0;
}

.yb-live-summary dl {
  display: grid;
  gap: 9px;
}

.yb-live-summary dl div {
  background: #fbfaf9;
  border-radius: 14px;
  padding: 12px 14px;
}

.yb-live-summary dt {
  color: var(--yb-muted);
  font-size: 12px;
}

.yb-live-summary dd {
  font-weight: 800;
  margin: 4px 0 0;
}

.yb-results-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yb-plan-card {
  padding: 24px;
  position: relative;
}

.yb-plan-card.is-featured {
  border-color: var(--yb-orange);
  box-shadow: var(--yb-shadow);
}

.yb-plan-badge {
  background: var(--yb-orange);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 13px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.yb-plan-card > p:first-of-type {
  color: var(--yb-orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.yb-plan-card h3 {
  font-size: 23px;
  margin: 8px 0 20px;
}

.yb-price strong {
  color: var(--yb-orange-dark);
  font-size: 42px;
}

.yb-match-rate {
  align-items: baseline;
  background: var(--yb-soft);
  border-radius: 14px;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 13px;
}

.yb-match-rate strong {
  color: var(--yb-orange-dark);
  font-size: 28px;
}

.yb-match-rate span {
  color: var(--yb-muted);
  font-size: 13px;
}

.yb-price span {
  color: var(--yb-muted);
}

.yb-plan-facts {
  margin-top: 15px !important;
}

.yb-explain,
.yb-caution {
  border-top: 1px solid var(--yb-line);
  margin-top: 16px;
  padding-top: 14px;
}

.yb-explain h4,
.yb-caution h4 {
  font-size: 14px;
  margin: 0 0 8px;
}

.yb-explain ul,
.yb-caution ul {
  background: transparent;
  margin: 0 0 10px;
  padding: 0;
}

.yb-explain li,
.yb-caution li {
  font-size: 13px;
  line-height: 1.65;
}

.yb-caution li::before {
  color: #b56a3f;
  content: "!";
}

.yb-audience {
  color: var(--yb-muted);
  font-size: 13px;
  line-height: 1.6;
}

.yb-plan-description {
  color: var(--yb-muted);
  min-height: 48px;
}

.yb-plan-card .yb-primary-button {
  width: 100%;
}

.yb-text-button {
  margin-top: 22px;
}

.yb-lead-stage {
  margin: 65px 0;
}

.yb-lead-copy {
  padding: 22px 0;
}

.yb-lead-copy > p {
  color: var(--yb-muted);
  font-size: 17px;
  max-width: 650px;
}

.yb-selected-plan-box {
  display: grid;
  gap: 7px;
  margin-top: 26px;
  max-width: 520px;
  padding: 20px;
}

.yb-selected-plan-box strong {
  font-size: 19px;
}

.yb-selected-plan-box span {
  color: var(--yb-muted);
}

.yb-lead-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 24px;
}

.yb-lead-form label {
  color: #524d49;
  display: grid;
  font-size: 14px;
  gap: 7px;
}

.yb-lead-form input,
.yb-lead-form textarea {
  border: 1px solid var(--yb-line);
  border-radius: 14px;
  padding: 13px;
  width: 100%;
}

.yb-full-field,
.yb-lead-form .yb-primary-button,
.yb-form-message {
  grid-column: 1 / -1;
}

.yb-honeypot {
  left: -9999px;
  position: absolute;
}

.yb-form-message {
  color: #a73820;
  margin: 0;
}

.yb-form-message.is-success {
  color: #27804a;
}

.yb-empty-result {
  background: var(--yb-soft);
  border-radius: 24px;
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .yb-city-stage,
  .yb-config-stage,
  .yb-lead-stage {
    grid-template-columns: 1fr;
  }

  .yb-city-grid,
  .yb-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yb-city-summary,
  .yb-live-summary {
    position: static;
  }

  .yb-live-summary {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .yb-builder-hero {
    margin-top: 28px;
  }

  .yb-builder-hero h1 {
    font-size: 44px;
  }

  .yb-city-panel,
  .yb-city-summary,
  .yb-live-summary,
  .yb-config-card,
  .yb-plan-card,
  .yb-lead-form {
    border-radius: 20px;
  }

  .yb-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .yb-selection-count {
    align-self: flex-start;
  }

  .yb-city-grid,
  .yb-results-grid,
  .yb-lead-form {
    grid-template-columns: 1fr;
  }

  .yb-config-card {
    flex-direction: column;
    padding: 19px;
  }

  .yb-config-card small {
    display: block;
    margin: 6px 0 0;
  }
}
