.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99 !important;
}

.modal-content {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: 32px; */

  width: 100%;
  max-width: 438px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  button {
    /* margin-top: 32px; */
  }
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.profile-image {
  width: 90px;
  height: 90px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #ededed;
  overflow: hidden;
}

.modal-text {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.modal-header span {
  display: block;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  color: var(--tertiary-color);
  /* margin-bottom: 32px; */
}

.modal-text span.modal-fail-text {
  font-size: 16px !important;
  font-style: normal;
  font-weight: 500;
  color: #555;
}

.modal-lottie {
  width: 300px;
  height: 70px;
  vertical-align: middle;
}

/* 샘플 모달  */
#sampleModal {
  z-index: 99 !important;
}

/* 상세분석 신청폼 모달 */
.apply-modal-content {
  text-align: left;
  background: var(--white-color);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 24px;

  width: 100%;
  max-width: 500px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.apply-modal-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apply-modal-close-btn {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

.apply-modal-text {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

.apply-modal-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.apply-modal-form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apply-modal-form-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.apply-modal-form-item li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apply-modal-form-item label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
}

.apply-modal-form-item label span {
  color: #ff4444;
}

.apply-modal-form-item input {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.apply-modal-form-item input:focus {
  outline: none;
  border-color: var(--main-color);
}

/* 추가 입력 필드 */
.apply-modal-another-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;

  h4 {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: #777;
  }
}

.apply-modal-another-item {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.apply-modal-another-item label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  width: 18%;
}

.apply-modal-another-item input {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
}

/* 동의 체크박스 */
.apply-modal-agree-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apply-modal-agree-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apply-modal-agree-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.apply-modal-agree-item label {
  font-size: 14px;
  color: var(--primary-color);
  flex: 1;
}

.apply-modal-agree-item button {
  background: none;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--tertiary-color);
}

/* .apply-modal-form button[type="submit"] {
  width: 100%;
  padding: 16px;
  background: var(--main-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
} */

.apply-modal-form button[type="submit"]:hover {
  background: var(--main-color);
}

.privacy-content,
.marketing-content {
  display: flex;
  flex-direction: column;
  gap: 40px;

  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  color: #333;
  line-height: 140%;

  p {
    text-align: left;

    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }

  strong {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    margin: 16px 0;
  }
}

/* 상세분석신청 완료 */
.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  gap: 40px;
  min-height: 500px;
}

.success-content-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;

  img {
    margin: 0 auto;
  }
  h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 16px 0 24px;
  }

  p {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    color: var(--tertiary-color);
    line-height: 140%;
  }
}

/* 가이드 모달 */
.guide-modal-content {
  background: var(--guide-color);
  color: var(--white-color);
  padding: 0px !important;
  border-radius: 20px;
  gap: 16px;
}

.guide-close-button {
  z-index: 30;
}

.guide-close-btn {
  padding: 10px;
}

.hidden {
  display: none;
}

/* 샘플 모달 */
.sample-modal-content {
  z-index: 30;
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;

  width: 100%;
  max-width: 438px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sample-modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.sample-modal-text {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  text-align: left;
}

.sample-modal-text-span {
  display: block;
  font-size: 16px;
  color: var(--secondary-color);
  font-weight: 500;
  margin-top: 4px;
}

.sample-modal-close-wrap {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-end;
}

/* 분석 전 동의 모달 */
.agree-modal-content {
  background: var(--white-color);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.agree-modal-header {
  width: 100%;
}

.agree-modal-close-btn {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

.agree-modal-text {
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
}

.agree-modal-content-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agree-modal-content-item-inner {
  display: flex;
  padding: 26px 16px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background-color: #ededed;
  border-radius: 12px;

  .icon-wrap {
    background-color: #0b0b0b;
    display: flex;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
  }

  .text-wrap {
    font-size: 16.538px;
    font-style: normal;
    font-weight: 600;
    text-align: left;

    span {
      display: block;
      font-size: 13.231px;
      font-style: normal;
      font-weight: 500;
    }
  }
}

.agree-modal-text-close-btn {
  position: fixed;
  bottom: 10px;
  right: 0;
  left: 0;
  width: 90% !important;
  margin: 0 auto;
}

.description-wrap {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  color: var(--tertiary-color);

  width: 90%;
  margin: 0 auto;
}

.agree-modal-content-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}

.agree-modal-content-detail label {
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  color: #777777;
}

.agree-modal-content-detail button {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  color: var(--tertiary-color);
}

.agree-modal-content-text {
  text-align: left;
  height: 350px;
  overflow-y: auto;
  color: #333;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  padding-right: 10px;
  margin-bottom: 50px;

  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  &::-webkit-scrollbar-track {
    background: #d9d9d9;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #555555;
    border-radius: 3px;
  }

  button {
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .privacy-content,
  .marketing-content {
    height: 300px;
  }

  .modal-content,
  .apply-modal-content {
    width: 90%;
    margin: 0 auto;
  }

  .apply-modal-form {
    height: 300px;
    text-align: left;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }

  .apply-modal-form-item ul {
    flex-direction: column;
    gap: 24px;
  }

  .apply-modal-another-item {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
  }

  .-modal-content {
    width: 90%;
  }

  .sample-modal-content-img {
    max-height: 300px;
    overflow-y: auto;
  }

  .agree-modal-content-detail label,
  .description-wrap,
  .profile-button {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: #777777;
  }
}
