/* ───────────── 전체 레이아웃 ───────────── */
.bo-wrapper {
  width: 100%;
  padding-left: 1rem;
  padding-bottom: 1rem;
  padding-right: 1rem;
  z-index: 30;
  bottom: 0;
  position: fixed;
  box-sizing: border-box;
  left: 0;
}

.bo-container {
  width: 100%;
  max-width: 1100px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 40px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.bo-fixed-form {
  /* padding: 1rem .5rem; */
  padding: 15px .5rem;
  width: 100%;
  box-sizing: border-box;
}

.bo-consult-form {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  /* height: 45px; */
}

/* ───────────── 입력 그룹 ───────────── */
.bo-input-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

/* ───────────── 기본 인풋 ───────────── */
.bo-input-group input {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 20px;
  border: none;
  outline: none;
  background-color: white;
  color: gray;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ───── 개별 인풋 크기 조정 ───── */
.bo-input-group input[name="name"],
.bo-input-group input[name="phone"],
.bo-custom-select-wrapper {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

/* ───────────── 커스텀 셀렉트 ───────────── */
.bo-custom-select-wrapper {
  position: relative;
  min-width: 200px;
  max-width: 250px;
  flex: 1;
}

.bo-custom-select {
  background: white;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 15px;
  color: gray;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 커스텀 셀렉트 옵션 보이기 */
.bo-select-options.bo-show {
  display: block;
}

.bo-custom-select .bo-arrow {
  width: 12px;
  height: 8px;
  margin-left: auto;
  margin-right: 0;
}

.bo-select-options {
  display: none;
  position: absolute;
  bottom: calc(100%);
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  border: 1px solid #bbbdbf;
  z-index: 1000;
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
}

.bo-select-options li {
  padding: 5px;
  cursor: pointer;
  font-size: 14px;
  color: gray;
  white-space: nowrap;
  text-indent: 8px;
  list-style: none;
}

.bo-select-options li:first-child {
    margin-top: 8px;
}

.bo-select-options li:last-child {
    margin-bottom: 8px;
}

.bo-select-options li:hover,
.bo-select-options li.selected {
  background-color: #2fb9c2;
  color: white;
}

/* ───────────── 인풋, 인풋: 플레이스홀더, 셀렉트 ───────────── */
.bo-input-group input::placeholder, .bo-custom-select .bo-selected {
  color: rgb(173, 173, 173);
  letter-spacing: 0.5px;
  opacity: 1;
}

.bo-input-group input, .bo-select-options li {
  color: #686e77;
  letter-spacing: 0.5px;
  opacity: 1;
}

/* 선택된 경우 추가 클래스 적용 */
.bo-custom-select.bo-selected-active .bo-selected {
  color: #686e77;
}

/* ───────────── action-row: 체크박스 2개 + 버튼 ───────────── */
.bo-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.bo-action-row .bo-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  flex-shrink: 1;
  color: white;
}

.bo-action-row .bo-submit-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ───────────── 체크박스 ───────────── */
.bo-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: white;
  padding: 0 4px;
  min-width: 190px;
  flex-shrink: 0;
  margin-left: 10px;
}

.bo-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.bo-checkbox-label img {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  cursor: pointer;
}

.bo-checkbox-label input {
  display: none;
}

/* ───────────── 제출 버튼 ───────────── */
.bo-submit-btn {
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bo-submit-btn img {
  display: block;
  width: auto;
  height: auto;
  max-height: 100%;
  border-radius: 30px;
}

@media (max-width: 1200px) {
  .bo-container {
    max-width: 900px;
  }
  
  .bo-consult-form {
    flex-wrap: wrap;
    justify-content: center;
  }

  .bo-input-group {
    flex: 1 1 100%;
    justify-content: center;
    max-width: 100%;
  }

  .bo-action-row {
    flex: 1 1 100%;
    justify-content: space-between;
    margin-top: 10px;
  }

  .bo-action-row .bo-checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 800px) {
  .bo-checkbox-group .bo-checkbox-label:nth-child(2) {
    display: none;
  }
}

@media (max-width: 768px) {
  .bo-consult-form {
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
  }

  .bo-input-group {
    flex: 1 1 100%;
    justify-content: center;
    max-width: 100%;
  }

  .bo-action-row {
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 10px;
    flex-direction: row;
  }

  .bo-action-row .bo-checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .bo-checkbox-group .bo-checkbox-label:nth-child(2) {
    display: none;
  }
}

@media (max-width: 500px) {
  .bo-submit-btn img {
    max-height: 40px;
  }
}
