:root {
  --ink: #1c1f1b;
  --ink-deep: #12140f;
  --paper: #f7f5f0;
  --moss: #7c8768;
  --clay: #b8916b;
  --ember: #c97b4a;
  --line: rgba(247, 245, 240, 0.28);
  --paper-dim: rgba(247, 245, 240, 0.88);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;

  background-image:
    radial-gradient(120% 90% at 50% 8%, rgba(42, 47, 36, 0.55) 0%, rgba(18, 20, 15, 0.65) 55%, rgba(18, 20, 15, 0.88) 100%),
    url('/mood.jpg');
  background-size: cover;
  background-position: center;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 50% 100%, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
}

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  text-align: center;
  padding: 40px 32px;
  border-radius: 14px;
  /* Fix, sötét háttér a fotó mögött, hogy a szöveg kontrasztja a kép
     tartalmától függetlenül is megfeleljen az akadálymentességi elvárásoknak. */
  background: rgba(15, 17, 12, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rise 900ms ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}

.wordmark {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 340;
  font-style: normal;
  font-size: clamp(38px, 8vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 30px;
}

.signature__line {
  width: 64px;
  height: 1px;
  background: var(--line);
}

.signature__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px 2px rgba(201, 123, 74, 0.55);
  transition: background 700ms ease, box-shadow 700ms ease, opacity 700ms ease;
}

.signature__dot.is-out {
  background: var(--line);
  box-shadow: none;
  opacity: 0.6;
}

.statement {
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-dim);
  font-weight: 400;
}

.form__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.form__row:not(:last-of-type) {
  margin-bottom: 12px;
}

.form__input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.05);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.form__input::placeholder {
  color: rgba(247, 245, 240, 0.58);
}

.form__input:focus {
  border-color: var(--clay);
  background: rgba(247, 245, 240, 0.09);
}

.form__submit {
  flex-shrink: 0;
  padding: 14px 22px;
  border-radius: 3px;
  border: 1px solid var(--clay);
  background: transparent;
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease;
  white-space: nowrap;
}

.form__submit:hover {
  background: var(--clay);
  color: var(--ink-deep);
}

.form__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.form__submit:focus-visible,
.form__input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

.form__checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--clay);
}

.form__consent-label {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(247, 245, 240, 0.82);
}

.form__consent-label a {
  color: var(--clay);
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(247, 245, 240, 0.72);
}

.form__note.is-error {
  color: #ffcaa8;
}

.success {
  animation: rise 500ms ease-out both;
}

.success__text {
  margin: 0;
  font-size: 16px;
  color: var(--paper-dim);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .success {
    animation: none;
  }
  .signature__dot {
    transition: none;
  }
}

@media (max-width: 420px) {
  .form__row {
    flex-direction: column;
  }
  .form__submit {
    width: 100%;
  }
}
