/* 팝업창 배경 */
#popup {
  display: none; /* 기본은 숨김 */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;

  /* 가운데 정렬 */
  justify-content: center;
  align-items: center;
}

/* 팝업 내용 박스 */
.popup-content {
  background: white;
  padding: 30px 40px;
  border-radius: 10px;
  width: 80%;
  max-width: 1900px;
  min-width: 500px;
  /*text-align: center;*/
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

  /* 애니메이션 효과 (선택사항) */
  transform: scale(0.9);
  animation: popupFadeIn 0.25s ease forwards;
}

/* 부드러운 등장 애니메이션 */
@keyframes popupFadeIn {
  to {
    transform: scale(1);
    opacity: 1;
  }  
}

/* 팝업 헤더 (로고 + 닫기 버튼) */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* 로고 영역 */
.popup-logo img {
  height: 45px;
  vertical-align: middle;
  margin-right: 8px;
}

/* 닫기 버튼 (X) */
.popup-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: #1F3C78; /* hover 시 파란색 */
}

/* 본문 */
.popup-body h3 {
  text-align: left; 
  line-height: 1.6;
  max-width: none;

  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #000;
}

.popup-body p {
  text-align: left; 
  line-height: 1.6;
  margin: 0;
  color: #333;
  font-size: 1rem;
}

.popup-userNote {
  background-color: #e8f0ff; /* 옅은 파란색 */
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;  
}

/* 라벨(제목) */
.field-label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

/* 파란 영역 안의 3개 필드를 한 줄(3열)로 */
.popup-userInformation {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3등분 */
  gap: 14px; /* 칸 사이 간격 */

  margin-bottom: 10px;
}

/* 라벨/인풋 기본 정렬 */
.popup-field label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

/* Purpose 영역 위쪽 간격 늘리기 */
.popup-field label[for="user_purpose"] {
  margin-top: 10px; /* 위쪽 여백 추가 */
  display: block;
}

.popup-field label {
  margin-bottom: 8px; /* label과 textarea 간격도 확보 */
  display: block;
}

.input-field {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.95rem;
}

/* 반응형: 폭이 좁아지면 1~2열로 자동 변경 */
@media (max-width: 1024px) {
  .popup-userInformation {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .popup-userInformation {
    grid-template-columns: 1fr;
  }
}

/* 메모 텍스트영역 */
.textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 포커스 접근성 */
.input-field:focus,
.textarea:focus {
  outline: none;
  border-color: #1F3C78;
  box-shadow: 0 0 0 3px rgba(31, 60, 120, 0.15);
}

.input-field[readonly] {
  background-color: #f3f4f6; /* 연회색 배경 */
  color: #555;
  cursor: not-allowed;
}

.req {
  color: #d00; /* 진한 붉은색 (#ff0000도 가능) */
  font-weight: bold; /* 조금 더 강조 효과 */
  margin-right: 3px; /* 글자와의 간격 */
}

/* 버튼 영역 */
.popup-submit {
  text-align: center;  /* 중앙 정렬 */
  margin-top: 20px;    /* 위쪽 여백 */
}

/* request 버튼 스타일 */
.popup-btn {
  background-color: #1F3C78;   /* KRIBB 블루 */
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 25px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* hover & active 효과 */
.popup-btn:hover {
  background-color: #2a4c9a;
}

.popup-btn:active {
  transform: scale(0.97);
}