.consultation {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1000;
}

.consultation .inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  background: #181818;
  padding: 0 15px 0 37px;
  border-radius: 40px 0 0 0;
  transition: all 0.3s;
}

.consultation__form {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 로고 */
.consultation__logo {
  display: flex;
  align-items: center;
}
.consultation__logo .logo_img {
  display: inline-block;
  width: 137px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  mask: url('/images/surgery/consult_logo-6350357f8bd9d27f06cecc9cb1643565.svg') no-repeat center center;
  -webkit-mask: url('/images/surgery/consult_logo-6350357f8bd9d27f06cecc9cb1643565.svg') no-repeat center center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.consultation__input {
  width: 180px;
  height: 38px;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 15px;
  margin-right: 4px;
  background: #fff;
  color: #222;
}

.consultation__input::placeholder {
  color: #333;
  font-size: 15px;
}

.consultation__checkbox-label {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #fff;
  margin-right: 12px;
  gap: 4px;
}

.consultation__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #fff;
  border-radius: 3px;
  margin-right: 4px;
}

.consultation__btn {
  background: #fff;
  color: #222;
  border: none;
  border-radius: 10px;
  padding: 0 10px;
  min-width: 100px;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.consultation__btn:hover {
  background: var(--point-color-hover);
  color: #fff;
}

/* ----------- 반응형: 1240px 이하 ----------- */
@media (max-width: 1240px) {
  .consultation {
    width: auto;
    left: auto;
    right: 30px;
    bottom: 20px;
    background: none;
    border-radius: 0;
    z-index: 1000;
  }

  .consultation .inner {
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    transition: none;
  }

  .consultation__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #181818;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    margin-bottom: 8px;
    z-index: 1001;
    transition: background 0.2s;
  }

  .consultation__toggle img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
  }

  .consultation__form {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #181818;
    border-radius: 24px;
    padding: 24px 20px 20px 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    min-width: 270px;
    max-width: 90vw;
    width: 320px;
    gap: 12px;
    animation: consultation-pop 0.25s;
  }

  .consultation.open .consultation__form {
    display: flex;
    min-width: 320px;
    max-width: 95vw;
    width: 370px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    background: #222;
    border-radius: 32px 32px 0 32px;
    position: relative;
    z-index: 1002;
    animation: consultation-pop 0.25s;
  }

  .consultation.open .consultation__logo img {
    height: 38px;
    opacity: 1;
    margin-bottom: 10px;
  }

  .consultation.open .consultation__input {
    font-size: 17px;
    height: 44px;
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .consultation.open .consultation__checkbox-label {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .consultation.open .consultation__btn {
    font-size: 18px;
    height: 48px;
    border-radius: 24px;
    margin-top: 10px;
    font-weight: bold;
  }

  /* 닫기(X) 버튼 */
  .consultation__close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1003;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .consultation__close:hover {
    opacity: 1;
  }

  .consultation__logo,
  .consultation__checkbox-label,
  .consultation__btn {
    margin: 0 0 0 0;
  }

  .consultation__input {
    width: 100%;
    margin: 0 0 8px 0;
  }

  .consultation__btn {
    width: 100%;
    margin-top: 8px;
  }
}

@keyframes consultation-pop {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}