/* =========================================================
   Footer / Bottom Fixed Bar / Privacy Modal
   기존 bottom-bar 관련 중복 CSS는 모두 삭제하고 이것만 사용
========================================================= */

/* =========================
   Footer
========================= */
.site-footer {
   background: #111;
   color: #d9d9d9;
   padding: 56px 0 130px;
   /* PC에서 고정 bottom-bar 공간 확보 */
   font-size: 15px;
   line-height: 1.7;
   margin-top: 100px;
}

.site-footer .container,
#mobileBottomBar .container {
   width: min(100%, 1400px);
   margin: 0 auto;
   padding-left: 20px;
   padding-right: 20px;
   box-sizing: border-box;
}

.footer-top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
   padding-bottom: 24px;
   margin-bottom: 24px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
   display: flex;
   align-items: center;
   gap: 18px;
   flex-wrap: wrap;
}

.footer-links a,
.footer-link {
   color: #fff;
   text-decoration: none;
   font-size: 15px;
   word-break: keep-all;
}

.footer-links a:hover,
.footer-link:hover {
   opacity: 0.85;
}

.footer-cta {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 48px;
   padding: 0 18px;
   border-radius: 999px;
   background: #ea272c;
   color: #fff;
   text-decoration: none;
   font-weight: 700;
   white-space: nowrap;
   flex-shrink: 0;
}

.footer-bottom {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 32px;
}

.footer-logo-section {
   flex: 1 1 auto;
   min-width: 0;
}

.footer-logo {
   font-size: 24px;
   font-weight: 800;
   color: #fff;
   margin-bottom: 14px;
   line-height: 1.2;
}

.footer-info {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.footer-info p {
   margin: 0;
   color: rgba(255, 255, 255, 0.72);
   font-size: 14px;
   line-height: 1.75;
   word-break: keep-all;
   overflow-wrap: anywhere;
}

.footer-info p:last-child {
   margin-top: 8px;
   color: rgba(255, 255, 255, 0.5);
}

/* =========================
   Bottom Fixed Bar
   - PC: 항상 열림
   - Mobile: 탭 클릭 시 열림/닫힘
========================= */
#mobileBottomBar {
   --tab-height: 52px;
   --bar-bg: #222;
   --bar-accent: #ea272c;

   position: fixed;
   left: 0;
   right: 0;
   bottom: 0;
   width: 100%;
   background: var(--bar-bg);
   z-index: 9999;
   box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22);
}

#mobileBottomBar a {
   text-decoration: none;
}

#mobileBottomBar .bottom-bar-tab {
   display: none;
}

#mobileBottomBar .bottom-bar-content {
   min-height: 82px;
   display: flex;
   align-items: center;
   gap: 18px;
   padding: 14px 0;
}

#mobileBottomBar .bottom-phone {
   display: flex;
   align-items: center;
   gap: 12px;
   flex: 0 0 auto;
   min-width: 220px;
}

#mobileBottomBar .bottom-phone-icon {
   width: 44px;
   height: 44px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #4caf50;
   color: #fff;
   font-size: 18px;
   flex-shrink: 0;
}

#mobileBottomBar .phone-tit {
   display: flex;
   flex-direction: column;
   min-width: 0;
}

#mobileBottomBar .bottom-phone-text {
   margin: 0 0 2px;
   color: rgba(255, 255, 255, 0.72);
   font-size: 13px;
   line-height: 1.3;
}

#mobileBottomBar .bottom-phone-number {
   margin: 0;
   line-height: 1.2;
}

#mobileBottomBar .bottom-phone-number a {
   color: var(--bar-accent);
   font-size: 26px;
   font-weight: 800;
   white-space: nowrap;
}

#mobileBottomBar .bottom-form {
   display: flex;
   align-items: center;
   gap: 10px;
   flex: 1 1 auto;
   min-width: 0;
}

#mobileBottomBar .bottom-input {
   flex: 1 1 0;
   min-width: 0;
   height: 46px;
   padding: 10px;
   border: 1px solid rgba(255, 255, 255, 0.14);
   border-radius: 10px;
   background: #fff;
   color: #111;
   font-size: 14px;
   box-sizing: border-box;
}

#mobileBottomBar .bottom-input::placeholder {
   color: #8a8a8a;
}

#mobileBottomBar .bottom-btn {
   height: 46px;
   padding: 0 22px;
   border: 0;
   border-radius: 10px;
   background: var(--bar-accent);
   color: #fff;
   font-size: 15px;
   font-weight: 700;
   cursor: pointer;
   flex-shrink: 0;
}

#mobileBottomBar .bottom-links {
   display: flex;
   align-items: center;
   gap: 8px;
   flex: 0 0 auto;
   white-space: nowrap;
}

#mobileBottomBar .bottom-checkbox-wrapper {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: rgba(255, 255, 255, 0.78);
   font-size: 13px;
   cursor: pointer;
}

#mobileBottomBar .bottom-checkbox-wrapper input[type="checkbox"] {
   width: 16px;
   height: 16px;
   accent-color: var(--bar-accent);
   cursor: pointer;
}

#mobileBottomBar .view-policy-btn {
   border: 0;
   background: transparent;
   color: rgba(255, 255, 255, 0.85);
   font-size: 13px;
   cursor: pointer;
   padding: 0;
   text-decoration: underline;
}

/* =========================
   Modal
========================= */
.modal {
   display: none;
   position: fixed;
   inset: 0;
   z-index: 2000;
   background: rgba(0, 0, 0, 0.62);
   padding: 20px;
   box-sizing: border-box;
}

.modal-content {
   width: min(100%, 720px);
   max-height: 90vh;
   margin: 4vh auto 0;
   background: #fff;
   border-radius: 18px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
}

.modal-header,
.modal-footer {
   padding: 18px 22px;
}

.modal-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   border-bottom: 1px solid #eee;
}

.modal-footer {
   border-top: 1px solid #eee;
}

.modal-header h2 {
   margin: 0;
   font-size: 20px;
   line-height: 1.3;
}

.close-modal,
.modal-close-btn {
   cursor: pointer;
   padding: 10px;

}

.modal-body {
   padding: 22px;
   overflow-y: auto;
   color: #222;
   font-size: 15px;
   line-height: 1.75;
}

#top_btn {
   position: fixed;
   bottom: 150px;
   right: 20px;
   width: 50px;
   height: 50px;
   border: none;
   color: #333;
   text-align: center;
   font-size: 15px;
   z-index: 90;
   background: #fff;
   border-radius: 50%;
   box-shadow: rgba(0, 0, 0, 0.1) 0 10px 20px;
   transition: all 0.3s;
}

/* =========================
   Tablet
========================= */
@media (max-width: 1024px) {
   .footer-bottom {
      flex-direction: column;
      gap: 20px;
   }
}

/* =========================
   Mobile / Tablet
   991px 이하에서만 탭 토글
========================= */
@media (max-width: 991px) {
   .site-footer {
      padding: 40px 0 90px;
      margin-top: 50px;
      /* 모바일에선 접힌 탭 높이 정도만 확보 */
   }
   #top_btn {
   bottom: 100px;
  }
   #mobileBottomBar {
      transform: translateY(calc(100% - var(--tab-height)));
      transition: transform 0.32s ease-in-out;
   }

   #mobileBottomBar.is-open {
      transform: translateY(0);
   }

   #mobileBottomBar .bottom-bar-tab {
      height: var(--tab-height);
      background: #ea272c;
      color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      font-size: 15px;
      font-weight: 700;
   }

   #mobileBottomBar .tab-icon {
      margin-left: 8px;
      transition: transform 0.25s ease;
   }

   #mobileBottomBar.is-open .tab-icon {
      transform: rotate(180deg);
   }

   #mobileBottomBar .bottom-bar-content {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      padding: 16px 0;
   }

   #mobileBottomBar .bottom-phone {
      min-width: 100%;
      justify-content: center;
   }

   #mobileBottomBar .bottom-form {
      width: 100%;
      flex-direction: column;
      align-items: stretch;
   }

   #mobileBottomBar .bottom-input,
   #mobileBottomBar .bottom-btn {
      width: 100%;
   }

   #mobileBottomBar .bottom-links {
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
      white-space: normal;
   }

   .modal {
      padding: 12px;
   }

   .modal-content {
      width: 100%;
      max-height: 92vh;
      margin-top: 2vh;
      border-radius: 14px;
   }

   .modal-header,
   .modal-body,
   .modal-footer {
      padding-left: 16px;
      padding-right: 16px;
   }

   .modal-header h2 {
      font-size: 17px;
   }

   .modal-body {
      font-size: 14px;
      line-height: 1.65;
   }
}

/* =========================
   Desktop
   992px 이상은 항상 노출
========================= */
@media (min-width: 992px) {
   #mobileBottomBar {
      transform: translateY(0) !important;
   }

   #mobileBottomBar .bottom-bar-tab {
      display: none !important;
   }
}

/* =========================
   Small Mobile
========================= */
@media (max-width: 480px) {
   .footer-logo {
      font-size: 18px;
   }

   .footer-info p {
      font-size: 12px;
   }

   #mobileBottomBar .bottom-phone-icon {
      width: 38px;
      height: 38px;
      font-size: 16px;
   }

   #mobileBottomBar .bottom-phone-text {
      font-size: 12px;
   }

   #mobileBottomBar .bottom-phone-number a {
      font-size: 20px;
   }

   #mobileBottomBar .bottom-input {
      height: 42px;
      font-size: 13px;
   }

   #mobileBottomBar .bottom-btn {
      height: 42px;
      font-size: 14px;
   }

}




/* =========================
카카오톡
=========================*/
  .t_wrap {
     right: 20px;
     bottom: 50%;
     position: fixed;
     z-index: 2147483647;
     display: block;
  }
  .fa_kakao {
     height: 50px;
     width: 50px;
     line-height: 55px;
     background-color: red;
     border-radius: 50%;
     color: #fff;
     font-size: 28px;
     text-align: center;
     box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
     cursor: pointer
  }

  .fa_kakao:hover {
     background-color: #fff;
     color: red;
     border: 1px solid #ddd;
  }

  @media only screen and (max-width: 767px) {




  }
  /* =========================
카카오톡 끝
=========================*/