@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;600&display=swap');

body {
  font-family: 'Sarabun', sans-serif;
  background-color: #f7f8fa;
  color: #222;
}

.form-page {
  max-width: 720px;
  margin: 40px auto;
  padding: 30px 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 22px;
  color: #2c3e50;
  font-weight: 600;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-group label {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-other {
  margin-bottom: 0;
}

.other-input-container {
  transition: all 0.3s ease;
  margin-top: 8px;
}

.other-input {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.button-back {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background-color: #cccccc; /* สีเทาอ่อน */
  color: black;
  transition: background-color 0.3s;
}

.button-back:hover {
  background-color: #b0b0b0;
}

.button-next {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background-color: #ffc107; /* สีเหลือง */
  color: black;
  transition: background-color 0.3s;
}

.button-next:hover {
  background-color: #e0a800;
}












.single-image {
  display: inline-block;
  cursor: pointer;
}

.single-image input {
  display: none;
}

.single-image img {
  width: 250px;
  height: auto;
}

/* เมื่อเลือก */
.single-image input:checked + img {
  border: 4px solid #4CAF50;
  border-radius: 12px;
}


