@import url("./variables.css");
:root {
  --modal-width: 1214px;
}

.open-modal-btn {
  background-color: var(--action-bg);
  width: fit-content;
  padding: 10px 16px;
  gap: 10px;
  border-radius: 8px;
  border: 0;
  color: var(--primary-color) !important;
  font-weight: 400 !important;
}

.cm-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #f8fcff;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: var(--modal-width);
  height: 779.17px;
  padding: 27px;
  /* gap: 9.48px; */
  border-radius: 15.18px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
}

.modal-container {
  margin-top: 20px;
  width: calc(calc(var(--modal-width) / 2) - 60px);
  padding: 37px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  align-self: stretch;
  margin: 0 10px;
  gap: 22px;
}

.modal-container h2 {
  margin-bottom: 10px;
  color: #2e2e2e;
  font-size: 34px;
  font-weight: 600;
  line-height: 29.05px;
  letter-spacing: -0.03em;
  text-align: left;
}

.modal-container p {
  margin-bottom: 20px;
  color: #4b4b4b;
}

.input-group {
  margin-bottom: 15px;
}

.input-group input,
.input-group textarea,
.phone-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
}

.input-group label {
  font-size: 13.28px;
  font-weight: 300;
  line-height: 18.97px;
  letter-spacing: -0.006em;
  text-align: left;
  margin-bottom: 5px;
}

.phone-group {
  display: flex;
  align-items: center;
}

.phone-group select {
  padding: 10px;
  border: 1px solid #d4d4d4;
  border-radius: 4px 0 0 4px;
  background-color: #f8fcff;
}

.phone-group input {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

.submit-btn {
  background-color: #325e73;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.submit-btn:disabled {
  background-color: #5b6e77;
  cursor: default;
}

.modal-content .schedule-call {
  position: relative;
  width: calc(calc(var(--modal-width) / 2) - 260px);
  margin: 0 auto;
}

.schedule-call > * {
  margin: 14px 0;
}

.schedule-call h3 {
  width: calc(calc(var(--modal-width) / 2) - 360px);
  font-size: 43.63px;
  font-weight: 700;
  line-height: 37.96px;
  letter-spacing: -0.03em;
  text-align: left;
  color: var(--primary-color);
}

.schedule-call p {
  font-size: 16px;
  font-weight: 300;
  line-height: 21.24px;
  letter-spacing: -0.03em;
  text-align: left;
  color: var(--text-black);
}

.schedule-call button {
  cursor: pointer;
  width: 100%;
  padding: 15.18px;
  border-radius: 15.69px;
  border-left: 9.48px solid var(--primary-color);
  border-bottom: 9.48px solid var(--primary-color);
  border-top: 0;
  border-right: 0;
  background-color: var(--action-bg);
  font-size: 17px;
  font-weight: 700;
}

.success-notification {
  width: 100%;
  height: 157px;
  padding: 17px 13px 17px 13px;
  gap: 13px;
  border: 8px 0px 0px 0px;
  border-top: 8px solid var(--Primary-Green, #41b06e);
  opacity: 0px;
  display: none;
  position: absolute;
  top: -35px;
  left: 0;
  background: #e5fff0;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
  text-align: center;
  transition: top 0.3s ease;
}

.success-notification.show {
  display: block;
  top: 10px;
}

.notify-container {
  position: relative;
}

.modal-content .mobile-schedule {
  display: none;
}

.trigger-modal {
  cursor: pointer;
}

@media (max-width: 768px) {
  :root {
    --mobile-height: 553px;
    --marquee-width: 100vw;
    --marquee-height: 16vh;
    --marquee-elements-displayed: 3;
    --mobile-width: 310px;
  }

  .modal-content .mobile-schedule {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    background-color: #f5f7fa;
    padding: 5px;
    margin: 10px 0;
  }

  .mobile-schedule p {
    color: #99a0ae;
  }

  .mobile-schedule button {
    background-color: var(--action-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .input-group label {
    display: none;
  }

  .modal > * {
    margin: 0 20px;
  }

  .hr-line {
    display: none;
  }

  .modal-content {
    flex-direction: column;
    width: 400px;
    height: auto;
    margin: 0 auto;
    overflow-y: auto;
    border-radius: 5px;
  }

  .modal-container {
    width: var(--mobile-width);
    gap: 10px;
  }

  .modal-content .schedule-call {
    width: var(--mobile-width);
    display: none;
  }

  .schedule-call h3 {
    width: unset;
    font-size: 32px;
  }

  .input-group {
    margin-bottom: 15px;
  }

  .modal-container h2 {
    font-size: 18px !important;
  }

  .modal-container p {
    font-size: 15px !important;
  }

  .modal-container h2,
  .modal-container p {
    margin-bottom: 1px;
  }
}
