/* applyForm Style
------------------------------------------------------------- */
.p-applyRequiredIcon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
  border: solid 1px #b7312c;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  color: #b7312c;
}
.p-applyForm {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 20px;
  padding-block: 40px 100px;
}
.p-applyForm__title {
  font-size: 24px;
  text-align: center;
  font-weight: bold;
}
.p-applyForm__lead {
  margin-top: 15px;
  text-align: center;
  font-size: 15px;
  line-height: 2;
}
.p-applyForm #error + .p-applyForm__lead {
  margin-top: 30px;
}
.p-applyForm__lead .p-applyRequiredIcon {
  padding: 6px 8px;
  margin-right: 5px;
  font-size: 12px;
}
.p-applyEntry {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.6;
}
.p-applyForm:has(.p-applyForm__lead.is-confirm) .p-applyEntry {
  gap: 40px;
}
.p-applyEntry__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 15px;
}
.p-applyEntry__item:has(.HTMLFORM_ELEMENT input[type=radio]),
.p-applyEntry__item:has(.HTMLFORM_LABEL_GROUP input[type=checkbox]) {
  gap: 5px;
}
.p-applyEntryTitle {
  width: 100%;
  font-size: 16px;
  line-height: 1.8;
  font-weight: bold;
}
.p-applyEntryTitle .p-applyRequiredIcon {
  margin-left: 8px;
}
.p-applyEntryInput label {
  cursor: pointer;
}
.p-applyEntryInput input[type=text],
.p-applyEntryInput input[type=password],
.p-applyEntryInput input[type=tel],
.p-applyEntryInput input[type=email],
.p-applyEntryInput input[type=text],
.p-applyEntryInput input[type=number],
.p-applyEntryInput textarea,
.p-applyEntryInput select {
  width: 100%;
  padding: 10px 15px;
  border: solid 1px #dfd3ba;
  font-size: 16px;
  background: #fff;
  color: #000;
  appearance: none;
  outline: none;
}
.p-applyEntryInput select {
  padding-right: 45px;
  background-size: 18px 18px;
  background-position: calc(100% - 15px) center;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iI2RmZDNiYSIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxwYXRoIGQ9Ik0yMTYuNDksMTA0LjQ5bC04MCw4MGExMiwxMiwwLDAsMS0xNywwbC04MC04MGExMiwxMiwwLDAsMSwxNy0xN0wxMjgsMTU5bDcxLjUxLTcxLjUyYTEyLDEyLDAsMCwxLDE3LDE3WiI+PC9wYXRoPjwvc3ZnPg==");
  background-repeat: no-repeat;
}
.p-applyEntryInput input[type=radio] {
  display: inline-flex;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  border: solid 1px #dfd3ba;
  background-color: #fff;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.p-applyEntryInput input[type=radio]:checked {
  border-color: #b7312c;
}
.p-applyEntryInput input[type=radio]:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  transition: background-color 0.15s ease-in-out;
}
.p-applyEntryInput input[type=radio]:checked:after {
  background-color: #b7312c;
}
.p-applyEntryInput input[type=checkbox] {
  display: inline-flex;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0;
  border: solid 1px #dfd3ba;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.p-applyEntryInput input[type=checkbox]:checked {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iI2ZmZmZmZiIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxwYXRoIGQ9Ik0yNDMuMzEsOTAuOTFsLTEyOC40LDEyOC40YTE2LDE2LDAsMCwxLTIyLjYyLDBsLTcxLjYyLTcyYTE2LDE2LDAsMCwxLDAtMjIuNjFsMjAtMjBhMTYsMTYsMCwwLDEsMjIuNTgsMEwxMDQsMTQ0LjIybDk2Ljc2LTk1LjU3YTE2LDE2LDAsMCwxLDIyLjU5LDBsMTkuOTUsMTkuNTRBMTYsMTYsMCwwLDEsMjQzLjMxLDkwLjkxWiI+PC9wYXRoPjwvc3ZnPg==");
  background-color: #b7312c;
  border-color: #b7312c;
}
.p-applyEntryInput .HTMLFORM_ELEMENT:has(input[type=radio]),
.p-applyEntryInput .HTMLFORM_LABEL_GROUP:has(input[type=checkbox]) {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 10px;
  margin-top: 15px;
}
.p-applyEntryInput input[type=file] {
  font-size: 14px;
}
.p-applyEntryComment {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}
.p-applyButtonarea {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 300px;
  margin-top: 35px;
  margin-inline: auto;
}
.p-applyForm:has(.p-applyForm__lead.is-input) .p-applyButtonarea {
  margin-top: 25px;
}
.p-applyButtonarea:has(.p-applyButtonarea__button.is-branch) {
  opacity: 0;
}
.p-applyButtonarea:has(.p-applyButtonarea__button.is-branch.is-active) {
  opacity: 1;
}
.p-applyButtonarea .p-applyButtonarea__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 10px 10px;
  border: solid 2px #999;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  background-color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
}
.p-applyButtonarea .p-applyButtonarea__button.is-positive {
  border-color: #b7312c;
  background-color: #b7312c;
}
.p-applyButtonarea .p-applyButtonarea__button.is-branch {
  display: none;
}
.p-applyButtonarea .p-applyButtonarea__button.is-branch.is-active {
  display: flex;
}
.p-applyForm:has(.p-applyForm__lead.is-confirm) .p-applyEntryInput {
  font-size: 15px;
}
.p-applyForm #error {
  width: 100%;
  margin-top: 40px;
  margin-inline: auto;
  padding: 20px;
  font-size: 15px;
  line-height: 1.8;
  border: solid 1px #b7312c;
  color: #b7312c;
  background: #fff;
}
.p-applyForm #error table {
  width: 100%;
  margin: 0;
}
.p-applyForm #error .ico {
  display: none;
}
@media screen and (max-width: 767px) {
  .p-applyForm {
    padding-block: 20px 80px;
  }
  .p-applyForm__title {
    font-size: 22px;
  }
  .p-applyForm__lead {
    text-align: left;
  }
  .p-applyRequiredIcon {
    padding: 4px 8px;
    font-size: 12px;
  }
  .p-applyEntryInput .HTMLFORM_ELEMENT:has(input[type=radio]),
  .p-applyEntryInput .HTMLFORM_LABEL_GROUP:has(input[type=checkbox]) {
    font-size: 14px;
  }
  .p-applyEntryInput select {
    padding-right: 40px;
    background-position: calc(100% - 10px) center;
  }
  .p-applyForm #error {
    margin-top: 30px;
    padding: 15px;
    font-size: 14px;
  }
}
@media (hover: hover) {
  .p-applyButtonarea .p-applyButtonarea__button:hover {
    color: #707070;
    background-color: #fff;
  }
  .p-applyButtonarea .p-applyButtonarea__button.is-positive:hover {
    color: #b7312c;
    background-color: #fff;
  }
}