/* 전체 섹션 */
.tab-image-section {
  width: 100%;
  padding: 70px 20px;
  background: #f7f4f1;
  box-sizing: border-box;
}

/* 내부 컨테이너 */
.tab-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* 제목 */
.tab-title {
  font-size: 36px;
  font-weight: 800;
  color: #2b1d18;
  margin-bottom: 10px;
}

.tab-desc {
  font-size: 18px;
  color: #666;
  margin-bottom: 35px;
}

/* 탭 버튼 영역 */
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

/* 탭 버튼 */
.tab-btn {
  min-width: 160px;
  padding: 15px 28px;
  border: 1px solid #784c40;
  background: #fff;
  color: #784c40;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: #784c40;
  color: #fff;
}

/* 이미지 박스 */
.tab-content-wrap {
  width: 100%;
}

/* 기본 숨김 */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

/* 활성화된 이미지 */
.tab-content.active {
  display: block;
}

/* 이미지 */
.tab-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* 부드러운 전환 효과 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .tab-image-section {
    padding: 45px 15px;
  }

  .tab-title {
    font-size: 28px;
  }

  .tab-desc {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .tab-buttons {
    gap: 8px;
  }

  .tab-btn {
    width: calc(33.333% - 6px);
    min-width: auto;
    padding: 12px 5px;
    font-size: 14px;
    border-radius: 12px;
  }

  .tab-content img {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    width: 100%;
    font-size: 15px;
  }
}

/* 전체 이미지 반응형 */
img {
  max-width: 100%;
  height: auto;
}

.section-img {
  width: 100%;
  max-width: 1200px;
  border-radius: 8px;
}

.unit-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  text-align: center;
}

.unit-card h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}

.unit-card p {
  margin-bottom: 8px;
  color: #555;
}

.footer .sitename {
  color: inherit;
}

/* 등촌역 박스 */
.station-badge {
  display: inline-block;
  background-color: #784c40;
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* 유튜브 영상 반응형 영역 */
.youtube-section {
  padding: 70px 0;
  background: #f8f8f8;
}

.youtube-section .section-title h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
}

.youtube-section .section-title p {
  color: #555;
  margin-bottom: 28px;
}

.youtube-video-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.youtube-autoplay-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.youtube-autoplay-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==============================
   따라다니는 빠른 버튼
============================== */

html {
  scroll-behavior: smooth;
}

#lead-form {
  scroll-margin-top: 100px;
}

/* PC: 화면 오른쪽 중앙에 고정 */
.quick-buttons {
  position: fixed !important;
  top: 50%;
  right: 20px;
  bottom: auto;
  left: auto;
  transform: translateY(-50%) !important;

  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column;
  gap: 10px;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* 빠른 버튼 공통 */
.quick-buttons .quick-btn {
  width: 180px;
  min-height: 56px;
  padding: 10px 14px;

  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #fff !important;
  text-decoration: none !important;
  text-align: center;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;

  border: 0;
  border-radius: 10px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;

  cursor: pointer;
  will-change: transform;
}

/* 전화상담 버튼 */
.quick-buttons .quick-call {
  background-color: #784c40 !important;
}

/* 관심고객등록 버튼 */
.quick-buttons .quick-register {
  background-color: #2f6f5e !important;
}

/* 빠른 버튼 아이콘 */
.quick-buttons .quick-btn i {
  font-size: 19px;
  flex-shrink: 0;
}

/* 마우스 올렸을 때 */
.quick-buttons .quick-btn:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  filter: brightness(1.08);
}

/* 버튼을 누를 때 */
.quick-buttons .quick-btn:active {
  transform: translateY(1px) scale(0.97);
}

/* 키보드 접근성 */
.quick-buttons .quick-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: -5px;
}

/* ==============================
   모바일: 화면 하단에 2개 고정
============================== */
@media (max-width: 768px) {
  body {
    padding-bottom: 66px;
  }

  .quick-buttons {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    transform: none !important;

    flex-direction: row;
    gap: 0;
  }

  .quick-buttons .quick-btn {
    width: 50%;
    min-height: 66px;
    padding: 8px 5px;

    border-radius: 0;
    font-size: 15px;
    box-shadow: none;
  }

  .quick-buttons .quick-btn i {
    font-size: 18px;
  }

  #scroll-top {
    bottom: 78px !important;
  }
}

/* ==============================
   관심고객 등록 폼
============================== */
.lead-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #0b1f3a 0%, #173b68 100%);
  color: #fff;
}

.lead-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: #222;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.lead-card h2 {
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
}

.lead-card .lead-desc {
  text-align: center;
  color: #666;
  margin-bottom: 26px;
}

.lead-form .form-label {
  font-weight: 700;
  margin-bottom: 8px;
}

.lead-form .form-control {
  height: 54px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 18px;
  padding: 0 16px;
}

.lead-form .submit-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 14px;
  background: #ff6a00;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.lead-form .submit-btn:hover {
  filter: brightness(1.06);
}

.lead-form .submit-btn:active {
  transform: translateY(2px) scale(0.99);
}

.lead-privacy {
  margin-top: 14px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.lead-message {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.lead-message.success {
  display: block;
  background: #e8f7ee;
  color: #126b35;
}

.lead-message.error {
  display: block;
  background: #fff0f0;
  color: #b42318;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .lead-section {
    padding: 48px 0;
  }

  .lead-card {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .lead-card h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .zoom-text,
  .tab-content {
    animation: none;
  }

  .quick-buttons .quick-btn {
    transition: none;
  }
}

/* 모바일 메인 이미지 크기 완전 고정 */
@media (max-width: 768px) {
  #hero.hero,
  #hero-carousel,
  #hero-carousel .carousel-inner,
  #hero-carousel .carousel-item {
     width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  #hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    animation: none;
    transition: none;
  }

  #hero-carousel .carousel-item.active img,
  .hero .carousel-item.active img {
    transform: none;
    scale: 1;
    animation: none;
    transition: none;
  }
}

/* 따라다니는 상담 버튼 강제 표시 */
 html {
      scroll-behavior: smooth;
    }

    #lead-form {
      scroll-margin-top: 100px;
    }

    /* style.css에 숨김 설정이 남아 있어도 항상 표시 */
    body .quick-buttons,
    body .quick-buttons.show {
      position: fixed !important;
      top: 50% !important;
      right: 20px !important;
      bottom: auto !important;
      left: auto !important;
      transform: translateY(-50%) !important;

      z-index: 999999 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;

      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
    }

    body .quick-buttons .quick-btn {
      width: 185px !important;
      min-height: 58px !important;
      padding: 10px 14px !important;

      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;

      color: #fff !important;
      text-decoration: none !important;
      text-align: center !important;

      font-size: 16px !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;

      border: 0 !important;
      border-radius: 10px !important;

      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
      cursor: pointer !important;

      transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease !important;
    }

    body .quick-buttons .quick-call {
      background: #784c40 !important;
    }

    body .quick-buttons .quick-register {
      background: #2f6f5e !important;
    }

    body .quick-buttons .quick-btn i {
      color: #fff !important;
      font-size: 19px !important;
      flex-shrink: 0 !important;
    }

    body .quick-buttons .quick-btn:hover {
      color: #fff !important;
      transform: translateY(-3px) !important;
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32) !important;
      filter: brightness(1.08) !important;
    }

    body .quick-buttons .quick-btn:active {
      transform: translateY(1px) scale(0.97) !important;
    }

    .quick-call-text {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .quick-call-text small {
      font-size: 12px;
      font-weight: 500;
    }

    .quick-call-text strong {
      font-size: 18px;
    }

    @media (max-width: 768px) {
      body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important;
      }

      body .quick-buttons,
      body .quick-buttons.show {
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        transform: none !important;

        flex-direction: row !important;
        gap: 0 !important;

        padding-bottom: env(safe-area-inset-bottom) !important;
        background: #fff !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.18) !important;
      }

      body .quick-buttons .quick-btn {
        width: 50% !important;
        min-height: 66px !important;
        padding: 8px 5px !important;

        border-radius: 0 !important;
        font-size: 15px !important;
        box-shadow: none !important;
      }

      body .quick-buttons .quick-btn:hover {
        transform: none !important;
        box-shadow: none !important;
      }

      .quick-call-text small {
        display: none !important;
      }

      .quick-call-text strong {
        font-size: 16px !important;
      }

      #scroll-top {
        bottom: calc(78px + env(safe-area-inset-bottom)) !important;
      }
    }