.pdg-modal,
.pdg-modal * {
  box-sizing: border-box;
}

body.pdg-modal-open {
  overflow: hidden;
}

.pdg-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

.pdg-modal.is-open {
  display: flex;
}

.pdg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(2px);
}

.pdg-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  padding: 30px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.pdg-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.pdg-modal__title {
  margin: 0 56px 38px;
  color: #111;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.18;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.pdg-modal__description {
  margin: 0 0 16px;
  color: #111;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.pdg-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 28px;
}

.pdg-span-12 { grid-column: span 12; }
.pdg-span-6 { grid-column: span 6; }
.pdg-span-4 { grid-column: span 4; }
.pdg-span-3 { grid-column: span 3; }

.pdg-field input[type="text"],
.pdg-field input[type="email"],
.pdg-field input[type="url"],
.pdg-field select {
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdg-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111 50%),
    linear-gradient(135deg, #111 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 27px,
    calc(100% - 14px) 27px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

.pdg-field input:focus,
.pdg-field select:focus {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.pdg-field input::placeholder {
  color: #777;
  opacity: 1;
}

.pdg-checkbox-row {
  margin-top: -2px;
}

.pdg-checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #111;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.pdg-checkbox-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #111;
}

.pdg-checkbox-row a {
  color: #111;
  text-decoration: underline;
}

.pdg-recaptcha-wrap {
  min-height: 78px;
}

.pdg-submit {
  min-width: 130px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #111;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pdg-submit:hover,
.pdg-submit:focus {
  background: #fff;
  color: #111;
}

.pdg-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pdg-form-message {
  display: none;
  margin: 0 0 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.pdg-form-message.is-error,
.pdg-form-message.is-success {
  display: block;
}

.pdg-form-message.is-error {
  border: 1px solid #b42318;
  background: #fff4f2;
  color: #8a1c13;
}

.pdg-form-message.is-success {
  border: 1px solid #1d7a38;
  background: #f0fbf3;
  color: #155d2b;
}

.pdg-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pdg-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pdg-download.is-checking {
  opacity: 0.65;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .pdg-modal__dialog {
    padding: 28px 22px;
  }

  .pdg-form {
    gap: 16px;
  }

  .pdg-span-3,
  .pdg-span-4 {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .pdg-modal {
    align-items: flex-end;
    padding: 0;
  }

  .pdg-modal__dialog {
    width: 100%;
    max-height: 94vh;
    padding: 24px 16px 28px;
    border: 0;
    border-radius: 16px 16px 0 0;
  }

  .pdg-modal__close {
    top: 8px;
    right: 8px;
  }

  .pdg-modal__title {
    margin: 8px 42px 22px 0;
    font-size: 22px;
    text-align: left;
  }

  .pdg-modal__description {
    margin-bottom: 18px;
    font-size: 14px;
    text-align: left;
  }

  .pdg-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pdg-span-12,
  .pdg-span-6,
  .pdg-span-4,
  .pdg-span-3 {
    grid-column: 1 / -1;
  }

  .pdg-field input[type="text"],
  .pdg-field input[type="email"],
  .pdg-field input[type="url"],
  .pdg-field select {
    height: 56px;
    font-size: 16px;
  }

  .pdg-checkbox-row label {
    font-size: 13px;
  }

  .pdg-recaptcha-wrap {
    overflow-x: auto;
  }

  .pdg-submit {
    width: 100%;
    min-height: 50px;
  }
}
