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

  2026-03-25 추가 : 컨택트 페이지 리뉴얼
  데스크탑 961 - 1080 사이즈 이슈로 1100px 미디어쿼리 추가
  - 지점 목록 영역은 960px 이 아닌 1100px부터 모바일 화면으로 진입
============================================================= */

@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 {
  position: relative;
  min-height : calc(100vh - 413px);
  padding : 80px 20px 100px;
  background: linear-gradient(0deg, #F1F2F8 0%, #F1F2F8 100%), linear-gradient(0deg, #FAFADC 0%, #FAFADC 100%), #F0F0E9;
}
.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 .contact-box {
  width : 100%;
  max-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; 
  line-height: 1.7;
}

/* 폼 스타일 초기화 + 스타일 덮기 */
[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 {
  max-width: 100% !important;
  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;
}

/* 20260324 추가 */
.lowest_price_contact .chat {
  padding: 0 16px;
}
.lowest_price_content {
  --default-color: #121212;
  --content-gap: 20px;
  width: 100%;
  max-width: 570px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lowest_price_content > header {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}
.lowest_price_content > header .title_h3 {
  line-height: 1.4;
  letter-spacing: -1px;
  font-weight: 700;
  color: var(--default-color);
}
.lowest_price_content > header .title_h3 strong {
  color: var(--c_purple);
  display: block;
}
.lowest_price_content > header p:not(._bottom) {
  font-size: var(--text-p3);
  font-weight: 400;
  color: #444;
  line-height: 1.7;
}
.lowest_price_content > header ._bottom {
  --chat_bg: #121212;
  max-width: fit-content;
  color: #fff;
  background-color: var(--default-color);
  order: -1;
}
.lowest_price_content .list_info {
  font-size: var(--text-p5);
  color: #777;
  line-height: 1.7;
}

/* 인실별 최저가 스포트라이트 */
.lowest_price_spotlight {
  position: relative;
  width: calc(100% + var(--content-gap) * 2);
  margin: 0 calc(var(--content-gap) * -1);
  padding: 0 var(--content-gap);
  overflow: hidden;
}
.lowest_price_spotlight::before,
.lowest_price_spotlight::after {
  position: absolute;
  width: 100%;
  background: linear-gradient(180deg, rgba(241, 242, 248, 0.00) 0%, #F1F2F8 100%);
  display: block;
  content: "";
  z-index: 1;
}
.lowest_price_spotlight::before {
  top: 0;
  transform: rotate(180deg);
}
.lowest_price_spotlight::after {
  bottom: 0;
  transform: rotate(0deg);
}

.lowest_price_spotlight .spotlight_heading {
  display: none;
}
.lowest_price_spotlight .spotlight_grid {
  max-height: 100%;
  margin: 0 calc(var(--content-gap) * -1);
  padding: 0 var(--content-gap);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
@keyframes spotlightRolling {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, calc(var(--rolling-height, 0px) * -1), 0); }
}
.lowest_price_spotlight .rolling_wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  will-change: transform;
  animation: spotlightRolling var(--rolling-duration, 1s) linear infinite;
}
.lowest_price_spotlight .spotlight_grid::-webkit-scrollbar {
  display: none;
}
.lowest_price_spotlight .spotlight_card {
  margin: 0;
  width: 100%;
  justify-self: center;
}
.lowest_price_spotlight .spotlight_card_box {
  width: 100%;
  height: 100%;
  background: #fff;
  color: var(--global-font-color);
  display: flex;
  align-items: flex-start;
}
.lowest_price_spotlight .spotlight_content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lowest_price_spotlight .spotlight_thumb {
  background: #eee;
  display: block;
  overflow: hidden;
}
.lowest_price_spotlight .spotlight_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lowest_price_spotlight .spotlight_name {
  font-weight: 700;
  line-height: 1.7;
  color: var(--global-font-color);
}
.lowest_price_spotlight .spotlight_price {
  font-weight: 700;
  line-height: 1.1;
  color: var(--c_purple);
}
.lowest_price_spotlight .spotlight_detail {
  line-height: 1.5;
  font-weight: 500;
  color: #777;
}
.lowest_price_spotlight .spotlight_detail_suffix {
  color: #aaa;
}

/* ================= 컨텍 페이지 + 공통 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 .inner {
  gap: 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-color: #d6dbe2;
}
.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;
}
.rolling_wrapper {
  will-change: transform;
}

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

@media (min-width: 961px) {
  .lowest_price_contact .chat {
    margin-bottom: 12px;
  }
  .lowest_price_content {
    padding-right: var(--content-gap);
  }
  .lowest_price_content > header .title_h3 {
    font-size: 40px;
  }
  .lowest_price_content > header p:not(._bottom) {
    margin-top: 16px;
  }
  .lowest_price_content .list_info {
    font-size: var(--text-p5);
  }
  .lowest_price_spotlight {
    height: 290px;
  }
  .lowest_price_spotlight::before,
  .lowest_price_spotlight::after {
    height: 24px;
  }
  .lowest_price_spotlight .spotlight_grid {
    max-width: 590px;
  }
  .lowest_price_spotlight .rolling_wrapper {
    gap: 10px;
  }
  .lowest_price_spotlight .spotlight_card_box {
    padding: 10px;
    border-radius: 12px;
    box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.08);
    gap: 8px;
  }
  .lowest_price_spotlight .spotlight_thumb {
    width: 104px;
    border-radius: 8px;
    aspect-ratio: 104 / 80;
  }
  .lowest_price_spotlight .spotlight_name {
    font-size: 16px;
  }
  .lowest_price_spotlight .spotlight_price {
    font-size: 22px;
  }
  .lowest_price_spotlight .spotlight_detail {
    margin-top: 9px;
    font-size: 12px;
  }

  .check_small label {
    font-size: 14px !important;
  }
}

@media (max-width: 1100px) {
  /* 20260324 추가 */
  .lowest_price_contact {
    padding: 80px 20px;
  }
  .lowest_price_spotlight .rolling_wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 270px;
  }
  .lowest_price_spotlight {
    height: 242px;
  }
  .lowest_price_spotlight::before,
  .lowest_price_spotlight::after {
    height: 32px;
  }

  .lowest_price_spotlight .spotlight_grid {
    width: calc(100% + var(--content-gap) * 2);
    gap: 5px;
  }
  .lowest_price_spotlight .spotlight_card_box {
    padding: 6px;
    border-radius: 10px;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.08);
    gap: 6px;
  }
  .lowest_price_spotlight .spotlight_thumb {
    width: 50px;
    border-radius: 6px;
    aspect-ratio: 50 / 64;
  }
  .lowest_price_spotlight .spotlight_name,
  .lowest_price_spotlight .spotlight_price {
    font-size: 14px;
    line-height: 1.5;
  }
  .lowest_price_spotlight .spotlight_detail {
    margin-top: 8px;
    font-size: 10px;
  }
}

@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);
  }
  .chat::after {
    --chat_left : calc(50% - 6px);
  }
  .lowest_price_contact .inner {
    max-width: 550px;
    flex-direction: column;
  }
  .lowest_price_contact .chat {
    min-height: 27px;
    margin-bottom: 10px;
    line-height: 1.7;
  }
  .lowest_price_content > header {
    text-align: center;
    align-items: center;
  }
  .lowest_price_content > header p:not(._bottom) {
    margin-top: 8px;
  }
  .lowest_price_content .list_info {
    text-align: center;
  }

  /* contact */
  .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 {
    margin-top: 32px;
    padding: 30px 30px 40px;
  }
   .lowest_price_contact .leadforms_box {
    --c_purple : var(--c_violet);
  }
  .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;
  }
  .required_marketing_text {
    font-weight: 400;
  }

  .lowest_price_contact div.wpforms-container-full .wpforms-form button[type=submit] {
    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;
  }
}