﻿/* ── 申辦步驟（手機）< 768px ── */
.cont section.steps {
  position: relative;
  width: 100%;
}

.cont section.steps .section_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  position: relative;
}

/* ── 手機框區塊 ── */
.cont section.steps .img_wrap {
  margin: 0;
  order: 2;
  width: 280px;
}

.cont section.steps .step_phone {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 255px 540px;
  margin: 0 auto;
  width: 279px;
}

/* ── 步驟內容區 ── */
.cont section.steps .step_wrap {
  order: 1;
  position: relative;
  width: 100%;
}

.cont section.steps .step_line {
  background-color: var(--deco-divider);
  height: 5px;
  margin: 80px auto 90px;
  position: relative;
  width: 250px;
}

.cont section.steps .copy_text {
  display: block;
  font-size: var(--fs-base);
  left: 50%;
  line-height: 20px;
  margin: 50px auto 0;
  position: absolute;
  text-align: center;
  top: 35%;
  transform: translateX(-50%);
  width: 54%;
}

.cont section.steps .step_status {
  left: -9999px;
  position: absolute;
}

/* ── 步驟清單與互動 ── */
.cont section.steps .step_list {
  display: none;
  justify-content: space-between;
  left: 50%;
  margin: -12px 0 0;
  position: absolute;
  top: 80px;
  transform: translateX(-50%);
  width: 270px;
  z-index: 0;
}

.cont section.steps .step_list.active {
  display: flex;
}

.cont section.steps .step_list li {
  position: relative;
}

.cont section.steps .step_trigger {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  transition: transform 0.25s ease;
}

.cont section.steps .step_icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30.283 29.129'%3E%3Cpath d='M17.492,0l5.831,10.085L17.492,20.171H5.831L0,10.085,5.831,0Z' transform='translate(20.198 29.129) rotate(-150)' fill='%23939393' stroke='%23EFEFEF' stroke-width='2px'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  display: block;
  height: 29px;
  margin-right: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
  width: 30px;
}

.cont section.steps .step_trigger.now_step .step_icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30.283 29.129'%3E%3Cpath d='M17.492,0l5.831,10.085L17.492,20.171H5.831L0,10.085,5.831,0Z' transform='translate(20.198 29.129) rotate(-150)' fill='%23ff6700' stroke='%23EFEFEF' stroke-width='2px'/%3E%3C/svg%3E");
}

.cont section.steps .step_text {
  opacity: 0.3;
  transition: opacity 0.25s ease;
  width: 40%;
}

.cont section.steps .step_trigger.now_step .step_text {
  opacity: 1;
}

.cont section.steps .step_trigger.now_step .step_label {
  color: var(--color-h4);
  font-weight: 700;
}

@media (hover: hover) {
  .cont section.steps .step_trigger:hover {
    transform: translateY(-2px);
  }

  .cont section.steps .step_trigger:hover .step_text {
    opacity: 0.9;
  }

  .cont section.steps .step_trigger:hover .step_icon {
    filter: drop-shadow(0 6px 12px rgba(255, 103, 0, 0.28));
    transform: scale(1.08);
  }

  .cont section.steps .step_trigger.now_step:hover .step_text {
    opacity: 1;
  }
}

.cont section.steps .step_trigger:focus-visible {
  outline: 2px solid rgba(0, 45, 108, 0.35);
  outline-offset: 3px;
}

.cont section.steps .step_label {
  bottom: auto;
  color: var(--color-h3);
  font-size: var(--fs-h3);
  font-weight: 500;
  left: 0;
  margin-bottom: 0;
  margin-left: -10px;
  margin-top: -35px;
  position: absolute;
  right: auto;
  top: 0;
  white-space: nowrap;
}

.cont section.steps .step_desc {
  display: none;
}

/* ── 前後步按鈕 ── */
.cont section.steps .step_btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  padding: 0;
  position: absolute;
  top: 36%;
  width: 100px;
  z-index: 10;
}

.cont section.steps .prev_btn {
  left: 0;
  transform: translate(-50%, 50%);
}

.cont section.steps .next_btn {
  display: block;
  right: 0;
  transform: translate(50%, 50%);
}

.cont section.steps .step_note {
  color: var(--text-primary);
  font-size: var(--fs-base);
  text-align: center;
}

/* ── 申辦步驟（平板以上）>= 768px ── */
@media screen and (min-width: 768px) {
  .cont section.steps .section_container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 0;
  }

  .cont section.steps .img_wrap {
    order: 0;
    padding-top: 10px;
  }

  .cont section.steps .step_phone {
    margin: 0;
  }

  .cont section.steps .step_wrap {
    order: 0;
    padding-top: 48px;
    position: relative;
    width: 50%;
  }

  .cont section.steps .step_list.active {
    display: flex;
    flex-direction: column;
  }

  .cont section.steps .step_line {
    background-color: var(--deco-divider);
    height: 405px;
    left: 0;
    margin: 65px 0 0 13px;
    position: absolute;
    top: 0;
    width: 3px;
  }

  .cont section.steps .copy_text {
    display: none;
  }

  .cont section.steps .step_list {
    display: block;
    left: 0;
    margin-top: 48px;
    position: absolute;
    top: 0;
    transform: none;
    width: 700px;
    z-index: 1;
  }

  .cont section.steps .step_list li {
    margin-bottom: 48px;
    position: static;
  }

  .cont section.steps .step_trigger {
    align-items: flex-start;
    flex-direction: row;
  }

  .cont section.steps .step_icon {
    margin-right: 30px;
  }

  .cont section.steps .step_text {
    width: 50%;
  }

  .cont section.steps .step_label {
    font-size: var(--fs-h3);
    margin-bottom: 10px;
    margin-left: 0;
    margin-top: 0;
    position: static;
    text-align: left;
    white-space: normal;
  }

  .cont section.steps .step_desc {
    display: block;
    margin: 16px 0 24px;
  }

  .cont section.steps .step_btn {
    top: 27%;
    width: 150px;
    z-index: 3;
  }
}

/* ── 超寬螢幕（Desktop XL）>= 1440px ── */
@media screen and (min-width: 1440px) {
  .cont section.steps .step_wrap {
    width: 56%;
  }

  .cont section.steps .step_list {
    width: 760px;
  }

  .cont section.steps .step_text {
    width: 56%;
  }
}
