:root {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #17325f;
  background: #eef2f4;
  line-height: 1.5;
  font-weight: 400;
  --border: #cfd8d2;
  --text-soft: #50606e;
  --brand: #224684;
  --brand-dark: #17325f;
  --brand-warm: #6b776f;
  --brand-accent: #8f9a93;
  --danger: #b42318;
  --glass-stroke: rgba(255, 255, 255, 0.34);
  --glass-fill: rgba(255, 255, 255, 0.18);
  --glass-fill-strong: rgba(255, 255, 255, 0.26);
  --card-shadow: 0 30px 80px rgba(23, 50, 95, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 70, 132, 0.14), transparent 30%),
    radial-gradient(circle at 88% 6%, rgba(143, 154, 147, 0.24), transparent 28%),
    linear-gradient(180deg, #dde4e8 0%, #edf2f4 34%, #f7faf8 100%);
}

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

.page {
  min-height: 100vh;
  padding: 48px 20px 64px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.56), transparent 34%),
    radial-gradient(circle at 16% 18%, rgba(98, 111, 104, 0.18), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(34, 70, 132, 0.12), transparent 26%);
}

.page::before,
.page::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
}

.page::before {
  top: 110px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(143, 154, 147, 0.28), transparent 70%);
}

.page::after {
  right: -70px;
  bottom: 80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34, 70, 132, 0.2), transparent 72%);
}

.hero,
.card {
  width: min(100%, 1024px);
  margin: 0 auto;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-card .eyebrow {
  background: transparent;
  color: #224684;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.brand-lockup.compact {
  grid-template-columns: 96px 1fr;
  margin-bottom: 12px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  filter: none;
}

.compact .brand-logo {
  max-width: 96px;
}

.hero-copy {
  color: var(--brand-dark);
}

.hero h1,
.success-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero p,
.success-card p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero p {
  color: var(--text-soft);
}

.card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, rgba(245, 249, 253, 0.86), rgba(231, 238, 246, 0.72));
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(26px) saturate(140%);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.32), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at top right, rgba(143, 154, 147, 0.14), transparent 26%),
    radial-gradient(circle at bottom left, rgba(34, 70, 132, 0.1), transparent 34%);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.ops-strip {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 340px);
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.ops-strip span,
.form-progress span {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-strip strong {
  display: block;
  margin-top: 2px;
  color: var(--brand-dark);
  font-size: 0.96rem;
  font-weight: 800;
}

.form-progress {
  display: grid;
  gap: 8px;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 50, 95, 0.12);
  box-shadow: inset 0 1px 2px rgba(23, 50, 95, 0.12);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f8076, #305da8, var(--brand-dark));
  transition: width 0.28s ease;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.form-section,
.report-preview {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 34px rgba(23, 50, 95, 0.08);
}

.section-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(34, 70, 132, 0.18), rgba(255, 255, 255, 0.24));
  color: var(--brand-dark);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.05rem;
  line-height: 1.1;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.compact-heading {
  margin-bottom: 12px;
}

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

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.field label::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(23, 50, 95, 0.14);
}

.field.is-filled label::after {
  background: #2d8a5b;
  box-shadow: 0 0 0 4px rgba(45, 138, 91, 0.12);
}

.field.has-error label::after {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48));
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 24px rgba(23, 50, 95, 0.08);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  box-shadow:
    0 0 0 4px rgba(34, 70, 132, 0.12),
    0 18px 34px rgba(23, 50, 95, 0.12);
  transform: translateY(-1px);
}

.field small {
  color: var(--text-soft);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .dropzone {
  border-color: rgba(180, 35, 24, 0.45);
  box-shadow:
    0 0 0 4px rgba(180, 35, 24, 0.08),
    0 14px 30px rgba(23, 50, 95, 0.08);
}

.dropzone {
  display: grid !important;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px dashed rgba(34, 70, 132, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22));
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 26px rgba(23, 50, 95, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: rgba(34, 70, 132, 0.72);
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(226, 235, 244, 0.46));
}

.dropzone-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #305da8, var(--brand-dark));
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.dropzone strong {
  display: block;
  color: var(--brand-dark);
}

.dropzone-copy {
  display: grid;
  gap: 10px;
}

.media-requirement {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.media-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 70, 132, 0.1);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.media-count.is-complete {
  background: rgba(45, 138, 91, 0.14);
  color: #1e6a44;
}

.media-count.is-over {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.media-slots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.media-slots span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(34, 70, 132, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.media-slots span.is-filled {
  border-color: rgba(45, 138, 91, 0.52);
  background: #2d8a5b;
}

.media-slots span.is-over {
  border-color: rgba(180, 35, 24, 0.52);
  background: var(--danger);
}

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

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-pill {
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 70, 132, 0.1);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-width {
  grid-column: 1 / -1;
}

.error,
.server-error {
  color: var(--danger);
}

.error:empty {
  display: none;
}

.server-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 236, 234, 0.72);
  border: 1px solid rgba(180, 35, 24, 0.16);
  backdrop-filter: blur(14px);
}

.hidden {
  display: none !important;
}

.report-preview {
  background:
    linear-gradient(135deg, rgba(23, 50, 95, 0.08), rgba(255, 255, 255, 0.24));
}

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

.preview-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.preview-grid dt {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-grid dd {
  margin: 4px 0 0;
  color: var(--brand-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.preview-grid dd.is-empty {
  color: rgba(80, 96, 110, 0.72);
  font-weight: 600;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}

.autosave-note {
  margin-right: auto;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.primary-button {
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #305da8, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 16px 26px rgba(34, 70, 132, 0.28);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.secondary-button {
  min-width: 150px;
  padding: 14px 18px;
  border: 1px solid rgba(34, 70, 132, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 22px rgba(23, 50, 95, 0.08);
}

.success-card {
  text-align: left;
  animation: rise-in 0.42s ease both;
}

.success-topline {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(45, 138, 91, 0.13);
  color: #1e6a44;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.success-meta div {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.78), rgba(246, 249, 252, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.folio-panel span {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--brand-dark);
  overflow-wrap: anywhere;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.hero {
  animation: rise-in 0.42s ease both;
}

@media (max-width: 768px) {
  .page {
    padding: 28px 14px 42px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }

  .brand-lockup,
  .brand-lockup.compact {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-mark {
    max-width: 180px;
  }

  .ops-strip,
  .section-grid,
  .preview-grid,
  .success-meta {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    justify-content: stretch;
  }

  .autosave-note {
    margin-right: 0;
  }

  .success-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
