.hcp-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.hcp-modal[aria-hidden="false"] {
  display: flex;
}

.hcp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.hcp-dialog {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 480px;
  width: calc(100% - 40px);
  z-index: 1;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.hcp-dialog h2 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  color: #212121;
  text-align: center;
}

.hcp-dialog p {
  font-size: 14px;
  line-height: 1.6;
  color: #212121;
  margin: 0;
  padding: 0 0 16px 0;
  text-align: center;
  border-bottom: 1px solid #ddd;
}
.actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  /*justify-content: flex-end;*/
  justify-content: center;
}

.hcp-btn {
  width: 200px;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  border: none;
}

.hcp-btn.primary {
  background: #000046;
  color: #fff;
}

.hcp-btn.secondary {
  background: #eee;
  color: #333;
}

@media screen and (max-width:767px){
  .hcp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 0 16px;
  }

  .hcp-modal[aria-hidden="false"] {
    display: flex;
  }

  .hcp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
  }

  .hcp-dialog {
    position: relative;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    width: calc(100% - 40px);
    z-index: 1;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  }

  .hcp-dialog h2 {
    margin-top: 16px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    color: #212121;
    text-align: center;
  }

  .hcp-dialog p {
    font-size: 14px;
    line-height: 1.6;
    color: #212121;
    margin: 0;
    padding: 0 0 16px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
  .actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    /*justify-content: flex-end;*/
    justify-content: center;
  }

  .hcp-btn {
    width: 200px;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    border: none;
  }

  .hcp-btn.primary {
    background: #000046;
    color: #fff;
  }

  .hcp-btn.secondary {
    background: #eee;
    color: #333;
  }
}
