*,
*::before,
*::after {
  box-sizing: border-box;
}

.register-container,
input,
textarea,
button {
  font-family: "MyIansui", serif;
}

/* --- 容器設定 --- */
.register-container {
  max-width: 1000px;
  margin: 20px auto;
  background-color: #e9eaeb;
  padding: 40px 35px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- 大標題 --- */
.section-title {
  text-align: center;
  color: #2c3e50;
  margin: 0 0 30px 0;
  font-size: 40px;
}

/* --- 表單結構 --- */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 說明文字區塊 */
.form-description {
  background-color: #f1f5f9;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 18px;
  color: #333333;
  line-height: 1.8;
  text-align: justify;
}

/* --- 表單群組 --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group > label {
  font-size: 18px;
  font-weight: bold;
  color: #34495e;
}

.required-mark {
  color: #d9534f;
  margin-right: 4px;
}

.form-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hint {
  font-size: 16px;
  color: #718096;
  margin-top: 5px;
}

/* --- 輸入框樣式 --- */
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 18px;
  background-color: #f8fafc;
  line-height: 1.5;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #5a67d8;
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
}

/* --- 需求人數：並排輸入框 (Grid System) --- */
.grid-inputs {
  display: flex;
  gap: 20px; /* 每個框框之間的距離 */
}

.input-item {
  display: flex;
  align-items: center;
  gap: 10px; /* 文字與輸入框的距離 */
  flex: 1; /* 三個框框平均分配寬度 */
}

.input-label {
  font-size: 18px;
  color: #333;
  white-space: nowrap; /* 防止「學士」兩個字換行 */
}

/* --- 送出按鈕 --- */
.btn-register-submit {
  background-color: #2c3e50;
  color: white;
  padding: 18px;
  border-radius: 8px;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-register-submit:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

/* --- RWD 響應式調整 --- */
@media (min-width: 768px) {
  .form-group {
    flex-direction: row;
    align-items: flex-start;
  }

  .form-group > label {
    width: 120px; /* 稍微加寬，因為「工作地點/部門」字比較多 */
    text-align: right;
    padding-right: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
    padding-top: 13px;
  }

  .form-content {
    flex: 1;
  }
}

/* 手機版特別優化 */
@media (max-width: 768px) {
  /* 手機上「需求人數」改成垂直堆疊，比較好按 */
  .grid-inputs {
    flex-direction: column;
    gap: 10px;
  }

  .input-item {
    width: 100%;
  }

  .input-item input {
    width: 100px; /* 手機版輸入框不要太長 */
  }
}
