/* ==========================================================================
   P4PDF Tools — Classic PDF Red & Coral Theme (iLovePDF / Adobe style)
   Clean, modern, high-contrast & accessible.
   ========================================================================== */

:root {
  --p4-bg: #F8FAFC;
  --p4-card-bg: #FFFFFF;
  --p4-card-border: #E2E8F0;
  --p4-accent-1: #FF5757;
  --p4-accent-2: #E53E3E;
  --p4-accent-dark: #C53030;
  --p4-text: #0F172A;
  --p4-text-muted: #64748B;
  --p4-danger: #EF4444;
  --p4-success: #10B981;
  --p4-radius: 14px;
  --p4-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.p4pdf-tool-container {
  max-width: 860px;
  margin: 30px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--p4-text);
}

.p4pdf-card {
  background: var(--p4-card-bg);
  border: 1px solid var(--p4-card-border);
  border-radius: var(--p4-radius);
  padding: 40px 32px;
  box-shadow: var(--p4-shadow);
  transition: all 0.3s ease;
}

.p4pdf-header {
  text-align: center;
  margin-bottom: 28px;
}

.p4pdf-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.25);
  color: var(--p4-accent-2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.p4pdf-header h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: var(--p4-text);
  letter-spacing: -0.5px;
}

.p4pdf-header p {
  color: var(--p4-text-muted);
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

/* Privacy Guarantee Banner */
.p4pdf-privacy-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: #059669;
}
.p4pdf-privacy-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   Dropzone Area
   ========================================================================== */

.p4pdf-dropzone {
  border: 2px dashed #CBD5E1;
  background: #F8FAFC;
  border-radius: var(--p4-radius);
  padding: 55px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.p4pdf-dropzone:hover,
.p4pdf-dropzone.dragover {
  border-color: var(--p4-accent-2);
  background: rgba(229, 62, 62, 0.03);
  transform: translateY(-2px);
}

.p4pdf-dropzone-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  color: var(--p4-accent-2);
}

.p4pdf-dropzone-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--p4-text);
  margin-bottom: 6px;
}

.p4pdf-dropzone-sub {
  font-size: 14px;
  color: var(--p4-text-muted);
  margin-bottom: 20px;
}

.p4pdf-btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--p4-accent-1), var(--p4-accent-2));
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.p4pdf-btn-browse:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(229, 62, 62, 0.45);
  color: #fff !important;
}

/* ==========================================================================
   File List / Thumbnail Grid
   ========================================================================== */

.p4pdf-files-container {
  display: none;
  margin-top: 28px;
}

.p4pdf-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.p4pdf-file-card {
  background: #F8FAFC;
  border: 1px solid var(--p4-card-border);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  text-align: center;
  transition: all 0.2s ease;
}

.p4pdf-file-card:hover {
  border-color: var(--p4-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.p4pdf-file-thumb {
  width: 100%;
  height: 125px;
  background: #EDF2F7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.p4pdf-file-thumb img,
.p4pdf-file-thumb canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p4pdf-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--p4-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.p4pdf-file-meta {
  font-size: 12px;
  color: var(--p4-text-muted);
}

.p4pdf-file-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease;
}

.p4pdf-file-remove:hover {
  transform: scale(1.15);
  background: var(--p4-danger);
}

/* ==========================================================================
   Tool Options Panel
   ========================================================================== */

.p4pdf-options-panel {
  background: #F8FAFC;
  border: 1px solid var(--p4-card-border);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 24px;
}

.p4pdf-option-group {
  margin-bottom: 14px;
}
.p4pdf-option-group:last-child {
  margin-bottom: 0;
}

.p4pdf-option-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--p4-text);
  margin-bottom: 6px;
}

.p4pdf-input {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  color: var(--p4-text);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p4pdf-input:focus {
  border-color: var(--p4-accent-2);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.p4pdf-rotation-btns {
  display: flex;
  gap: 12px;
}

.p4pdf-rotation-btn {
  flex: 1;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--p4-card-border);
  color: var(--p4-text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.p4pdf-rotation-btn.active,
.p4pdf-rotation-btn:hover {
  background: var(--p4-accent-2);
  border-color: var(--p4-accent-2);
  color: #FFFFFF;
}

/* ==========================================================================
   Action & Download Buttons
   ========================================================================== */

.p4pdf-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.p4pdf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--p4-accent-1), var(--p4-accent-2));
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(229, 62, 62, 0.35);
  transition: all 0.2s ease;
}

.p4pdf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.5);
  color: #fff !important;
}

.p4pdf-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.p4pdf-btn-secondary {
  background: #FFFFFF;
  color: var(--p4-text-muted) !important;
  border: 1px solid var(--p4-card-border);
  padding: 12px 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.p4pdf-btn-secondary:hover {
  color: var(--p4-text) !important;
  border-color: #94A3B8;
}

/* ==========================================================================
   Progress & Processing State
   ========================================================================== */

.p4pdf-processing {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.p4pdf-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(229, 62, 62, 0.15);
  border-top-color: var(--p4-accent-2);
  border-radius: 50%;
  animation: p4pdf-spin 0.9s linear infinite;
  margin: 0 auto 18px;
}

@keyframes p4pdf-spin {
  to { transform: rotate(360deg); }
}

.p4pdf-progress-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--p4-text);
  margin-bottom: 6px;
}

.p4pdf-progress-sub {
  font-size: 14px;
  color: var(--p4-text-muted);
}

/* ==========================================================================
   Result / Success Screen
   ========================================================================== */

.p4pdf-result {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.p4pdf-result-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--p4-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.p4pdf-result-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--p4-text);
  margin-bottom: 8px;
}

.p4pdf-result-meta {
  font-size: 15px;
  color: var(--p4-text-muted);
  margin-bottom: 26px;
}

/* ==========================================================================
   Tools Grid (Categorized Directory / Homepage)
   ========================================================================== */

.p4pdf-grid-container {
  max-width: 1180px;
  margin: 40px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.p4pdf-category-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--p4-text);
  margin: 36px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--p4-card-border);
  padding-bottom: 12px;
}

.p4pdf-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.p4pdf-tool-card {
  background: var(--p4-card-bg);
  border: 1px solid var(--p4-card-border);
  border-radius: var(--p4-radius);
  padding: 26px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.p4pdf-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--p4-accent-2);
  box-shadow: 0 12px 32px rgba(229, 62, 62, 0.15);
}

.p4pdf-tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(229, 62, 62, 0.08);
  color: var(--p4-accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.25s ease;
}

.p4pdf-tool-card:hover .p4pdf-tool-card-icon {
  background: var(--p4-accent-2);
  color: #ffffff;
  transform: scale(1.05);
}

.p4pdf-tool-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--p4-text);
  margin: 0 0 8px 0;
}

.p4pdf-tool-card-desc {
  font-size: 14px;
  color: var(--p4-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   P4PDF Modern Site Footer (Classic PDF Red & Coral)
   ========================================================================== */

.site-footer,
footer.site-footer,
.p4pdf-footer {
  background-color: #0A0F1D !important;
  color: #94A3B8 !important;
  font-family: inherit;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
}

.p4pdf-footer-top-accent {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #FF5757 0%, #E53E3E 50%, #B91C1C 100%);
}

.p4pdf-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px 30px;
}

.p4pdf-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 50px;
}

/* Column 1: Brand */
.p4pdf-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  margin-bottom: 18px;
}

.p4pdf-footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(229, 62, 62, 0.12);
  border: 1px solid rgba(229, 62, 62, 0.25);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.p4pdf-footer-logo:hover .p4pdf-footer-logo-icon {
  background: rgba(229, 62, 62, 0.22);
  border-color: #FF5757;
  transform: translateY(-2px);
}

.p4pdf-footer-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: -0.5px;
}

.p4pdf-footer-logo-text span {
  color: #FF5757 !important;
}

.p4pdf-footer-tagline {
  color: #94A3B8 !important;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 22px 0;
  max-width: 380px;
}

.p4pdf-footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p4pdf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0 !important;
  letter-spacing: 0.2px;
}

/* Headings */
.p4pdf-footer-heading {
  color: #F8FAFC !important;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 20px 0;
  position: relative;
  padding-bottom: 10px;
}

.p4pdf-footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: #FF5757;
  border-radius: 2px;
}

/* Links */
.p4pdf-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.p4pdf-footer-links li {
  margin-bottom: 12px !important;
  padding: 0 !important;
  list-style-type: none !important;
}

.p4pdf-footer-links a {
  color: #94A3B8 !important;
  text-decoration: none !important;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.p4pdf-bullet {
  color: #64748B;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.p4pdf-footer-links a:hover {
  color: #FF5757 !important;
  transform: translateX(4px);
}

.p4pdf-footer-links a:hover .p4pdf-bullet {
  color: #FF5757;
}

.p4pdf-link-highlight {
  color: #FF5757 !important;
  font-weight: 600;
}

/* Column 4: Privacy Cards */
.p4pdf-privacy-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p4pdf-privacy-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.p4pdf-privacy-item:hover {
  border-color: rgba(229, 62, 62, 0.3);
}

.p4pdf-privacy-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.p4pdf-privacy-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 3px;
}

.p4pdf-privacy-text p {
  font-size: 12px;
  color: #94A3B8 !important;
  margin: 0 !important;
  line-height: 1.45;
}

/* Sub-Footer */
.p4pdf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
}

.p4pdf-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.p4pdf-footer-copy {
  color: #64748B !important;
  font-size: 13px;
  margin: 0 !important;
}

.p4pdf-footer-copy strong {
  color: #94A3B8;
}

.p4pdf-footer-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #64748B;
}

.p4pdf-tag {
  color: #94A3B8;
}

.p4pdf-tag-dot {
  color: #475569;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .p4pdf-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .p4pdf-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p4pdf-footer-container {
    padding: 40px 18px 24px;
  }
  .p4pdf-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Homepage Redesign & SaaS Styling
   ========================================================================== */

/* Pills & Badges */
.p4pdf-hero-pill,
.p4pdf-section-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.22);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #E53E3E;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Hero Typography */
.p4pdf-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
  font-weight: 900 !important;
  color: #0F172A !important;
  line-height: 1.18 !important;
  letter-spacing: -0.03em;
  margin: 0 0 18px 0 !important;
}

.p4pdf-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
  color: #64748B !important;
  line-height: 1.65 !important;
  max-width: 720px;
  margin: 0 auto !important;
}

/* Hero Buttons */
.p4pdf-btn-hero-primary {
  background: linear-gradient(135deg, #FF5757 0%, #E53E3E 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(229, 62, 62, 0.35) !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.p4pdf-btn-hero-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(229, 62, 62, 0.45) !important;
  color: #FFFFFF !important;
}

.p4pdf-btn-hero-secondary {
  background: #FFFFFF !important;
  color: #0F172A !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.p4pdf-btn-hero-secondary:hover {
  border-color: #94A3B8 !important;
  transform: translateY(-2px) !important;
  color: #E53E3E !important;
}

/* Hero Trust Strip */
.p4pdf-hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}

.p4pdf-hero-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

/* Section Headings */
.p4pdf-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0 !important;
}

.p4pdf-section-subtitle {
  font-size: 16px !important;
  color: #64748B !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Features Grid */
.p4pdf-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.p4pdf-feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  text-align: left;
}

.p4pdf-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 62, 62, 0.4);
  box-shadow: 0 12px 28px rgba(229, 62, 62, 0.1);
}

.p4pdf-feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(229, 62, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.p4pdf-feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 12px 0;
}

.p4pdf-feature-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.65;
  margin: 0;
}

/* Steps Grid */
.p4pdf-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.p4pdf-step-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  text-align: left;
  transition: all 0.25s ease;
}

.p4pdf-step-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.p4pdf-step-number {
  font-size: 32px;
  font-weight: 900;
  color: #E53E3E;
  opacity: 0.85;
  margin-bottom: 16px;
  font-family: monospace;
}

.p4pdf-step-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px 0;
}

.p4pdf-step-card p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Accordion */
.p4pdf-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p4pdf-faq-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 24px 28px;
  transition: border-color 0.2s;
  text-align: left;
}

.p4pdf-faq-item:hover {
  border-color: #CBD5E1;
}

.p4pdf-faq-question {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px 0;
}

.p4pdf-faq-answer p {
  font-size: 14px;
  color: #64748B;
  line-height: 1.65;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .p4pdf-features-row,
  .p4pdf-steps-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Smooth Element Scroll Reveal (Mobile & Desktop)
   ========================================================================== */

[data-aos="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Stagger Delays */
[data-aos-delay="50"] { transition-delay: 0.05s !important; }
[data-aos-delay="100"] { transition-delay: 0.1s !important; }
[data-aos-delay="150"] { transition-delay: 0.15s !important; }
[data-aos-delay="200"] { transition-delay: 0.2s !important; }
[data-aos-delay="250"] { transition-delay: 0.25s !important; }
[data-aos-delay="300"] { transition-delay: 0.3s !important; }

/* Mobile Performance & Smooth Reveal */
@media (max-width: 768px) {
  [data-aos="fade-up"] {
    transform: translate3d(0, 20px, 0) !important;
    transition-duration: 0.45s !important;
  }
}



