:root {
  --ink: oklch(19% 0.018 255);
  --text: oklch(31% 0.012 255);
  --muted: oklch(51% 0.012 255);
  --white: oklch(99% 0.004 255);
  --surface: oklch(96% 0.008 250);
  --field: oklch(98% 0.006 250);
  --line: oklch(89% 0.01 250);
  --line-strong: oklch(82% 0.014 250);
  --accent: #e50f25;
  --accent-dark: #c90014;
  --focus: oklch(52% 0.16 25);
  --success: #247a42;
  --navy: oklch(25% 0.06 255);
  --navy-soft: oklch(35% 0.055 255);
  --shadow: 0 24px 70px rgba(23, 31, 45, 0.12);
  --shadow-soft: 0 12px 34px rgba(23, 31, 45, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(229, 15, 37, 0.08), transparent 28%),
    linear-gradient(180deg, oklch(98% 0.006 250), oklch(94% 0.011 250));
  color: var(--text);
  font-family: Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
input,
textarea {
  font: inherit;
}

.top-strip {
  min-height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.site-header {
  background: rgba(252, 252, 253, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  width: min(1168px, calc(100% - 40px));
  min-height: 90px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 34px;
  align-items: center;
}

.site-nav__group {
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav__group--right {
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 184px;
  height: auto;
  display: block;
}

.hero-panel {
  width: min(1368px, calc(100% - 72px));
  min-height: 576px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 58.3% 41.7%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel__image {
  min-height: 576px;
  background-image: url("/assets/strunga-evenimente-hero.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-panel__copy {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 80px 56px;
  text-align: center;
}

.hero-panel__copy img {
  width: min(320px, 76%);
  height: auto;
  margin-bottom: 26px;
}

h1,
h2,
.section-title {
  margin: 0;
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.18;
}

h1 {
  max-width: 520px;
  font-size: 34px;
}

.hero-panel__copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-panel__button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 0 30px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero-panel__button:hover,
.hero-panel__button:focus-visible {
  outline: 0;
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.section-heading {
  width: min(860px, calc(100% - 40px));
  margin: 72px auto 28px;
  text-align: center;
}

.section-heading h2 {
  font-size: 30px;
  letter-spacing: 0;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.layout {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.steps {
  position: sticky;
  top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--ink), var(--navy));
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.progress {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.progress span:first-child {
  display: block;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.progress__track {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.progress__track span {
  display: block;
  width: 8.33%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.section-nav {
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

.step-button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
}

.step-button span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.step-button span:last-child {
  align-self: center;
  font-size: 13px;
  font-weight: 600;
}

.step-button:hover,
.step-button:focus-visible,
.step-button.is-active {
  outline: 0;
  background: rgba(255, 255, 255, 0.09);
}

.step-button.is-active span:first-child {
  background: var(--accent);
  color: var(--white);
}

.step-button.is-complete span:first-child {
  background: var(--white);
  color: var(--ink);
}

.form-surface {
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 42px;
}

.form-section {
  display: none;
}

.form-section[hidden] {
  display: none !important;
}

.form-section.is-active {
  display: block;
}

.section-title {
  font-size: 30px;
}

.section-description {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
  margin-top: 32px;
}

.field {
  min-width: 0;
}

.field--wide,
.field[data-type="textarea"],
.field[data-type="checkbox"],
.field[data-type="radio"],
.field[data-type="boolean"] {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.required {
  color: var(--accent);
}

.input,
.textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--field);
  color: #222;
  padding: 0 16px;
  outline: 0;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.textarea {
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  border-color: var(--focus);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(229, 15, 37, 0.1);
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 58px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--field);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(229, 15, 37, 0.04);
  box-shadow: 0 10px 24px rgba(229, 15, 37, 0.08);
}

.choice span {
  min-width: 0;
}

.field[data-variant="cards"] .choices {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice--card {
  min-height: 116px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  font-weight: 700;
}

.choice--card input {
  margin-left: auto;
}

.choice--card span {
  font-size: 15px;
}

.field-error {
  min-height: 20px;
  margin-top: 7px;
  color: #d63636;
  font-size: 13px;
  font-weight: 600;
}

.field.has-error .input,
.field.has-error .textarea,
.field.has-error .choice {
  border-color: #d63636;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 860px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--field);
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-message {
  min-height: 32px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 600;
}

.form-message.is-error {
  color: #d63636;
}

.form-message.is-success {
  color: var(--success);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.button--primary,
.button--submit {
  background: linear-gradient(135deg, var(--ink), var(--navy-soft));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(23, 31, 45, 0.18);
}

.button--submit {
  display: none;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(229, 15, 37, 0.18);
}

.button--submit:hover,
.button--submit:focus-visible {
  background: var(--accent-dark);
}

.button--download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.success-panel,
.fallback-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--white), oklch(97% 0.006 250));
}

.success-panel::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(36, 122, 66, 0.1);
  color: var(--success);
  font-weight: 800;
}

.success-panel h2,
.fallback-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 28px;
}

.success-panel p,
.fallback-panel p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

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

@media (max-width: 1024px) {
  .site-nav {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .site-nav__group,
  .site-nav__group--right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand {
    grid-row: 1;
  }

  .hero-panel {
    width: min(100%, 960px);
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .hero-panel__image {
    min-height: 520px;
  }

  .hero-panel__copy {
    padding: 60px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .steps {
    position: relative;
    top: 0;
  }

  .section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .top-strip {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .site-nav {
    width: min(100% - 24px, 1168px);
    min-height: 76px;
  }

  .site-nav__group {
    gap: 14px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .brand img {
    width: 152px;
  }

  .hero-panel {
    margin-top: 0;
  }

  .hero-panel__image {
    min-height: 380px;
  }

  .hero-panel__copy {
    padding: 34px 25px;
  }

  .hero-panel__copy img {
    width: 230px;
  }

  h1 {
    font-size: 26px;
  }

  .section-heading {
    width: min(100% - 24px, 860px);
    margin: 44px auto 22px;
  }

  .layout {
    width: min(100% - 24px, 1168px);
    margin-bottom: 48px;
  }

  .form-surface,
  .steps {
    padding: 22px;
    border-radius: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .fields,
  .section-nav {
    grid-template-columns: 1fr;
  }

  .choices,
  .field[data-variant="cards"] .choices {
    grid-template-columns: 1fr;
  }

  .input,
  .choice {
    min-height: 50px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
