/* Vehicle diagnosis - modern refinement */
.shindan {
  color: #243342;
}

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

.shindanApp {
  max-width: 980px;
  margin: 0 auto 64px;
  border: 1px solid #d9e3ec;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18, 65, 99, .10);
}

/* intro */
.shindanIntro {
  position: relative;
  overflow: hidden;
  padding: 34px 36px 30px;
  text-align: center;
  background: linear-gradient(135deg, #f7fbfe 0%, #edf5fa 100%);
  border-top: 4px solid #176ca8;
}

.shindanIntro::before,
.shindanIntro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shindanIntro::before {
  width: 180px;
  height: 180px;
  top: -110px;
  right: -40px;
  border: 26px solid rgba(23, 108, 168, .06);
}

.shindanIntro::after {
  width: 110px;
  height: 110px;
  left: -44px;
  bottom: -74px;
  background: rgba(23, 108, 168, .05);
}

.shindanIntroLead {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 6px 14px;
  color: #176ca8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  background: rgba(255,255,255,.9);
  border: 1px solid #d3e4f0;
  border-radius: 999px;
}

.shindanIntroLead::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c95c8;
  box-shadow: 0 0 0 4px rgba(44,149,200,.12);
}

.shindanIntro h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: #164f77;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .01em;
}

.shindanIntro > p:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #607281;
  font-size: 14px;
  line-height: 1.7;
}

/* quiz box */
.shindanQuizBox {
  position: relative;
  padding: 30px 38px 34px;
  background: #fff;
}

/* progress */
.shindanProgress {
  max-width: 780px;
  margin: 0 auto 26px;
  padding: 14px 16px 13px;
  background: #f7fafc;
  border: 1px solid #e2e9ef;
  border-radius: 10px;
}

.shindanProgressHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #3b5b72;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

.shindanProgressHead #stepPct {
  color: #176ca8;
  font-size: 13px;
}

.shindanProgressTrack {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: #e5edf3;
  border-radius: 999px;
}

.shindanProgressBar {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #176ca8 0%, #2e98c8 100%);
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(23,108,168,.28);
  transition: width .35s ease;
}

.shindanProgressBar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.38));
}

/* question */
.shindanQuestion {
  position: relative;
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 0 0 13px 18px;
  color: #173f5d;
  font-size: 23px;
  line-height: 1.45;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #e3e9ee;
}

.shindanQuestion::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 2px;
  color: #2b91c1;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

/* options */
.shindanOptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.shindanOption {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 13px 46px 13px 16px;
  color: #30495c;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
  border: 1px solid #d8e1e8;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(28,68,96,.05);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}

.shindanOption::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #7e9aac;
  border-right: 2px solid #7e9aac;
  transform: translateY(-50%) rotate(45deg);
  transition: border-color .18s ease, right .18s ease;
}

.shindanOption:hover {
  color: #176ca8;
  background: #f7fbfe;
  border-color: #8fc2dd;
  box-shadow: 0 7px 17px rgba(23,108,168,.11);
  transform: translateY(-2px);
}

.shindanOption:hover::after {
  right: 14px;
  border-color: #176ca8;
}

.shindanOption.is-selected {
  color: #145e8f;
  background: #eef8fd;
  border-color: #45a0cc;
  box-shadow: inset 3px 0 0 #176ca8, 0 5px 15px rgba(23,108,168,.10);
}

.shindanOptionMark {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 11px;
  border: 1px solid #b7c7d2;
  border-radius: 50%;
  background: #fff;
  transition: border-color .18s ease, background .18s ease;
}

.shindanOptionMark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #2b91c1;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .18s ease, transform .18s ease;
}

.shindanOption:hover .shindanOptionMark,
.shindanOption.is-selected .shindanOptionMark {
  border-color: #2b91c1;
}

.shindanOption.is-selected .shindanOptionMark::after {
  opacity: 1;
  transform: scale(1);
}

.shindanOptionLabel {
  flex: 1;
  font-weight: 600;
}

/* nav */
.shindanNav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.shindanNavBtn {
  min-width: 150px;
  min-height: 42px;
  padding: 9px 18px;
  color: #176ca8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #a9c7d9;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(22,74,107,.05);
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.shindanNavBtn:hover {
  color: #fff;
  background: #176ca8;
  border-color: #176ca8;
  transform: translateY(-1px);
}

/* result */
.shindanResultLead {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 12px;
  color: #173f5d;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
}

.shindanResultLead::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #176ca8, #42a7cf);
  transform: translateX(-50%);
}

.shindanTieNote {
  max-width: 720px;
  margin: -4px auto 16px;
  padding: 9px 13px;
  color: #536b7d;
  font-size: 13px;
  text-align: center;
  background: #f5f9fc;
  border: 1px solid #e1eaf0;
  border-radius: 7px;
}

.shindanResultGrid {
  display: grid;
  gap: 18px;
}

.shindanResultCard {
  display: grid;
  grid-template-columns: minmax(320px, 50%) 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5e0e8;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(18,65,99,.11);
}

.shindanResultPhoto {
  position: relative;
  min-height: 320px;
  background: linear-gradient(145deg, #f4f7f9, #e9f0f4);
}

.shindanResultPhoto::after {
  content: "BEST MATCH";
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  background: rgba(20,88,132,.92);
  border-radius: 4px;
}

.shindanResultPhoto img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  display: block;
}

.shindanResultContent {
  padding: 25px 28px 24px;
}

.shindanResultHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8ed;
}

.shindanResultHead h4 {
  order: 1;
  margin: 0;
  color: #163f5e;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
}

.shindanResultScore {
  order: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  color: #176ca8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #eef7fb;
  border: 1px solid #cde3ef;
  border-radius: 999px;
}

.shindanResultScore strong {
  font-size: 16px;
}

.shindanResultDesc {
  margin: 0 0 14px;
  color: #4d6373;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

.shindanResultData {
  margin: 0 0 8px;
  border-top: 1px solid #e2e8ed;
}

.shindanResultData > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #e2e8ed;
}

.shindanResultData dt {
  padding: 8px 10px 8px 0;
  color: #748592;
  font-size: 12px;
  font-weight: 500;
}

.shindanResultData dd {
  margin: 0;
  padding: 8px 0;
  color: #263f51;
  font-size: 14px;
  font-weight: 600;
}

.shindanResultData .shindanPrice {
  color: #c94d37;
  font-size: 17px;
  font-weight: 700;
}

.shindanPriceNote {
  margin: 6px 0 16px;
  color: #87949e;
  font-size: 10px;
  line-height: 1.5;
}

.shindanResultButtons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.shindanBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  border-radius: 6px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.shindanBtnPrimary {
  color: #fff !important;
  background: linear-gradient(90deg, #176ca8, #207eb7);
  border: 1px solid #176ca8;
  box-shadow: 0 5px 12px rgba(23,108,168,.18);
}

.shindanBtnPrimary:hover {
  color: #fff !important;
  background: #145d91;
  transform: translateY(-1px);
  box-shadow: 0 7px 15px rgba(23,108,168,.24);
}

.shindanBtnSecondary {
  color: #176ca8 !important;
  background: #fff;
  border: 1px solid #8cb8cf;
}

.shindanBtnSecondary:hover {
  color: #fff !important;
  background: #176ca8;
  transform: translateY(-1px);
}

/* secondary candidates */
.shindanSecondArea {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dfe7ed;
}

.shindanSecondArea > h4 {
  margin: 0 0 12px;
  color: #314f64;
  font-size: 16px;
  font-weight: 700;
}

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

.shindanSecondCard {
  display: grid;
  grid-template-columns: minmax(170px, 42%) 1fr;
  min-height: 170px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5eb;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(24,65,92,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shindanSecondCard:hover {
  transform: translateY(-2px);
  border-color: #b4d1e1;
  box-shadow: 0 9px 19px rgba(24,65,92,.10);
}

.shindanSecondPhoto {
  display: block;
  min-height: 170px;
  overflow: hidden;
  background: #edf3f6;
}

.shindanSecondPhoto img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: contain;
  transition: transform .3s ease;
}

.shindanSecondCard:hover .shindanSecondPhoto img {
  transform: scale(1.035);
}

.shindanSecondBody {
  display: flex;
  flex-direction: column;
  padding: 14px 15px 13px;
}

.shindanSecondLabel {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  color: #2b85b0;
  font-size: 10px;
  font-weight: 700;
}

.shindanSecondLabel span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  color: #738592;
  font-weight: 600;
  line-height: 1.2;
  background: #eef7fc;
  border: 1px solid #d6eaf5;
  border-radius: 999px;
}

.shindanSecondBody h5 {
  margin: 0 0 4px;
  color: #193f5a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.shindanSecondModels {
  margin: 0 0 7px;
  color: #566d7d;
  font-size: 12px;
  font-weight: 600;
}

.shindanSecondMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.shindanSecondMeta span {
  padding: 3px 6px;
  color: #577083;
  font-size: 10px;
  background: #f1f6f9;
  border: 1px solid #e0e9ee;
  border-radius: 4px;
}

.shindanSecondDesc {
  margin: 0 0 8px;
  color: #687b89;
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
  flex: 1 1 auto;
}

.shindanSecondBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #176ca8 !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
}

.shindanSecondBtn::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.shindanSecondBtn:hover {
  text-decoration: underline !important;
}

.shindanResultFoot {
  margin: 18px 0 0;
  padding: 12px 15px;
  color: #5c7383;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  background: #f5f9fc;
  border-left: 3px solid #78b5d2;
}

.is-hidden {
  display: none !important;
}

.shindanFade {
  animation: shindanFade .28s ease;
}

@keyframes shindanFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 900px) {
  .shindanResultCard {
    grid-template-columns: 50% 1fr;
  }

  .shindanSecondGrid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .shindanApp {
    margin-bottom: 45px;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 8px 24px rgba(18,65,99,.08);
  }

  .shindanIntro {
    padding: 25px 16px 23px;
  }

  .shindanIntroLead {
    margin-bottom: 9px;
    padding: 5px 11px;
    font-size: 11px;
  }

  .shindanIntro h3 {
    margin-bottom: 7px;
    font-size: 20px;
  }

  .shindanIntro > p:last-child {
    font-size: 12px;
    line-height: 1.65;
  }

  .shindanQuizBox {
    padding: 20px 14px 24px;
  }

  .shindanProgress {
    margin-bottom: 20px;
    padding: 11px 12px;
  }

  .shindanQuestion {
    margin-bottom: 15px;
    padding: 0 0 11px 17px;
    font-size: 18px;
  }

  .shindanOptions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .shindanOption {
    min-height: 58px;
    padding: 11px 40px 11px 13px;
    font-size: 14px;
    border-radius: 7px;
  }

  .shindanOptionMark {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
    margin-right: 9px;
  }

  .shindanOptionMark::after {
    inset: 4px;
  }

  .shindanNav {
    margin-top: 16px;
  }

  .shindanNavBtn {
    min-width: 128px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .shindanResultLead {
    margin-bottom: 15px;
    font-size: 18px;
  }

  .shindanResultCard {
    display: block;
    border-radius: 9px;
  }

  .shindanResultPhoto,
  .shindanResultPhoto img {
    min-height: 0;
    height: auto;
  }

  .shindanResultPhoto img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .shindanResultContent {
    padding: 18px 16px 17px;
  }

  .shindanResultHead {
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .shindanResultHead h4 {
    font-size: 20px;
  }

  .shindanResultScore {
    padding: 4px 7px;
    font-size: 9px;
  }

  .shindanResultScore strong {
    font-size: 14px;
  }

  .shindanResultDesc {
    margin-bottom: 11px;
    font-size: 12px;
  }

  .shindanResultData > div {
    grid-template-columns: 84px 1fr;
    min-height: 38px;
  }

  .shindanResultData dt {
    font-size: 11px;
  }

  .shindanResultData dd {
    font-size: 12px;
  }

  .shindanResultData .shindanPrice {
    font-size: 15px;
  }

  .shindanResultButtons {
    grid-template-columns: 1fr;
  }

  .shindanBtn {
    min-height: 44px;
    font-size: 12px;
  }

  .shindanSecondArea {
    margin-top: 20px;
    padding-top: 16px;
  }

  .shindanSecondArea > h4 {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .shindanSecondCard {
    display: block;
    min-height: 0;
  }

  .shindanSecondPhoto,
  .shindanSecondPhoto img {
    min-height: 0;
    height: auto;
  }

  .shindanSecondPhoto img {
    width: 100%;
    object-fit: contain;
  }

  .shindanSecondBody {
    padding: 10px 11px 10px;
  }

  .shindanSecondLabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 4px;
  }

  .shindanSecondLabel span {
    display: inline-flex;
    margin-top: 0;
    padding: 4px 7px;
    font-size: 10px;
  }

  .shindanSecondBody h5 {
    margin-bottom: 2px;
    font-size: 14px;
  }

  .shindanSecondModels {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .shindanSecondMeta {
    margin-bottom: 5px;
  }

  .shindanSecondDesc {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
  }

  .shindanResultFoot {
    margin-top: 15px;
    padding: 10px 11px;
    font-size: 11px;
    text-align: left;
  }
}
