.agree-page {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.agree-wrap {
  max-width: 720px;
}

.agree-wrap h1 {
  margin-bottom: 0.75rem;
}

.agree-actions {
  margin-top: 1.25rem;
}

.agree-legal-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.agree-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.35rem;
  margin-bottom: 1rem;
}

.agree-card.warn {
  border-color: rgba(240, 113, 120, 0.45);
  background: rgba(240, 113, 120, 0.08);
}

.agree-card h2 {
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
}

.agree-card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  color: var(--accent);
}

.quote-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.quote-dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.quote-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.quote-dl dd {
  margin: 0;
  font-weight: 600;
}

.quote-details-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quote-details {
  margin: 0;
  padding: 0.85rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.45;
}

.trucker-order-box.quote-details {
  padding: 0.2rem 0.65rem;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.15;
  font-size: 1rem;
  font-weight: 700;
  color: #1a73e8;
}

.trucker-order-box .trucker-weight {
  color: #9aa0a6;
  font-weight: 600;
  font-size: 0.92rem;
}

.quote-bind {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.terms-scroll {
  max-height: 280px;
  overflow: auto;
  padding-right: 0.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

.terms-scroll p {
  margin: 0 0 0.65rem;
}

.terms-scroll strong {
  color: var(--text);
}

.agree-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.65rem !important;
  color: var(--text) !important;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}

.agree-check input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.sig-label {
  margin: 1rem 0 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sig-pad-wrap {
  background: #ffffff !important;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
}

#sigPad,
#orderSigPad {
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
  background: #ffffff;
}

.sig-tools {
  margin-top: 0.65rem;
}
