/* Name + email gate shown before any document download. Styles match the
   ecostrat.com GatedDownload modal. */
.gd-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* above the Popup Maker overlay */
  background: rgba(8, 20, 16, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: gdFade 0.18s ease;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@keyframes gdFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.gd-dialog {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  padding: 36px 34px 30px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.5);
  animation: gdRise 0.22s ease;
  text-align: left;
}
@keyframes gdRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.gd-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b6b6b;
  cursor: pointer;
  border-radius: 8px;
}
.gd-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #191b1f;
}
.gd-title {
  margin: 0 0 8px;
  padding: 0;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  color: #191b1f;
}
.gd-sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #3a3a3a;
}
.gd-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.gd-input {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  font: inherit;
  font-size: 15px;
  color: #191b1f;
  background: #fff;
  border: 1px solid rgba(26, 26, 22, 0.22);
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gd-input:focus {
  outline: none;
  border-color: #0f3d7d;
  box-shadow: 0 0 0 3px rgba(15, 61, 125, 0.14);
}
.gd-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #0f3d7d;
  border: 1px solid #0f3d7d;
  border-radius: 10px;
  padding: 13px 18px;
  cursor: pointer;
  text-transform: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.gd-btn:hover:not(:disabled) {
  background: #0a2d5c;
  transform: translateY(-1px);
}
.gd-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.gd-err {
  font-size: 13.5px;
  color: #c0392b;
  font-weight: 500;
}
@media (max-width: 480px) {
  .gd-dialog { padding: 30px 22px 24px; }
}
