form {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  flex-grow: 1;
}

form .inputgroup {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: row;
  margin-bottom: 2vh;
}

form .inputgroup label,
form .inputgroup input[type="text"],
form .inputgroup textarea {
  margin-bottom: 0px;
  /* border: none; */
  background: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  white-space: nowrap;
  font-family: "jinxuan-500", serif;
  font-size: 1.05vw;
  letter-spacing: 0.2em;
  color: #b48d53;
  line-height: 1.5;
  border-top-style: none;
  border-right-style: none;
  border-left-style: none;
  border-bottom-style: none;
  padding: 0.5em 1em;
}

form .inputgroup input[type="text"],
form .inputgroup textarea {
  display: block;
  font-size: 1.05vw;
  width: 100%;
  outline: none;
  position: relative;
  flex-grow: 1;
  /* border-bottom: 1px solid #b48d5355; */
}

.inputDiv,
.textareaDiv {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.inputDiv::after,
.textareaDiv::after {
  position: absolute;
  left: 0px;
  right: 0px;
  content: " ";
  bottom: 0px;
  height: 1px;
  background-color: #b48d5355;
}

form .inputgroup label {
    padding-left: 0;
  margin-right: 0.5em;
}

form button {
  margin-top: 2vh;
  color: #b48d53;
  width: 12vw;
  align-self: center;
  padding: 0.5em;
  border: 1px solid #b48d5355;
  background: none;
  transition: all 0.5s;
  outline: none;
}

form button:hover {
  background-color: #b48d53;
  color: #fff;
}

.map {
  width: 60%;
}



form .infoDiv {
  width: 40%;
  padding-left: 5vw;
}

form .infoDiv p {
  margin-bottom: 10vh;
}

/* 建案內頁的聯絡表單修改 */
.projectPageFrom {
  margin-top: 10vh;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  flex-direction: row;
}

.projectPage .infoDiv {
  padding-left: 0px;
  width: 100%;
}

.projectPage .infoDiv p {
  margin-bottom: 5vh;
}

.projectPageFrom .inputgroup {
  align-items: stretch;
  flex-direction: column;
}

.projectPageFrom .group-1,
.projectPageFrom .group-2 {
  width: 40%;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  flex-direction: column;
}

.contactInfoDiv .title,
.contactInfoDiv p {
  text-align: center;
}

.map {
  width: 100%;
}

.map iframe {
  width: 100%;
  height: 56vh;
  margin-top: 0.8vw;
}

.contactSection {
  padding-bottom: 10vh;
}

.contactSection .map {
  position: relative;
  padding-top: 10vh;
  padding-bottom: 10vh;
}

.contactSection .map::after {
  position: absolute;
  left: 0px;
  right: 0px;
  content: " ";
  background-color: #b48d5355;
  height: 1px;
  top: 0vh;
}

.radioDiv {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.radioInput {
  background: none;
  border: 2px solid #b48d53;
}

input[type="radio"] {
  display: none;
}

input[type="radio"] + label {
  color: #f2f2f2;
  font-family: Arial, sans-serif;
  cursor: pointer;
}

input[type="radio"] + label span {
  content: " ";
  display: inline-block;
  border: 1px solid #b48d53;
  cursor: pointer;
  width: 0.8vw;
  height: 0.8vw;
  margin-right: 2em;
  position: relative;
}

input[type="radio"]:checked + label span:after {
  position: absolute;
  content: "✓";
  color: #b48d53;
  font-size: 0.5vw;
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  left: 50%;
}

.projectPageFrom .textareaInputGroup {
  flex-grow: 1;
}

.projectPageFrom .textareaInputGroup textarea {
  border: 1px solid #b48d5355;
  height: 100%;
  margin-left: 1em;
}

.projectPage form button {
  margin-top: 10vh;
}

label {
  display: flex;
  align-items: baseline;
}

label span {
  opacity: 0.5;
  color: #ffffff;
  font-family: "Noto Serif TC", sans-serif;
  font-size: 0.75vw;
  margin-left: 2em;
}

@media (max-width: 1024px) {
  form .inputgroup label,
  form .inputgroup input[type="text"],
  form .inputgroup textarea {
    padding-left: 0px;
  }
  .projectPageFrom {
    margin-top: 0vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .projectPageFrom .group-1,
  .projectPageFrom .group-2 {
    width: 90%;
  }

  form .inputgroup textarea {
    min-height: 10vh;
    margin-left: 0px;
  }

  input[type="radio"]:checked + label span:after {
    transform: translateX(-50%) translateY(-50%);
    top: 50%;
    left: 50%;
    font-size: 14px;
  }

  form .inputgroup label,
  form .inputgroup input[type="text"],
  form .inputgroup textarea {
    font-size: 20px;
  }

  form .inputgroup input[type="text"],
  form .inputgroup textarea {
    font-size: 16px;
  }

  input[type="radio"] + label span {
    width: 2vw;
    height: 2vw;
    margin-right: 1em;
    margin-left: 1em;
  }

  label span {
    font-size: 12px;
  }

  .projectPage form button {
    margin-top: 3vh;
    width: 20vw;
  }

  .projectPageFrom .textareaInputGroup textarea {
    margin-left: 0em;
  }

  form button {
    margin-top: 10vh;
    width: 30vw;
  }
}

@media (max-width: 500px) {
  form .inputgroup label,
  form .inputgroup input[type="text"],
  form .inputgroup textarea {
    line-height: 3;
  }
  form .inputgroup label,
  form .inputgroup input[type="text"],
  form .inputgroup textarea {
    font-size: 16px;
  }

  .contactSection .map {
    padding-top: 5vh;
    padding-bottom: 5vh;
  }
  .projectPageFrom .group-1,
  .projectPageFrom .group-2 {
    width: 100%;
  }
  .projectPage .infoDiv p {
    margin-top: 3vh;
  }
  input[type="radio"] + label span {
    width: 5vw;
    height: 5vw;
  }
  .projectPage form button {
    width: 50vw;
  }
  form button {
    width: 50vw;
  }
}
