/* ===== UPPC PRINTING FORM (use with the JavaScript) ===== */
body form.webform-submission-form.uppc-pf {
  position: relative !important;
  max-width: 1120px !important;
  min-height: 620px !important;
  margin: 30px auto 50px !important;
  padding: 44px 44px 40px 444px !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 5px solid #7d0a23 !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 38px rgba(15,23,42,.08) !important;
  overflow: hidden !important;
  color: #1e293b !important;
  font-size: 15px !important;
}
body form.uppc-pf * { box-sizing: border-box !important; }

/* flag stripe at the bottom */
body form.uppc-pf::after {
  content: "" !important;
  position: absolute !important;
  left: 0; right: 0; bottom: 0;
  height: 5px !important;
  background: linear-gradient(to right,
    #000 0 16.6%, #fcdc04 16.6% 33.3%, #d90000 33.3% 50%,
    #000 50% 66.6%, #fcdc04 66.6% 83.3%, #d90000 83.3% 100%) !important;
}

/* title above the fields */
body form.uppc-pf::before {
  content: "Your order details" !important;
  display: block !important;
  margin: 0 0 22px !important;
  padding: 0 0 12px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  background: linear-gradient(#7d0a23, #7d0a23) left bottom / 50px 3px no-repeat !important;
}

/* ---------- maroon panel on the left ---------- */
body form.uppc-pf .uppc-panel {
  position: absolute !important;
  left: 0 !important; top: 0 !important; bottom: 0 !important;
  width: 400px !important;
  margin: 0 !important;
  padding: 48px 38px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: linear-gradient(160deg, #7d0a23 0%, #5c0619 60%, #3a0410 100%) !important;
  color: #fff !important;
  text-align: left !important;
}
body form.uppc-pf .uppc-panel .uppc-eyebrow {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
  color: #fcdc04 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
}
body form.uppc-pf .uppc-panel .uppc-eyebrow::after {
  content: "" !important;
  width: 36px !important; height: 2px !important;
  background: #fcdc04 !important;
}
body form.uppc-pf .uppc-panel .uppc-title {
  display: block !important;
  margin: 0 0 16px !important;
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body form.uppc-pf .uppc-panel .uppc-text {
  display: block !important;
  margin: 0 0 18px !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body form.uppc-pf .uppc-panel .uppc-pill {
  display: inline-block !important;
  align-self: flex-start !important;
  padding: 9px 16px !important;
  border-radius: 30px !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
body form.uppc-pf .uppc-panel .uppc-help {
  display: block !important;
  margin-top: 26px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* ---------- fields ---------- */
body form.uppc-pf .form-item,
body form.uppc-pf .js-form-item { margin: 0 0 18px !important; }
body form.uppc-pf label,
body form.uppc-pf legend,
body form.uppc-pf .fieldset-legend {
  display: block !important;
  float: none !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
body form.uppc-pf fieldset {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
body form.uppc-pf fieldset .form-item { margin-bottom: 0 !important; }
body form.uppc-pf .description {
  margin-top: 6px !important;
  color: #64748b !important;
  font-size: 12.5px !important;
}
body form.uppc-pf input[type="text"],
body form.uppc-pf input[type="email"],
body form.uppc-pf input[type="tel"],
body form.uppc-pf input[type="number"],
body form.uppc-pf select,
body form.uppc-pf textarea {
  display: block !important;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: #1e293b !important;
  font-size: 16px !important;
}
body form.uppc-pf textarea {
  height: 120px !important;
  padding: 14px 16px !important;
}
body form.uppc-pf select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 44px !important;
  cursor: pointer !important;
}
body form.uppc-pf input:focus,
body form.uppc-pf select:focus,
body form.uppc-pf textarea:focus {
  outline: none !important;
  border-color: #7d0a23 !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(125,10,35,.10) !important;
}

/* two fields on one line */
body form.uppc-pf .uppc-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 16px !important;
}
body form.uppc-pf .uppc-row > * {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin-right: 0 !important;
}

/* ---------- submit button ---------- */
body form.uppc-pf .form-actions {
  margin: 24px 0 6px !important;
  text-align: center !important;
}
body form.uppc-pf .form-actions::before,
body form.uppc-pf .form-actions::after,
body form.uppc-pf .form-actions *::before,
body form.uppc-pf .form-actions *::after {
  content: none !important;
  display: none !important;
}

/* ---------- tablets and phones ---------- */
@media (max-width: 900px) {
  body form.webform-submission-form.uppc-pf {
    min-height: 0 !important;
    padding: 0 24px 30px !important;
  }
  body form.uppc-pf::before { display: none !important; }
  body form.uppc-pf .uppc-panel {
    position: static !important;
    width: auto !important;
    margin: 0 -24px 26px !important;
    padding: 32px 24px !important;
  }
}
@media (max-width: 640px) {
  body form.uppc-pf .uppc-row { grid-template-columns: 1fr !important; }
  body form.uppc-pf .uppc-panel .uppc-title { font-size: 23px !important; }
}

/* ===== ADD-ON: animated words + moving printer ===== */
@keyframes uppcUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes uppcLine {
  from { width: 0; }
  to   { width: 36px; }
}
@keyframes uppcGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252,220,4,0); }
  50%      { box-shadow: 0 0 0 6px rgba(252,220,4,.18); }
}
@keyframes uppcShine {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* words appear one after another */
body form.uppc-pf .uppc-panel .uppc-eyebrow { animation: uppcUp .6s ease .1s both !important; }
body form.uppc-pf .uppc-panel .uppc-eyebrow::after { animation: uppcLine .8s ease .6s both !important; }
body form.uppc-pf .uppc-panel .uppc-title {
  animation: uppcUp .7s ease .3s both, uppcShine 6s linear 1.5s infinite !important;
  background: linear-gradient(100deg, #fff 40%, #fcdc04 50%, #fff 60%) 0 0 / 200% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
body form.uppc-pf .uppc-panel .uppc-text { animation: uppcUp .7s ease .55s both !important; }
body form.uppc-pf .uppc-panel .uppc-pill {
  animation: uppcUp .7s ease .8s both, uppcGlow 2.6s ease-in-out 2s infinite !important;
}
body form.uppc-pf .uppc-panel .uppc-help { animation: uppcUp .7s ease 1s both !important; }

/* moving printer */
body form.uppc-pf .uppc-panel .uppc-printer {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 22px !important;
  animation: uppcUp .7s ease 1.2s both !important;
}
body form.uppc-pf .uppc-printer svg { width: 92px !important; height: 84px !important; flex: 0 0 92px !important; }
body form.uppc-pf .uppc-printer span {
  color: rgba(255,255,255,.8) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
@keyframes uppcFeedIn  { 0% { transform: translateY(0); } 60%, 100% { transform: translateY(14px); } }
@keyframes uppcFeedOut {
  0%   { transform: translateY(-40px); opacity: 1; }
  70%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes uppcInk  { 0%, 25% { width: 0; } 70%, 100% { width: var(--w); } }
@keyframes uppcLed  { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes uppcHum  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
body form.uppc-pf .uppc-printer .p-body { animation: uppcHum .35s linear infinite; transform-box: fill-box; }
body form.uppc-pf .uppc-printer .p-in   { animation: uppcFeedIn 2.4s ease-in-out infinite; }
body form.uppc-pf .uppc-printer .p-out  { animation: uppcFeedOut 2.4s ease-in-out infinite; }
body form.uppc-pf .uppc-printer .p-ink  { animation: uppcInk 2.4s ease-in-out infinite; }
body form.uppc-pf .uppc-printer .p-led  { animation: uppcLed .8s step-end infinite; }

@media (prefers-reduced-motion: reduce) {
  body form.uppc-pf .uppc-panel *, body form.uppc-pf .uppc-panel *::after { animation: none !important; }
}


/* ===== UNDERLINE STYLE (instead of boxes) ===== */
body form.uppc-pf input[type="text"],
body form.uppc-pf input[type="email"],
body form.uppc-pf input[type="tel"],
body form.uppc-pf input[type="number"],
body form.uppc-pf input[type="date"],
body form.uppc-pf select,
body form.uppc-pf textarea {
  height: 44px !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid #e5e7eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: border-color .25s !important;
}
body form.uppc-pf textarea {
  height: 90px !important;
  padding-top: 10px !important;
}
body form.uppc-pf input:hover,
body form.uppc-pf select:hover,
body form.uppc-pf textarea:hover {
  border-bottom-color: #cbd5e1 !important;
}
body form.uppc-pf input:focus,
body form.uppc-pf select:focus,
body form.uppc-pf textarea:focus {
  background-color: transparent !important;
  border-bottom-color: #7d0a23 !important;
  box-shadow: 0 2px 0 0 #7d0a23 !important;
}
body form.uppc-pf label {
  margin-bottom: 2px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}
body form.uppc-pf .uppc-row { gap: 0 30px !important; }