/* Desktop: Center the form with equal spacing on both sides */
@media (min-width: 768px) {
  .pd-wrap {
    max-width: 70%;
    margin: 0 15%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

/* Mobile: Full width, input on first line, button on next line */
@media (max-width: 767px) {
  .pd-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .pd-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .pd-form input[type=text] {
    width: 100%;
  }
  .pd-form button,
  .pd-form input[type=submit],
  .pd-form .button,
  .pd-form .wp-element-button {
    width: 100%;
    max-width: none;
  }
}
/* Common styles */
.pd-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pd-form input[type=text] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 4px solid #dc2626 !important;
  border-radius: 12px;
  font-size: 16px;
  height: 48px;
}
.pd-form input[type=text]:focus {
  outline: 2px solid #dc2626 !important;
  outline-offset: 2px;
}
.pd-form button,
.pd-form input[type=submit],
.pd-form .button,
.pd-form .wp-element-button {
  padding: 0.5rem 1.25rem;
  background: #dc2626 !important;
  color: #fff !important;
  border: 4px solid #dc2626 !important;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  height: 48px;
  width: 100%;
  max-width: 150px;
}
.pd-form button:hover,
.pd-form input[type=submit]:hover,
.pd-form .button:hover,
.pd-form .wp-element-button:hover {
  background: #dc2626 !important;
}
.pd-form button:active,
.pd-form input[type=submit]:active,
.pd-form .button:active,
.pd-form .wp-element-button:active {
  background: #dc2626 !important;
}
.pd-form button:focus,
.pd-form input[type=submit]:focus,
.pd-form .button:focus,
.pd-form .wp-element-button:focus {
  outline: 2px solid #dc2626 !important;
  outline-offset: 2px;
}

.pd-output {
  margin-top: 1.25rem;
}
.pd-loading {
  color: #ef141f;
}
.pd-error {
  color: #b91c1c;
}
.pd-result {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pd-thumb img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.pd-meta {
  flex: 1;
}
.pd-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.pd-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.pd-download {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #dc2626 !important;
  color: #fff !important;
  border-radius: 12px;
  text-decoration: none;
  font-size: 20px;
  border: 4px solid #dc2626 !important;
}
.pd-download:hover {
  background: #dc2626 !important;
}
.pd-download:focus {
  outline: 2px solid #dc2626 !important;
  outline-offset: 2px;
}
