/* ========================= */
/* GENERAL */
/* ========================= */

body {
  font-family: Arial, sans-serif;
  background: #fafafa;
  margin: 0;
  text-align: center;
}

/* ========================= */
/* HEADER */
/* ========================= */

.topbar {
  background: white;
  padding: 18px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo a {
  font-size: 22px;
  font-weight: 700;
  color: #e5322d;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.menu a:hover {
  color: #e5322d;
}

/* ========================= */
/* MAIN */
/* ========================= */

.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ========================= */
/* TITLES */
/* ========================= */

h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.subtitle {
  color: #777;
  margin-bottom: 35px;
}

/* ========================= */
/* FEATURES */
/* ========================= */

.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  color: #666;
  font-size: 15px;
}

.feature {
  background: #f4f5f7;
  padding: 10px 16px;
  border-radius: 8px;
}

/* ========================= */
/* TOOL GRID */
/* ========================= */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 50px auto;
}

.tool-card {
  background: white;
  padding: 26px 22px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  color: #e5322d;
  border-color: #e5322d;
}

.tool-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: #e5322d;
  transition: 0.3s;
}

.tool-card:hover::after {
  width: 100%;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.main-btn {
  display: inline-block;
  background: #e5322d;
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin: 20px 0;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.main-btn:hover {
  background: #c62823;
}

/* ========================= */
/* UPLOAD */
/* ========================= */

.upload-box {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 500px;
  margin: 20px auto;
}

.upload-box:hover {
  background: #f4f5f7;
  border-color: #e5322d;
}

.upload-link {
  color: #e5322d;
  font-weight: 600;
}

#fileName {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

/* ========================= */
/* FILE INFO */
/* ========================= */

.file-info {
  font-size: 13px;
  color: #888;
  margin-top: 10px;
  margin-bottom: 30px;
}

/* ========================= */
/* SEO CONTENT */
/* ========================= */

.seo-content {
  max-width: 800px;
  margin: 60px auto;
  line-height: 1.7;
  color: #444;
  font-size: 16px;
}

/* ========================= */
/* STEPS */
/* ========================= */

.steps {
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
  line-height: 1.8;
  list-style: none; /* ✅ REMOVE BULLETS */
  padding-left: 0;
}

.steps li {
  display: flex;
  align-items: center;
  margin: 12px 0;
  font-size: 16px;
}

.step-number {
  background: #e5322d;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 10px;
}

/* ========================= */
/* BENEFITS */
/* ========================= */

.benefits {
  max-width: 400px;
  margin: 20px auto;
  text-align: left;
  color: #444;
  line-height: 1.6;
  list-style: none; /* ✅ REMOVE BULLETS */
  padding-left: 0;
}

.benefits li {
  margin: 8px 0;
}

/* ========================= */
/* RELATED TOOLS */
/* ========================= */

.more-tools {
  margin-top: 50px;
}

.tools-mini-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.tools-mini-grid a {
  background: #f3f3f3;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.tools-mini-grid a:hover {
  background: #e5322d;
  color: white;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer {
  margin-top: 60px;
  padding: 30px;
  background: #f2f2f2;
  font-size: 14px;
  color: #666;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  margin: 0 10px;
  color: #666;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e5322d;
}

/* ========================= */
/* SPINNER */
/* ========================= */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top: 4px solid #e5322d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 30px auto;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ========================= */
/* PDF PREVIEW */
/* ========================= */

.relative-container {
  position: relative;
  display: inline-block;
}

#pdfPreview {
  max-width: 600px;
  border: 2px solid #ddd;
  pointer-events: none; /* 🔥 critical for drag */
}

/* ========================= */
/* SIGNATURE */
/* ========================= */

#signatureWrapper {
  pointer-events: auto;
  user-select: none; /* 🔥 smooth drag */
}

/* ========================= */
/* OPTIONS */
/* ========================= */

.options-box {
  margin-top: 25px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.input-field {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
}

/* ========================= */
/* LINKS */
/* ========================= */

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {
  .main-container {
    padding: 30px 15px;
  }

  h1 {
    font-size: 28px;
  }

  .upload-box {
    padding: 25px;
  }

  #pdfPreview {
    max-width: 100%;
  }
}

#signatureWrapper {
  border: 1px dashed #ccc;
}