.yyh-cost-page {
  background: #f3f7fb;
  overflow-x: hidden;
}

.yyh-cost-estimate-page .float-service {
  display: none;
}

@media (max-width: 640px) {
  .yyh-cost-page,
  .yyh-cost-hero,
  .yyh-cost-layout,
  .yyh-cost-tool,
  .yyh-cost-panel {
    max-width: 100%;
    overflow-x: hidden;
  }

  .yyh-cost-steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: hidden !important;
  }

  .yyh-cost-steps span {
    min-width: 0;
    gap: 6px;
    padding: 8px 7px;
    font-size: 14px;
    white-space: nowrap;
  }

  .yyh-cost-steps b {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .yyh-cost-case-note,
  .yyh-cost-grid label,
  .yyh-cost-selected,
  .yyh-cost-empty-state {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.yyh-cost-hero {
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 10%, rgba(20, 167, 181, .14), transparent 330px),
    radial-gradient(circle at 8% 20%, rgba(31, 111, 235, .13), transparent 300px),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #edf6ff 100%);
}

.yyh-cost-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, .62fr);
  gap: 24px;
  align-items: start;
}

.yyh-cost-tool,
.yyh-cost-panel,
.yyh-cost-doctor-card,
.yyh-cost-clinic-card {
  border: 1px solid #dce8f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(13, 59, 102, .08);
}

.yyh-cost-tool {
  padding: 20px;
}

.yyh-cost-tool-head h1 {
  margin: 8px 0 6px;
  color: #071d33;
  font-size: 38px;
  line-height: 1.05;
}

.yyh-cost-tool-head p {
  max-width: 620px;
  margin: 0;
  color: #53687c;
  font-size: 16px;
}

.yyh-cost-signal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.yyh-cost-signal div {
  min-height: 58px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
  padding: 10px 12px;
}

.yyh-cost-signal b {
  display: block;
  color: #071d33;
  font-size: 16px;
  line-height: 1.25;
}

.yyh-cost-signal span {
  display: block;
  margin-top: 3px;
  color: #53687c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.yyh-cost-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.yyh-cost-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f7fbff;
  color: #173b5f;
  padding: 8px 12px;
  font-weight: 900;
}

.yyh-cost-steps b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1f6feb;
  color: #fff;
  font-size: 13px;
}

.yyh-cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 14px;
}

.yyh-cost-grid label {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  color: #071d33;
  font-weight: 900;
}

.yyh-cost-wide {
  grid-column: 1 / -1;
}

.yyh-cost-grid select,
.yyh-cost-booking-card input {
  width: 100%;
  height: 48px;
  border: 1px solid #d7e3ef;
  border-radius: 8px;
  background: #fff;
  color: #173b5f;
  font-size: 16px;
  padding: 0 14px;
  outline: none;
}

.yyh-cost-grid select:focus,
.yyh-cost-booking-card input:focus {
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}

.yyh-cost-case-note {
  min-height: 34px;
  margin-top: -2px;
  color: #53687c;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yyh-cost-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
  display: grid;
}

.yyh-cost-result,
.yyh-cost-booking-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 22px;
}

.yyh-cost-result {
  display: none;
  border-bottom: 1px solid #dce8f5;
  background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
}

.yyh-cost-result.is-visible {
  display: block;
}

.yyh-cost-booking-card {
  display: none;
}

.yyh-cost-booking-card.is-visible {
  display: block;
}

.yyh-cost-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.yyh-cost-result-lead {
  margin: -4px 0 16px;
  color: #53687c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.yyh-cost-result h2,
.yyh-cost-booking-card h2 {
  margin: 14px 0 14px;
  color: #071d33;
  font-size: 28px;
  line-height: 1.2;
}

.yyh-cost-price {
  border-radius: 8px;
  background: linear-gradient(135deg, #0b2f66, #1f6feb);
  color: #fff;
  padding: 18px;
}

.yyh-cost-price small {
  display: block;
  color: #d7e8ff;
  font-weight: 900;
}

.yyh-cost-price strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
  line-height: 1.1;
}

.yyh-cost-meta {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.yyh-cost-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e6eef7;
  padding-bottom: 10px;
}

.yyh-cost-meta b {
  color: #071d33;
  white-space: nowrap;
}

.yyh-cost-meta span {
  color: #263d55;
  text-align: right;
}

.yyh-cost-result p {
  margin: 0 0 14px;
  color: #263d55;
  font-weight: 800;
}

.yyh-cost-result ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #53687c;
  list-style: none;
}

.yyh-cost-result li {
  position: relative;
  padding-left: 16px;
}

.yyh-cost-result li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14a7b5;
}

.yyh-cost-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: #0b4c8c;
  font-weight: 900;
}

.yyh-cost-booking-card .booking-intro {
  margin-bottom: 16px;
}

.yyh-cost-selected {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid #d9e8f7;
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.yyh-cost-selected span {
  color: #1f6feb;
  font-size: 13px;
  font-weight: 900;
}

.yyh-cost-selected strong {
  color: #071d33;
  font-size: 20px;
  line-height: 1.25;
}

.yyh-cost-selected div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yyh-cost-selected em {
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  background: #fff;
  color: #0b4c8c;
  padding: 5px 9px;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.yyh-cost-booking-card label {
  color: #071d33;
  font-weight: 900;
}

.yyh-cost-booking-card .submit {
  height: 56px;
  border-radius: 8px;
  background: #1f6feb;
}

.yyh-cost-context {
  padding-top: 34px;
}

.yyh-cost-context .section-head {
  align-items: center;
  margin-bottom: 20px;
}

.yyh-cost-doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.yyh-cost-doctor-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: inherit;
}

.yyh-cost-doctor-card img {
  width: 88px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #f3f8ff;
}

.yyh-cost-doctor-card strong,
.yyh-cost-clinic-card strong {
  display: block;
  color: #071d33;
  font-size: 18px;
}

.yyh-cost-doctor-card span,
.yyh-cost-clinic-card span {
  display: block;
  margin: 3px 0;
  color: #1f6feb;
  font-size: 13px;
  font-weight: 900;
}

.yyh-cost-doctor-card p,
.yyh-cost-clinic-card p {
  margin: 0;
  color: #53687c;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.yyh-cost-clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.yyh-cost-clinic-card {
  overflow: hidden;
  color: inherit;
}

.yyh-cost-clinic-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  background: #e8f2ff;
}

.yyh-cost-clinic-card > div {
  padding: 14px;
}

.yyh-cost-clinic-card div div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.yyh-cost-clinic-card em {
  border-radius: 999px;
  background: #eef6ff;
  color: #0b4c8c;
  padding: 4px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.yyh-cost-empty-state {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px dashed #b8d7ff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 247, 255, .92)),
    radial-gradient(circle at 86% 18%, rgba(43, 179, 177, .16), transparent 170px);
  box-shadow: 0 18px 42px rgba(13, 59, 102, .08);
}

.yyh-cost-empty-state[hidden] {
  display: none;
}

.yyh-cost-empty-state span {
  justify-self: start;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0b4c8c;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.yyh-cost-empty-state strong {
  color: #071d33;
  font-size: 23px;
  line-height: 1.25;
}

.yyh-cost-empty-state p {
  margin: 0;
  color: #53687c;
}

.yyh-cost-empty-state div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yyh-cost-empty-state em {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #fff;
  color: #53687c;
  padding: 5px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .yyh-cost-layout {
    grid-template-columns: 1fr;
  }

  .yyh-cost-panel {
    position: static;
  }

  .yyh-cost-doctor-grid,
  .yyh-cost-clinic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .yyh-cost-hero {
    padding: 14px 0 18px;
  }

  .yyh-cost-tool,
  .yyh-cost-result,
  .yyh-cost-booking-card {
    padding: 14px;
  }

  .yyh-cost-tool-head h1 {
    font-size: 28px;
  }

  .yyh-cost-signal {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .yyh-cost-signal div {
    min-height: 0;
  }

  .yyh-cost-signal div {
    padding: 9px 10px;
  }

  .yyh-cost-steps {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .yyh-cost-steps span {
    flex: 0 0 142px;
  }

  .yyh-cost-grid {
    gap: 10px;
    margin-top: 12px;
  }

  .yyh-cost-grid select,
  .yyh-cost-booking-card input {
    height: 46px;
  }

  .yyh-cost-empty-state {
    padding: 16px;
  }

  .yyh-cost-empty-state strong {
    font-size: 19px;
  }

  .yyh-cost-tool-head p {
    font-size: 16px;
  }

  .yyh-cost-steps,
  .yyh-cost-signal,
  .yyh-cost-grid,
  .yyh-cost-doctor-grid,
  .yyh-cost-clinic-grid {
    grid-template-columns: 1fr;
  }

  .yyh-cost-price strong {
    font-size: 24px;
  }

  .yyh-cost-meta div {
    display: grid;
  }

  .yyh-cost-meta span {
    text-align: left;
  }

  .yyh-cost-doctor-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .yyh-cost-doctor-card img {
    width: 76px;
  }
}

.yyh-cost-page {
  background: #eef4fa;
}

.yyh-cost-hero {
  padding: 46px 0 34px;
  background: #eef4fa;
  border-bottom: 0;
}

.yyh-cost-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .9fr);
  gap: 28px;
}

.yyh-cost-tool,
.yyh-cost-panel,
.yyh-cost-doctor-card,
.yyh-cost-clinic-card {
  border-color: #dfe9f6;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(7, 29, 51, .06);
}

.yyh-cost-tool {
  padding: 34px;
}

.yyh-cost-tool-head {
  text-align: left;
}

.yyh-cost-tool-head h1 {
  font-size: 42px;
  color: #071d33;
}

.yyh-cost-signal {
  margin: 28px 0 30px;
}

.yyh-cost-signal div {
  min-height: 118px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: #fff;
  border-color: #e1e9f4;
}

.yyh-cost-signal b {
  font-size: 21px;
}

.yyh-cost-steps {
  margin-bottom: 22px;
}

.yyh-cost-steps span {
  background: #f7fbff;
  border-color: #dbe7f5;
}

.yyh-cost-steps b,
.yyh-cost-booking-card .submit {
  background: #0b5dcc;
}

.yyh-cost-grid {
  gap: 18px;
}

.yyh-cost-grid select,
.yyh-cost-booking-card input {
  height: 54px;
  border-radius: 8px;
  border-color: #cfdcec;
}

.yyh-cost-panel {
  top: 88px;
  overflow: visible;
}

.yyh-cost-empty-state,
.yyh-cost-result,
.yyh-cost-booking-card {
  border-radius: 12px;
}

.yyh-cost-empty-state {
  margin: 0;
  border: 1px dashed #b8ccec;
  background: #fff;
}

.yyh-cost-empty-state span {
  background: #edf5ff;
  color: #0b5dcc;
}

.yyh-cost-result {
  border-bottom-color: #dfe9f6;
  background: #fff;
}

.yyh-cost-price {
  background: linear-gradient(135deg, #0b5dcc, #08418d);
}

.yyh-cost-context {
  background: #eef4fa;
  padding-top: 42px;
}

.yyh-cost-doctor-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
}

.yyh-cost-doctor-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.yyh-cost-doctor-card > div {
  padding: 18px;
}

.yyh-cost-doctor-card strong,
.yyh-cost-clinic-card strong {
  color: #071d33;
}

.yyh-cost-doctor-card span,
.yyh-cost-clinic-card span {
  color: #0b5dcc;
}

.yyh-cost-clinic-card img {
  object-fit: cover;
}

@media (max-width: 1120px) {
  .yyh-cost-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .yyh-cost-hero {
    padding: 24px 0 24px;
  }

  .yyh-cost-tool {
    padding: 18px;
  }

  .yyh-cost-tool-head h1 {
    font-size: 30px;
  }

  .yyh-cost-signal {
    display: none;
  }

  .yyh-cost-grid {
    grid-template-columns: 1fr;
  }

  .yyh-cost-doctor-card {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 12px;
  }

  .yyh-cost-doctor-card img {
    width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }

  .yyh-cost-doctor-card > div {
    padding: 0;
  }
}

/* yyh-stitch-final: reference-aligned cost page, preserving no-price default. */
.yyh-cost-page {
  color: #071d33;
}

.yyh-cost-hero {
  padding-top: 38px;
}

.yyh-cost-tool-head {
  text-align: center;
}

.yyh-cost-tool-head .eyebrow {
  display: none;
}

.yyh-cost-tool-head h1 {
  margin-bottom: 10px;
  font-size: 40px;
}

.yyh-cost-tool-head p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: #53687c;
}

.yyh-cost-signal {
  max-width: 760px;
  margin: 26px auto 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yyh-cost-signal div {
  min-height: 104px;
  border-radius: 10px;
}

.yyh-cost-layout {
  align-items: start;
  margin-top: 4px;
}

.yyh-cost-tool,
.yyh-cost-panel {
  border: 1px solid #dfe9f6;
  background: #fff;
}

.yyh-cost-steps {
  display: none;
}

.yyh-cost-grid label {
  border-radius: 10px;
}

.yyh-cost-grid label > span {
  color: #34516d;
}

.yyh-cost-grid select {
  background-color: #fff;
}

.yyh-cost-panel {
  padding: 20px;
}

.yyh-cost-empty-state {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid #dfe9f6;
  border-radius: 12px;
  background:
    radial-gradient(circle at 86% 18%, rgba(11, 93, 204, .1), transparent 120px),
    linear-gradient(180deg, #fff, #f7fbff);
  padding: 28px;
}

.yyh-cost-empty-state:before {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background:
    linear-gradient(#0b5dcc, #0b5dcc) 50% 18px / 24px 4px no-repeat,
    linear-gradient(#0b5dcc, #0b5dcc) 50% 30px / 24px 4px no-repeat,
    #edf5ff;
  box-shadow: inset 0 0 0 1px #cfe0f5;
}

.yyh-cost-empty-state span {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
}

.yyh-cost-empty-state strong {
  max-width: 360px;
  font-size: 25px;
  line-height: 1.35;
}

.yyh-cost-empty-state p {
  max-width: 420px;
  color: #53687c;
}

.yyh-cost-empty-state em {
  border-radius: 999px;
  background: #fff;
}

.yyh-cost-result {
  border-bottom: 1px solid #dfe9f6;
}

.yyh-cost-booking-card {
  border: 0;
  box-shadow: none;
  padding: 20px 0 0;
}

.yyh-cost-selected {
  background: #f7fbff;
  border-color: #dfe9f6;
}

.yyh-cost-booking-card .submit {
  background: #0b5dcc;
}

.yyh-cost-context .section-head h2 {
  color: #071d33;
}

.yyh-cost-doctor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yyh-cost-doctor-card {
  min-height: 0;
}

.yyh-cost-doctor-card p {
  min-height: 48px;
}

.yyh-cost-clinic-card {
  background: #fff;
}

@media (max-width: 1120px) {
  .yyh-cost-tool-head {
    text-align: left;
  }

  .yyh-cost-tool-head p {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .yyh-cost-hero {
    padding-top: 24px;
  }

  .yyh-cost-tool-head h1 {
    font-size: 30px;
  }

  .yyh-cost-tool-head {
    text-align: left;
  }

  .yyh-cost-tool {
    padding: 18px;
  }

  .yyh-cost-panel {
    padding: 16px;
  }

  .yyh-cost-empty-state {
    min-height: 210px;
    padding: 20px;
  }

  .yyh-cost-empty-state strong {
    font-size: 21px;
  }

  .yyh-cost-doctor-grid {
    grid-template-columns: 1fr;
  }
}
