/* Overlay */
.hcp-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

/* Modal */
.hcp-gate-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 900px;
  padding: 48px 56px 25px;
  z-index: 9999;
  display: none;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

/* Close button */
.hcp-gate-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 700;
  color: #7c0041;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

/* Title */
.hcp-gate-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Body */
.hcp-gate-body {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 24px;
}

/* Button */
.hcp-gate-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hcp-gate-btn {
  background: #7c0041;
  color: #fff;
  border: none;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}

.hcp-gate-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  margin-top: 8px;
}

/* Disclaimer */
.hcp-gate-disclaimer {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  color: #6b6b6b;
  max-width: 520px;
  margin: 0;
  padding-top: 2px;
}

/* Job code */
.hcp-gate-code {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  font-size: 14px;
  line-height: 1.35;
  color: #6b6b6b;
  margin: 0;
  padding-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hcp-gate-modal {
    width: 90%;
    padding: 32px 24px 24px;
  }

  .hcp-gate-title {
    font-size: 28px;
  }

  .hcp-gate-bottom {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }

  .hcp-gate-disclaimer {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .hcp-gate-code {
    grid-column: 2;
    justify-self: end;
    text-align: right;
  }
}

@media (max-width: 628px) {
  .hcp-gate-close {
    top: 12px;
    right: 12px;
    font-size: 26px;
  }

  .hcp-gate-btn {
    width: 100%;
    max-width: 520px;
    padding: 16px;
  }
}
