/* ==========================================================================
   1. Settings: Variables, Mixins
   ========================================================================== */
   :root {
    /* Färgpalett */
    --color-background: #fff;
    --color-text: #111;
    --color-accent: #00449e;
  }


/* ==========================================================================
   2. Tools
   ========================================================================== */
/* (tom – här kan du lägga mixins, helpers osv. vid behov) */


/* ==========================================================================
   3. Generic: Reset, box-sizing, basstil
   ========================================================================== */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Georgia, serif;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
  }
  
  
  /* ==========================================================================
     4. Elements: HTML-element utan klasser
     ========================================================================== */
  h1 {
    font-size: 1.5em;
    margin-bottom: 1em;
  }

  h2 {
    font-size: 1.2em;
    margin-top: 1em;
  }

  h3 {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 0.5em;
  }
  
  ul {
    list-style: none;
    padding: 0;
  }
  ol {
    margin-left:3em;
  }
  
  li {
    margin: 1em 0;
  }
  
  a {
    text-decoration: none;
    color: var(--color-accent);
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  textarea {
    width: 100%;
    max-width: 600px;
    height: 100px;
    font-family: inherit;
    font-size: 1.1em;
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
  }
  
  textarea:focus {
    outline: none;
    border-color: #999;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  
  /* ==========================================================================
     5. Objects: Strukturella layouter utan visuell design
     ========================================================================== */
     .content-wrapper {
      max-width: 800px;
      margin: 0 auto;
      padding: 1.7em 1em 2em 1em;
    }
  
  
  /* ==========================================================================
     6. Components: UI-moduler, visuella komponenter
     ========================================================================== */
  .faqta-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 1em;
    width: 100%;
  }
  
  .faqta-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 220px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 1.5em;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .faqta-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.1em;
    margin: 0.8em 0;
    font-weight: 500;
  }
  
  .faqta-menu-toggle {
    font-size: 1.8em;
    cursor: pointer;
    user-select: none;
  }
  
  .faqta-menu.open {
    right: 0;
  }
  
  .faqta-logo img {
    height: 60px;
  }

  .faq-nav {
    margin-top: 2em;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 1em;
  }

  .faq-share {
    margin-top: 3em;
    text-align: center;
    font-size: 0.9em;
    color: #444;
  }

  .faq-share input {
    width: 60%; 
    max-width: 400px; 
    text-align: center; 
    padding: 0.5em; 
    font-size: 0.9em; 
    color: #222; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    cursor: pointer;
  }

  .faq-share #copy-message {
    margin-top: 0.5em; 
    color: #666; 
    font-size: 0.8em; 
    display: none;"
  }
  
  body.index .faqta-logo {
    visibility: hidden;
  }
  
  .faqta-answer {
    white-space: normal;
    background: #f8f8f8;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-top: 1.5em;
  }
  
  .answer-box {
    margin-top: 2em;
    width: 100%;
    max-width: 600px;
    padding: 1em;
    border-radius: 12px;
    background: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    white-space: pre-wrap;
    text-align: left;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .answer-box.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .answer-box.loading::after {
    content: " ";
    display: inline-block;
    animation: dots 1.5s steps(3, end) infinite;
  }
  
  .form-wrapper {
    width: 100%;
    max-width: 600px;
    margin-top: 1em;
  }
  
  .form-row {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
/* Mobil (<600px): vertikal stapling */
@media (max-width: 599px) {
  .form-row {
    flex-direction: column;
    align-items: center;
  }

  .form-row button {
    width: 100%;
    max-width: 600px;
    align-self: center;
  }
}

/* Desktop (≥600px): rad med högerjusterad knapp */
@media (min-width: 600px) {
  .form-row {
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .form-row button {
    width: auto;
  }
}  
  
  .form-row button {
    flex-shrink: 0;
    padding: 0.8em 2em;
    font-size: 1.1em;
    background: black;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .form-row button:hover {
    background: #333;
    transform: scale(1.02);
  }
  
  .form-row button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
  }

  .cf-turnstile-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-top: 2rem;
    margin-bottom: 1rem;
    border-top: 1px solid #eee;
  }
  
  #debug-warning {
    color:#fff;
    background-color:#f00;
    text-align:center;
    font-weight:bold;
  }

  /* ==========================================================================
     7. Utilities: Hjälparklasser, layoutjusteringar
     ========================================================================== */
  .center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
 .homepage-logo {
    max-width: 400px;
  }
  @media (max-width: 600px) {
    .homepage-logo {
      max-width: 200px;
    }
  }  
  
  /* ==========================================================================
     Keyframes (kan ligga sist eller i egen sektion)
     ========================================================================== */
  @keyframes dots {
    0%   { content: ""; }
    33%  { content: "."; }
    66%  { content: ".."; }
    100% { content: "..."; }
  }
  