/* "For Candidates" modal — cream card over a blurred dark scrim, matching
   the site's muted cream/ink palette. Opened from the floating nav. */

.cd-lock,
.cd-lock body {
  overflow: hidden;
}

.cd-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 5vh, 4rem) 1rem;
  overflow-y: auto;
  background: rgba(8, 8, 7, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cd-overlay.is-open {
  display: flex;
  animation: cd-fade 0.25s ease;
}

@keyframes cd-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cd-card {
  position: relative;
  width: min(30rem, 100%);
  margin: auto 0;
  padding: 2.25rem 2rem 2rem;
  border-radius: 1.5rem;
  background: #faf8f4;
  color: #1c1e22;
  font-family: Aeonik, Arial, sans-serif;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
  animation: cd-rise 0.3s cubic-bezier(0.3, 1, 0.35, 1);
}

@keyframes cd-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cd-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 30, 34, 0.06);
  color: #1c1e22;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cd-close:hover {
  background: rgba(28, 30, 34, 0.12);
}

.cd-title {
  margin: 0 0 0.75rem;
  font-family: Featuredisplay, Arial, sans-serif;
  font-weight: 300;
  font-size: 1.875rem;
  letter-spacing: -0.01em;
  color: #14213a;
}

.cd-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4b4f57;
}

.cd-field {
  margin-bottom: 1rem;
}

.cd-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #14213a;
}

.cd-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  color: #1c1e22;
  background: #ffffff;
  border: 1px solid #ddd8cd;
  border-radius: 0.625rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cd-input:focus {
  border-color: #9aa7c2;
  box-shadow: 0 0 0 3px rgba(20, 33, 58, 0.1);
}

.cd-input::placeholder {
  color: #a8a49a;
}

.cd-input.cd-invalid {
  border-color: #c0655a;
}

.cd-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cd-file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px dashed #cfc9bb;
  border-radius: 0.625rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.cd-file:hover {
  border-color: #9aa7c2;
}

.cd-file-input:focus-visible + .cd-file,
.cd-file:focus-within {
  border-color: #9aa7c2;
  box-shadow: 0 0 0 3px rgba(20, 33, 58, 0.1);
}

.cd-file-btn {
  flex: none;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: #eceadf;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #14213a;
  white-space: nowrap;
}

.cd-file-name {
  font-size: 0.8125rem;
  color: #6d6a61;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-hp {
  position: absolute;
  left: -624.9375rem;
  opacity: 0;
}

.cd-submit {
  display: block;
  width: 100%;
  margin-top: 1.375rem;
  padding: 0.8125rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #14213a;
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cd-submit:hover {
  background: #24345c;
}

.cd-submit:disabled {
  background: #5b6478;
  cursor: default;
}

.cd-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #b0524a;
}

.cd-submit-error {
  margin-top: 0.875rem;
}
