/* =============================================================
  인실별 최저가 사무실 이벤트
  --------------------------------------------------------------
  관련 파일 :
    contact/lowest_price.php 
    event/251020_lowest_price.php
    event/251020_lowest_price_30over.php
  작성자    : jh.roh
  작성일    : 2025-10-27
  수정일    :
============================================================= */

@charset "UTF-8";

[class*=lowest_price] {
  --global-font-color : #222;
  --c_violet : #A36EFF;
  --c_purple : #7D59FF;
  --title-h2 : 52px;
  --title-h3 : 40px;
  --title-h4 : 34px;
  --text-p1 : 24px;
  --text-p2 : 20px;
  --text-p3 : 18px;
  --text-p4 : 14px;
  --text-p5 : 12px;
}

ul, li {
  list-style : none;
}
h1, h2, h3, h4, h5, h6, body {
  color : var(--global-font-color);
}
._white :where(h1, h2, h3, h4, h5, h6, p) {
  color : #fff;
}
.c_primary {
  color : var(--c_violet);
}
.title_h3 {
  font-size: var(--title-h3);
}

/* ================= 공통 START */

[class*=lowest_price] .inner {
  display: flex;
  gap : 20px;
  max-width : 1240px;
  justify-content: space-between;
  margin : 0 auto;
}
.chat {
  --chat_bg : #E6DEF9;
  --chat_left : calc(50% - 6px);
  position: relative;
  min-height : 35px;
  padding : 6px 20px;
  background: var(--chat_bg);
  color: var(--c_purple);
  font-size: var(--text-p4);
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
}
.chat::after {
  position: absolute;
  top : 100%; left : var(--chat_left);
  width : 12px;
  height : 10px;
  display: inline-block;
  background : var(--chat_bg);
  mask: url("img/chat_tail.svg") no-repeat;
  -webkit-mask : url("img/chat_tail.svg") no-repeat;
  content:"";
}
.chat._top::after {
  top : auto;
  bottom: 100%;
  transform: rotate(180deg);
}

/* ================= 공통 END */

/* ================= 컨텍 START */
.lowest_price_contact {
  min-height : calc(100vh - 413px);
  padding : 80px 20px 100px;
  position: relative;
}
.lowest_price_contact::before {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width : 100%;
  height : 100%; 
  display: inline-block;
  background: linear-gradient(180deg, #000000 0%, #20003F 50%, #20003F 100%);
  content : "";
  z-index: -1;
}
.lowest_price_contact .chat {
  --chat_bg : #fff;
  --chat_left : 20px;
  font-size: var(--text-p3);;
  font-weight: 500;
  color : var(--global-font-color);
}
.lowest_price_contact .bg {
  position: absolute;
  left: 50%; 
  bottom: 0;
  transform: translateX(-50%);
  width : 922px;
  height : 528px;
  margin-left : -744px;
  background: url(img/contact-bg@1x.png) no-repeat center / cover;
  z-index: -1;
}
.lowest_price_contact .bg::before,
.lowest_price_contact .bg::after {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width : 18px;
  height : 238px;
  margin-top:200px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: inline-block;
  transform-origin: center calc(100% - 20px);
  mix-blend-mode: luminosity;
  -webkit-mix-blend-mode: luminosity;
  content:"";
}
.lowest_price_contact .bg::before { /* 시침 */
  background-image: url(img/clock_h_pc.svg);
  animation: clock 6s steps(10, end) infinite;
  animation-delay: -10s
}
.lowest_price_contact .bg::after { /* 분침 */
  background-image: url(img/clock_m_pc.svg);
  animation: clock 3s steps(10, end) infinite;
  animation-delay: -3s; /* 음수로 즉시 진행중처럼 */
}
@keyframes clock {
  0% {transform: translate(-50%, -50%) rotate(0deg);}
  50% {transform: translate(-50%, -50%) rotate(90deg);} /* 하반부 안보임 */
  51% {transform: translate(-50%, -50%) rotate(270deg);} /* 바로 좌측으로 점푸 */
  100% {transform: translate(-50%, -50%) rotate(360deg);}
}

.lowest_price_contact header p {
  margin: 16px 0 40px;
  font-size: var(--text-p3);
}
.list_benefit {
  padding : 23px 0;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.4);
  background: #0E001B;
  display: flex;
}
.list_benefit li {
  width : 33.333%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.list_benefit li::before {
  width : 38px;
  height : 38px;
  margin-bottom: 4px;
  background-repeat: no-repeat;
  background-position: center;
  background-size : 100%;
  content:""; 
}
.list_benefit li ~ li {
  border-left: 1px solid rgba(255,255,255,0.4);
}
.list_benefit li:nth-child(1)::before {
  background-image: url(img/contact-icon_benefit_1.svg);
}
.list_benefit li:nth-child(2)::before {
  background-image: url(img/contact-icon_benefit_2.svg);
}
.list_benefit li:nth-child(3)::before {
  background-image: url(img/contact-icon_benefit_3.svg);
}
.list_benefit span {
  color: #fff;
  font-size: var(--text-p4);
  font-weight: 600;
}
.list_benefit h5 {
  font-size: var(--text-p1);;
  color: var(--c_violet);
  font-weight: 700;
}
.lowest_price_contact .chat {
  margin-bottom: 18px;
  padding : 2px 16px;
}
.lowest_price_contact .list_info li {
  font-size: var(--text-p5);
  font-weight: 700;
  color :rgba(255,255,255,0.8);
}
.lowest_price_contact .contact-box {
  width : 626px;
  padding : 40px 30px 56px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  justify-content: center;
}
.lowest_price_contact .leadforms_box {
  width : 458px;
}
.required_marketing_text {
  color: var(--c_purple);
  text-align: center;
  font-size: var(--text-p5);
  font-weight: 500;
  margin-top: 18px;
  letter-spacing: 0; 
}

/* 폼 스타일 초기화 + 스타일 덮기 */
[class*=lowest_price] .btn_event_cta::after {
  margin-left: 0;
}
.lowest_price_contact div.wpforms-container-full:not(:empty) {
  margin: 0;
}
.lowest_price_contact .leadforms_box .wpforms-field-container {
  padding : 0 !important;
}
.lowest_price_contact div.wpforms-container-full .wpforms-form input.wpforms-field-medium {
  border-radius: 0;
}
.lowest_price_contact .leadforms_box .wpforms-submit-container {
  padding: 40px 0 0 !important;
  border : none !important;
}
.lowest_price_contact div.wpforms-container-full .wpforms-form button[type=submit] {
  border-top: none;
}
.lowest_price_contact .wpforms-container .bt-submit {
  line-height: 1.2 !important;
}
.lowest_price_contact .wpforms-container .bt-submit:disabled {
  background-color: #d9d9d9 !important;
}
.lowest_price_contact .wpforms-container .bt-submit:not(:disabled),
.check_round input:checked + label::after,
.check_small input:checked + label::after {
  background-color: var(--c_purple) !important;
}
.check_round input:checked + label::after {
  border-color: var(--c_purple) !important;
}

/* ================= 컨텍 페이지 + 공통 END */

/* ================= 결과 페이지 START */
.btn_event_cta {
  --btn-cta_bg: var(--c_purple);
  --btn-cta_color: #fff;
  --btn-cta_hover_bg : #322466;
  --btn-cta_hover_color : #fff;
}

.lowest_price_submit {
  min-height : calc(100vh - 413px);
  background : #F1F2F8;
  padding-right : 20px;
  padding-bottom: 180px;
  padding-left : 20px;
}
.lowest_price_submit header {
  min-width : 370px;
  padding-top: 80px;
}
.lowest_price_submit header h3 {
  font-size: var(--title-h2);;
  color :#000;
}
.lowest_price_submit header p {
  margin : 32px 0 8px;
}
.lowest_price_submit header p + span {
  margin-bottom: 40px;
  font-size: var(--text-p4);
  font-weight: 400;
  opacity: 0.5;
  display: block;
}
.lowest_price_submit .chat {
  margin: 10px auto 48px;
  padding : 6px 20px;
  font-weight: 700;
  line-height: 1.7;
  font-size: var(--text-p4);
  letter-spacing: 0;
}
.result_lowest_price._ticket {
  position: relative;
  width : 640px;
  text-align: center;
  padding-bottom: 340px;
  background : linear-gradient(180deg, #fff 70%, transparent 70%); 
  box-shadow: 0 60px 40px 0 rgba(0, 0, 0, 0.03), 0 44px 44px 0 rgba(0, 0, 0, 0.05), 0 11px 24px 0 rgba(0, 0, 0, 0.06);;
  transform: translateY(-150px);
  animation : 0.7s print_ticket forwards;
}
._ticket .title {
  padding : 80px 40px 16px;
}
._ticket .title h3 {
  border-top: 2px solid #222;
  padding-top: 24px;
  margin-bottom: 4px;
}
._ticket .title p {
  font-weight: 700;
  font-size: var(--text-p3);
}
._ticket .title p span {
  color:#aaa;
  font-weight: 600;
}
._ticket .title h2 {
  padding-bottom: 24px;
  margin-top: 6px;
  font-size: var(--title-h2);;
  line-height: 70px;
  color: var(--c_purple);
  border-bottom: 2px solid #222;
}
._ticket::after {
  position:absolute;
  top: 400px; right: 0; left: 0;
  width : 100%;
  height : 360px;
  display: inline-block;
  background:var(--ticket_bg) no-repeat center / auto 100%;
  mask : url(img/ticket_bg_pc.svg) repeat-x left / auto 100%;
  -webkit-mask : url(img/ticket_bg_pc.svg) repeat-x left / auto 100%;
  content: "";
}
.soldout._ticket::after {
  top : 424px;
}
@keyframes print_ticket {
  100% {transform: translateY(0); }
}

/* ================= 결과 페이지 END */

/* ================= 결과 30인 이상 START */
.lowest_price_submit._30over .inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap : 24px;
}
.lowest_price_submit._30over header p {
  margin : 14px 0 48px;
}
.lowest_price_submit._30over .chat {
  margin : 0 0 10px;
}
.lowest_price_submit._30over .branch_list {
  max-width: 1064px;
  animation : none;
  opacity: 1;
  transform: none;
}
.branch_list li {
  border-radius: 16px;
  border:1px solid #E6EAF0;
  transition: 0.2s;
}
.branch_list .btn_shape {
  background: var(--c_purple);
  transition: 0.2s;
}
.branch_list li:hover {
  /* border:none; */
}
.branch_list li > a:hover .btn_shape {
  background: #322466;
}
.branch_list .branch_info {
  background-color :#fff;
  padding : 16px 0 24px;
}
.branch_info ._info > span{
  font-size: var(--text-p3);;
  font-weight: 700;
}
.branch_info ._info > span:has(em) {
  color: var(--c_purple);
}
.branch_info ._info > span em {
  color: #777;
  opacity: 1;
}
.branch_info .details > span {
  background: #f3f3f3;
  border-radius: 8px;
  color:#777;
  font-size: var(--text-p4);
  font-weight: 500;
}

/* ================= 결과 30인 이상 END */

@media screen and (max-width : 960px) { 
  
  [class*=lowest_price] {
    --title-h2 : 28px; 
    --title-h3 : 28px;
    --title-h4 : 24px;
    --text-p1 : 20px;
    --text-p2 : 16px;
    --text-p3 : 16px;
    --text-p4 : 12px;
  }
  .hidden_pc {
    display: block;
  }
  .hidden_mo {
    display: none;
  }
  .chat {
    font-size: var(--text-p4);
  }

  /* contact */
  .lowest_price_contact {
    padding : 40px 20px;
  }
  .lowest_price_contact::before {
    background: linear-gradient(180deg, #000000 0%, #20003F 40%, #20003F 100%);
  }
  .lowest_price_contact .inner {
    max-width : 335px;
    flex-direction: column;
    gap : 0;
  }
  .lowest_price_contact header {
    text-align: center;
  }
  .lowest_price_contact header h3 {
    font-size: 28px;
  }
  .lowest_price_contact header p {
    margin: 10px 0 100px;
  }
  .lowest_price_contact .chat {
    --chat_left : calc(50% - 6px);
    min-height: 27px;
    margin-bottom: 16px;
    font-size: 16px;
  }
  .list_benefit {
    padding : 20px 0;
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    border-bottom-color:transparent;
  }
  .list_benefit li ~ li {
    border-left-color : rgba(255,255,255,0.2);
  }
  .list_benefit span {
    line-height: 20px;
  }
  .list_benefit h5 {
    line-height: 28px;
  }
  .list_info {
    background:#0E001B;
    border-left: 1px solid rgba(255,255,255,0.4);
    border-right: 1px solid rgba(255,255,255,0.4);
  }
  .lowest_price_contact .list_info {
    padding-bottom: 20px;
  }
  .lowest_price_contact .list_info li {
    color : rgba(255,255,255,0.5);
  }
  .lowest_price_contact .contact-box,
  .lowest_price_contact .leadforms_box,
  .form-box {
    width : 100%; 
  }
  .lowest_price_contact .leadforms_box .wpforms-submit-container {
    padding: 52px 0 0 !important;
  }
  .lowest_price_contact .contact-box {
    padding: 30px 30px 40px;
    border-radius: 0 0 16px 16px;
  }
   .lowest_price_contact .leadforms_box {
    --c_purple : var(--c_violet);
  }
  .lowest_price_contact .bg {
    top: 186px;
    bottom: auto;
    width : 268px;
    height : 153px;
    margin:0;
    background: url(img/contact-bg_mo@1x.png) no-repeat center bottom / 100%;
  }
  .lowest_price_contact .bg::before, 
  .lowest_price_contact .bg::after {
    width : 6px;
    height : 70px;
    margin-top : 58px;
  }
  .lowest_price_contact .bg::before {
    background-image: url(img/clock_h_mo.svg);
    transform-origin : center bottom;
  }
  .lowest_price_contact .bg::after {
    background-image: url(img/clock_m_mo.svg);
    margin-top : 63px;
    transform-origin : center calc(100% - 5px);
  }
  .lowest_price_contact .has_error:not(.check_round) {
    top : calc(100% + 16px) !important;
  }
  .lowest_price_contact form .wpforms-error:not(input) {
    top : 64px !important;
  }
  .lowest_price_contact div.wpforms-container-full .wpforms-form .wpforms-field-label {
    font-size: 16px !important;
  }

  /* submit */
  .lowest_price_submit {
    padding-bottom: 80px;
  }
  .lowest_price_submit:not(._30over) .inner {
    max-width : 335px;
    flex-direction: column;
    gap : 0;
    align-items: center;
    text-align: center;
    background :#fff;
    box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.03), 0 18px 18px 0 rgba(0, 0, 0, 0.05), 0 8px 8px 0 rgba(0, 0, 0, 0.06);
    transform: translateY(-200px);
    animation : 1.5s print_ticket forwards;
  }
  .lowest_price_submit header {
    padding-top: 40px;
    min-width: initial;
  }
  .lowest_price_submit header h3 {
    font-size: 28px;
    color:#222;
  }
  .lowest_price_submit header p {
    margin: 12px 0 6px;
  }
 
  .lowest_price_submit .result_lowest_price._ticket {
    animation: none;
    transform: translate(0);
    width : 100%;
    box-shadow: none;
    padding-bottom: 220px;
  }
  ._ticket .title {
    margin : 0 0 12px;
    padding: 0;
  }
  ._ticket .title h3 {
    margin-bottom: 0;
    padding-top: 14px;
    border-top-width : 1px;
    font-size: var(--text-p1);;
    line-height: 34px;
  }
  ._ticket .title p {
    font-size: 16px;
    font-weight: 600;
    line-height: 27px;
  }
  ._ticket .title h2 {
    padding-bottom: 14px;
    border-bottom-width :1px;
    font-size: var(--title-h3);;
    line-height: 48px;
  }
  ._ticket .chat {
    line-height: 1.7;
    font-size: var(--text-p5);
    margin-bottom: 0;
  }
  ._ticket::after {
    top: 241px;
    height : 220px;
    mask-image: url(img/ticket_bg_mo.svg);
  }
  .soldout._ticket::after {
    top : 268px;
  }
  .btn_wrap {
    margin: 56px auto 0;
    text-align: center;
    --btn-cta_width : 242px;
  }
  /* submit over 30 */
  .lowest_price_submit._30over .branch_list {
    max-width : 460px;
  }
  .branch_list li {
    opacity: 1;
    transform: none;
    border-radius: 8px;
  }
  .branch_list .branch_info {
    padding : 8px 0 14px;
  }
  .branch_info ._info > span {
    font-size: 14px;
  }
  .branch_info .details > span {
    border-radius: 4px;
    font-weight: 500;
  }
}