* {
  box-sizing: border-box;
}

body {
  font-size: 14px;
  background: rgba(227, 243, 255, 1);
}

.v145_22452 {
  width: 1440px;
  height: 1383px;
  opacity: 1;
  position: relative;
  top: 40px;
  left: calc(50% - 690px);
  overflow: hidden;
}

.header {
  /* VASK 分析與人才配對平台 */
  width: 100%;
  height: 40px;
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-family: 'DM Sans';
  font-style: regluar;
  font-weight: 400;
  font-size: 36px;
  top: 40px;
  color: #0A0A0A;
}

.v440_2838 {
  width: 100%;
  height: 555px;
  background: url("./images/v440_2838.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 1;
  position: relative;
  top: 20px;
  left: 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}

.v145_22531 {
  width: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  margin: 8px;
  opacity: 1;
  justify-content: center;
  overflow: hidden;
}

.v145_22532 {
  width: 100%;
  color: rgba(10, 10, 10, 1);
  position: relative;
  top: 0px;
  left: 0px;
  font-family: DM Sans;
  font-weight: Medium;
  font-size: 18px;
  opacity: 1;
  text-align: left;
}

.v145_22533 {
  width: 95%;
  color: rgba(82, 82, 82, 1);
  position: absolute;
  top: 32px;
  left: 0px;
  font-family: DM Sans;
  font-size: 16px;
  opacity: 1;
  text-align: left;
}

.v145_22534 {
  width: 600px;
  background: rgba(190, 232, 250, 1);
  margin: 20px;
  opacity: 1;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0px 4px 6px rgba(0.07058823853731155, 0.07058823853731155, 0.09019608050584793, 0.05000000074505806);
  overflow: hidden;
}

.v145_22535 {
  width: 560px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  margin: 4px;
  opacity: 1;
  position: absolute;
  top: 20px;
  left: 20px;
  overflow: hidden;
}

.v145_22536 {
  width: 560px;
  color: rgba(10, 10, 10, 1);
  position: relative;
  top: 0px;
  left: 0px;
  font-family: DM Sans;
  font-weight: Regular;
  font-size: 16px;
  opacity: 1;
  text-align: left;
}

.v145_22537 {
  width: 560px;
  height: 96px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  margin: 16px;
  opacity: 1;
  position: relative;
  top: 44px;
  left: 0px;
  overflow: hidden;
}

.button a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  width: 560px;
  height: 40px;
  background: #FFE667;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  color: #0A0A0A;
}

.footer-container {
  width: 100%;
  height: 200px;
  background: url("./images/footer.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 1;
  overflow: hidden;
}

.v145_22652 {
  width: 100%;
  height: 32px;
  padding: 2px 2px;
  margin: 10px;
  opacity: 1;
  position: relative;
  top: 0px;
  left: 0px;
  overflow: hidden;
}

.back a {
  display: flex;
  align-items: center;
  justify-content: left;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
  position: relative;
  top: 0px;
  left: 10px;
  height: 24px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  color: #0A0A0A;
}


.v607_5843 {
  width: 100px;
  height: 24px;
  margin: 5px;
  opacity: 1;
  overflow: hidden;
}

.v607_5845 {
  color: rgba(10, 10, 10, 1);
  font-family: DM Sans;
  font-weight: Regular;
  font-size: 13px;
  opacity: 1;
  text-align: left;
}

.info {
  background: url("./images/info.svg");
  position: absolute;
  top: 0px;
  right: 0px;
  height: 24px;
  width: 24px;
  background-repeat: no-repeat;
  background-position: center center;
  display: inline-block;
  cursor: help;
}

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 16px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 10px;
  width: 10px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(13px);
  -ms-transform: translateX(13px);
  transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


.question-block {
  margin-top: 0px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 0px;
  padding: 12px 12px;
  overflow: hidden;
}

.question-block h3 {
  margin-top: 0px;
  color: #0A0A0A;
  font-size: 18px;
}

.question-block p {
  color: #525252;
  font-size: 16px;
  margin-top: 0px;
  display: inline-block;
  vertical-align: middle;
}

.error-message {
  color: #ee6541;
  position: relative;
  margin-left: 10px;
  margin-top: 5px;
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
}

.error-message3 {
  color: #ee6541;
  margin-top: 0px;
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
}

.image-selection-grid.error-border {
  border: 2px solid #ee6541;
  /* border for error state */
  border-radius: 8px;
  /* Optional: add some border-radius for aesthetics */
}

.image-selection-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  /* Adjust minmax for image size */
  gap: 20px;
  justify-items: center;
  background: rgba(255, 255, 255, 1);
  padding: 20px 20px;
  margin: 4px;
  opacity: 1;

  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0px 4px 6px rgba(0.07058823853731155, 0.07058823853731155, 0.09019608050584793, 0.05000000074505806);
}

.image-selection-grid label {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: block;
  background-color: #D4D4D4;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
  /* Ensure label takes full grid item space */
}

.image-selection-grid label.selected {
  border-color: #FFD03D;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.image-selection-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.image-selection-grid input[type="checkbox"] {
  display: none;
}

.form-box {
  color: #0A0A0A;
  background: rgba(255, 255, 255, 1);
  height: 100%;
  opacity: 1;
  margin-top: 0px;
  margin-left: 35px;
  margin-right: 35px;
  margin-bottom: 0px;
  padding: 12px 12px;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0px 4px 6px rgba(0.07058823853731155, 0.07058823853731155, 0.09019608050584793, 0.05000000074505806);
}

.form-group {
  margin-bottom: 0px;
  margin-left: 20px;
  margin-top: 0px;

}

.form-group .select-group .error-border2 {
  border: 2px solid #ee6541;
  border-radius: 4px;
}

.form-group .select-group label {
  width: 215px;
  height: 24px;
  display: block;
  margin-bottom: 10px;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #525252;
}

.form-box input[type="email"],
.form-group input[type="text"],
.form-group select,
.form-group .select-group textarea {
  width: 600px;
  height: 36px;
  /* Adjust for padding and border */
  padding: 8px;
  border: 1px solid #E5E5E5;
  box-shadow: 0px 1px 2px rgba(18, 18, 23, 0.05);
  border-radius: 8px;
  margin-top: 8px;
  color: #737373;
  font-size: 16px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.radio-group label,
.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  /*display: flex;*/
  align-items: center;
  cursor: pointer;
  color: #525252;
  font-size: 16px;
}

#job-description-radio-buttons {
  display: block;
  word-break: break-all;
}

input[type="radio"] {
  width: 14.5px;
  height: 14.5px;
  border: 1.5px solid #D4D4D4;
  box-shadow: 0px 1px 2px rgba(18, 18, 23, 0.05);
  -webkit-appearance: none; /* For WebKit browsers */
  -moz-appearance: none;    /* For Mozilla browsers */
  appearance: none;         /* Standard property */
  border: 1px solid #ccc;
  border-radius: 3px; /* Square corners like a checkbox */
  margin-right: 5px;
  cursor: pointer;
}

input[type="radio"]:checked {
  background-color: #FFD03D; /* Example: Blue background when checked */
  border-color: white;
}

/* Add a checkmark icon when checked (optional, using pseudo-elements) */
input[type="radio"]:checked::after {
  content: '\2713'; /* Unicode checkmark character */
  color: white;
  font-size: 12px;
  position: relative;
  left: 2px;
  top: -1px;
}

.checkbox-group input[type="checkbox"] {
  height: 14px;
  width: 14px;
  border: 1.5px solid #D4D4D4;
  box-shadow: 0px 1px 2px rgba(18, 18, 23, 0.05);
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 3px;
}
.checkbox-group input[type="checkbox"]:checked {
  background-color: #FFD03D; /* Example: Blue background when checked */
  border-color: white;
}
.checkbox-group input[type="checkbox"]:checked::after {
  content: '✓';
  color: white;
  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 14px;
  background-color: #FFD03D;
  border-color: white;
}


.job-description-label {
  display: inline-block;
  padding: 8px 12px;
  margin: 5px;
  /*border: 1px solid #ccc;
    border-radius: 4px;*/
  cursor: pointer;
  background-color: white;
}

.job-description-label:hover {
  background-color: lightblue;
}

input[type="radio"][name="jobDescriptionAnalysis"]:checked+.job-description-label {
  background-color: lightyellow;
  color: black;
  border-color: lightyellow;
}

.age-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

button[type="submit"] {
  color: #0A0A0A;
  cursor: pointer;
  font-size: 18px;
  justify-content: right;
  align-items: center;
  padding: 4px 12px;
  margin: 0 auto;
  width: 200px;
  height: 40px;
  background: #FFE667;
  border-radius: 16px;
  border: none;
}

button[type="submit"]:hover {
  background-color: #FFE667;
}

button[type="submit"]:disabled {
  background-color: #F6F5F3;
  cursor: not-allowed;
  opacity: 0.7;
}

button[type="return"] {
  cursor: pointer;
  font-size: 18px;
  justify-content: right;
  align-items: center;
  margin: 0 auto;
  width: 200px;
  height: 40px;
  background: #FFE667;
  border-radius: 16px;
  border: none;
}

button[type="return"] a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #0A0A0A;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  letter-spacing: -0.02em;
}

button[type="detail"] {

box-sizing: border-box;

/* Auto layout */
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 0px 12px;

width: 101px;
height: 32px;

background: #FFFFFF;
border: 1px solid #E5E5E5;
border-radius: 360px;

}

button[type="detail"] a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #0A0A0A;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  letter-spacing: -0.02em;
}
#result-box {
  /* Modal */
  box-sizing: border-box;
  /* Auto layout */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  gap: 8px;
  background: #FBF9AA;
  border: 1px solid #F0F0F0;
  font-size: 16px;
  /* Shadows/lg */
  box-shadow: 0px 10px 15px -3px rgba(18, 18, 23, 0.08), 0px 4px 6px -2px rgba(18, 18, 23, 0.05);
  border-radius: 24px;
  font-family: 'DM Sans';
  font-style: normal;
  font-size: 18px;
  line-height: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .image-selection-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    /* Smaller images on mobile */
  }

  .age-group-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

@media (max-width: 480px) {
  .image-selection-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    /* Even smaller images on very small screens */
  }
}