/* ==========================================================================
   Brivyy Mobile — Bottom Buttons (스크롤 흐름에 맞게 하단 배치)
   ========================================================================== */
.bottom-buttons {
  /* 기존 position: fixed; 와 bottom: 0; 제거 -> 흐름에 맞게 상대 위치로 변경 */
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  
  /* [핵심] 기존 height: 80px; 고정 높이 삭제 -> 안의 내용물만큼 늘어나도록 auto로 변경 */
  height: auto; 
  
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  
  /* 위쪽 여백 20px, 양옆 10px, 아래쪽 여백 100px (푸터에 가리지 않도록 넉넉하게) */
  padding: 0 10px 100px;
  background: transparent;
  z-index: 100;
}

.bottom-buttons__btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 60px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
}

.bottom-buttons__btn--secondary {
  width: 121px;
  padding: 0 20px;
  background: #898989;
  border-radius: 10px 0 0 0;
  color: #FFFFFF;
  flex: none;
}

.bottom-buttons__btn--secondary:hover {
  background: #7a7a7a;
}

.bottom-buttons__btn--primary {
  padding: 0 30px;
  background: #333333;
  border-radius: 0 10px 0 0;
  color: #ffffff;
  flex: auto; /* 우측 빈 공간을 꽉 채우도록 변경 */
}

.bottom-buttons__btn--primary:hover {
  background: #444444;
}

/* ==========================================================================
   반응형 처리
   ========================================================================== */
@media (max-width: 359px) {
  .bottom-buttons { padding: 20px 6px 100px; }
}

@media (min-width: 430px) {
  .bottom-buttons {  }
}

/* preview_research_detail — 참여 완료 시 하단 고정 레이아웃 */
form#research_f.preview-research-form--foot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bottom-buttons--completed {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: auto;
  padding: 24px 10px 100px;
  box-sizing: border-box;
}

.bottom-buttons--completed .bottom-buttons__thanks {
  margin: 0;
  padding: 20px 16px 0;
  text-align: center;
  color: #888;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
}

.bottom-buttons--completed .bottom-buttons__btn--primary--single {
  width: 100%;
  flex: none;
  max-width: none;
  border-radius: 10px;
}