@charset "UTF-8";
/* Button */
.btn {
  display: inline-block;
  border-radius: 8px;
  text-align: center;
}
.btn-mini {
  height: 32px;
  line-height: 32px;
  font-size: 16px;
  text-align: center;
  border-radius: 4px;
}
.btn-sm {
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
}
.btn-md {
  height: 44px;
  line-height: 44px;
  font-size: 16px;
  text-align: center;
}
.btn-lg {
  height: 48px;
  line-height: 48px;
  font-size: 16px;
  text-align: center;
}
.btn-big {
  height: 56px;
  line-height: 56px;
  font-size: 18px;
  text-align: center;
}
.btn-w100p {
  width: 100%;
}
.btn-w248 {
  width: 248px;
}
.btn-textType {
  text-decoration: underline;
  font-size: 14px;
  font-weight: 400;
  color: var(--info_text);
}
.btn_p16 {
  padding: 0 16px;
}
.btn.disabled {
  background-color: #f1f1f5;
  color: #999999;
  border: 1px solid #f1f1f5;
}
.btn:disabled {
  background-color: #f1f1f5 !important;
  color: #999999 !important;
  border: 1px solid #f1f1f5 !important;
}
.btn_red {
  background: #e60013;
  color: #ffffff;
}
.btn_bor_gray {
  border: 1px solid #f1f1f5;
  color: #111111;
}

/* #### Modal #### */
.modal {
  /* position: fixed; */
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
  opacity: 0;
}

.modal.open {
  z-index: 1000;
  opacity: 1;
}

.modal__inner {
  position: absolute;
  top: 47.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  background-color: var(--white);
  transition: 0.45s;
  opacity: 0;
}

.modal.open .modal__inner {
  top: 50%;
  opacity: 1;
}

.modal__inner::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.modal__inner::-webkit-scrollbar-thumb {
  height: 30%;
  background: #dddddd;
  border-radius: 10px;
}

.modal__inner::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 20px;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
}
.modal__close .btn_modal-close {
  background: url(../_img/icon/icon_x.svg) no-repeat center center / contain;
  width: 100%;
  height: 100%;
}
/* modal_date */
.modal_date .modal__inner {
  max-width: 416px;
  width: 100%;
  background: #ffffff;
  top: auto !important;
  bottom: 0;
  transform: translate(-50%, 0);
  border-radius: 16px 16px 0 0;
}
.modal_date .modal__header {
  padding: 48px 20px 8px;
}
.modal__header h2 {
  margin-bottom: 4px;
  color: #111111;
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
}

.modal__header h3 {
  color: #767676;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
}
.modal_date .modal__content {
  padding: 0 20px 12px;
}
.modal_date .modal__content .btn {
  margin-top: 24px;
}
/* modal region */
.modal_region .modal__inner {
  background: #fff;
  height: auto;
  max-height: 90vh;
  top: 5vh;
  transform: translate(-50%, 0);
  padding: 56px 0 0;
  border-radius: 0;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

.modal_region .modal__header {
  padding: 0 20px 8px;
}

.modal_region .modal__content {
  height: calc(100% - 59px);
}
.modal_region .region_state {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5px;
}
.modal_region .region_state span {
  color: #bbbbbb;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  text-align: center;
}
.modal_region .region_state span.red_txt {
  color: #e60013;
}

.modal_region .region_state .arrow_right {
  background: url(../_img/icon/icon_arrow_right_gray.svg) no-repeat center center / contain;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.modal__inner .bottom_fix {
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  background: #fff;
  padding: 12px 20px;
  border-top: 1px solid #e5e5ec;
}
/* modal견적 */
.modal_estimate .modal__inner {
  background: #fff;
  max-width: calc(100% - 40px);
  width: 100%;
  padding: 24px;
}
.modal_estimate .modal__content h2 {
  color: #111111;
  font-weight: 600;
  font-size: 18px;
  line-height: 140%;
  margin-bottom: 4px;
}
.modal_estimate .modal__content h3 {
  color: #767676;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
}
.modal_estimate .modal__content h3 span {
  color: #e60013;
}
/* Form */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"] {
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background-color: #fff;
  padding: 0 16px;
  font-size: 16px;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  font-size: 16px;
  font-weight: 400;
  color: #999999;
}
/* radio_A */
.radio_A {
  border: 1px solid #f1f1f5;
  display: inline-block;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.radio_A input {
  display: none;
}

.radio_A input + em {
  background: url(../_img/icon/icon_input_A.svg) no-repeat center center / contain;
  width: 16px;
  height: 16px;
  display: inline-block;
}
.radio_A input:checked + em {
  background: url(../_img/icon/icon_input_A_on.svg) no-repeat center center / contain;
}
.radio_A:has(input:checked) {
  border-color: #e60013;
}
.radio_A h6 {
  font-weight: 500;
  font-size: 12px;
  line-height: 140%;
  color: #767676;
  margin-top: 4px;
}

/* radio_B */
.radio_B {
  border: 1px solid #f1f1f5;
  display: inline-block;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.radio_B input {
  display: none;
}

.radio_B input + em {
  background: url(../_img/icon/icon_radio_B.svg) no-repeat center center / contain;
  width: 16px;
  height: 16px;
  display: inline-block;
}
.radio_B input:checked + em {
  background: url(../_img/icon/icon_radio_B_on.svg) no-repeat center center / contain;
}
.radio_B:has(input:checked) {
  border-color: #e60013;
}
/* textarea typeA */
.textarea_typeA {
  border: 1px solid #f1f1f5;
  border-radius: 2px;
  height: 74px;
  padding: 10px;
  font-size: 13px;
  width: 100%;
}
.textarea_typeA::placeholder {
  color: #999999;
  font-size: 13px;
  font-weight: 500;
}
.textarea_typeA:focus {
  border-color: #e60013;
}
/* select typeA - 드롭다운 스타일 */
.select__area {
  width: 100%;
}
.select_typeA {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #f1f1f5;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fff url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23999" d="M6 8L0 0h12z"/></svg>') no-repeat right 12px center;
  background-size: 10px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.select_typeA:focus {
  outline: none;
  border-color: #e60013;
}
.select_typeA option {
  padding: 8px;
}
/* Select */
.select-primary {
  height: 46px;
  line-height: 46px;
  float: none;
  width: 200px;
  display: inline-block;
}

.select-primary .list {
  width: inherit;
  max-height: 190px;
  overflow-y: auto;
  z-index: 1000;
}

.select-primary:active,
.select-primary.open,
.select-primary:focus {
  border-color: #ddd;
}

.select-primary .option {
  border-bottom: 1px solid #ddd;
  height: 40px;
  line-height: 40px;
}

.select-primary .option:last-child {
  border-bottom: none;
}

.select-primary .option.selected {
  font-weight: normal;
}

.select-primary:after {
  border-bottom: none;
  border-right: none;
  display: inline-block;
  width: 14px;
  height: 8px;
  background: url(/_img/common/icon_arrow_bottom.svg) no-repeat center center / contain;
  transform: translateY(-50%) rotate(0deg);
  margin-top: 0;
  right: 15px;
}

.select-primary.open:after {
  transform: translateY(-50%) rotate(-180deg);
  transform-origin: center !important;
}

/* 모바일 모달 전체화면 */
@media screen and (max-width: 768px) {
  /* 모달 기본: fixed로 변경하여 스크롤해도 화면에 고정 */
  .modal {
    position: fixed !important;
  }

  /* 주소 검색 모달 */
  .modal_region .modal__inner {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    padding-top: 60px !important; /* GNB 높이만큼 상단 여백 */
  }

  .modal_region .modal__content {
    height: calc(100% - 80px);
    overflow-y: auto;
  }

  /* 날짜 선택 모달 */
  .modal_date .modal__inner {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 60px !important; /* GNB 높이만큼 상단 여백 */
  }

  .modal_date .modal__header {
    padding-top: 20px !important;
    flex-shrink: 0;
  }

  .modal_date .modal__content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
  }

  .modal_date .modal__content .datepicker {
    flex: 1;
  }

  .modal_date .modal__content .btn {
    flex-shrink: 0;
    margin-top: auto;
  }
}

/* PC에서 주소 검색 모달 - 화면 상단 중앙에 배치 */
@media screen and (min-width: 769px) {
  .modal_region .modal__inner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  }

  .modal_region .modal__content {
    height: auto;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
  }

  /* postcode-layer 높이 조정 */
  .modal_region #postcode-layer {
    height: 450px !important;
    max-height: 60vh !important;
  }
}
