/* ===== 3. 설문 영역 전용 ===== */

.survey-section {
  padding: 60px 5%;
  background: #fff;
}

.survey-title {
  text-align: left;
  margin-bottom: 0;
}

.survey-title-img {
  width: 38vw;;
  max-width: 100%;
  display: block;
  margin-bottom: 0;
}

.survey-banner-wrap {
  display: flex;
  gap: 2%;
  transition: all 0.3s ease;
  align-items: stretch;
  min-height: 300px;
}

.survey-banner {
  flex: 1;
  border-radius: 20px;
  padding: 40px 20px;
  transition: flex 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.survey-banner.left {
  background-color: #e6f8ff;
}

.survey-banner.right {
  background-color: #ffd7e2;
}

.survey-banner img {
  max-width: 80%;
  height: auto;
  margin-bottom: 20px;
}

/* 마우스 오버 시 비율 변화 - 양방향 대응 */
.survey-banner-wrap:not(.expanded):hover .survey-banner {
  flex: 5; /* 기본값 */
  transition: flex 0.4s ease;
}

.survey-banner-wrap:not(.expanded):hover .survey-banner:hover {
  flex: 6;
}

.survey-banner-wrap:not(.expanded):hover .survey-banner:not(:hover) {
  flex: 4;
}


/* 클릭 시 확장 */
.survey-banner.expanded {
  flex: 9 !important;
  flex-direction: row;
  justify-content: space-between;
  padding: 40px;
  min-height: 360px;
}

.survey-banner.shrunk {
  flex: 1 !important;
}

.survey-banner.expanded .survey-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.survey-banner.expanded .survey-deco {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.survey-form .question-title {
  border-radius: 20px;
  padding: 6px 20px;
  margin: 0 auto 20px auto;
  text-align: center;
}

.question-title-label {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}

.survey-form .question {
  font-size: 28px;
  font-weight: bold;
  margin: 3vw 0;
  text-align: center;
}

.survey-form .question span {
  font-weight: bold;
  font-size: 22px;
}

.survey-form .option {
  background: #f7f7fb;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.survey-form .prev-link {
  margin-top: 20px;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

.survey-form .progress {
  margin-top: 3vw;
  height: 2px;
  background: #a1a1a1;
  position: relative;
}

.survey-form .progress-bar {
  height: 100%;
  width: 0%;
}

@media screen and (max-width: 1024px) {
.survey-deco img {display:none;}
.survey-banner.expanded .survey-form {
    flex: 100;
}
}

@media screen and (max-width: 768px) {
  .survey-banner-wrap {
    flex-direction: column;
    gap: 20px;
  }

.survey-banner.expanded .survey-form {
    width: 100%;
}

  .survey-banner {
    flex: 100% !important;
    padding: 30px 15px;
  }

  .survey-banner img {
    margin-bottom: 0px;
  }

  .survey-banner.expanded {
    flex-direction: column;
  }

  .survey-banner.expanded .survey-deco {
    display: none;
  }

  .survey-form .option {
    width: 100%;
  }

.survey-banner {
  min-height: 0px;
}

.survey-title-img {
  width: 70%;
}

}




/* ===== 13. 든든한 집 배너 영역 ===== */
.banner13-wrap {
  max-width: 1600px;
  background-color: #fff;
  padding: 5% 5%;
  margin: 0 auto;
  text-align: center;
}

.banner13-title {
  text-align: left;
  margin-bottom: 0;
}

.banner13-title img {
  width: 40%;
  max-width: 100%;
  display: block;
  margin-bottom: 0;
}

.banner13-content {
  display: flex;
  gap: 2%;
  justify-content: center;
  flex-wrap: wrap;
}

.banner13-box {
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  flex: 1 1 48%;
  aspect-ratio: 840 / 652;
  background-color: #f9f9f9;
  margin: 0 0 30px 0;
}

.banner13-box1 {
  border: 2px solid #000;
}

.banner13-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.banner13-title-img {
  position: absolute;
  padding: 5%;
  top: 2%;
  right: 2%;
  width: 60%;
  z-index: 1;
}

.banner13-deco-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  z-index: 1;
}

.banner13-inner {
  position: relative;
  z-index: 1;
  padding: 3% 3%;
  text-align: center;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.banner13-center-img {
  width: 24%;
  margin: 0 auto;
}

.banner13-date-text {
  font-size: 1em;
  margin: 2px 0 10px 0;
}

.banner13-img2 {
  width: 68%;
  margin: 18px 0;
  margin: 0 auto;
}

.banner13-row-text {
  display: flow;
  justify-content: space-between;
  font-size: 1em;
  margin: 5px 0px;
}

.banner13-row-text span {
  margin: 5px 10px;
}

.banner13-gift-wrap {
  display: flex;
  justify-content: center;
  gap: 5%;
  margin: 5px 0;
}

.banner13-gift {

  min-width: 25%;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background-color: #fff;
  padding: 8px 8px 5px 8px;
  font-size: 13px;
}

.banner13-gift img {
  width: 8vw;
  margin-bottom: 0px;
}

.banner13-event-btn {
    display: block;
    margin: 0.5vw auto;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    width: 80%;
    padding: 1%;
    font-size: 1.2vw;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.banner13-event-btn:hover {
  transform: scale(1.05);
}


@media screen and (max-width: 1024px) {

.banner13-title img {
    width: 70%;
}

.banner13-date-text {
    font-size: 2.5vw;
}

.banner13-img2 {
    width: 75%;
}

.banner13-gift img {
    width: 16vw;
    margin-bottom: 0px;
}

.banner13-gift {
    font-size: 2vw;
}

.banner13-row-text {
    font-size: 2.5vw;
}

  .banner13-content {
    display: block;
  }

.banner13-event-btn {
  margin: 1vw auto;
  border-radius: 1vw;
  width: 80%;
  padding: 1vw;
  font-size: 3vw;
}

banner13-wrap {
    margin: 0 0 100px 0;
}

}




/* ===== 13. 든든한 집 배너 ===== 팝업 ===== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-container {
    background: #fff;
    border-radius: 20px;
    padding: 4vw;
    width: 90vw;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
    z-index: 99999;
    pointer-events: auto;
}

.popup-close:hover {
  animation: x-bounce 0.6s ease forwards;
}

.x-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #000;
  transition: transform 0.3s ease-in-out;
}

.x-line:first-child {
  transform: rotate(45deg);
}

.x-line:last-child {
  transform: rotate(-45deg);
}

@keyframes x-bounce {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.1) rotate(20deg); }
  40% { transform: scale(1.2) rotate(-20deg); }
  60% { transform: scale(1.1) rotate(10deg); }
  80% { transform: scale(1.05) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.popup-house-shape {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: url(../images/deco_13_popup_4.png) no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
}

.popup-slot-window {
    top: 26px;
    height: 200px;
    width: 180px;
    aspect-ratio: 4 / 4;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* 위 그라데이션 */
.popup-slot-window::before {
  content: '';
  position: absolute;
  top: 0;
  height: 20px;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(255, 113, 134, 1), rgba(255, 113, 134, 0));
  z-index: 2;
  pointer-events: none;
}

/* 아래 그라데이션 */
.popup-slot-window::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 20px;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255, 113, 134, 1), rgba(255, 113, 134, 0));
  z-index: 2;
  pointer-events: none;
}

.popup-slot-sprite {
    width: 100%;
    height: 1000%;
    background: url(../images/popup_slot.png) no-repeat;
    background-size: 100% 100%;
    background-position-y: 0%;
    transition: background-position-y 1.5s ease-in-out;
}

@keyframes slot-roll {
  0% { background-position-y: 0%; }
  20% { background-position-y: 30%; }
  50% { background-position-y: 60%; }
  80% { background-position-y: 30%; }
  100% { background-position-y: 0%; }
}

.popup-title img {
    width: 70%;
    margin: 1vw auto 2vw auto;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1vw;
}

.popup-btn {
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  background: white;
  padding: 1vw;
  transition: all 0.3s ease;
}

.popup-btn.selected {
  background: #fffec5;
  transform: scale(1.1);
}

.popup-btn img {
  width: 80px;
}

@media screen and (max-width: 768px) {
.popup-container {
  height: 80vh;
  width: 95vw;
  padding: 4vw;
}

.popup-house-shape {
  width: 80%;
}

.popup-title img {
  width: 60%;
  margin: 2% auto 8% auto;
}

.popup-btn img {
  width: 90px;
  }

.popup-buttons {
  gap: 5%;
}
}

@media screen and (max-width: 460px) {
.popup-house-shape {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.popup-title img {
    width: 70%;

}

.popup-buttons {
  gap: 3%;
}

/* 위 그라데이션 */
.popup-slot-window::before {
  display: none;
}

/* 아래 그라데이션 */
.popup-slot-window::after {
  display: none;
}
}

