:root {
  color-scheme: light;
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #dc2626;
  --brand-dark: #991b1b;
  --border: #f3d7b8;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111827;
  --card: #1f2937;
  --text: #f9fafb;
  --muted: #d1d5db;
  --brand: #f97316;
  --brand-dark: #fb923c;
  --border: #374151;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea,
select,
.form-control,
.form-select,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

:focus:not(:focus-visible) {
  outline: none !important;
}

* {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

.container {
  padding-left: max(0.9rem, env(safe-area-inset-left));
  padding-right: max(0.9rem, env(safe-area-inset-right));
}

.feedback-shell {
  padding: 1rem 0;
}

.hero-panel, .wizard-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero-panel {
  padding: 2rem;
  height: 100%;
}

.site-footer {
  color: var(--muted);
}

.site-footer .fw-semibold {
  color: var(--brand);
}

.hero-panel--compact {
  position: sticky;
  top: 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 1rem;
}

.eyebrow--brand {
  color: #f97316;
}

.feature-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.55rem;
}

.wizard-card {
  padding: 1.5rem;
}

.wizard-progress-wrapper {
  margin-bottom: 1.5rem;
}

.wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.wizard-progress-label {
  font-weight: 700;
  color: var(--text);
}

.wizard-progress {
  height: 10px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.12), rgba(245, 158, 11, 0.12));
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.wizard-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #f59e0b);
  transition: width 0.35s ease-in-out;
  will-change: width;
  border-radius: inherit;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.choice-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255,255,255,0.45);
}

.choice-card input {
  accent-color: #f97316;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.navbar, .card, .hero, .section, .table, .stats-card {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

.hero {
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid var(--border);
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 23ch;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-title span {
  display: block;
  color: var(--brand);
}

.contact-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.contact-hero {
  padding: 2.25rem;
}

.contact-title {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.contact-lead {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.contact-card {
  border-radius: 24px;
}

.contact-card:focus {
  outline: none;
}

.contact-card.is-highlighted {
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2), 0 18px 45px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.contact-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  height: 100%;
}

.contact-item--accent {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(220, 38, 38, 0.08));
}

.contact-item--muted {
  background: rgba(15, 23, 42, 0.03);
}

.contact-label {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.contact-value a {
  color: inherit;
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--brand);
}

.about-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.about-hero {
  border-radius: 24px;
}

.about-title {
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
  max-width: 22ch;
}

.about-point {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  padding: 1rem 1.05rem;
}

.about-point h3 {
  color: var(--text);
}

.about-point p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-point-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #f59e0b);
}

.about-quote {
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

@keyframes contactPulse {
  0%   { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.65); }
  60%  { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0.18); }
  100% { box-shadow: 0 0 0 18px rgba(249, 115, 22, 0); }
}

.contact-card.is-highlighted {
  animation: contactPulse 0.9s ease-out;
}

@media (max-width: 767.98px) {
  .contact-hero {
    padding: 1.5rem;
  }

  .contact-title {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    max-width: none;
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.small-muted {
  color: var(--muted);
}

.form-control, .form-select {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}

.form-select option {
  background: var(--card);
  color: var(--text);
}

.form-select:focus, .form-select:focus-visible {
  background: var(--card);
  color: var(--text);
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

.table th, .table td {
  color: var(--text);
}

.table-hover tbody tr:hover td {
  color: var(--text);
}

.table.table-hover th,
.table.table-hover td {
  user-select: none;
  -webkit-user-select: none;
}

.feedback-status-select {
  background-color: var(--card);
  color: var(--text);
  border-color: var(--border);
  min-width: 140px;
}

.feedback-status-select:focus,
.feedback-status-select:focus-visible {
  background-color: var(--card);
  color: var(--text);
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

.feedback-status-select option {
  background-color: var(--card) !important;
  color: var(--text) !important;
}

.feedback-status-select option:checked,
.feedback-status-select option:hover {
  background-color: var(--brand) !important;
  color: #fff !important;
}

.feedback-image-preview {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 220px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

@media (max-width: 991.98px) {
  .hero-panel--compact {
    position: static;
  }
}

.response-summary {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.06), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(220, 38, 38, 0.14);
}

.response-summary-list {
  display: grid;
  gap: 0.45rem;
}

.response-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(107, 114, 128, 0.22);
}

.response-summary-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.response-summary-list li span {
  color: var(--muted);
  font-size: 0.92rem;
}

.response-summary-list li strong {
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--brand);
  background: rgba(220, 38, 38, 0.08);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: var(--brand);
  background: rgba(220, 38, 38, 0.12);
}

.navbar-brand {
  color: #f97316 !important;
  font-weight: 800;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #ea580c !important;
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler-icon {
  filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(1800%) hue-rotate(345deg);
}

@media (max-width: 991.98px) {
  .navbar .container {
    align-items: flex-start;
  }

  .navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
    width: 100%;
  }

  .navbar-nav.ms-auto {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .hero,
  .hero-panel,
  .wizard-card,
  .card,
  .contact-card,
  .about-hero {
    border-radius: 16px;
  }

  .hero,
  .hero-panel,
  .wizard-card {
    padding: 1rem;
  }

  .choice-grid,
  .choice-grid.compact {
    grid-template-columns: 1fr;
  }

  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .form-control,
  .form-select,
  textarea,
  input,
  select,
  button {
    font-size: 16px;
  }

  .btn {
    min-height: 44px;
  }

  body {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
