/* 간편상담 모달 */
.contactFloat {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1101;
  pointer-events: none;
}

.contactFloat>.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.contactFloat>.container>.contact {
  width: 100%;
  height: 100%;

  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.595);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: auto;
}

.contactFloat>.container>.contact.active {
  display: flex;
  opacity: 1;
}

.contactFloat>.container>.contact>.consult-modal-container {
  width: 440px;
  background: #fff;
  padding: 40px 30px;
  border-radius: 32px; /* 둥글둥글한 프리미엄 코너 */
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

/* Close Button (X) */
.contactFloat>.container>.contact .close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 26px;
  cursor: pointer;
  color: #333;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.contactFloat>.container>.contact .close-btn:hover {
  background-color: #f5f5f5;
  transform: rotate(90deg);
}

/* Steps Switcher */
.consult-step {
  display: none;
  width: 100%;
}

.consult-step.active {
  display: block;
}

/* Header Text */
.consult-title {
  font-size: 26px;
  font-weight: 800;
  color: #3b2222; /* 갈색 톤 타이틀 */
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.consult-subtitle {
  font-size: 14px;
  color: #a0a0a0;
  text-align: center;
  margin-bottom: 35px;
  letter-spacing: 2px; /* 자간 넓게 주어 세련되게 */
  font-weight: 500;
  text-transform: uppercase;
}

/* --- STEP 1: Buttons --- */
.consult-btn-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.sns-consult-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sns-signup-notice {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
  text-align: center;
  margin-top: 4px;
}

.consult-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #aaa;
  font-size: 12px;
  margin: 5px 0;
}

.consult-divider::before,
.consult-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e5e5;
}

.consult-divider:not(:empty)::before {
  margin-right: 15px;
}

.consult-divider:not(:empty)::after {
  margin-left: 15px;
}

.consult-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 28px; /* 완전 둥근 알약 버튼 */
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.consult-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-kakaotalk {
  background-color: #ffd800; /* 카카오톡 노랑 */
  color: #3c1e1e;
}

.btn-naver-talk {
  background-color: #03c75a; /* 네이버 초록 */
  color: #fff;
}

.btn-direct-consult {
  background-color: #3b2222; /* 갈색 직접상담 */
  color: #fff;
}

/* Step 1 Footer Chat */
.consult-footer-chat {
  border-top: 1px solid #f0f0f0;
  padding-top: 25px;
  text-align: center;
}

.chat-intro-text {
  font-size: 14px;
  color: #444;
  font-weight: 600;
  margin-bottom: 15px;
}

.chat-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.chat-shortcut {
  flex: 1;
  height: 46px;
  border-radius: 12px; /* 둥근 사각형 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.chat-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.btn-naver-shortcut {
  background: #20d473; /* 밝은 네이버톡톡 */
  color: #fff;
}

.btn-kakao-shortcut {
  background: #ffeb52; /* 밝은 카카오톡 */
  color: #3c1e1e;
}

.icon-svg {
  width: 18px;
  height: 18px;
}

/* --- STEP 2: Direct Consult Form --- */
.form-group-custom {
  margin-bottom: 25px;
  text-align: left;
}

.form-group-custom label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #3b2222;
  margin-bottom: 10px;
}

.form-group-custom label .required {
  color: #f8931d;
  margin-left: 2px;
}

.form-group-custom input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ddd; /* 밑줄 인풋 스타일 */
  padding: 8px 0;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: border-bottom-color 0.2s ease;
  box-sizing: border-box;
  background: transparent;
}

.form-group-custom input[type="text"]:focus {
  border-bottom-color: #f8931d; /* 주황색 포커스 */
}

/* Phone Input Fields */
.phone-input-custom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-input-custom input {
  flex: 1;
  text-align: center;
  border: none;
  border-bottom: 2px solid #ddd;
  padding: 8px 0;
  font-size: 15px;
  outline: none;
  background: transparent;
  transition: border-bottom-color 0.2s ease;
}

.phone-input-custom input:focus {
  border-bottom-color: #f8931d;
}

.phone-input-custom .hyphen {
  color: #aaa;
  font-size: 16px;
}

/* Checkboxes Custom */
.checkbox-group-custom {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #f8931d; /* 주황색 체크박스 */
  width: 16px;
  height: 16px;
}

/* Orange Submit Button */
.submit-btn-custom {
  width: 100%;
  height: 56px;
  background: #f8931d; /* 주황색 배경 */
  color: #fff;
  border: none;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(248, 147, 29, 0.2);
  transition: all 0.2s ease;
}

.submit-btn-custom:hover {
  background: #e07d0f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(248, 147, 29, 0.3);
}

/* Direct Form Notices */
.consult-notice-box {
  margin-top: 25px;
  text-align: center;
}

.notice-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.notice-text .highlight {
  color: #3b2222;
  font-weight: 700;
}

.sub-notice-text {
  font-size: 11px;
  color: #a0a0a0;
  font-weight: 400;
}

/* --- STEP 3: Complete Screen --- */
.consult-complete-box {
  text-align: center;
  padding: 30px 0 10px;
}

.complete-icon {
  width: 70px;
  height: 70px;
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.complete-icon svg {
  width: 36px;
  height: 36px;
}

.complete-title {
  font-size: 22px;
  font-weight: 700;
  color: #3b2222;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

/* --- DARK MODE OVERRIDES --- */
.contactFloat>.container>.contact>.consult-modal-container.dark-mode {
  background: #351f1f; /* 어두운 브라운 배경 */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .consult-title {
  color: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .consult-subtitle {
  color: #c9b7b7;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .close-btn {
  background-color: #351f1f;
  border-color: #533636;
  color: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .close-btn:hover {
  background-color: #4a2e2e;
}

/* 1단계 다크모드 버튼 조정 */
.contactFloat>.container>.contact>.consult-modal-container.dark-mode .btn-direct-consult {
  background-color: #fff;
  color: #351f1f;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .sns-signup-notice {
  color: #c9b7b7;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .consult-divider {
  color: #8c7272;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .consult-divider::before,
.contactFloat>.container>.contact>.consult-modal-container.dark-mode .consult-divider::after {
  border-bottom-color: #533636;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .chat-intro-text {
  color: #fff;
}

/* 2단계 다크모드 폼 조정 */
.contactFloat>.container>.contact>.consult-modal-container.dark-mode .form-group-custom label {
  color: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .form-group-custom input[type="text"] {
  border-bottom-color: #533636;
  color: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .form-group-custom input[type="text"]:focus {
  border-bottom-color: #f8931d;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .phone-input-custom input {
  border-bottom-color: #533636;
  color: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .phone-input-custom input:focus {
  border-bottom-color: #f8931d;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .phone-input-custom .hyphen {
  color: #8c7272;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .checkbox-label {
  color: #dcd1d1;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .checkbox-label input[type="checkbox"] {
  border-color: #8c7272;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .notice-text {
  color: #dcd1d1;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .notice-text .highlight {
  color: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .sub-notice-text {
  color: #8c7272;
}

/* 3단계 다크모드 완료 페이지 조정 */
.contactFloat>.container>.contact>.consult-modal-container.dark-mode .complete-icon {
  border-color: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .complete-icon svg path {
  stroke: #fff;
}

.contactFloat>.container>.contact>.consult-modal-container.dark-mode .complete-title {
  color: #fff;
}

.contactFloat>.btnBox {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 0%);
  z-index: 99;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  pointer-events: auto;
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  justify-content: center;
  padding: 0 20px;
}

.contactFloat>.btnBox.hidden {
  display: none;
  opacity: 0;
}

.contactFloat>.btnBox>button {
  flex: 1;
  height: 60px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.contactFloat>.btnBox>button svg {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  flex-shrink: 0;
}

.contactFloat>.btnBox>button span {
  font-size: 13px;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* 간편 상담 신청 - 오렌지 그라데이션 + 글래스 */
.contactFloat>.btnBox>.btn-consult-trigger {
  background: linear-gradient(135deg,
      rgba(244, 125, 49, 0.9),
      rgba(255, 138, 61, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

/* 카카오 상담 - 카카오 옐로우 + 글래스 */
.contactFloat>.btnBox>.btn-kakao {
  background: linear-gradient(135deg,
      rgba(254, 229, 0, 0.9),
      rgba(255, 235, 59, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #3c1e1e;
}

/* 흉터 진단 하기 - 블랙 + 글래스 */
.contactFloat>.btnBox>.sub_btn {
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.8),
      rgba(51, 51, 51, 0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.contactFloat>.btnBox>button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.contactFloat>.btnBox>button:active {
  transform: translateY(-1px);
}

@media all and (max-width: 478px) {
  .contactFloat>.btnBox {
    bottom: 15px;
    padding: 0 12px;
    gap: 8px;
    max-width: 100%;
  }

  .contactFloat>.btnBox>button {
    height: 46px;
    font-size: 13px;
    border-radius: 14px;
    padding: 0 5px;
    gap: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .contactFloat>.btnBox>button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .contactFloat>.btnBox>button span {
    font-size: 11px;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
  }

  .contactFloat>.container>.contact>.consult-modal-container {
    width: 320px;
    padding: 30px 20px;
    border-radius: 24px;
  }
  
  .consult-title {
    font-size: 20px;
  }
  
  .consult-subtitle {
    font-size: 12px;
    margin-bottom: 25px;
  }
  
  .consult-btn-large {
    height: 48px;
    font-size: 14px;
  }
  
  .chat-shortcut {
    height: 40px;
    font-size: 11px;
    gap: 4px;
  }
  
  .icon-svg {
    width: 14px;
    height: 14px;
  }
  
  .submit-btn-custom {
    height: 48px;
    font-size: 14px;
  }
}
