/* ═══════════════════════════════════
   APS Partners — PDF Download Modal
   ═══════════════════════════════════ */

.dl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,38,48,0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.dl-overlay.open {
  display: flex;
}

.dl-modal {
  background: #FFFFFF;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: dlSlideIn 0.25s cubic-bezier(0.22,1,0.36,1);
}
@keyframes dlSlideIn {
  from { opacity:0; transform: translateY(24px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Header */
.dl-header {
  background: #004E5C;
  padding: 24px 28px 20px;
  position: relative;
}
.dl-header-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #A8D8E2;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.dl-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 4px;
  line-height: 1.3;
}
.dl-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}
.dl-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}
.dl-close:hover { background: rgba(255,255,255,0.22); }

/* Body */
.dl-body {
  padding: 24px 28px 28px;
}

.dl-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dl-field label {
  font-size: 13px;
  font-weight: 500;
  color: #3A4A4D;
}
.dl-field .req { color: #E24B4A; font-size: 11px; }
.dl-field input,
.dl-field select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #D0DCDF;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  color: #1C2B2E;
  background: #FFFFFF;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.dl-field input:focus,
.dl-field select:focus {
  border-color: #007383;
  box-shadow: 0 0 0 3px rgba(0,115,131,0.1);
}
.dl-field input::placeholder { color: #A0ACAF; }

.dl-submit {
  width: 100%;
  padding: 13px;
  background: #007383;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: background .2s, transform .15s;
}
.dl-submit:hover { background: #005E6E; transform: translateY(-1px); }
.dl-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Success state */
.dl-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  gap: 14px;
}
.dl-success-icon {
  width: 64px; height: 64px;
  background: #D8F2F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.dl-success h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1C2B2E;
  margin: 0;
}
.dl-success p {
  font-size: 14px;
  color: #607276;
  line-height: 1.65;
  margin: 0;
}
.dl-success-close {
  padding: 10px 28px;
  background: #007383;
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s;
}
.dl-success-close:hover { background: #005E6E; }
