/* Dedicated catalog PDF download modal — separate from Get Best Price enquiry */

.pcd {
  --pcd-green: #0b5d4b;
  --pcd-green-dark: #084a3c;
  --pcd-amber: #f59e0b;
  --pcd-border: #dde3e3;
  --pcd-ink: #1c2528;
  --pcd-muted: #5b6b6f;
  --pcd-fill: #eef4f3;
  --pcd-err: #b42318;
  --pcd-focus: rgba(11, 93, 75, 0.28);

  font-family: Inter, system-ui, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.pcd[hidden],
.pcd[aria-hidden="true"] {
  display: none !important;
}

.pcd:not([hidden]) {
  display: flex !important;
}

.pcd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 25, 22, 0.62);
}

.pcd-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.pcd-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--pcd-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.pcd-body {
  padding: 28px 24px 24px;
}

.pcd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 24px;
  padding: 0 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--pcd-fill);
  color: var(--pcd-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pcd-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--pcd-ink);
  line-height: 1.25;
  padding-right: 28px;
}

.pcd-sub {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pcd-muted);
}

.pcd-sub strong {
  color: var(--pcd-ink);
  font-weight: 700;
}

.pcd-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pcd-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pcd-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pcd-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--pcd-ink);
}

.pcd-req {
  color: var(--pcd-err);
}

.pcd-opt {
  color: var(--pcd-muted);
  font-weight: 500;
  font-size: 11px;
}

.pcd-field input {
  height: 44px;
  border: 1px solid var(--pcd-border);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--pcd-ink);
  background: #fff;
}

.pcd-field > input:focus {
  outline: none;
  border-color: var(--pcd-green);
  box-shadow: 0 0 0 3px var(--pcd-focus);
}

.pcd-mobile {
  display: flex;
  align-items: stretch;
  height: 44px;
  border: 1px solid var(--pcd-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pcd-mobile:focus-within {
  border-color: var(--pcd-green);
  box-shadow: 0 0 0 3px var(--pcd-focus);
}

.pcd-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 0 12px;
  background: var(--pcd-fill);
  border-right: 1px solid var(--pcd-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--pcd-ink);
  user-select: none;
}

.pcd-mobile input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
}

.pcd-field.is-invalid > input,
.pcd-field.is-invalid .pcd-mobile {
  border-color: var(--pcd-err);
}

.pcd-field.is-invalid .pcd-mobile {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.pcd-err,
.pcd-form-error {
  margin: 0;
  min-height: 0;
  font-size: 12px;
  color: var(--pcd-err);
}

.pcd-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--pcd-green);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pcd-submit:hover {
  background: var(--pcd-green-dark);
  color: #fff;
}

.pcd-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pcd-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1px solid var(--pcd-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pcd-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pcd-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--pcd-muted);
}

.pcd-success {
  text-align: center;
  padding-top: 36px;
  padding-bottom: 28px;
}

.pcd-success-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8f8ef;
  color: var(--pcd-green);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.pcd-success .pcd-title {
  padding-right: 0;
}

@media (max-width: 480px) {
  .pcd {
    padding: 0;
    align-items: flex-end;
  }

  .pcd-dialog {
    max-width: none;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
}
