/* AITECH Single Proposal Styles */
@import url("https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:wght@300;400;500;600;700&display=swap");

.terms-modal-scroll-content a {
  color: #9b9b9b;
  text-decoration: underline;
}

.terms-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.terms-modal {
  background: url("../assets/terms-and-condition.svg") no-repeat center center;
  background-size: contain;
  border-radius: 24px;
  width: 90%;
  min-width: 521px;
  max-width: 521px;
  max-height: 644px;
  min-height: 620px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.terms-modal-close-button {
  position: absolute;
  top: 16px;
  right: 14px;
  cursor: pointer;
  padding: 8px;
  z-index: 1;
}

.terms-modal-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.terms-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.terms-modal-header-title {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: "Roboto Flex";
  font-weight: 600;
  font-size: 32px;
  line-height: 130%;
  letter-spacing: 0%;
  text-align: left;
  max-width: 95%;
}

.terms-modal-body {
  flex: 1;
  overflow: hidden;
  margin-bottom: 24px;
}

.terms-modal-scroll {
  height: 100%;
  overflow-y: auto;
  background: radial-gradient(
    53.8% 202.1% at 2.6% 0%,
    #262626 0%,
    #191919 100%
  );
  position: relative;
  border-radius: 24px;
  padding: 24px;
  font-family: "Roboto Flex";
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #ffffff;
}

.terms-modal-scroll-content {
  white-space: normal;
  margin-bottom: 16px;
}

.terms-modal-scroll::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(294.61deg, #202020 32.04%, #2d2d2d 74.52%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terms-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terms-modal-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-modal-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid #4e4e4e;
  border-radius: 4px;
}

.terms-modal-checkbox label {
  font-size: 14px;
  color: #4e4e4e;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-primary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  gap: 10px;
  height: 48px;
  background: linear-gradient(89.55deg, #999999 1.35%, #4e4e4e 107.89%);
  border: none;
  border-radius: 2px 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 18px;
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 550px) {
  .terms-modal {
    width: 95%;
    max-height: 95vh;
    min-height: unset;
    min-width: unset;
    background: url("../assets/terms-mobile.svg") no-repeat center center;
    background-size: contain;
    max-width: 400px;
  }

  .term-modal-close-button {
    right: 10px;
  }

  .terms-modal-scroll {
    font-size: 14px;
    line-height: 22px;
  }

  .terms-modal-header-title {
    font-size: 24px;
    line-height: 24px;
  }

  .terms-modal-accept-button {
    margin-left: unset !important;
  }
}

@media (max-width: 440px) {
  .terms-modal-content {
    padding: 40px 50px;
  }
  .terms-modal-scroll {
    font-size: 12px;
    line-height: 20px;
  }
  .terms-modal-close-button {
    top: 10px;
    right: 28px;
  }
}

@media (max-width: 414px) {
  .terms-modal-close-button {
    top: 10px;
    right: 25px;
  }
}

@media (max-width: 400px) {
  .terms-modal-close-button {
    top: 10px;
    right: 10px;
  }
  .terms-modal-content {
    padding: 40px;
  }
}

@media (max-width: 380px) {
  .terms-modal-close-button {
    top: 25px;
    right: 5px;
  }
}

@media (max-width: 361px) {
  .terms-modal-close-button {
    top: 25px;
    right: 5px;
  }
  .terms-modal-scroll {
    max-height: 360px;
  }
}
