:root {
  --bg: #080808;
  --bg-soft: #111111;
  --surface: rgba(255, 244, 229, 0.06);
  --surface-strong: rgba(255, 244, 229, 0.1);
  --text: #fff4e5;
  --muted: rgba(255, 244, 229, 0.68);
  --soft: rgba(255, 244, 229, 0.42);
  --accent: #f0d1aa;
  --accent-strong: #fff4e5;
  --danger: #ffb39b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(
      circle at top center,
      rgba(240, 209, 170, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, #050505 0%, #080808 52%, #0b0b0b 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
}

.ambient-a {
  top: -9rem;
  left: 50%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(
    circle,
    rgba(240, 209, 170, 0.22),
    rgba(240, 209, 170, 0)
  );
  transform: translateX(-50%);
  animation: floatGlow 16s ease-in-out infinite;
}

.ambient-b,
.ambient-grid {
  display: none;
}

.page-flow {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 32px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.language-switch {
  width: 136px;
}

.hero-block {
  padding: 8px 0 0;
}

.form-shell {
  margin-top: 28px;
}

.site-footer {
  margin-top: 28px;
  padding: 20px 0 0;
}

.footer-label,
.field-meta,
.success-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--soft);
}

.hero-mark {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1;
}

h1,
.success-dialog h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

.description,
.microcopy,
.site-footer span:last-child,
.upload-copy,
.success-dialog p:last-of-type {
  color: var(--muted);
  line-height: 1.7;
}

.description {
  margin: 16px 0 0;
  max-width: 38rem;
}

form {
  display: grid;
  gap: 16px;
}

.field-block {
  display: grid;
  gap: 10px;
}

.field-label {
  font-size: 0.96rem;
}

.field-label span {
  color: var(--soft);
}

.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;
}

.field-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: var(--surface);
  border-radius: 18px;
  transition: background 180ms ease;
}

input,
textarea,
select {
  padding: 16px 18px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--soft) 50%),
    linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) calc(50% - 4px),
    calc(100% - 18px) calc(50% - 4px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 244, 229, 0.34);
}

input:focus,
textarea:focus,
select:focus {
  background: var(--surface-strong);
}

textarea {
  min-height: 200px;
  resize: vertical;
}

.submit-row {
  display: grid;
  gap: 14px;
}

.turnstile-wrap {
  margin-top: 4px;
}

.submit-button {
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-radius: 999px;
  color: #080808;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 48px rgba(240, 209, 170, 0.16);
  transition:
    opacity 180ms ease,
    background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.submit-button[disabled] {
  opacity: 0.64;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--danger);
}

.site-footer {
  display: grid;
  gap: 14px;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.footnote {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: left;
}

.success-dialog {
  width: min(460px, calc(100% - 24px));
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

.success-dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(8px);
}

.success-dialog-card {
  background: linear-gradient(
    180deg,
    rgba(255, 244, 229, 0.06),
    rgba(255, 244, 229, 0.03)
  );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  padding: 28px;
  border-radius: 24px;
}

.success-dialog h3 {
  margin-top: 10px;
  font-size: clamp(2rem, 6vw, 3rem);
}

.success-dialog button {
  margin-top: 18px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  color: #080808;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.hidden {
  display: none !important;
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(18px);
  }
}

@media (max-width: 720px) {
  .page-flow {
    width: min(100% - 20px, 720px);
    padding: 24px 0;
  }

  .hero-block,
  .form-shell,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }
}
