@charset "UTF-8";
/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* Accessibility-friendly font */
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap");
/* Brand colors */
/* Accent only */
/* Secondary colors (supporting) */
/* error / warning states */
/* highlight / rating stars */
/* success */
/* info / calm emphasis */
/* Neutrals */
/* Spacing scale */
/* Entry point: compile ONLY this file to generate the full CSS bundle */
html {
  /* Better mobile text scaling */
  -webkit-text-size-adjust: 100%;
}

/* Global body styling */
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background: #ffffff;
  color: #000000;
  /* Center text globally */
  text-align: center;
}

/* Headings */
h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: #123686;
}

@media (min-width: 768px) {
  h1 {
    font-size: 34px;
  }
}
/* Paragraphs */
p {
  margin: 0 auto 12px auto;
  /* Keep centered text readable */
  max-width: 56ch;
  color: #444444;
}

/* Remove extra margin on the last paragraph in a block */
p:last-of-type {
  margin-bottom: 0;
}

/* Links (site-wide defaults) */
a {
  color: #123686;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus,
a:focus-visible {
  text-decoration-thickness: 2px;
}

/* Buttons are often <a class="btn ...">, they should not look like links */
a.btn {
  text-decoration: none;
}

/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* =========================================================
   Layout tokens
   ========================================================= */
:root {
  --header-height: 56px;
}

@media (min-width: 768px) {
  :root {
    --header-height: 64px;
  }
}
/* =========================================================
   Header (fixed, full width)
   ========================================================= */
.topbar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #ffffff;
  text-align: left;
  box-sizing: border-box;
  border-bottom: none;
  box-shadow: none;
}

.topbar-wrap a.brand__text {
  font-size: 20px;
  font-weight: 700;
  color: #123686;
  text-decoration: none !important;
}

.topbar-wrap a.brand__text:visited,
.topbar-wrap a.brand__text:hover,
.topbar-wrap a.brand__text:active,
.topbar-wrap a.brand__text:focus,
.topbar-wrap a.brand__text:focus-visible {
  color: #123686;
  text-decoration: none !important;
}

/* =========================================================
   Main container
   ========================================================= */
.container {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: calc(var(--header-height) + 20px);
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .container {
    max-width: 760px;
    padding-top: calc(var(--header-height) + 28px);
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 28px;
  }
}
/* =========================================================
   Home illustration
   ========================================================= */
.home-welcome {
  display: flex;
  justify-content: center;
}

.home-welcome__image {
  width: 100%;
  max-width: 260px;
  height: auto;
}

@media (min-width: 768px) {
  .home-welcome__image {
    max-width: 320px;
  }
}
/* =========================================================
   Stacks and sections
   ========================================================= */
.stack {
  display: grid;
  gap: 16px;
  margin: 16px 0;
  /* default pages: center buttons/blocks */
  justify-items: center;
}

.section {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .stack {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}
/* =========================================================
   OCR result container
   ========================================================= */
.ocr-letter {
  width: 100%;
  text-align: left;
}

/* Adds space between the tool buttons (Leeshulp) and the rendered letter content */
.ocr-letter__content {
  margin-top: 20px; /* space under the buttons */
}

/* Optional fallback (old) plain text rendering */
.ocr-letter__text {
  width: 100%;
  margin: 0;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

/* =========================================================
   OCR rendered HTML styling
   ========================================================= */
.ocr-letter__content {
  width: 100%;
  margin: 0;
  text-align: left;
  /* Makes long letters readable */
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  /* Ensure long strings/URLs don't blow up layout */
}
.ocr-letter__content * {
  word-break: break-word;
}
.ocr-letter__content {
  /* Headings */
}
.ocr-letter__content h1,
.ocr-letter__content h2,
.ocr-letter__content h3,
.ocr-letter__content h4 {
  line-height: 1.25;
  margin: 18px 0 10px;
}
.ocr-letter__content {
  /* Paragraph spacing */
}
.ocr-letter__content p {
  margin: 0 0 12px;
}
.ocr-letter__content {
  /* Lists */
}
.ocr-letter__content ul,
.ocr-letter__content ol {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}
.ocr-letter__content li {
  margin: 0 0 6px;
}
.ocr-letter__content {
  /* Blockquotes */
}
.ocr-letter__content blockquote {
  margin: 12px 0;
  padding-left: 12px;
  border-left: 4px solid #ddd;
}
.ocr-letter__content {
  /* Images/logos */
}
.ocr-letter__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
}
.ocr-letter__content {
  /* Tables */
}
.ocr-letter__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  /* If tables are wider than the screen, allow horizontal scroll */
  display: block;
  overflow-x: auto;
}
.ocr-letter__content th,
.ocr-letter__content td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: top;
  text-align: left;
}
.ocr-letter__content {
  /* Prevent accidental bold in body cells */
}
.ocr-letter__content td {
  font-weight: 400;
}
.ocr-letter__content th {
  font-weight: 600;
}
.ocr-letter__content {
  /* Only bold when OCR explicitly marked strong */
}
.ocr-letter__content td strong {
  font-weight: 700;
}
.ocr-letter__content {
  /* Keep table text readable */
}
.ocr-letter__content table {
  font-size: 14px;
}
@media (min-width: 768px) {
  .ocr-letter__content table {
    font-size: 15px;
  }
}

/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* ------------------------------------------------------------
   Buttons: mobile-first, consistent sizing
   Applies to button, link and label elements
   ------------------------------------------------------------ */
.btn,
button.btn,
a.btn,
label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 700;
  /* Important: keeps <a> height identical to <button> */
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.02s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Make anchors behave exactly like buttons everywhere */
a.btn,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:focus {
  text-decoration: none;
  display: inline-flex;
  align-self: stretch;
}

/* Desktop sizing: keep tablets in "mobile-like" full-width behavior */
@media (min-width: 1024px) {
  .btn,
  button.btn,
  a.btn,
  label.btn {
    max-width: 440px;
  }
}
/* ------------------------------------------------------------
   Language button (special placement, same visual logic)
   ------------------------------------------------------------ */
.btn-language,
button.btn-language,
a.btn-language,
label.btn-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-left: auto;
  margin-right: 0;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.02s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* ------------------------------------------------------------
   Primary button
   ------------------------------------------------------------ */
.btn-primary,
button.btn-primary,
a.btn-primary,
label.btn-primary {
  background: #123686;
  color: #ffffff;
}
.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover,
label.btn-primary:hover {
  background: #123686;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}
.btn-primary:focus-visible,
button.btn-primary:focus-visible,
a.btn-primary:focus-visible,
label.btn-primary:focus-visible {
  background: #123686;
  color: #ffffff;
}

/* ------------------------------------------------------------
   Secondary button
   ------------------------------------------------------------ */
.btn-secondary,
button.btn-secondary,
a.btn-secondary,
label.btn-secondary {
  background: #f6f7f9;
  color: #123686;
  border-color: #e5e5e5;
}
.btn-secondary:hover,
button.btn-secondary:hover,
a.btn-secondary:hover,
label.btn-secondary:hover {
  background-color: #eef1f5;
  color: #123686;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.btn-secondary:focus-visible,
button.btn-secondary:focus-visible,
a.btn-secondary:focus-visible,
label.btn-secondary:focus-visible {
  background: #f6f7f9;
  color: #123686;
}

/* ------------------------------------------------------------
   Small utility button
   ------------------------------------------------------------ */
.btn-small,
button.btn-small,
a.btn-small,
label.btn-small {
  width: auto;
  max-width: none;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 16px;
  border-radius: 10px;
  line-height: 1;
  margin-left: 0;
  margin-right: 0;
}

/* ------------------------------------------------------------
   Active press feedback
   ------------------------------------------------------------ */
.btn:active,
button.btn:active,
a.btn:active,
label.btn:active {
  transform: translateY(1px);
}

/* ------------------------------------------------------------
   Accessible focus ring
   ------------------------------------------------------------ */
.btn:focus-visible,
button.btn:focus-visible,
a.btn:focus-visible,
label.btn:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* Fallback focus */
.btn:focus,
button.btn:focus,
a.btn:focus,
label.btn:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Utility: hide elements (used by JS to toggle UI states)
   ------------------------------------------------------------ */
.is-hidden {
  display: none !important;
}

/* ------------------------------------------------------------
   Language modal: button sizing and alignment (scoped)
   ------------------------------------------------------------ */
.language-modal__options {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.language-modal__form {
  width: 100%;
}

.language-modal__btn {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  /* Allow long language names to wrap cleanly */
  white-space: normal;
  text-align: center;
}

/* Add spacing between the last language option and the Close button */
.language-modal__close {
  margin-top: 16px;
}

/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* =========================================================
   _modal.scss
   Shared modal styles for the whole app.
   Pattern:
   - Modal overlay is hidden by default (display: none)
   - JS opens it by adding .is-open
   - Optionally, templates may also add .is-hidden initially
   ========================================================= */
/* Prevent background scrolling when a modal is open */
body.modal-open {
  overflow: hidden;
}

/* =========================================================
   Overlay
   - Covers whole screen
   - Centers the modal panel
   - Adds dim + blur while keeping the page visible
   ========================================================= */
.modal-overlay {
  /* Hidden by default to prevent "random" modals showing */
  display: none;
  position: fixed;
  inset: 0;
  /* Center modal panel */
  place-items: center;
  /* Spacing around the panel on small screens */
  padding: 20px;
  /* Keep background visible but dimmed */
  background: rgba(0, 0, 0, 0.22);
  /* Blur the page behind the overlay (supported in modern browsers) */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Ensure overlay is above fixed header */
  z-index: 2000;
  box-sizing: border-box;
}

/* When open, show overlay and enable centering */
.modal-overlay.is-open {
  display: grid;
}

/* Optional compatibility:
   If some templates still toggle .is-hidden, keep it working */
.modal-overlay.is-hidden {
  display: none !important;
}

/* =========================================================
   Modal panel
   ========================================================= */
.modal {
  /* Full width on mobile, max width on larger screens */
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  text-align: center;
  /* If screen is small, allow internal scrolling */
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-sizing: border-box;
  /* Visual depth */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
}

/* Modal heading */
.modal h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #123686;
}

/* Optional body text spacing inside modals */
.modal p {
  margin: 0 0 16px;
  color: #000000;
}

/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* =========================================================
   Info page: privacy explanation cards
   ========================================================= */
/* Page title */
.info-title {
  margin: 0 0 20px;
  color: #123686;
  text-align: center;
}

/* Cards container */
.info-cards {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

/* Single card */
.info-card {
  background: #f6f7f9;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

/* Card text */
.info-card p {
  margin: 0;
  color: #000000;
  font-size: 18px;
  line-height: 1.6;
}

/* Back button wrapper */
.info-back {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* Desktop refinement */
@media (min-width: 768px) {
  .info-cards {
    max-width: 600px;
  }
  .info-card p {
    font-size: 19px;
  }
}
/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* src/static/scss/_media-input.scss */
/* =========================================================
   Media input styling
   Used for:
   - Camera capture
   - Photo upload
   ========================================================= */
/*
  Native file inputs are styled differently per browser and often look inconsistent.
  For a consistent UI, we hide the native input and use a styled <label> as the button.
*/
/* Hide the native file input but keep it accessible */
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  /* Improve tap behavior on mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Styled label that acts as the visible "choose/take photo" button */
.file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  padding: 16px 18px;
  background: #f6f7f9;
  color: #123686;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  text-align: center;
  box-sizing: border-box;
}

/* Hover state */
.file-input-label:hover {
  background: #ffffff;
}

/* Focus ring for accessibility (when the hidden input receives focus) */
.file-input:focus-visible + .file-input-label,
.file-input-label:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* Disabled state (optional, if you ever disable the input later) */
.file-input:disabled + .file-input-label {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Desktop refinement */
@media (min-width: 768px) {
  .file-input-label {
    font-size: 19px;
  }
}
/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* ============================
   Feedback page styles
   - Keep it simple and readable
   - Mobile-first
   ============================ */
/* Warning message when not all ratings are filled in */
.feedback__warning {
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #f6f7f9;
  color: #000000;
  text-align: left;
}

/* Utility class: hide an element (used by JS) */
.is-hidden {
  display: none !important;
}

/* Question blocks */
.feedback__question {
  text-align: center; /* Your current UI is centered; keep consistent */
}

.feedback__question-title {
  margin-bottom: 12px;
}

/* ============================
   Star rating
   - Uses your SVG in /static/icons/star.svg
   - Default = outline-ish/low opacity
   - Active = filled (yellow)
   ============================ */
.stars {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* Each star is a button so it works on mobile */
.star {
  /* Reset native button styling */
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  /* Size of the star */
  width: 34px;
  height: 34px;
  /* Use the SVG as a mask so we can color it with background-color */
  -webkit-mask: url("/static/icons/star.svg") no-repeat center/contain;
  mask: url("/static/icons/star.svg") no-repeat center/contain;
  /* Default color (looks like “empty”) */
  background-color: #444444;
  opacity: 0.35;
  /* Touch friendliness */
  touch-action: manipulation;
}

/* Filled/active stars */
.star.is-active {
  opacity: 1;
  background-color: #f59b23; /* Your yellow/orange accent */
}

/* Optional: keyboard focus styling */
.star:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 4px;
  border-radius: 8px;
}

/* ============================
   Extra feedback textarea
   - Must be as wide as buttons
   ============================ */
/* Make sure the wrapper section can stretch full width */
.feedback__extra {
  width: 100%;
}

/* Ensure the textarea itself stretches to full available width */
.feedback__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 140px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  font-size: 16px;
  color: #000000;
  resize: vertical;
}

/* If your container centers items, force children to stretch */
.feedback .stack {
  align-items: stretch;
}

/* Entry point: compile ONLY this file to generate the full CSS bundle */
/* Make the illustration visible and responsive */
.thanks__image {
  width: 100%;
  max-width: auto;
  height: auto;
}

.goHomeBtn {
  margin-top: 20px;
}

/* Loading layout */
.loading {
  text-align: center;
  /* Center in the middle of the screen */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  /* Small visual nudge upward */
  transform: translateY(-20vh);
}

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

/* Your loader (as provided) */
.loader {
  height: 60px;
  aspect-ratio: 2;
  border-bottom: 3px solid rgba(0, 0, 0, 0);
  background: linear-gradient(90deg, #524656 50%, rgba(0, 0, 0, 0) 0) -25% 100%/50% 3px repeat-x border-box;
  position: relative;
  animation: l3-0 0.75s linear infinite;
}

.loader:before {
  content: "";
  position: absolute;
  inset: auto 42.5% 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #CF4647;
  animation: l3-1 0.75s cubic-bezier(0, 900, 1, 900) infinite;
}

@keyframes l3-0 {
  to {
    background-position: -125% 100%;
  }
}
@keyframes l3-1 {
  0%, 2% {
    bottom: 0%;
  }
  98%, to {
    bottom: 0.1%;
  }
}
/* Optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loader,
  .loader:before {
    animation: none;
  }
}

/*# sourceMappingURL=styles.css.map */
