/* MYTRIPPOR — 02 REFRAME enhancements */
.mp-reframe h2{
  word-break:keep-all;
  overflow-wrap:normal;
}

.mp-reframe h2 span{
  color:#dfe9e4;
}

.mp-decision-flow{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:72px;
  border-top:1px solid rgba(244,239,230,.16);
  border-bottom:1px solid rgba(244,239,230,.16);
}

.mp-decision-flow::before{
  content:'';
  position:absolute;
  left:5%;
  right:5%;
  top:38px;
  height:1px;
  background:linear-gradient(90deg,rgba(223,233,228,.2),rgba(223,233,228,.68),rgba(223,233,228,.2));
  pointer-events:none;
}

.mp-flow-step{
  position:relative;
  z-index:1;
  min-height:210px;
  padding:58px 34px 34px 0;
  outline:none;
  transition:transform .26s ease,background-color .26s ease,box-shadow .26s ease,opacity .26s ease;
}

.mp-flow-step + .mp-flow-step{
  padding-left:36px;
  border-left:1px solid rgba(244,239,230,.12);
}

.mp-flow-step:not(:last-child)::after{
  content:'→';
  position:absolute;
  right:-18px;
  top:20px;
  z-index:2;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(223,233,228,.34);
  border-radius:50%;
  background:#17382f;
  color:#e9f0ec;
  font-family:Inter,'Noto Sans KR',sans-serif;
  font-size:18px;
  line-height:1;
}

.mp-flow-step small{
  display:block;
  margin-bottom:24px;
  font-family:Inter,'Noto Sans KR',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  color:rgba(223,233,228,.54);
}

.mp-flow-step strong{
  display:block;
  margin-bottom:22px;
  font-family:Inter,'Noto Sans KR',sans-serif;
  font-size:clamp(30px,2.9vw,46px);
  line-height:1.03;
  letter-spacing:-.035em;
  font-weight:800;
  color:#f4efe6;
  transition:color .26s ease,text-shadow .26s ease,transform .26s ease;
}

.mp-flow-step span{
  display:block;
  max-width:290px;
  font-size:15px;
  line-height:1.75;
  font-weight:500;
  color:rgba(223,233,228,.8);
  word-break:keep-all;
  transition:color .26s ease,transform .26s ease;
}

.mp-flow-step small,
.mp-flow-step::after{
  transition:color .26s ease,border-color .26s ease,background-color .26s ease,box-shadow .26s ease,transform .26s ease;
}

@media (hover:hover) and (pointer:fine){
  .mp-decision-flow:hover .mp-flow-step{
    opacity:.58;
  }

  .mp-decision-flow .mp-flow-step:hover,
  .mp-decision-flow .mp-flow-step:focus-visible,
  .mp-decision-flow:focus-within .mp-flow-step:focus-visible{
    z-index:5;
    opacity:1;
    transform:translateY(-8px) scale(1.02);
    background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(217,154,83,.025));
    box-shadow:0 24px 54px rgba(4,12,10,.24),0 0 0 1px rgba(223,233,228,.18);
  }

  .mp-decision-flow .mp-flow-step:hover strong,
  .mp-decision-flow .mp-flow-step:focus-visible strong{
    color:#fffaf0;
    text-shadow:0 8px 28px rgba(0,0,0,.24);
    transform:translateY(-1px);
  }

  .mp-decision-flow .mp-flow-step:hover span,
  .mp-decision-flow .mp-flow-step:focus-visible span{
    color:#eef4f0;
    transform:translateY(-1px);
  }

  .mp-decision-flow .mp-flow-step:hover small,
  .mp-decision-flow .mp-flow-step:focus-visible small{
    color:#d99a53;
  }

  .mp-decision-flow .mp-flow-step:hover::after,
  .mp-decision-flow .mp-flow-step:focus-visible::after{
    color:#17382f;
    background:#e9dfcf;
    border-color:#d99a53;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
    transform:translateX(3px);
  }

  .mp-decision-flow:has(.mp-flow-step:nth-child(2):hover) .mp-flow-step:nth-child(1)::after,
  .mp-decision-flow:has(.mp-flow-step:nth-child(2):focus-visible) .mp-flow-step:nth-child(1)::after,
  .mp-decision-flow:has(.mp-flow-step:nth-child(3):hover) .mp-flow-step:nth-child(2)::after,
  .mp-decision-flow:has(.mp-flow-step:nth-child(3):focus-visible) .mp-flow-step:nth-child(2)::after{
    color:#17382f;
    background:#e9dfcf;
    border-color:#d99a53;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
  }
}

.mp-decision-flow:focus-within .mp-flow-step{
  opacity:.58;
}

.mp-decision-flow:focus-within .mp-flow-step:focus-visible{
  opacity:1;
}

@media (prefers-reduced-motion:reduce){
  .mp-flow-step,
  .mp-flow-step strong,
  .mp-flow-step span,
  .mp-flow-step small,
  .mp-flow-step::after{
    transition:none!important;
  }
  .mp-decision-flow .mp-flow-step:hover,
  .mp-decision-flow .mp-flow-step:focus-visible{
    transform:none!important;
  }
}

@media(max-width:900px){
  .mp-decision-flow{
    grid-template-columns:1fr;
  }
  .mp-decision-flow::before{
    display:none;
  }
  .mp-flow-step,
  .mp-flow-step + .mp-flow-step{
    min-height:auto;
    padding:36px 0;
    border-left:0;
  }
  .mp-flow-step + .mp-flow-step{
    border-top:1px solid rgba(244,239,230,.12);
  }
  .mp-flow-step:not(:last-child)::after{
    content:'↓';
    right:auto;
    left:0;
    top:auto;
    bottom:-18px;
  }
}
