@charset "UTF-8";

/* 모바일 Pull-to-refresh 방지 */
html, body {
  overscroll-behavior-y: contain;
}

/* #### main  ####  */
.main_inner {
  min-height: calc(100vh);
  height: 100%;
  /*padding: 170px 0;*/
  padding: 170px 0 50px 0;
  background: url(../_img/common/main_back.png) no-repeat center center / cover;
}
.main_inner h1 {
  color: #ffffff;
  font-size: 66px;
  font-weight: 700;
  /*line-height: 140%;*/
  margin-bottom: 40px;
  text-align: center;
  margin-left: -50px;      /* 텍스트와 로고 사이 미세 간격 조정 (1~5px 추천) */

  display: inline-flex;       /* 수평 배치 */
  align-items: center;        /* 세로 정렬 */
  justify-content: center;    /* 가운데 정렬 */
  white-space: nowrap;        /* 자동 줄바꿈 방지 */
  gap: 0;                /* 간격 제거  */
}

.main_inner h1 img {
  margin-bottom : 20px;
  margin-left: -100px;      /* 텍스트와 로고 사이 미세 간격 조정 (1~5px 추천) */
  height: 130px;          /* 텍스트 크기에 맞게 로고 크기 조정 */
  vertical-align: middle;
}
.phone_area {
  max-width: 416px;
  width: 100%;
  overflow: hidden;
  /* height: calc(100vh - 200px); */
  /* aspect-ratio: 416 / 880; */
  aspect-ratio: 360 / 760;
  background: #ffffff;
  border-radius: 24px;
  margin: 0 auto;
  position: relative;
}
/* .phone_area .top {
  height: 55px;
}
.phone_area .bottom {
  height: 39px;
} */
.phone_area .main_area {
  /* height: calc(100% - 94px); */
  height: 100%;
}
.phone_area .main_area .main_header {
  padding: 0 23px;
  background: #fff;
}
.phone_area .main_area .main_header .top_head {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 24px 0 16px;
}
.phone_area .main_area .main_header .top_head .arrow_back_btn {
  background: url(../_img/icon/icon_arrow_left.svg) no-repeat center center / contain;
  width: 27px;
  height: 27px;
  margin-right: 9px;
}
.phone_area .main_area .main_header .top_head h2 {
  color: #111111;
  font-size: 20px;
  font-weight: 600;
  line-height: 130%;
}
.phone_area .main_area .main_header .top_head .alert_icon {
  background: url(../_img/icon/icon_alert.svg) no-repeat center center / contain;
  margin-left: 4px;
  width: 23px;
  height: 23px;
}
.phone_area .main_area .main_header .progress_area {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.prog {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: #ebecec; /* 트랙 */
  overflow: hidden;
  appearance: none;
  vertical-align: middle;
}
.prog::-webkit-progress-bar {
  background: #ebecec;
  border-radius: 99px;
}
.prog::-webkit-progress-value {
  background: #e60013;
  border-radius: 99px;
}
.prog::-moz-progress-bar {
  background: #e60013;
  border-radius: 99px;
}

.prog__label {
  color: #e60013;
  font-weight: 700;
  font-size: 13px;
  width: 43px;
  text-align: right;
}
.phone_area .main_area .content_area {
  background: #ebecec;
  height: calc(100% - 92px);
  padding: 23px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.phone_area .main_area .content_area .msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  gap: 4px;
}
.phone_area .main_area .content_area .msg.right {
  align-items: flex-end;
  align-self: flex-end;
}

.phone_area .main_area .content_area .msg .img_box {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}
.phone_area .main_area .content_area .msg .img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone_area .main_area .content_area .chat {
  padding: 18px;
  width: fit-content;
  box-shadow: 0 0.5px 1.5px 0 #00174d33;
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}
.phone_area .main_area .content_area .chat * {
  word-break: break-all;
}
.phone_area .main_area .content_area .chat.left {
  background: #fff;
  border-radius: 2px 8px 8px 8px;
  align-self: flex-start;
}
.phone_area .main_area .content_area .chat.right {
  background: #444444;
  border-radius: 8px 2px 8px 8px;
  align-self: flex-end;
}

.phone_area .main_area .content_area .chat.right h5 {
  color: #fff;
}

.phone_area .main_area .content_area .chat h5 {
  color: #111111;
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
}
.phone_area .main_area .content_area .chat h5 b {
  font-weight: 700;
}

.phone_area .main_area .content_area .chat h6 {
  color: #999999;
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  margin-top: 6px;
}
.sevice__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phone_area .main_area .content_area .msg .btn_red {
  margin-top: 16px;
  width: 248px;
}
.phone_area .main_area .content_area .msg .modi_btn {
  color: #767676;
  font-size: 12px;
  font-weight: 600;
  line-height: 140%;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* datepicker */
.ui-widget.ui-widget-content {
  border: none;
  width: 100%;
}
.ui-datepicker .ui-datepicker-header {
  border: none;
  background: #fff;
  color: #111111;
  font-weight: 600;
  font-size: 18px;
  padding: 0;
  height: 56px;
}
.ui-datepicker .ui-datepicker-title {
  margin: 0;
  line-height: 56px;
  text-align: left;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  width: 32px;
  height: 32px;
  top: 50%;
  transform: translateY(-50%);
}
.ui-datepicker .ui-datepicker-next {
  right: 0;
  background: url(../_img/icon/icon_arrow_right.svg) no-repeat center center / contain;
}
.ui-datepicker .ui-datepicker-prev {
  left: auto;
  right: 44px;
  background: url(../_img/icon/icon_arrow_left_gray.svg) no-repeat center center / contain;
}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: none;
}
.ui-datepicker-calendar td a {
  position: relative;
}
.ui-datepicker-calendar td.day-son a::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e60013;
}
.ui-datepicker th {
  padding: 0;
  height: 45px;
  line-height: 45px;
  color: #767676;
  font-weight: 500;
  font-size: 14px;
}
.ui-datepicker td {
  padding: 0;
}
.ui-state-default,
.ui-widget-content .ui-state-default {
  height: 100%;
  width: 100%;
  aspect-ratio: 1/1;
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  border: none;
}
.ui-datepicker td:first-child a {
  color: #ea0000;
}
.ui-state-active,
.ui-widget-content .ui-state-active {
  background: #444444;
  color: #fafafa;
  font-weight: 600;
  border-radius: 12px;
}
.resion_list_wrap {
  padding-bottom: 72px;
  max-height: calc(100% - 43px);
  height: 100%;
}
.region_list {
  overflow-y: auto;
  height: 100%;
}
.region_list::-webkit-scrollbar {
  width: 6px;
}
.region_list::-webkit-scrollbar-thumb {
  background: #c9c9d3;
}
.region_list li button {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}

.region_list li button:hover {
  background: #f1f1f5;
}
.region_list li p {
  color: #111111;
  font-size: 14px;
  font-weight: 500;
}
.region_list li p.arrow_right {
  background: url(../_img/icon/icon_arrow_right_B.svg) no-repeat center center / contain;
  width: 16px;
  height: 16px;
}
.phone_area .main_area .content_area .chat .text__area.mt16 {
  margin-top: 16px;
}
.phone_area .main_area .content_area .chat .text__area h6 {
  margin-top: 2px;
  text-align: right;
  color: #999999;
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
}
.phone_area .main_area .content_area .chat .text__area h6 b {
  color: #e60013;
}
.btn_area {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  width: 248px;
}
.phone_area .main_area .content_area .btn_area .btn {
  width: 100%;
  margin-top: 0;
}
.img_upload {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.img_upload p {
  padding: 0 12px;
  display: inline-block;
  height: 40px;
  border: 1px solid #f1f1f5;
  cursor: pointer;
  color: #111111;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-radius: 4px;
}
.img_upload p::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url(../_img/icon/icon_plus.svg) no-repeat center center / contain;
}
.upload_img_box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}
.phone_area .main_area .content_area .msg .upload_img_box .img_box {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0.5px 1.5px 0 #00174d26;
  position: relative;
}
.phone_area .main_area .content_area .msg .upload_img_box .img_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload_img_box .img_box .x_btn {
  background: url(../_img/icon/icon_x_btn.svg) no-repeat center center / contain;
  width: 18px;
  height: 18px;
  right: 0;
  top: 0;
  position: absolute;
}
.kakao_btn {
  background: #fae100;
  margin-top: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
}
.kakao_btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background: url(../_img/icon/icon_kakao.svg) no-repeat center center / contain;
}
.aisa_estimate {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.aisa_estimate > img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 100%;
  object-fit: cover;
  border: 1px solid #e5e5ec;
}
.aisa_estimate .txt {
  padding-bottom: 16px;
}
.aisa_estimate .txt h2 {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 140%;
}
.aisa_estimate .txt p {
  color: #767676;
  font-weight: 500;
  font-size: 12px;
  line-height: 140%;
}
.estimate_list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid #f1f1f5;
  border-bottom: 1px solid #f1f1f5;
}
.estimate_list li {
  display: flex;
  justify-content: space-between;
}
.estimate_list li h3 {
  color: #999999;
  font-weight: 400;
  font-size: 13px;
  line-height: 140%;
}
.estimate_list li h4 {
  color: #111111;
  font-weight: 400;
  font-size: 13px;
  line-height: 140%;
}
.estimate_list li b {
  color: #111111;
  font-weight: 700;
  font-size: 14px;
  line-height: 140%;
}
/* Small PC */
@media screen and (min-width: 768px) and (max-width: 860px) {
  .main_inner h1 img{
    height: 120px
  }
}
/* Pad & Mobile */
@media screen and (max-width: 1200px) {
}
/* Pad */
@media screen and (min-width: 768px) and (max-width: 1200px) {

}
/* 모바일 폼 내부 제목 */
.mobile-title {
  display: none;
}

/* Mobile */
@media screen and (max-width: 768px) {
  /* 모바일에서도 배경과 제목 표시 */
  .main_inner {
    padding: 80px 0 0 0;
    min-height: auto;
  }

  /* 모바일용 제목 스타일 */
  .main_inner h1 {
    display: flex !important;
    font-size: 24px;
    margin-left: 0;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .main_inner h1 img {
    height: 36px;
    margin-left: -20px;
    margin-bottom: 0;
  }

  /* 폼 내부 제목은 숨김 (상단에 이미 표시) */
  .mobile-title {
    display: none;
  }

  /* phone_area - 스크롤 가능하게 변경 */
  html,
  body {
    height: 100%;
  }
  .phone_area {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: calc(100vh - 60px);
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
    z-index: 10;
    border-radius: 0;
  }

  /* 내부 레이아웃 */
  .phone_area .main_area {
    min-height: calc(100vh - 60px);
    height: auto;
    display: flex;
    flex-direction: column;
  }

  /* 헤더 영역 */
  .phone_area .main_area .main_header {
    flex-shrink: 0;
  }

  /* 콘텐츠 영역 - 화면 꽉 채우기 */
  .phone_area .main_area .content_area {
    flex: 1;
    min-height: calc(100vh - 60px - 92px);
    height: auto;
    overflow: visible;
    padding-bottom: calc(23px + constant(safe-area-inset-bottom));
    padding-bottom: calc(23px + env(safe-area-inset-bottom));
  }

  .phone_area .main_area .content_area .msg {
    max-width: 90%;
  }

  /* 컨테이너 패딩 제거 */
  .main .container {
    padding: 0;
  }
}



/* 모달을 세로 flex로 구성해 콘텐츠가 남는 영역을 가득 채우게 */
#modal-region .modal__inner { display: flex; flex-direction: column; max-height: 90dvh; }
#modal-region .modal__header { flex: 0 0 auto; }
#modal-region .modal__content { flex: 1 1 auto; display: flex; flex-direction: column; padding-bottom: 0; }

/* 레이어는 콘텐츠 영역을 꽉 채움 */
#postcode-layer { flex: 1 1 auto; width: 100%; height: 100%; max-height: none !important; border: 0; }

/* iframe/내부 div의 베이스라인 여백 제거 */
#postcode-layer > div, #postcode-layer iframe { display: block; }