/* ============================================================
   DOSSIER PAGE — Shared "Paper on Folder on Desk" Aesthetic
   ============================================================
   Used by /booking and /partners pages.
   Layers (bottom→top):
     1. Desk surface (dark wood/leather)
     2. Manila folder frame
     3. Paper page (ruled lines, theme-colored)
     4. Content (post-it notes, forms, portholes)

   Theme integration: reads --paper-*, --folder-*, --desk-*,
   --field-glow-paper, --porthole-btn-glow from themes.css.
   ============================================================ */


/* ============================================================
   1. DESK SURFACE — Dark tabletop background
   ============================================================ */
.dossier-desk {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    /* Subtle wood grain via repeating gradients */
    repeating-linear-gradient(
      92deg,
      transparent 0px, transparent 40px,
      rgba(60, 45, 20, 0.03) 40px, rgba(60, 45, 20, 0.03) 41px
    ),
    repeating-linear-gradient(
      88deg,
      transparent 0px, transparent 80px,
      rgba(80, 60, 25, 0.02) 80px, rgba(80, 60, 25, 0.02) 81px
    ),
    /* Warm center vignette */
    radial-gradient(
      ellipse 80% 70% at 50% 30%,
      var(--desk-texture, rgba(40, 32, 18, 0.3)) 0%,
      transparent 70%
    ),
    /* Base */
    var(--desk-bg, #0e0c08);
  background-color: var(--desk-bg, #0e0c08);
}


/* ============================================================
   2. MANILA FOLDER — Outer frame for the paper
   ============================================================ */
.dossier-folder {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 28px 40px;
  background:
    /* Subtle fiber texture */
    repeating-linear-gradient(
      0deg,
      transparent 0px, transparent 3px,
      rgba(0, 0, 0, 0.015) 3px, rgba(0, 0, 0, 0.015) 4px
    ),
    linear-gradient(
      175deg,
      var(--folder-bg, #c9a86c) 0%,
      color-mix(in srgb, var(--folder-bg, #c9a86c) 92%, #000) 100%
    );
  border-radius: 4px 4px 6px 6px;
  box-shadow:
    0 8px 32px var(--folder-shadow, rgba(60, 40, 10, 0.35)),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 240, 200, 0.15);
}

/* Folder tab — protruding label at top */
.dossier-folder-tab {
  position: absolute;
  top: -24px;
  left: 40px;
  padding: 6px 24px 4px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--folder-tab, #b89858) 100%, #fff 8%) 0%,
      var(--folder-tab, #b89858) 100%
    );
  border-radius: 6px 6px 0 0;
  font-family: var(--theme-font-display, Georgia, serif);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(60, 40, 10, 0.7);
  box-shadow:
    0 -2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 240, 200, 0.2);
}


/* ============================================================
   3. PAPER PAGE — Ruled notebook paper
   ============================================================ */
.dossier-paper {
  position: relative;
  background:
    /* Horizontal ruled lines */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 27px,
      var(--paper-line, rgba(51, 255, 51, 0.08)) 27px,
      var(--paper-line, rgba(51, 255, 51, 0.08)) 28px
    ),
    /* Left margin line */
    linear-gradient(
      90deg,
      transparent 48px,
      var(--paper-margin, rgba(220, 80, 80, 0.15)) 48px,
      var(--paper-margin, rgba(220, 80, 80, 0.15)) 49px,
      transparent 49px
    ),
    /* Paper base */
    var(--paper-bg, #f5f0e6);
  background-color: var(--paper-bg, #f5f0e6);
  border-radius: 2px;
  padding: 36px 32px 40px 64px;
  color: var(--paper-text, #2a2418);
  font-family: var(--theme-font-body, 'Courier New', monospace);
  box-shadow:
    /* Lifted paper shadow */
    0 1px 4px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.06),
    /* Inner glow — very subtle theme tint */
    inset 0 0 60px rgba(0, 0, 0, 0.02);
  line-height: 1.65;
}

/* Paper edge highlight (top) */
.dossier-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0.3) 80%, transparent);
  border-radius: 2px 2px 0 0;
}

/* Subtle corner curl shadow (bottom-right) */
.dossier-paper::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40%;
  height: 10px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
  z-index: -1;
  transform: rotate(2deg);
}


/* ============================================================
   4. PAPER TYPOGRAPHY — Dark text on light paper
   ============================================================ */
.dossier-paper h1,
.dossier-paper h2,
.dossier-paper h3 {
  color: var(--paper-heading, #1a1610);
  font-family: var(--theme-font-display, Georgia, serif);
  line-height: 1.3;
}

.dossier-paper h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 8px;
}

.dossier-paper h2 {
  font-size: clamp(18px, 3vw, 26px);
  margin-bottom: 8px;
}

.dossier-paper p {
  color: var(--paper-text-dim, #5a5040);
  font-size: 14px;
  margin-bottom: 16px;
}

.dossier-paper .paper-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-text-label, #7a6c50);
  margin-bottom: 6px;
}

.dossier-paper .paper-classified {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(220, 60, 60, 0.6);
}


/* ============================================================
   5. FORM FIELDS ON PAPER — Inset with theme glow
   ============================================================ */
.dossier-paper .form-group label {
  color: var(--paper-text-label, #7a6c50);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.dossier-paper .form-group input,
.dossier-paper .form-group select,
.dossier-paper .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--paper-text, #2a2418);
  font-family: var(--theme-font-data, 'Courier New', monospace);
  font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  -webkit-appearance: none;
  appearance: none;
}

.dossier-paper .form-group input:focus,
.dossier-paper .form-group select:focus,
.dossier-paper .form-group textarea:focus {
  outline: none;
  border-color: var(--theme-primary, #33ff33);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 0 8px var(--field-glow-paper, rgba(51, 255, 51, 0.12)),
    0 0 0 2px var(--field-glow-paper, rgba(51, 255, 51, 0.08));
}

.dossier-paper .form-group input::placeholder,
.dossier-paper .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.dossier-paper .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23665540' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: rgba(255, 255, 255, 0.6);
  padding-right: 36px;
}

.dossier-paper .form-group select option {
  background: #f5f0e6;
  color: var(--paper-text, #2a2418);
}

.dossier-paper .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dossier-paper .form-group {
  margin-bottom: 18px;
}

.dossier-paper .form-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  margin: 24px 0;
}

/* Checkboxes on paper */
.dossier-paper .form-checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--paper-text-dim, #5a5040);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.dossier-paper .form-checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--theme-primary, #33ff33);
  box-shadow: none;
}


/* ============================================================
   6. POST-IT NOTES — Replacing scenario/action card frames
   ============================================================ */
.postit {
  position: relative;
  padding: 24px 20px 28px;
  background: var(--postit-bg, rgba(255, 248, 200, 0.92));
  border-radius: 2px;
  box-shadow:
    2px 3px 8px var(--postit-shadow, rgba(0, 0, 0, 0.18)),
    0 1px 2px rgba(0, 0, 0, 0.08);
  transform: rotate(-0.5deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--paper-text, #2a2418);
}

.postit:nth-child(even) {
  transform: rotate(0.7deg);
}

.postit:nth-child(3n) {
  transform: rotate(-1deg);
}

.postit:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    3px 5px 14px var(--postit-shadow, rgba(0, 0, 0, 0.22)),
    0 2px 4px rgba(0, 0, 0, 0.10);
}

/* Tape strip at top */
.postit::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 60px;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1px;
}

.postit h3 {
  font-family: var(--theme-font-display, Georgia, serif);
  font-size: 16px;
  color: var(--paper-heading, #1a1610);
  margin-bottom: 8px;
}

.postit p {
  font-size: 13px;
  color: var(--paper-text-dim, #5a5040);
  line-height: 1.55;
}

.postit .postit-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}


/* ============================================================
   7. PORTHOLE BUTTONS — Sleek rectangular CTA with
      starfield blowthrough on hover/tap.
   ============================================================
   Default: solid themed background, dark text, brass border.
   Hover:   background dissolves → starfield canvas underneath
            becomes visible → border glows → text inverts to
            white with glow → CSS star sparkles burst outward.
            Stars "break the 4th wall" from the underlay.
   ============================================================ */

/* ============================================================
   BASE — Wide, low-profile CTA with contrast neon glow halo
   ============================================================ */
.porthole-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 44px;
  min-width: 160px;
  border-radius: 8px;
  border: 2px solid var(--theme-primary, #33ff33);
  background: color-mix(in srgb, var(--theme-primary, #33ff33) 18%, #d4c8a0);
  cursor: pointer;
  overflow: visible;
  /* CONTRAST glow — complementary hue, pops against paper */
  box-shadow:
    0 0 8px  var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.55)),
    0 0 24px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.30)),
    0 0 48px color-mix(in srgb, var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.2)) 50%, transparent);
  transition: all 0.35s cubic-bezier(0.05, 0.83, 0.43, 0.96);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Starfield canvas — clipped, hidden until porthole mode ---- */
.porthole-btn .starfield-window {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  clip-path: inset(0 round 6px);
  /* Dark fallback — covers any gap the master blit doesn't reach at viewport edge */
  background: #060808;
}

/* ---- Label — BIG, BOLD, SHADOWED for legibility ---- */
.porthole-btn-label {
  position: relative;
  z-index: 3;
  font-family: var(--theme-font-data, 'Courier New', monospace);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-heading, #1a1610);
  text-align: center;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.porthole-btn-label small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.5;
  margin-top: 2px;
  transition: opacity 0.3s ease;
}

/* ---- CSS sparkles ---- */
.porthole-btn .sparkle {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.05, 0.83, 0.43, 0.96);
  filter: drop-shadow(0 0 0 transparent);
  will-change: transform, opacity;
}

.porthole-btn .sparkle::before {
  content: '✦';
  display: block;
  /* Match the idle contrast glow, not the border color */
  color: var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.9));
  font-size: inherit;
}

.porthole-btn .sparkle-1 { top: 20%; left: 15%; font-size: 14px; }
.porthole-btn .sparkle-2 { top: 10%; left: 55%; font-size: 8px; }
.porthole-btn .sparkle-3 { top: 45%; right: 5%;  font-size: 18px; }
.porthole-btn .sparkle-4 { bottom: 8%; left: 35%; font-size: 6px; }
.porthole-btn .sparkle-5 { top: 5%;  right: 20%; font-size: 12px; }
.porthole-btn .sparkle-6 { bottom: 15%; left: 8%; font-size: 5px; }

/* ── IDLE GLOW BREATHING — contrast halo pulses ── */
@keyframes porthole-glow-breathe {
  0%, 100% {
    box-shadow:
      0 0 8px  var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.55)),
      0 0 24px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.30)),
      0 0 48px color-mix(in srgb, var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.2)) 50%, transparent);
  }
  50% {
    box-shadow:
      0 0 14px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.65)),
      0 0 36px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.40)),
      0 0 72px color-mix(in srgb, var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.3)) 50%, transparent);
  }
}

.porthole-btn:not(:hover):not(:focus-visible):not(:active) {
  animation: porthole-glow-breathe 3s ease-in-out infinite;
}


/* ============================================================
   HOVER / TAP — Glow contracts, porthole opens
   ============================================================ */
.porthole-btn:hover,
.porthole-btn:focus-visible {
  background: transparent;
  border-color: var(--theme-primary, #33ff33);
  box-shadow:
    0 0 0 1px var(--theme-primary, #33ff33),
    0 0 10px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.5)),
    inset 0 0 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.porthole-btn:hover .starfield-window,
.porthole-btn:focus-visible .starfield-window {
  opacity: 1;
}

.porthole-btn:hover .porthole-btn-label,
.porthole-btn:focus-visible .porthole-btn-label {
  color: #fff;
  text-shadow:
    0 0 8px var(--porthole-btn-glow, rgba(51, 255, 51, 0.5)),
    0 0 16px var(--porthole-btn-glow, rgba(51, 255, 51, 0.2)),
    0 1px 3px rgba(0, 0, 0, 0.8);
}

.porthole-btn:hover .porthole-btn-label small,
.porthole-btn:focus-visible .porthole-btn-label small {
  opacity: 0.8;
}

.porthole-btn:hover .sparkle,
.porthole-btn:focus-visible .sparkle {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.8)));
}

.porthole-btn:hover .sparkle-1,
.porthole-btn:focus-visible .sparkle-1 { top: -35%; left: -15%; transform: scale(1.2) rotate(20deg); }
.porthole-btn:hover .sparkle-2,
.porthole-btn:focus-visible .sparkle-2 { top: -45%; left: 48%; transform: scale(1.1) rotate(-15deg); }
.porthole-btn:hover .sparkle-3,
.porthole-btn:focus-visible .sparkle-3 { top: 35%; right: -25%; transform: scale(1.3) rotate(10deg); }
.porthole-btn:hover .sparkle-4,
.porthole-btn:focus-visible .sparkle-4 { bottom: -40%; left: 22%; transform: scale(0.9) rotate(35deg); }
.porthole-btn:hover .sparkle-5,
.porthole-btn:focus-visible .sparkle-5 { top: -40%; right: -10%; transform: scale(1.1) rotate(-25deg); }
.porthole-btn:hover .sparkle-6,
.porthole-btn:focus-visible .sparkle-6 { bottom: -8%; left: -20%; transform: scale(0.8) rotate(45deg); }

.porthole-btn .sparkle-1 { transition-delay: 0s; }
.porthole-btn .sparkle-2 { transition-delay: 0.04s; }
.porthole-btn .sparkle-3 { transition-delay: 0.08s; }
.porthole-btn .sparkle-4 { transition-delay: 0.06s; }
.porthole-btn .sparkle-5 { transition-delay: 0.02s; }
.porthole-btn .sparkle-6 { transition-delay: 0.1s; }


/* ---- Press / active ---- */
.porthole-btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.08s;
  box-shadow:
    0 0 0 1px var(--theme-primary, #33ff33),
    0 0 4px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.3)),
    inset 0 0 20px rgba(0, 0, 0, 0.6);
}


/* ============================================================
   VARIANTS
   ============================================================ */

/* Action card inline — same font, slightly tighter */
.porthole-btn-sm {
  padding: 11px 36px;
  min-width: 140px;
}

/* Full-width form submit */
.porthole-btn-wide {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 44px;
  margin-top: 12px;
}

/* Disabled / loading */
.porthole-btn[disabled],
.porthole-btn.is-loading {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  animation: none;
  box-shadow: 0 0 4px var(--porthole-btn-contrast-glow, rgba(255, 100, 40, 0.1));
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .porthole-btn {
    /* Fill available width on mobile — no narrow orphan buttons */
    width: 100%;
    padding: 13px 32px;
    min-width: unset;
    box-sizing: border-box;
  }
  .porthole-btn-label {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .porthole-btn {
    padding: 12px 24px;
  }
  .porthole-btn-label {
    font-size: 13px;
  }
}


/* ============================================================
   8. PORTHOLE LENS TECHNOLOGY FRAME
   ============================================================
   Spy tabletop binocular/scope feel.
   Brass ring with rivets + glass lens effect. */

.porthole-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* Brass outer ring */
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(220, 200, 140, 0.2) 0%,
      transparent 50%
    ),
    linear-gradient(
      160deg,
      #5a5038 0%, #7a6c48 15%, #4a4028 30%,
      #6a5c3c 50%, #7a6c48 70%, #4a4028 85%, #3a3220 100%
    );
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(90, 80, 56, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(220, 200, 140, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Inner glass ring */
.porthole-frame-inner {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.7),
    0 0 8px var(--porthole-btn-glow, rgba(51, 255, 51, 0.15));
}

/* Rivet dots */
.porthole-frame::before,
.porthole-frame::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(220, 200, 140, 0.3), rgba(90, 80, 56, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

.porthole-frame::before {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.porthole-frame::after {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}


/* ============================================================
   9. SUBMIT BUTTON ON PAPER — Brass accent on light surface
   ============================================================ */
.dossier-paper .form-submit {
  display: block;
  width: 100%;
  padding: 14px;
  border: 2px solid color-mix(in srgb, var(--theme-primary, #33ff33) 25%, #7a6c48);
  border-radius: 6px;
  background:
    linear-gradient(175deg, rgba(60, 50, 30, 0.85) 0%, rgba(40, 34, 20, 0.92) 100%);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--theme-font-data, 'Courier New', monospace);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 12px var(--field-glow-paper, rgba(51, 255, 51, 0.08));
}

.dossier-paper .form-submit:hover {
  border-color: var(--theme-primary, #33ff33);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.25),
    0 0 20px var(--field-glow-paper, rgba(51, 255, 51, 0.15));
  transform: translateY(-1px);
}

.dossier-paper .form-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Field errors on paper */
.dossier-paper .field-error {
  color: #c03030;
  font-size: 11px;
  margin-top: 4px;
}

.dossier-paper .form-api-error {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(200, 50, 50, 0.3);
  border-radius: 4px;
  background: rgba(200, 50, 50, 0.06);
  color: #c03030;
  font-size: 13px;
  text-align: center;
}

/* Field hints */
.dossier-paper .field-optional {
  color: rgba(0, 0, 0, 0.3);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}

.dossier-paper .field-hint {
  font-size: 10px;
  color: rgba(0, 0, 0, 0.3);
  margin-top: 4px;
}


/* ============================================================
   10. STEP LABELS & DIVIDERS ON PAPER
   ============================================================ */
.dossier-paper .booking-step-label {
  font-size: 11px;
  color: var(--paper-text-label, #7a6c50);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}


/* ============================================================
   11. WAIVER / LEGAL TEXT ON PAPER
   ============================================================ */
.dossier-paper .waiver-text,
.dossier-paper .legal-text {
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--paper-text-dim, #5a5040);
  line-height: 1.7;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.dossier-paper .waiver-text h4,
.dossier-paper .legal-text h4 {
  font-size: 14px;
  color: var(--paper-heading, #1a1610);
  margin-bottom: 10px;
}

.dossier-paper .waiver-text p,
.dossier-paper .legal-text p {
  margin-bottom: 10px;
  font-size: 12px;
}

.dossier-paper .waiver-version-note,
.dossier-paper .legal-review-note {
  color: color-mix(in srgb, var(--theme-primary, #33ff33) 40%, #7a6c50);
}


/* ============================================================
   12. SUCCESS STATE ON PAPER
   ============================================================ */
.dossier-paper .form-success {
  text-align: center;
  padding: 30px;
}

.dossier-paper .form-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.dossier-paper .form-success .success-title {
  font-size: 20px;
  color: var(--paper-heading, #1a1610);
  margin-bottom: 10px;
}

.dossier-paper .form-success p {
  font-size: 14px;
  color: var(--theme-primary, #33ff33);
  margin-bottom: 16px;
  /* Glow on dark text feels wrong — use theme primary on paper bg */
  text-shadow: none;
}

.dossier-paper .booking-ref {
  font-size: 12px;
  color: var(--paper-text-label, #7a6c50);
  margin-bottom: 20px;
}

.dossier-paper .success-back-link {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  color: var(--paper-text, #2a2418);
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  text-decoration: none;
}

.dossier-paper .success-back-link:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.25);
  text-decoration: none;
}


/* ============================================================
   13. BOOKING CONFIRM BANNER ON PAPER
   ============================================================ */
.dossier-paper .booking-confirm-banner {
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--theme-primary, #33ff33) 20%, rgba(0, 0, 0, 0.1));
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-primary, #33ff33) 5%, rgba(255, 255, 255, 0.4));
  color: var(--paper-text, #2a2418);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.6;
}


/* ============================================================
   RESPONSIVE — Mobile-first portrait readability
   ============================================================ */
@media (max-width: 768px) {
  .dossier-folder {
    margin: 0 8px;
    padding: 20px 12px 28px;
    border-radius: 3px;
  }

  .dossier-folder-tab {
    left: 20px;
    font-size: 10px;
    padding: 5px 16px 3px;
  }

  .dossier-paper {
    padding: 24px 16px 28px 36px;
  }

  .dossier-paper .form-row {
    grid-template-columns: 1fr;
  }

  .postit {
    padding: 20px 16px 24px;
  }

}

@media (max-width: 480px) {
  .dossier-folder {
    margin: 0 4px;
    padding: 16px 8px 24px;
  }

  .dossier-paper {
    padding: 20px 12px 24px 28px;
  }

  /* Reduce margin line on very small screens */
  .dossier-paper {
    background-position-x: 0, 24px, 0;
  }
}

/* iOS zoom prevention */
@supports (-webkit-touch-callout: none) {
  .dossier-paper .form-group input,
  .dossier-paper .form-group select,
  .dossier-paper .form-group textarea {
    font-size: 16px;
  }
}
