/* =========================================================
   GVK Prototype – shared styles (index + form + thanks)
   ========================================================= */

   :root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
  
    --teal: #2bb9c7;
    --green: #7db81d;
    --green-soft: #b7d97b;
    --yellow: #f0b84a;
    --red: #ef4444;
  
    --card: #f5f7fb;
    --border: #e5e7eb;
  
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    --radius: 22px;
    --radius-lg: 28px;
  
    --maxw: 980px;
  }
  
  /* Base */
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.35;
  }
  
  a { color: #0f172a; }
  a:hover { text-decoration: underline; }
  
  .container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 16px 56px;
  }
  
  h1, h2, h3 { margin: 0 0 12px; line-height: 1.1; }
  p { margin: 0 0 12px; color: var(--muted); }
  .small { font-size: 0.92rem; color: var(--muted); }
  
  /* =========================================================
     Accessibility: Skip link (fixes "Pāriet uz saturu" in corner)
     ========================================================= */
  .skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    background: #111827;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .skip-link:focus {
    top: 12px; /* visible only on keyboard focus */
  }

  /* Form page: Back to start (top-left) */
  .form-back {
    margin-bottom: 12px;
  }

  .form-back__link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
  }

  .form-back__link:hover {
    color: var(--text);
    text-decoration: underline;
  }
  
  /* =========================================================
     Buttons
     ========================================================= */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    user-select: none;
  }
  
  .btn--primary {
    background: var(--green);
    color: #0b1220;
    box-shadow: var(--shadow);
  }
  
  .btn--secondary {
    background: #e9edf3;
    color: #111827;
  }
  
  .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  
  /* =========================================================
     Cards / Blocks
     ========================================================= */
  .card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229,231,235,0.7);
  }
  
  .grid {
    display: grid;
    gap: 14px;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  @media (min-width: 760px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
  }
  
  .hero-title {
    font-weight: 900;
    letter-spacing: 0.5px;
    font-size: clamp(2.2rem, 3.8vw, 3.3rem);
  }
  
  .hero-title { color: var(--teal); }
  .hero-title .accent { color: var(--teal); }
  
  /* =========================================================
     Index-only helpers
     ========================================================= */
  .index-blocks-wrap .index-actions {
    margin-top: 20px;
    justify-content: center;
  }

  .index-blocks {
    grid-template-columns: 1fr 1fr;
  }

  .index-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
  }
  
  .block-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    border-radius: 18px;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    border: 0;
    box-shadow: var(--shadow);
  }
  
  .block-red { background: #ff2d2d; color: #111; }
  .block-yellow {
    color: #111;
    border: none;
    background-color: #f7be64;
    background-image:
      repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0.4) 12px, transparent 12px, transparent 24px),
      repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0.4) 12px, transparent 12px, transparent 24px),
      repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0.4) 12px, transparent 12px, transparent 24px),
      repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0, rgba(0, 0, 0, 0.4) 12px, transparent 12px, transparent 24px);
    background-size: 100% 2px, 100% 2px, 2px 100%, 2px 100%;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  }
  .block-green { background: var(--green); color: #111; }
  .block-circle {
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: #c7d8b7;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 3px dashed rgba(0, 0, 0, 0.4);
  }

  .block-circle__btn {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 12px;
    font: inherit;
    color: inherit;
  }

  .block-circle__invite,
  .block-circle__contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.3;
  }

  .block-circle__invite[hidden],
  .block-circle__contacts[hidden] {
    display: none !important;
  }

  .block-circle__contacts-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #5a6b5a;
    margin-bottom: 4px;
  }

  .block-circle__contacts-line {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
  }

  .block-circle__contacts-link {
    color: #0b1220;
    text-decoration: underline;
  }

  .block-circle__contacts-link:hover {
    text-decoration: none;
  }

  .block-circle__contacts-back {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a6b5a;
    margin-top: 6px;
  }
  
  .map-placeholder {
    margin-top: 22px;
    text-align: center;
  }
  .map-title {
    font-size: 2.3rem;
    font-weight: 900;
    margin: 18px 0 12px;
  }
  .map-img {
    width: min(680px, 100%);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229,231,235,0.9);
  }
  
  /* =========================================================
     FORM styles (keep minimal — your form.html already works)
     ========================================================= */
  
  .form-wrap {
    margin-top: 18px;
  }
  
  .stepper {
    margin: 14px 0 18px;
  }

  /* Stepper: 1/4 … 4/4 on all steps */
  .stepper--compact {
    width: fit-content;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }

  .stepper-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .stepper-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    background: rgba(226, 232, 240, 0.5);
  }

  .stepper-pill.is-current {
    background: var(--green);
    color: #0b1220;
    box-shadow: 0 2px 8px rgba(125, 184, 29, 0.3);
  }
  
  .step-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 8px;
  }
  
  .step-pill {
    display: inline-flex;
    padding: 16px 18px;
    background: var(--green);
    border-radius: 999px;
    font-weight: 900;
    font-size: 1.35rem;
    color: #0b1220;
    box-shadow: var(--shadow);
  }
  
  .field {
    margin: 16px 0;
    position: relative;
    padding-right: 44px;
  }
  .form-wrap label {
    display: inline-block;
    font-weight: 800;
    margin-bottom: 8px;
  }
  
  .req { color: #dc2626; }
  
  .form-wrap input[type="text"],
  .form-wrap input[type="email"],
  .form-wrap input[type="url"],
  .form-wrap select,
  .form-wrap textarea {
    width: 100%;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-size: 2rem;
    outline: none;
    background: #fff;
  }
  
  
  .form-wrap textarea { min-height: 260px; resize: vertical; }
  
  .field-help {
    margin-top: -2px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--muted);
  }
  
  .field-error {
    color: #b91c1c;
    font-weight: 700;
    margin-top: 8px;
    min-height: 18px;
  }

  .field-valid {
    display: none;
    position: absolute;
    top: 0.4rem;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
  }

  .field.is-valid .field-valid {
    display: inline-flex;
  }

  .notice {
    border-radius: 18px;
    padding: 14px 14px;
    border: 1px solid rgba(229,231,235,0.9);
    background: #fff7ed;
    color: #7c2d12;
  }

  .notice--privacy {
    margin-top: 2rem;
  }
  
  .step-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
  }

  .step-actions--submit {
    gap: 1.25rem;
  }

  /* Submit: green progress bar (upload %) */
  .submit-progress {
    margin-top: 12px;
    margin-bottom: 8px;
  }
  .submit-progress__track {
    display: block;
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
  }
  .submit-progress__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--green);
    border-radius: 999px;
    transition: width 0.15s ease-out;
  }
  .submit-progress__text {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teal);
  }
  .submit-status {
    margin-top: 8px;
    font-size: 0.95rem;
  }
  
  .toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    max-width: min(640px, 92vw);
    background: #0b1220;
    color: #fff;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 9999;
  }
  .toast.show { display: block; }
  
  /* Simple footer */
  .footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(229,231,235,0.9);
    color: var(--muted);
    font-size: 0.95rem;
  }
  
  /* =========================================================
   GVK – visual language upgrades (green/teal)
   Paste at END of app.css
   ========================================================= */

/* Hide honeypot completely (no confusing text in prototype) */
.honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }
  
  /* Make main titles feel like the mockups */
  main h1, .container h1 {
    font-weight: 900;
    letter-spacing: 0.5px;
  }
  
  main h1 {
    text-align: center;
    font-size: clamp(2.2rem, 4.2vw, 3.2rem);
    margin: 10px 0 6px;
  }
  
  main > p:first-of-type {
    text-align: center;
    max-width: 60ch;
    margin: 0 auto 18px;
  }
  
  /* “Piezīmes” + step list blocks: make them card-like (already close) */
  .card {
    background: #f6f8fc;
  }
  
  /* Step headers: big green rounded pill like your visuals */
  .form-step .step-header {
    margin: 22px 0 14px;
  }
  
  .form-step .step-title {
    display: inline-block;
    background: var(--green);
    color: #0b1220;
    border-radius: 999px;
    padding: 18px 22px;
    font-weight: 900;
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    box-shadow: var(--shadow);
  }
  
  /* Labels: teal like mockups */
  .form-wrap label,
  .form-step label {
    color: var(--teal);
    font-weight: 900;
    font-size: 1.15rem;
  }
  
  /* Inputs: teal “pill” feel */
  .form-wrap input[type="text"],
  .form-wrap input[type="email"],
  .form-wrap input[type="url"],
  .form-wrap select,
  .form-wrap textarea,
  .form-step input[type="text"],
  .form-step input[type="email"],
  .form-step input[type="url"],
  .form-step select,
  .form-step textarea {
    border-radius: 18px;
    border: 0;
    background: rgba(43, 185, 199, 0.22); /* teal wash */
    box-shadow: inset 0 0 0 2px rgba(43, 185, 199, 0.18);
    font-weight: 700;
  }
  
  .form-wrap input:focus,
  .form-wrap select:focus,
  .form-wrap textarea:focus,
  .form-step input:focus,
  .form-step select:focus,
  .form-step textarea:focus {
    outline: none;
    box-shadow:
      inset 0 0 0 3px rgba(43, 185, 199, 0.35),
      0 10px 30px rgba(2, 6, 23, 0.08);
  }

  /* Larger "v" arrow on dropdowns */
  .form-wrap select,
  .form-step select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 28px 28px;
    padding-right: 56px;
  }

  /* Keep selects same width as other fields on mobile (don’t grow to longest option) */
  .form-wrap select,
  .form-step select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  
  /* File inputs: keep clean, larger font for "Izvēlēties failu" */
  .attachments-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .attachment-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .attachment-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
  }
  input[type="file"] {
    width: 100%;
    padding: 20px 24px;
    border-radius: 18px;
    background: rgba(43, 185, 199, 0.14);
    box-shadow: inset 0 0 0 2px rgba(43, 185, 199, 0.14);
    border: 0;
    font-size: 1.5rem;
    font-weight: 700;
  }
  
  /* Step action buttons: larger + green primary */
  .step-actions .btn--primary {
    background: var(--green);
    border-radius: 22px;
    padding: 16px 20px;
    font-weight: 900;
  }
  
  .step-actions .btn--secondary {
    border-radius: 22px;
    padding: 16px 20px;
    font-weight: 900;
  }
  
  /* Make “IESNIEDZ!” feel like a big CTA */
  button[type="submit"].btn--primary,
  .form-step .btn--primary[data-action="submit"],
  .form-step .btn--primary[type="submit"] {
    padding: 18px 22px;
    font-size: 1.2rem;
  }
  
  /* Radios/checkbox area: a bit nicer spacing */
  fieldset {
    border: 0;
    padding: 0;
    margin: 16px 0;
  }
  
  fieldset legend {
    font-weight: 900;
    color: var(--teal);
    margin-bottom: 8px;
  }

  /* Consent JĀ/NĒ: buttons left, question right; quadratic, bigger */
  .consent-fieldset {
    margin: 20px 0;
  }

  .consent-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
  }

  .consent-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
    order: 0;
  }

  .consent-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 64px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  }

  .consent-btn input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
  }

  .consent-btn:hover {
    background: #f8fafc;
    border-color: rgba(43, 185, 199, 0.4);
  }

  .consent-btn:has(input:checked) {
    background: var(--green);
    border-color: var(--green);
    color: #0b1220;
    box-shadow: 0 2px 8px rgba(125, 184, 29, 0.35);
  }

  .consent-btn--hint {
    background: rgba(125, 184, 29, 0.08);
    border-color: rgba(125, 184, 29, 0.25);
  }

  .consent-btn--hint:hover {
    background: rgba(125, 184, 29, 0.12);
  }

  .consent-question-block {
    flex: 1;
    min-width: 200px;
    order: -1;
  }

  .consent-question {
    margin: 0 0 6px 0;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--teal);
    line-height: 1.3;
  }

  .consent-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.35;
  }
  
  /* Optional: center the whole form page a bit more like mockups */
  .form-wrap,
  main .card {
    width: min(2450px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  /* Form step 1: same horizontal measure for Piezīmes, stepper, and form fields on desktop */
  @media (min-width: 760px) {
    main #formNotice,
    main .stepper,
    main .form {
      max-width: 640px;
      margin-left: auto;
      margin-right: auto;
      width: 100%;
    }
    /* Consent: on desktop keep buttons left, question right */
    .consent-buttons {
      order: -1;
    }
    .consent-question-block {
      order: 0;
    }
  }

  /* Step counter: only as wide as the four pills */
  main .stepper.stepper--compact {
    width: fit-content;
  }

  /* =========================================================
   Visual scale upgrade – match mockups
   ========================================================= */

/* Big green step headers */
.step-pill {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    padding: 22px 28px;
    border-radius: 999px;
    margin: 28px 0 22px;
  }
  
  /* Section labels (teal text like mockup) */
  .form-wrap label {
    font-size: 1.35rem;
    color: var(--teal);
  }
  
  /* Inputs: larger, more “mobile-first” */
  .form-wrap input[type="text"],
  .form-wrap input[type="email"],
  .form-wrap input[type="url"],
  .form-wrap select,
  .form-wrap textarea,
  .form-step input[type="text"],
  .form-step input[type="email"],
  .form-step input[type="url"],
  .form-step select,
  .form-step textarea {
    font-size: 2rem;
    padding: 24px 28px;
    border-radius: 20px;
  }

  .form-wrap textarea,
  .form-step textarea {
    min-height: 260px;
  }

  /* Nosaukums: full width, longer horizontally */
  #storyTitle {
    width: 100%;
    min-width: 100%;
  }

  /* Vieta komentāriem: ~4 lines before scroll */
  #comments {
    min-height: 11rem;
    max-height: 11.5rem;
    overflow-y: auto;
    resize: vertical;
  }

  /* Vēstures liecības apraksts: font ~30% smaller, same width as nosaukums */
  #storyDescription {
    font-size: 1.05rem;
    min-height: 280px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Help text under fields */
  .field-help {
    font-size: 1.05rem;
  }
  
  /* Primary action button ("Tālāk", "Iesniegt!") */
  .btn--primary {
    font-size: 1.3rem;
    padding: 18px 28px;
  }
  
  /* Reduce visual noise above first step */
  .stepper {
    margin-bottom: 32px;
  }

  /* Select arrow needs extra right padding (override visual-scale) */
  .form-wrap select,
  .form-step select {
    padding-right: 56px;
  }

  /* =========================================================
     Thanks page
     ========================================================= */
  .thanks-page {
    padding-top: 32px;
  }

  .thanks-hero {
    background: var(--green);
    color: #0b1220;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    text-align: center;
  }

  .thanks-hero__text {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 800;
    color: #0b1220;
    line-height: 1.35;
  }

  .thanks-blocks {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
  }

  .thanks-blocks .block-btn {
    text-decoration: none;
    color: #0b1220;
  }

  .thanks-placeholder {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 4px;
  }

  .thanks-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .thanks-footer .small {
    margin-bottom: 10px;
  }

  .thanks-footer__privacy {
    margin-top: 18px;
    padding: 14px;
    background: var(--card);
    border-radius: var(--radius);
  }

  