/* U.S. Direct Hire — "Book a Consultation" popup
   Shared across Workforce Solutions, EB-3 Workers, Remote Talent, and Care Hub.
   Uses each page's own --blue or --green variables automatically (falls back
   to a default blue if neither is defined), so it stays on-brand per page. */

.cp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, 0.55);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cp-overlay.cp-open { display: flex; }

.cp-card {
  background: #fff;
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.cp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f2f5;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #5f6b7a;
  cursor: pointer;
}
.cp-close:hover { background: #e3e7ee; }

.cp-title {
  font-size: 21px;
  font-weight: 700;
  color: #16191f;
  margin-bottom: 6px;
}
.cp-sub {
  font-size: 14px;
  color: #5f6b7a;
  margin-bottom: 16px;
}

.cp-fn-redirect {
  display: block;
  font-size: 12.5px;
  color: var(--blue, var(--green, #1A6AFF));
  background: var(--bg-light, #f5f7fa);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  text-decoration: none;
  font-weight: 600;
}
.cp-fn-redirect:hover { text-decoration: underline; }

.cp-row { margin-bottom: 14px; }
.cp-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #16191f;
  margin-bottom: 5px;
}
.cp-row input,
.cp-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #dde2ea;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: #16191f;
  background: #fff;
}
.cp-row input:focus,
.cp-row select:focus {
  outline: none;
  border-color: var(--blue, var(--green, #1A6AFF));
}

.cp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--blue, var(--green, #1A6AFF));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: background 0.2s ease;
}
.cp-submit:hover { background: var(--blue-dark, var(--green-dark, #0f4fd1)); }
.cp-submit:disabled { opacity: 0.7; cursor: default; }

.cp-success { display: none; text-align: center; padding: 12px 4px 4px; }
.cp-success.cp-show { display: block; }
.cp-success .cp-success-title {
  font-size: 19px;
  font-weight: 700;
  color: #16191f;
  margin-bottom: 8px;
}
.cp-success p { font-size: 14px; color: #5f6b7a; line-height: 1.55; }

.cp-error {
  display: none;
  font-size: 12.5px;
  color: #b3261e;
  margin-top: 10px;
  text-align: center;
}
.cp-error.cp-show { display: block; }

@media (max-width: 480px) {
  .cp-card { padding: 26px 22px; }
}
