/* 팝업 배경 - 전체 화면을 덮음 */
.attendance-button {
  background-color: var(--warm-accent) !important;
}

.attendance-button:hover {
  background-color: #c77b92 !important;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 검은색 배경 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* 초기에는 숨김 */
  display: none;
}

/* 팝업 창 컨테이너 */
.popup-container {
  background-color: #ffffff;
  width: 90%; /* 모바일 환경을 고려한 너비 */
  max-width: 400px; /* 최대 너비 설정 */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  font-family: "Malgun Gothic", "맑은 고딕", sans-serif;
}

/* 헤더 */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eeeeee;
}

.popup-title {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  color: #aaaaaa;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* 내용 */
.popup-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333333;
}

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

/* 입력 필드 */
.input-text {
  width: 100%;
  padding: 12px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 15px;
}

textarea.input-text {
  resize: none;
  height: 100px;
}

/* 라디오/체크박스 그룹 */
.radio-group,
.select-group {
  display: flex;
  border: 1px solid #dddddd;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.radio-item,
.select-item {
  flex-grow: 1;
  text-align: center;
  position: relative;
}

.radio-item input[type="radio"],
.select-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-item label,
.select-item label {
  display: block;
  padding: 12px 0;
  margin: 0;
  font-size: 15px;
  cursor: pointer;
  color: #333333;
  background-color: #f9f9f9;
  transition: background-color 0.2s, color 0.2s;
}

/* 선택되지 않은 항목의 오른쪽 테두리 */
.radio-item:not(:last-child) label,
.select-item:not(:last-child) label {
  border-right: 1px solid #dddddd;
}

/* 선택된 라디오 버튼 스타일 */
.radio-item input[type="radio"]:checked + label,
.select-item input[type="radio"]:checked + label {
  background-color: #d1b69d; /* 선택된 색상 */
  color: #ffffff;
  font-weight: bold;
}

/* 체크박스 스타일 */
.agreement-group {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #777777;
  margin-top: 15px;
}

.agreement-group input[type="checkbox"] {
  margin-right: 5px;
  accent-color: #d1b69d;
}

/* 개인정보 동의 박스 컨테이너 */
.agreement-container {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-top: 15px; /* 다른 폼 그룹과 구분 */
}

.agreement-title {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  margin-top: 0;
  margin-bottom: 10px;
}

.agreement-description {
  font-size: 11px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.agreement-check {
  display: flex;
  align-items: center;
}

.agreement-check input[type="checkbox"] {
  /* 기존 체크박스 스타일 유지 */
  margin-right: 5px;
  accent-color: #d1b69d;
  width: 18px;
  height: 18px;
}

.agreement-check label {
  display: inline; /* 블록 요소가 되지 않도록 */
  font-size: 14px;
  color: #333333;
  font-weight: bold; /* '동의합니다' 강조 */
  margin: 0; /* 기존 form-group label margin 초기화 */
}

/* 필수 표시(*)는 기존 .required 클래스를 그대로 사용 */

/* 전송 버튼 */
.submit-button-container {
  padding: 15px 20px;
  border-top: 1px solid #eeeeee;
}

.submit-button {
  width: 100%;
  padding: 15px;
  background-color: var(--warm-accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: #c77b92;
}

/* 참석여부전달 버튼 스타일 */
.attendance-button {
  /* 배경 및 글씨 색상 */
  background-color: #4682b4; /* 차분하고 부드러운 파란색 (Steel Blue) */
  color: #ffffff; /* 흰색 글씨 */

  /* 패딩 및 크기 */
  padding: 12px 30px; /* 적당한 크기를 위한 패딩 */
  font-size: 16px;
  font-weight: bold;

  /* 테두리 및 그림자 */
  border: none; /* 테두리 제거 */
  border-radius: 6px; /* 모서리 둥글게 */
  box-shadow: none; /* 그림자 제거 요청 반영 */

  /* 커서 스타일 */
  cursor: pointer;

  /* 마우스 오버 시 효과 (선택 사항) */
  transition: background-color 0.2s ease;
}

.attendance-button:hover {
  background-color: #5a9bcf; /* 마우스 오버 시 살짝 밝게 */
}
