/* ===============================
   PDF → JPG TOOL PAGE CSS
   Matches HEIC tool design
================================ */

.hide { display: none !important; }

/* HERO */
.hero-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

/* TOOL BOX */
.tool-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
}

/* UPLOAD */
.upload-block {
  margin-bottom: 14px;
}
.upload-block label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.file-info {
  margin-top: 6px;
  font-size: 14px;
  color: #475569;
}

/* OPTIONS */
.options-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: end;
}
.options-block label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}
.options-block input,
.options-block select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #dbe4ff;
  background: #fff;
  font-size: 14px;
}

/* CONVERT BUTTON */
#convertBtn {
  margin-top: 18px;
  height: 44px;
}

/* PROGRESS BOX */
.progress-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.progress-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.progress-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: #e5edff;
  overflow: hidden;
}
#progressFill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg,#0b76ff,#2563eb);
  transition: width .28s ease;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(37,99,235,.25);
  border-top-color: #2563eb;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-sub {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

/* SUCCESS RIBBON */
.success-ribbon {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg,#16a34a,#22c55e);
}

/* RESULTS */
.results {
  margin-top: 22px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
@media (max-width:900px){
  .results-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:560px){
  .results-grid { grid-template-columns: 1fr; }
}

/* RESULT CARD */
.result-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-img-box {
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  background: #eff6ff;
  position: relative;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.page-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2563eb;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.card-filename {
  font-weight: 800;
  font-size: 13px;
  word-break: break-word;
}

/* RESULTS CONTROLS */
.results-controls {
  margin-top: 10px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 1fr 180px minmax(260px,1.2fr);
  gap: 12px;
}
@media (max-width:900px){
  .results-controls { grid-template-columns: 1fr; }
}

/* ZIP */
.zip-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* SEO SECTION */
.seo-section {
  margin-top: 42px;
}
.seo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width:900px){
  .seo-grid { grid-template-columns: 1fr; }
}

/* SEO CONTENT */
.seo-content h2 {
  margin: 22px 0 10px;
  font-size: 22px;
}
.seo-content ul,
.seo-content ol {
  padding-left: 18px;
  margin: 0 0 8px;
}
.seo-content li {
  margin-bottom: 8px;
  color: #334155;
}

/* COMPARE */
.compare {
  margin-top: 12px;
  border: 1px solid #e6eefb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.compare-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #eef4ff;
}
.compare-row:first-child { border-top: none; }

/* RIGHT STICKY CARD */
.visual-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  position: sticky;
  top: 92px;
}
@media (max-width:900px){
  .visual-card { position: static; }
}
.visual-card h3 { margin: 0 0 10px; }
.visual-card ul { padding-left: 18px; margin: 0; }
.visual-card li { margin-bottom: 8px; }

.mini-cta { margin-top: 14px; }
.mini-cta .btn { width: 100%; }
.mini-cta .small { text-align: center; margin-top: 6px; }
