/* ============================================================
   Stuckateur Bühler — v3 Shared Stylesheet
   ============================================================ */

/* ---------- Schriften: lokal, siehe fonts/fonts.css (im HTML eingebunden) ---------- */

/* ---------- Design Tokens ---------- */
:root {
  --blue:       #2d71b8;
  --blue-dk:    #1a4f8c;
  --blue-xdk:   #112f54;
  --gold:       #c98a1a;
  --gold-lt:    #e8a820;
  --dark:       #191d24;
  --body:       #3d4553;
  --muted:      #7a8599;
  --light:      #f3f6fb;
  --chalk:      #fdfcfa;
  --white:      #ffffff;
  --border:     rgba(45, 113, 184, 0.12);
  --border-solid: #d6e2f0;
  --radius:     4px;
  --shadow:     0 4px 24px rgba(18, 47, 84, 0.10);
  --shadow-lg:  0 8px 40px rgba(18, 47, 84, 0.14);
  --nav-h:      72px;
  --transition: 0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: var(--body);
  background: var(--chalk);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  image-orientation: from-image;
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: 'Jost', sans-serif;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Screen reader only ---------- */
.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;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(18, 47, 84, 0.06);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--body);
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
  border-bottom-color: var(--gold);
}

.nav-links a.nav-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav-links a.nav-back:hover {
  color: var(--blue);
  border-bottom-color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white) !important;
  border-bottom: none !important;
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
  background: var(--blue-dk) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   SHARED BUTTONS
   ============================================================ */
.btn-primary,
.btn-secondary,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.4rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 113, 184, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 138, 26, 0.28);
}

/* ============================================================
   SHARED UTILITY
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ============================================================
   SURVEY HERO
   ============================================================ */
.survey-hero {
  background: linear-gradient(135deg, var(--blue-xdk) 0%, var(--blue-dk) 55%, var(--blue) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--nav-h);
}

.survey-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='0' y='0' width='60' height='60' fill='none'/%3E%3Ccircle cx='30' cy='30' r='0.8' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.survey-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
}

.survey-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201, 138, 26, 0.18);
  border: 1px solid rgba(201, 138, 26, 0.4);
  color: var(--gold-lt);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.survey-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.survey-hero p {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.82;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SURVEY PAGE LAYOUT
   ============================================================ */
.survey-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

/* ============================================================
   SURVEY SECTIONS / CARDS
   ============================================================ */
.survey-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(18, 47, 84, 0.04);
  transition: box-shadow var(--transition);
}

.survey-section:hover {
  box-shadow: 0 4px 20px rgba(18, 47, 84, 0.08);
}

.survey-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 4px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}

.section-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.10;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  margin-top: 0.25rem;
}

.section-header {
  padding-left: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.form-label .required {
  color: var(--gold);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--light);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  font-weight: 300;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 113, 184, 0.10);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8599' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Error states */
.form-input.field-error,
.form-select.field-error,
.form-textarea.field-error {
  border-color: #c0392b !important;
  background: #fff8f8;
}

.error-message {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}



/* ============================================================
   MEASUREMENTS GRID
   ============================================================ */
.unit-selector {
  display: inline-flex;
  background: var(--light);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.unit-btn {
  padding: 0.45rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.unit-btn.active {
  background: var(--blue);
  color: var(--white);
}

.unit-btn:not(.active):hover {
  background: rgba(45, 113, 184, 0.08);
  color: var(--blue);
}

.measurements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.measurement-input {
  text-align: right;
}

.measurement-input::-webkit-inner-spin-button,
.measurement-input::-webkit-outer-spin-button {
  opacity: 0.4;
}

.measurement-unit-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   CAMERA / VIDEO SECTION
   ============================================================ */
.camera-area {
  background: #0a0e14;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.camera-area video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#videoPreview {
  display: none;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.camera-placeholder svg {
  opacity: 0.35;
  flex-shrink: 0;
}

.camera-placeholder-text {
  font-size: 0.88rem;
  font-weight: 400;
  opacity: 0.6;
  max-width: 260px;
  line-height: 1.5;
}

/* Recording indicator */
.recording-indicator {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 3px;
  padding: 0.3rem 0.65rem;
  z-index: 10;
}

.recording-indicator.active {
  display: flex;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #e53e3e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: recPulse 1.2s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.rec-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e53e3e;
}

.scan-timer {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* Scan controls */
.scan-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-camera {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
}

.btn-camera:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn-camera:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn-start-scan {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-start-scan:not(:disabled):hover {
  background: var(--blue-dk);
}

.btn-stop-scan {
  background: #c0392b;
  color: var(--white);
  border-color: #c0392b;
}

.btn-stop-scan:not(:disabled):hover {
  background: #a93226;
}

.btn-retake {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-solid);
}

.btn-retake:not(:disabled):hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(45, 113, 184, 0.06);
}

/* Step instructions */
.step-instructions {
  background: rgba(45, 113, 184, 0.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  counter-reset: step-counter;
}

.step-instructions li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.875rem;
  color: var(--body);
  padding: 0.35rem 0;
  line-height: 1.5;
}

.step-instructions li::before {
  content: counter(step-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

/* Desktop fallback */
.desktop-fallback {
  display: none;
  background: rgba(232, 168, 32, 0.09);
  border: 1px solid rgba(201, 138, 26, 0.3);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.55;
  gap: 0.75rem;
  align-items: flex-start;
}

.desktop-fallback-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ============================================================
   PHOTO UPLOAD
   ============================================================ */
.photo-upload-area {
  border: 2px dashed var(--border-solid);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.photo-upload-area:hover,
.photo-upload-area.drag-over {
  border-color: var(--blue);
  background: rgba(45, 113, 184, 0.04);
}

.photo-upload-area.drag-over {
  background: rgba(45, 113, 184, 0.08);
}

.upload-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  opacity: 0.5;
}

.upload-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.upload-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.upload-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.photo-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-solid);
  flex-shrink: 0;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem;
  background: #f3f6fb;
  text-align: center;
}

.pdf-thumb strong {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: #c0392b;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
}

.pdf-thumb span {
  font-size: 0.65rem;
  line-height: 1.25;
  word-break: break-all;
  overflow: hidden;
  max-height: 2.5em;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(192, 57, 43, 0.92);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}

.photo-remove:hover {
  background: #a93226;
  transform: scale(1.1);
}

/* Photo count badge */
.photo-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.75rem;
  background: rgba(45, 113, 184, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* ============================================================
   PROGRESS & STATUS
   ============================================================ */
.progress-container {
  display: none;
  margin-top: 1.25rem;
}

.progress-container.visible {
  display: block;
}

.progress-bar-wrap {
  background: #e0e6ef;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-dk));
  border-radius: 4px;
  transition: width 0.35s ease;
  width: 0%;
}

.progress-percent {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 500;
}

.status-message {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  min-height: 1.4em;
  transition: color var(--transition);
}

.status-message:empty {
  display: none;
}

.status-success {
  color: #27ae60;
  font-weight: 500;
}

.status-error {
  color: #c0392b;
  font-weight: 500;
}

.status-info {
  color: var(--blue);
  font-weight: 500;
}

/* ============================================================
   CONSENT BLOCK
   ============================================================ */
.consent-block {
  background: var(--light);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.consent-block input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
  margin-top: 0.1rem;
  border-radius: 3px;
}

.consent-text {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--body);
}

.gdpr-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.85rem;
  line-height: 1.55;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border-solid);
}

/* ============================================================
   SUBMIT SECTION
   ============================================================ */
.submit-section {
  text-align: center;
  padding: 1.75rem 0 0.5rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.2rem 3rem;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 113, 184, 0.32);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.success-overlay {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.success-overlay.visible {
  display: block;
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(39, 174, 96, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
}

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.success-body {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo img {
  height: 44px;
  opacity: 0.75;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-copy a {
  color: var(--gold-lt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   TIMER (large display in camera area)
   ============================================================ */
.scan-timer-display {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 16px rgba(0,0,0,0.8);
  letter-spacing: 0.05em;
  z-index: 10;
  display: none;
}

.scan-timer-display.active {
  display: block;
}

.timer-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-align: center;
}

/* ============================================================
   RESPONSIVE — TABLET (600px+)
   ============================================================ */
@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .scan-controls {
    flex-direction: row;
  }

  .btn-camera {
    width: auto;
  }

  .photo-thumb {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
   RESPONSIVE — DESKTOP (960px+)
   ============================================================ */
@media (min-width: 960px) {
  .survey-page {
    max-width: 860px;
    padding: 2.5rem 1.5rem 6rem;
  }

  .desktop-fallback {
    display: flex;
  }

  .nav-burger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .survey-section {
    padding: 2.25rem 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 600px)
   ============================================================ */
@media (max-width: 599px) {
  .survey-page {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    padding-bottom: 4rem;
  }

  .survey-hero {
    padding: 3.5rem 1rem 3rem;
  }

  .survey-section {
    padding: 1.5rem 1.25rem;
  }

  .section-number {
    font-size: 2.2rem;
  }

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

  .photo-thumb {
    width: 80px;
    height: 80px;
  }

  .scan-controls {
    flex-direction: column;
  }

  .btn-camera {
    width: 100%;
  }

  .btn-submit {
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-inner {
    padding: 0 1rem;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav,
  .scan-controls,
  .photo-upload-area,
  .camera-area,
  .btn-submit {
    display: none !important;
  }

  .survey-page {
    padding-top: 1rem;
  }
}

.error-message:empty { display: none; }
