@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --border: #e2e8f0;
  --muted: #64748b;
}

body {
  background: #f8fafc;
  color: #0f172a;
  font-family: 'Poppins', sans-serif;
}

.hero {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 60%, #ef4444 100%);
  color: #fff;
  border-radius: 0 0 24px 24px;
}

.menu-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all .2s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
  background: #fff;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-color: #fecaca;
}

.menu-title {
  font-weight: 700;
  font-size: 1.02rem;
}

.menu-desc {
  color: #64748b;
  font-size: .92rem;
}

.badge-ready {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-soon {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.section-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.section-title {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.02rem;
  margin-bottom: .8rem;
  letter-spacing: .3px;
}

.kv-table td {
  vertical-align: top;
  border-color: #eef2f7;
  padding: .55rem .25rem;
}

.kv-table td:first-child {
  width: 290px;
  color: var(--muted);
  font-weight: 600;
}

.badge-soft {
  background: var(--red-soft);
  border: 1px solid #fecaca;
  color: var(--red);
  font-weight: 600;
}

.note {
  color: #475569;
  font-size: .9rem;
}

.signature-line {
  min-height: 90px;
  border-bottom: 1px dashed #94a3b8;
}

.signature-box {
  min-height: 90px;
  border-bottom: 1px dashed #94a3b8;
}

footer {
  color: #64748b;
  font-size: .9rem;
}

.signature-pad-wrapper {
  min-height: 180px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.signature-pad-wrapper canvas {
  width: 100%;
  height: 180px;
  touch-action: none;
  display: block;
}

.signature-box {
  min-height: 90px;
  border-bottom: 1px dashed #94a3b8;
}

.signature-image {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.signature-form-panel.pdf-hidden,
.pdf-hidden {
  display: none !important;
}

.signature-panel,
.signature-box,
.signature-image,
.print-card,
.signature-steps {
  page-break-inside: avoid;
  break-inside: avoid;
}

.pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pdf-preview-modal.d-none {
  display: none;
}

.pdf-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.pdf-preview-dialog {
  position: relative;
  width: min(98vw, 1100px);
  height: min(94vh, 860px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.pdf-preview-open {
  overflow: hidden;
}

.pdf-preview-header {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pdf-preview-title {
  font-weight: 700;
  color: #0f172a;
}

.pdf-preview-iframe {
  flex: 1;
  width: 100%;
  border: none;
  min-height: 0;
}

.pdf-preview-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.pdf-preview-footer .btn {
  min-width: 110px;
}

.signature-action-row {
  gap: .5rem;
}

.footer-note {
  color: #475569;
  font-size: .9rem;
}

.table th,
.table td {
  font-size: .92rem;
}
