/* 문의질문 페이지 */
.question-container {
  max-width: 50em;  /* 폼 전체 너비 확대 */
  width : 50%;
  margin: 4em auto;
  padding: 3em;
  background: #fafafa;
  border-radius: 0.6em;
  box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.1);
  text-align: center;
}

.question-container h1 {
  font-size: 1.8em;
  margin-bottom: 1em;
  margin-top:0;
}



.question-container form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  align-items: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40em;
}

.form-group label {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.4em;
  color: #333;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  font-size: 1.1em;
  padding: 0.8em;
  border: 0.1em solid #ccc;
  border-radius: 0.4em;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  outline: none;
}

.question-container .answer-btn {
  display: block;
  width: 100%;
  max-width: 12em;
  padding: 0.8em 0;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  color: white;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border-radius: 0.4em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.question-container .answer-btn:hover {
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
  transform: scale(1.05);
}




.question-table {
  width: 100%;
  border-collapse: collapse;
}

.question-table th, .question-table td {
  border: 0.1em solid #ccc;
  padding: 1em;
  text-align: center;
}

.label-complete {
  background: #28a745;
  color: white;
  padding: 0.3em 0.8em;
  border-radius: 0.4em;
}

.label-pending {
  background: #ffc107;
  color: black;
  padding: 0.3em 0.8em;
  border-radius: 0.4em;
}

.answer-btn {
  display: inline-block;
  padding: 0.4em 0.5em;
  background: #007bff;
  color: white;
  border-radius: 0.4em;
  text-decoration: none;
}


.answer-btn:hover {
  background: #0056b3;
}




/* 문의하기 버튼 */
.question-btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0.4em;
  box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.question-btn:hover {
  background: linear-gradient(90deg, var(--color-green), var(--color-blue));
  transform: scale(1.05);
}

.question-btn-container {
  display: flex;
  justify-content: flex-end; /* 오른쪽 정렬 */
  margin-bottom: 1.5em;
}


/* 기본 스타일은 그대로 두고, 모바일 전용 미디어쿼리 추가 */
@media (max-width: 768px) {
  .question-container {
    width: 90%;
    padding: 2em 1.5em;
    margin: 2em auto;
  }

  .question-container h1 {
    font-size: 1.4em;
  }

  .question-container p {
    font-size: 0.95em;
    line-height: 1.5;
  }

  .question-container form {
    gap: 1em;
  }

  .form-group {
    max-width: 100%;
  }

  .form-group label {
    font-size: 1em;
  }

  .form-group input[type="text"],
  .form-group textarea {
    font-size: 1em;
    padding: 0.7em;
  }

  .question-container .answer-btn {
    width: 100%;
    max-width: 100%;
    font-size: 1em;
    padding: 0.7em 0;
  }

  .question-btn-container {
    justify-content: center; /* 모바일에서는 버튼 중앙 */
  }

  .question-btn {
    font-size: 1em;
    padding: 0.6em 1.2em;
    width: 100%;
    text-align: center;
  }
}
/* 📌 가로 스크롤 제거 */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}




@media (max-width: 768px) {
 

  /* 번호, 작성일, 상태, 관리 컬럼 숨기기 */
  .question-table th:nth-child(1),
  .question-table td:nth-child(1),
  .question-table th:nth-child(3),
  .question-table td:nth-child(3),
  .question-table th:nth-child(4),
  .question-table td:nth-child(4),
  .question-table th:nth-child(5),
  .question-table td:nth-child(5) {
    display: none;
  }
}

