/* Downloads page — gated PDF request modal */

.downloads-section-alt{
  background:var(--bg-2);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.download-card-trigger{
  display:flex;
  flex-direction:column;
  height:100%;
  width:100%;
  padding:0;
  border:none;
  background:transparent;
  text-align:left;
  cursor:pointer;
  color:inherit;
  font:inherit;
}

.download-card-trigger:focus-visible{
  outline:2px solid var(--navy);
  outline-offset:3px;
}

.download-modal{
  border:none;
  padding:0;
  max-width:none;
  width:100%;
  height:100%;
  background:rgba(10,31,70,.55);
}

.download-modal::backdrop{
  background:rgba(10,31,70,.55);
}

.download-modal[open]{
  display:grid;
  place-items:center;
  padding:24px 16px;
}

.download-modal-panel{
  position:relative;
  width:min(640px, 100%);
  max-height:min(92vh, 900px);
  overflow:auto;
  background:#fff;
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  box-shadow:var(--shadow-lg);
}

.download-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:40px;
  height:40px;
  border:none;
  border-radius:8px;
  background:var(--bg-2);
  color:var(--ink);
  cursor:pointer;
  display:grid;
  place-items:center;
  z-index:2;
}

.download-modal-close:hover{
  background:var(--bg-3);
}

.download-modal-head{
  background:linear-gradient(135deg, #0A1F46, #0E2A5E);
  padding:28px 32px 24px;
  padding-right:56px;
}

.download-modal-head h2{
  color:#fff;
  font-size:22px;
  font-weight:700;
  margin-bottom:6px;
}

.download-modal-doc{
  color:#fff;
  font-size:15px;
  font-weight:600;
  margin-bottom:8px;
}

.download-modal-lede{
  color:rgba(255,255,255,.75);
  font-size:13.5px;
  line-height:1.55;
  max-width:52ch;
}

.download-request-form{
  padding:28px 32px 32px;
}

.download-request-form .form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.download-request-form .form-full{
  grid-column:1 / -1;
}

.download-request-form .form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.download-request-form label{
  font-size:13px;
  font-weight:600;
  color:var(--ink);
}

.download-request-form label .req{
  color:var(--red);
}

.download-request-form input,
.download-request-form select{
  padding:11px 14px;
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  font-family:var(--font-body);
  font-size:14px;
  color:var(--ink);
  background:#fff;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
  width:100%;
  box-sizing:border-box;
}

.download-request-form input:focus,
.download-request-form select:focus{
  border-color:var(--navy);
  box-shadow:0 0 0 3px var(--navy-50);
}

.download-request-form input.is-invalid,
.download-request-form select.is-invalid{
  border-color:var(--red);
  box-shadow:0 0 0 3px var(--red-50);
}

.download-request-form select{
  appearance:none;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6478' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:40px;
}

.consent-label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  font-weight:400;
  color:var(--muted);
  line-height:1.5;
  cursor:pointer;
}

.consent-label input{
  width:auto;
  margin-top:3px;
  flex-shrink:0;
}

.field-error{
  font-size:12px;
  color:var(--red);
  min-height:16px;
}

.form-banner{
  margin-top:8px;
  padding:12px 14px;
  border-radius:var(--radius);
  font-size:13px;
  line-height:1.45;
}

.form-banner-error{
  background:var(--red-50);
  color:var(--red-700);
  border:1px solid rgba(196,30,58,.2);
}

.download-request-form .form-submit{
  margin-top:8px;
}

.download-request-form .form-submit .btn-primary{
  width:100%;
  justify-content:center;
  padding:14px;
  font-size:15px;
}

.download-request-form .form-note{
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin-top:12px;
}

.download-request-form .form-note a{
  color:var(--navy);
  font-weight:600;
}

.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}

.download-modal-success{
  padding:40px 32px 36px;
  text-align:center;
}

.download-modal-success .check{
  width:64px;
  height:64px;
  background:var(--red-50);
  color:var(--red);
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
}

.download-modal-success h3{
  font-size:22px;
  margin-bottom:8px;
}

.download-modal-success p{
  color:var(--muted);
  max-width:40ch;
  margin:0 auto 20px;
  font-size:14px;
  line-height:1.55;
}

.download-modal-success .btn-dark{
  min-width:140px;
}

@media(max-width:900px){
  .download-request-form .form-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .download-modal[open]{
    padding:12px 8px;
    align-items:flex-end;
  }

  .download-modal-panel{
    max-height:94vh;
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
  }

  .download-modal-head,
  .download-request-form,
  .download-modal-success{
    padding-left:20px;
    padding-right:20px;
  }
}
