/* QRStash — vizuális nyelv a dorkaesati.hu referencia alapján
   (design tokenek forrása: web-pack/szinpaletta.txt + dorkaesati.hu/styles.css) */

:root {
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --deep: #39544c;
  --deep-hover: #2c423c;
  --sage: #9bb4b1;
  --mist: #d7e2e2;
  --peach: #ffb79b;
  --peach-hover: #ffa886;
  --text-2: #5d736e;
  --text-4: #6f8580;
  --line: #d7e2e2;
  --error: #7a3d2d;
  --error-bg: #fbeae5;
  --error-border: #e8b6a6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Quicksand", sans-serif;
  background: var(--cream);
  color: var(--deep);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
}

/* ---------- dekorációk (a referencia login képernyőjének elrendezése) ---------- */
.deco {
  position: absolute;
  pointer-events: none;
}

.deco-arcs {
  top: -30px;
  left: -40px;
  width: 300px;
  opacity: 0.55;
}

.deco-leaf-peach {
  top: 60px;
  right: 8%;
  width: 100px;
  opacity: 0.85;
}

.deco-leaf-sage {
  bottom: -30px;
  left: 6%;
  width: 170px;
  opacity: 0.5;
}

.deco-paw1 {
  top: 20%;
  left: 14%;
  width: 30px;
  opacity: 0.4;
}

.deco-paw2 {
  bottom: 16%;
  right: 12%;
  width: 24px;
  opacity: 0.35;
}

.deco-lilo {
  right: max(2%, calc(50% - 560px));
  bottom: 0;
  height: 70vh;
  max-height: 640px;
  opacity: 0.14;
}

@keyframes liloFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.lilo-float {
  animation: liloFloat 8s ease-in-out infinite;
}

/* ---------- kártya ---------- */
.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  /* flex item alapból min-width:auto (törhetetlen tartalom, pl. a script
     betűtípusú cím vagy a natív file input, ne feszítse szét az oldalt) */
  min-width: 0;
}

.lilo-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid rgba(155, 180, 177, 0.5);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  box-shadow: 0 8px 22px rgba(57, 84, 76, 0.07);
  margin: 0 auto 18px;
  max-width: 380px;
}

.lilo-bubble img {
  width: 24px;
  flex: 0 0 auto;
}

.lilo-bubble span {
  font-style: italic;
  font-size: 14px;
  color: var(--deep);
  line-height: 1.4;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(155, 180, 177, 0.45);
  border-radius: 26px;
  padding: 44px 36px 36px;
  box-shadow: 0 26px 60px rgba(57, 84, 76, 0.12);
  text-align: center;
}

.monogram {
  width: 62px;
  margin: 0 auto 14px;
  display: block;
}

.script-title {
  font-family: "Pinyon Script", cursive;
  font-size: clamp(34px, 11vw, 50px);
  line-height: 1;
  color: var(--deep);
  overflow-wrap: break-word;
}

.script-title .amp {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.6em;
  padding: 0 0.06em;
  color: var(--peach);
}

.event-tagline {
  margin: 8px 0 0;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-2);
}

.hr-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 24px 0 20px;
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 25px;
  margin: 0 0 8px;
  color: var(--deep);
}

.subtitle {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-4);
}

.subtitle strong {
  color: var(--deep);
  font-weight: 600;
}

form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

form > * {
  min-width: 0;
}

.field-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
}

.field-input {
  margin-top: 7px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 13px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--deep);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field-input:focus,
.field-input:focus-visible {
  border-color: var(--sage);
  background: var(--paper);
}

input.field-input[type="file"] {
  border-style: dashed;
  font-size: 14.5px;
  padding: 13px 14px;
}

.field-textarea {
  resize: vertical;
  min-height: 72px;
}

.preview-wrap {
  gap: 8px;
  flex-wrap: wrap;
}

.preview-wrap:not([hidden]) {
  display: flex;
}

.preview-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 13px;
  overflow: hidden;
  background: var(--mist);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-thumb .remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  cursor: pointer;
  background: var(--peach);
  color: var(--deep);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(255, 183, 155, 0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}

.submit-btn:hover {
  background: var(--peach-hover);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.progress-wrap {
  height: 8px;
  border-radius: 999px;
  background: var(--mist);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--sage);
  transition: width 0.15s ease;
}

.form-message {
  min-height: 1.2em;
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.form-message.success {
  color: var(--deep);
  font-weight: 600;
}

.form-message.error {
  color: var(--error);
  font-weight: 600;
}

.file-results {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

.error-box {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 600;
}

.hint {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--sage);
}

.test-badge {
  display: inline-block;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  width: 272px;
  height: 272px;
  margin: 8px auto 18px;
}

.qr-url {
  margin: 0;
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
}

@media (max-width: 540px) {
  .card {
    padding: 34px 22px 30px;
  }

  .deco-lilo {
    opacity: 0.08;
  }
}
