*,
.modal,
.modal-content,
:after,
:before {
  box-sizing: border-box;
}
.modal,
.overlay {
  visibility: hidden;
  opacity: 0;
  transition-duration: 0.3s;
}
.additional-text,
.photo_submit-plus:after {
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}
*,
:after,
:before {
  margin: 0;
  padding: 0;
}
.disabled {
  background-color: #ccc;
  color: #666;
}
label {
  margin-left: 5px;
  margin-top: 5px;
}
.highlight {
  color: #1c8e30;
  cursor: pointer;
}
.additional-text {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  position: fixed;
  max-width: 800px;
  width: 100%;
}
.close-button {
  position: absolute;
  top: 0;
  right: 0;
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 16px;
  line-height: 1;
}
.warning {
  color: red;
  display: none;
}
.wrapper {
  max-width: 826px;
  margin: 30px auto;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2rem;
  margin-bottom: 20px;
}
.logo-desc {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
}
.photo_submit-container {
  display: flex;
  max-width: 800px;
  margin-top: 5px;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
}
.modal,
.modal-content {
  padding: 20px;
  width: 100%;
}
.photo_submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: #eaeceb;
  border-radius: 1px;
  margin: 0;
}
.photo_submit:hover {
  cursor: pointer;
  background: #ebebeb;
}
.photo_submit:nth-child(2),
.photo_submit:nth-child(3),
.photo_submit:nth-child(4) {
  margin-left: 1rem;
}
.photo_submit.photo_submit--image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.photo_submit.photo_submit--image:hover {
  cursor: default;
}
.file-label input,
.photo_submit--image .photo_submit-plus,
.photo_submit--image .photo_submit-uploadLabel,
.photo_submit-input {
  display: none;
}
.img-item a,
.photo_submit--image .photo_submit-delete {
  display: inline-block;
}
.photo_submit-plus {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: 0 0;
  pointer-events: none;
}
.photo_submit-plus:after {
  position: absolute;
  background-image: url(image/addphoto.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  content: '';
  font-size: 36px;
  color: #fff;
  width: 100%;
  height: 100%;
}
.photo_submit-uploadLabel {
  margin-top: 1rem;
  font-size: 21px;
  color: #5f9ea0;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.photo_submit-delete {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: #f8f8f8;
  border-radius: 50%;
  text-indent: -9999px;
  cursor: pointer;
}
.photo_submit-delete:after,
.photo_submit-delete:before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background-color: #5f9ea0;
  content: '';
}
.photo_submit-delete:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.photo_submit-delete:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.photo_submit-delete:hover {
  background: #ccc;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
}
.modal.active,
.overlay.active {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  background-color: #fefefe;
  margin: 0;
  border: 1px solid #888;
  text-align: center;
  max-width: 400px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  flex-direction: column;
  gap: 20px;
}
.modal-content p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.main-wrapper {
  max-width: 906px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.img-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: auto;
}
.photo-upload__wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 5px;
}
.file-label {
  background-image: url(image/addphoto.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 90px;
  height: 90px;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  /* margin-right: 10px; */
}
.img-item {
  display: block;
  margin-right: 20px;
  position: relative;
}
.img-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #d3d3d3;
}
.img-item a {
  background: url(image/remove.png) no-repeat;
  position: absolute;
  top: -5px;
  right: -9px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.form-box {
  margin-bottom: 40px;
}
body,
html {
  scrollbar-gutter: stable;
}
.overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  background-color: #00000059;
}
.no-overflow {
  overflow: hidden;
}

.loader {
  width: 30px;
  margin: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(farthest-side, #088a33 94%, #0000) top / 8px 8px no-repeat,
    conic-gradient(#0000 30%, #088a33);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
  animation: l13 1s infinite linear;
  opacity: 0;
}

.loader.active {
  opacity: 0;
}

@keyframes l13 {
  100% {
    transform: rotate(1turn);
  }
}
.file-label-file {
  background-image: url(image/attach.svg);
  background-size: 31px;
  background-color: #eaeceb;
}
.file-label-wrap {
  display: block;
  overflow: hidden;
  position: relative;
  margin-right: 10px;
}
.file-label-name {
  font-size: 12px;
  margin-top: 5px;
  text-align: center;
  /* width: 50px; */
  /* margin: 0 auto; */
}

@media (max-width: 647px) {
  .photo_submit:nth-child(2),
  .photo_submit:nth-child(3),
  .photo_submit:nth-child(4) {
    margin: 0;
  }
  .form-submit {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #1c8e30;
    color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1em;
    cursor: pointer;
  }
  .checkbox-label span::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 500px) {
  .additional-text {
    padding: 19px;
  }
  .main-wrapper {
    padding: 0 10px;
  }
  .form-field label {
    margin-bottom: 5px;
    font-size: 12px;
    margin-left: 0;
  }
  .logo-desc {
    font-size: 20px;
  }
  .photo-upload__wrap {
    flex-wrap: wrap;
  }
  .file-label,
  .img-item img {
    width: 70px;
    height: 70px;
  }
  .img-item {
    margin-right: 13px;
  }
}
