/* ============================================================
   District of the Unknown - global styles
   Plain CSS port of the previous Next.js / Tailwind look-and-feel.
   ============================================================ */

:root {
  --bg: #0f0f0f;
  --bg-card: #1f2937;       /* gray-800 */
  --bg-card-2: #111827;     /* gray-900 */
  --bg-card-3: #374151;     /* gray-700 */
  --border: #4b5563;        /* gray-600 */
  --border-soft: #374151;
  --text: #ffffff;
  --text-muted: #d1d5db;    /* gray-300 */
  --text-faint: #9ca3af;    /* gray-400 */
  --text-dim: #6b7280;      /* gray-500 */
  --accent: #a30d12;
  --accent-hover: #8a0b0f;
  --accent-deep: #5a0a0d;
  --secondary: #0a1a2f;
  --secondary-hover: #0d2240;
  --error: #b91c1c;
  --error-soft: rgba(127, 29, 29, 0.4);
  --radius: 0.5rem;       /* matches rounded-lg */
  --radius-sm: 0.375rem;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom display rules must not override the hidden attribute */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

/* ============================================================
   Layout helpers
   ============================================================ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
}

.container {
  width: 100%;
  max-width: 42rem;       /* max-w-2xl */
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================================
   Site header (forms)
   ============================================================ */

.form-header {
  padding: 1rem 1rem 0.5rem;
}

.form-header .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.form-header .title-block {
  display: none;
  text-align: center;
}
.form-header .title-block h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.form-header .title-block p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.form-header .title-block-mobile {
  text-align: center;
  margin-top: 0.75rem;
}
.form-header .title-block-mobile h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.form-header .title-block-mobile p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.form-header .logo {
  width: 40px;
  height: 40px;
  justify-self: end;
}

@media (min-width: 640px) {
  .form-header .title-block {
    display: block;
  }
  .form-header .title-block-mobile {
    display: none;
  }
}

@media (min-width: 768px) {
  .form-header .title-block h1 {
    font-size: 1.5rem;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
  cursor: pointer;
}
.back-link:hover {
  background: var(--bg-card-3);
  box-shadow: var(--shadow-xl);
}
.back-link .chevron {
  display: inline-flex;
  transition: transform 0.2s;
}
.back-link:hover .chevron {
  transform: translateX(-0.25rem);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
  text-align: center;
}
.btn:hover {
  background: var(--bg-card-3);
  box-shadow: var(--shadow-xl);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  background: var(--bg-card-3);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-hover);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Homepage
   ============================================================ */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 1rem;
}

.home .home-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 36rem;
  width: 100%;
}

.home .home-logo {
  width: 9rem;
  height: 9rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .home .home-logo {
    width: 11rem;
    height: 11rem;
  }
}

@media (min-width: 768px) {
  .home .home-logo {
    width: 13rem;
    height: 13rem;
  }
}

.home h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}
@media (min-width: 640px) {
  .home h1 { font-size: 2.25rem; }
}
@media (min-width: 768px) {
  .home h1 { font-size: 3rem; }
}

.home .tagline {
  font-size: 1rem;
  color: var(--text-faint);
  margin: 0 0 2.5rem;
}
@media (min-width: 640px) {
  .home .tagline { font-size: 1.125rem; }
}
@media (min-width: 768px) {
  .home .tagline { font-size: 1.25rem; }
}

.home .home-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .home .home-actions {
    flex-direction: row;
    width: auto;
  }
}

.home-footer {
  padding: 2.5rem 0 0.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.logo-wave {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-wave img {
  width: 100%;
  height: 100%;
}

/* ============================================================
   Forms - shared
   ============================================================ */

.form-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.form-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.form-stage .stage-inner {
  width: 100%;
  max-width: 42rem;
}

.form-nav {
  padding: 1.5rem 1rem;
}
.form-nav .nav-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.form-nav .btn {
  padding: 0.75rem 1.5rem;
}

.form-error {
  max-width: 42rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  background: var(--error-soft);
  border: 1px solid #b91c1c;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.form-error p {
  color: #fca5a5;
  font-size: 0.875rem;
  margin: 0;
}
.form-error button {
  background: none;
  border: none;
  color: #f87171;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.form-error button:hover {
  color: #fecaca;
}

/* ============================================================
   Question step animation
   ============================================================ */

.step {
  display: none;
}
.step.is-active {
  display: block;
}

.step-anim {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateX(0);
}
.step-anim.is-leaving-forward {
  opacity: 0;
  transform: translateX(-2.5rem);
}
.step-anim.is-leaving-backward {
  opacity: 0;
  transform: translateX(2.5rem);
}

.step h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
  .step h2 { font-size: 1.875rem; }
}
.step h2.center-big {
  font-size: 1.875rem;
}
@media (min-width: 768px) {
  .step h2.center-big { font-size: 2.25rem; }
}

.step .hint-center {
  color: var(--text-faint);
  text-align: center;
  font-size: 0.875rem;
  margin: -1rem 0 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .card {
    padding: 2rem;
  }
}

.card + .card {
  margin-top: 1.5rem;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}
@media (min-width: 768px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.row-2 .field {
  min-width: 0;
}

.row-2 .field + .field {
  margin-top: 0;
}

/* ============================================================
   Form controls
   ============================================================ */

.field + .field {
  margin-top: 1rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.label .req {
  color: var(--accent);
  margin-left: 0.25rem;
}

.help {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.125rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-dim);
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent);
}

.input[type="date"],
.input[type="time"] {
  box-sizing: border-box;
  min-height: 3.25rem;
  line-height: 1.5;
}
.textarea {
  resize: none;
  font-family: inherit;
}

/* ============================================================
   Entity-type choice cards (report Q1)
   ============================================================ */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.choice {
  display: block;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.choice:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-xl);
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice .choice-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.choice .choice-sub {
  font-size: 0.875rem;
  color: var(--text-faint);
}
.choice.is-selected,
.choice:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
}
.choice.is-selected .choice-sub,
.choice:has(input:checked) .choice-sub {
  color: #e5e7eb;
}

/* ============================================================
   Yes/No big-pill buttons (apply Q1 and Q2)
   ============================================================ */

.yesno {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
}
@media (min-width: 640px) {
  .yesno {
    flex-direction: row;
  }
}

.yesno-btn {
  padding: 1.5rem 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  width: 100%;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
@media (min-width: 640px) {
  .yesno-btn {
    width: auto;
  }
}
.yesno-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}
.yesno-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
}

/* ============================================================
   Sliders (application expertise) - 0..100 with epic-progress fill
   ============================================================ */

.slider-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slider-row {
  opacity: 0;
  animation: slideIn 0.4s ease-out forwards;
}
.slider-row .slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.slider-row .slider-label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
}
.slider-row .slider-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
  text-align: right;
}

.slider-track {
  position: relative;
  height: 0.5rem;
}
.slider-track .slider-bg {
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 9999px;
  overflow: hidden;
}
.slider-track .slider-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: width 0.2s ease-out;
}
.slider-track .slider-input {
  position: absolute;
  top: -0.25rem;
  left: 0;
  width: 100%;
  height: 1rem;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8a0b0f;
  cursor: pointer;
  border: 2px solid #5a0a0d;
  box-shadow: 0 0 8px rgba(138, 11, 15, 0.6);
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.2s;
}
.slider-input::-webkit-slider-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(163, 13, 18, 0.8);
  transform: scale(1.1);
}
.slider-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8a0b0f;
  cursor: pointer;
  border: 2px solid #5a0a0d;
  box-shadow: 0 0 8px rgba(138, 11, 15, 0.6);
  transition: transform 0.2s ease, background 0.2s, box-shadow 0.2s;
}
.slider-input::-moz-range-thumb:hover {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(163, 13, 18, 0.8);
  transform: scale(1.1);
}

.slider-row .slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-weight: 700;
  margin-top: 0.5rem;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Drag-and-drop file dropzone
   ============================================================ */

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--bg-card-2);
  transition: border-color 0.15s, background 0.15s;
}
.dropzone.is-drag {
  border-color: var(--accent);
  background: var(--bg-card-3);
}
.dropzone .icon {
  font-size: 2.5rem;
  line-height: 1;
}
.dropzone .choose {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--secondary);
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 0.75rem;
  box-shadow: var(--shadow);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
}
.dropzone .choose:hover {
  background: var(--secondary-hover);
  box-shadow: var(--shadow-xl);
}
.dropzone .or {
  color: var(--text-faint);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.dropzone .types {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

.file-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}
.file-row .file-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.file-row .file-icon {
  font-size: 1.25rem;
}
.file-row .file-name {
  color: var(--text);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row .file-size {
  color: var(--text-faint);
  font-size: 0.75rem;
}
.file-row .file-remove {
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 0.5rem;
}
.file-row .file-remove:hover {
  background: var(--accent-hover);
}

/* ============================================================
   Privacy toggle switch
   ============================================================ */

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle .slider-switch {
  position: relative;
  width: 3.5rem;
  height: 1.75rem;
  background: var(--border);
  border-radius: 9999px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle .slider-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.5rem;
  height: 1.5rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  transition: transform 0.2s;
}
.toggle input:checked + .slider-switch {
  background: var(--accent);
}
.toggle input:checked + .slider-switch::after {
  transform: translateX(1.75rem);
}
.toggle input:focus + .slider-switch {
  box-shadow: 0 0 0 4px rgba(163, 13, 18, 0.5);
}
.toggle .toggle-text {
  flex: 1;
}
.toggle .toggle-text p {
  margin: 0;
}
.toggle .toggle-text .title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.toggle .toggle-text .desc {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* ============================================================
   Map (Leaflet)
   ============================================================ */

.map {
  position: relative;
  height: 300px;
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 0;
}
@media (min-width: 768px) {
  .map { height: 400px; }
}

.map-help {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.selected-location {
  background: var(--bg-card-2);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
}
.selected-location .header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.selected-location .icon {
  font-size: 1.5rem;
}
.selected-location .label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.selected-location .address {
  font-size: 0.875rem;
  color: var(--text);
  word-break: break-word;
}
.selected-location .coords {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* ============================================================
   Privacy notice card (report Q4)
   ============================================================ */

.notice {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.notice p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.notice strong {
  color: var(--text);
}

/* ============================================================
   Progress bar (epic flow)
   ============================================================ */

.progress {
  max-width: 42rem;
  margin: 0 auto;
}
.progress-track {
  width: 100%;
  height: 0.75rem;
  background: #000;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

.epic-progress-bar {
  position: relative;
  background: linear-gradient(
    90deg,
    #5a0a0d 0%,
    #8a0b0f 10%,
    #ffffff 20%,
    #0d2240 30%,
    #0a1a2f 40%,
    #5a0a0d 50%,
    #8a0b0f 60%,
    #ffffff 70%,
    #0d2240 80%,
    #0a1a2f 90%,
    #5a0a0d 100%
  );
  background-size: 200% 100%;
  animation:
    epicFlow 3s linear infinite,
    colorMorph 6s ease-in-out infinite,
    pulseGlow 3s ease-in-out infinite;
}
.epic-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(90, 10, 13, 0.3),
    rgba(255, 255, 255, 0.2),
    rgba(10, 26, 47, 0.3),
    rgba(90, 10, 13, 0.3),
    rgba(255, 255, 255, 0.2),
    rgba(10, 26, 47, 0.3),
    rgba(90, 10, 13, 0.3)
  );
  background-size: 200% 100%;
  animation: epicFlow 2s linear infinite;
  mix-blend-mode: overlay;
  border-radius: 9999px;
}

@keyframes epicFlow {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes colorMorph {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  33%  { filter: hue-rotate(30deg) brightness(1.2); }
  66%  { filter: hue-rotate(-30deg) brightness(0.9); }
  100% { filter: hue-rotate(0deg) brightness(1); }
}
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(90, 10, 13, 0.4),
      0 0 20px rgba(90, 10, 13, 0.3),
      0 0 30px rgba(10, 26, 47, 0.2);
  }
  25% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.5),
      0 0 30px rgba(255, 255, 255, 0.3),
      0 0 45px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 10px rgba(10, 26, 47, 0.4),
      0 0 20px rgba(10, 26, 47, 0.3),
      0 0 30px rgba(90, 10, 13, 0.2);
  }
  75% {
    box-shadow:
      0 0 15px rgba(138, 11, 15, 0.5),
      0 0 30px rgba(138, 11, 15, 0.3),
      0 0 45px rgba(138, 11, 15, 0.2);
  }
}

/* ============================================================
   Success / thank-you screens
   ============================================================ */

.success {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}

.success-card {
  max-width: 42rem;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .success-card {
    padding: 3rem;
  }
}
.success-card .logo {
  width: 150px;
  height: 150px;
}
.success-card h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
@media (min-width: 768px) {
  .success-card h1 { font-size: 2.25rem; }
}
.success-card .panel {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.success-card .panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}
@media (min-width: 768px) {
  .success-card .panel p { font-size: 1.125rem; }
}
.success-card .actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}
@media (min-width: 640px) {
  .success-card .actions {
    flex-direction: row;
    width: auto;
  }
}
