/*! Postmark (postmark 1.0.0) by Frontier Templates. Styles for the vanilla build.
Licensed gem: Licensed with Full Access, for the sites you build; do not resell the gem itself. https://frontiertemplates.com/gems/postmark */
/* Postmark. Every rule is scoped to .pmk so the gem drops into any page. Size the element; the card sits in its middle. */
.pmk {
  --pmk-accent: #c43c21;
  --pmk-ink: #25305e;
  --pmk-paper: #f5efe4;
  --pmk-bg: #1a1c22;
  --pmk-text: #2a2a2e;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  min-height: 340px;
  padding: 24px 16px;
  background: radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, 0.07), transparent 70%), var(--pmk-bg);
  color: #f2f0ec;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
/* the root sizes itself the same whatever the host page's reset says */
.pmk, .pmk *, .pmk *::before, .pmk *::after { box-sizing: border-box; }
.pmk-scene { width: min(560px, 100%); perspective: 1400px; }
.pmk-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 220px;
  transform-style: preserve-3d;
}
.pmk-face {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%),
    var(--pmk-paper);
  color: var(--pmk-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 24px 50px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.3);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pmk-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.pmk-stamp {
  position: absolute;
  top: 7%;
  right: 5%;
  width: 16%;
  min-width: 54px;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.pmk-mark {
  position: absolute;
  top: 9%;
  right: 1.5%;
  width: 40%;
  min-width: 150px;
  height: auto;
  opacity: 0;
  transform-origin: 27% 50%;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.pmk-demo {
  position: absolute;
  top: 7%;
  left: 6%;
  padding: 3px 9px;
  border: 1px dashed color-mix(in srgb, var(--pmk-ink) 55%, transparent);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--pmk-ink);
}
.pmk-lines { position: absolute; left: 6%; right: 46%; top: 30%; display: grid; gap: 14px; }
.pmk-lines i { display: block; height: 1px; background: rgba(0, 0, 0, 0.14); }
.pmk-to {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 30%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.32);
}
.pmk-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0, 0, 0, 0.62); }
.pmk-input {
  flex: 1;
  min-width: 0;
  padding: 8px 0 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--pmk-ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(16px, 2.6vw, 20px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
}
.pmk-input::placeholder { color: rgba(0, 0, 0, 0.3); }
.pmk-to:focus-within { border-bottom-color: var(--pmk-ink); box-shadow: 0 2px 0 -0.5px var(--pmk-ink); }
.pmk[data-phase="error"] .pmk-to { border-bottom-color: #c0392b; }
.pmk-send, .pmk-again {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pmk-accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}
.pmk-send { position: absolute; right: 6%; bottom: 9%; }
.pmk-send:hover, .pmk-again:hover { filter: brightness(1.08); }
.pmk-send:disabled { cursor: progress; }
.pmk-send svg { width: 16px; height: 16px; }
.pmk-send:focus-visible, .pmk-again:focus-visible { outline: 2px solid var(--pmk-ink); outline-offset: 3px; }
.pmk-done { margin: 0; font-size: clamp(40px, 7vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--pmk-ink); }
.pmk-done-text { margin: 10px 0 0; font-size: 15px; color: rgba(0, 0, 0, 0.68); }
.pmk-to-line { margin: 6px 0 18px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 14px; color: var(--pmk-ink); overflow-wrap: anywhere; }
.pmk-again { background: transparent; color: var(--pmk-ink); border: 1px solid color-mix(in srgb, var(--pmk-ink) 40%, transparent); padding: 8px 16px; }
.pmk-status { min-height: 1.4em; margin: 0; font-size: 14px; color: rgba(242, 240, 236, 0.82); text-align: center; }
.pmk[data-phase="error"] .pmk-status { color: #ff9c8a; }
@media (max-width: 480px) {
  .pmk-to { bottom: 34%; }
  .pmk-lines { display: none; }
  .pmk-send { bottom: 8%; }
  .pmk-demo { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pmk-send, .pmk-again { transition: none; }
}
