:root{
      --navy: #103f6e;
    }
    /* ── Utilities ── */
    .hidden { display: none !important; }

    /* ── Hero ── */
    .hero {
      background: linear-gradient(135deg,#053356  0%, #1a5a8a 100%);
      padding: 8rem 1.5rem 2.5rem;
      margin-top: 2em;
    }
    .hero-inner { max-width: 800px; margin: 0 auto; }
    .hero-badge {
      display: inline-block;
      background: rgba(0,187,242,.15);
      border: 1px solid rgba(0,187,242,.35);
      border-radius: 20px;
      padding: 4px 14px;
      font-size: .72rem;
      font-weight: 600;
      color: var(--cyan);
      letter-spacing: .1em;
      text-transform: uppercase;
      margin-bottom: 14px;
    }
    .hero h1 {
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.2;
      margin-bottom: .75rem;
    }
    .hero p {
      font-size: 1rem;
      color: rgba(255,255,255,.8);
      line-height: 1.7;
      max-width: 560px;
    }
    .hero p .req-star { color: #fca5a5; }

    /* ── Main ── */
    main {
      flex: 1;
      max-width: 860px;
      margin: 0 auto;
      width: 100%;
      padding: 2rem 1rem 3rem;
    }

    /* ── Error banner ── */
    .error-banner {
      background: #fef2f2;
      border: 1px solid #fca5a5;
      border-radius: 8px;
      padding: 12px 16px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: .85rem;
      color: var(--err);
      font-weight: 600;
    }
    .error-banner svg { flex-shrink: 0; }

    /* ── Card ── */
    .card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 16px rgba(16,59,97,.08);
      padding: 1.75rem;
      margin-bottom: 20px;
    }
    .card h2 {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 4px;
    }
    .card .subtitle {
      font-size: .82rem;
      color: #6b7280;
      margin-bottom: 20px;
    }
    .step-label {
      font-size: .78rem;
      font-weight: 700;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 14px;
    }

    /* ── Selector buttons ── */
    .btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
    .sel-btn {
      padding: 11px 22px;
      border-radius: 9px;
      border: 2px solid #e5e7eb;
      background: #fff;
      color: #6b7280;
      font-weight: 700;
      font-size: .88rem;
      font-family: inherit;
      cursor: pointer;
      transition: all .18s;
      display: flex;
      align-items: center;
      gap: 7px;
    }
    .sel-btn.active {
      border-color: var(--cyan);
      background: rgba(0,187,242,.08);
      color: var(--navy);
    }
    .sel-btn svg { color: #9ca3af; transition: color .18s; }
    .sel-btn.active svg { color: var(--cyan); }

    /* ── Section title ── */
    .sec-title {
      border-left: 4px solid var(--cyan);
      padding-left: 10px;
      margin: 28px 0 16px;
    }
    .sec-title p {
      margin: 0;
      font-size: .78rem;
      font-weight: 700;
      color: var(--navy);
      text-transform: uppercase;
      letter-spacing: .07em;
    }

    /* ── Form grid ── */
    .grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 16px;
    }

    /* ── Field group ── */
    .field-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .field-group label {
      font-size: .8rem;
      font-weight: 600;
      color: var(--navy);
    }
    .field-group label .req { color: var(--err); }
    .input-field {
      padding: 9px 12px;
      border: 1.5px solid #d1d5db;
      border-radius: 6px;
      font-size: .9rem;
      color: #111;
      background: #fff;
      outline: none;
      width: 100%;
      font-family: inherit;
      transition: border-color .15s;
    }
    .input-field:focus { border-color: var(--cyan); }
    .input-field.has-error { border-color: var(--err); }
    textarea.input-field { resize: vertical; min-height: 80px; }
    .field-error {
      font-size: .72rem;
      color: var(--err);
      min-height: 1em;
    }
    .spacer { height: 16px; }

    /* ── File upload / drag & drop ── */
    .upload-zone {
      border: 2px dashed var(--cyan);
      border-radius: 10px;
      padding: 22px 16px;
      text-align: center;
      cursor: pointer;
      color: #6b7280;
      background: rgba(0,187,242,.03);
      transition: background .2s, border-color .2s, transform .2s;
    }
    .upload-zone:hover,
    .upload-zone.dragover {
      background: rgba(0,187,242,.08);
      border-color: var(--navy);
    }
    .upload-zone.dragover { transform: scale(1.005); }
    .upload-zone-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }
    .upload-zone-icon {
      font-size: 1.45rem;
      line-height: 1;
      color: var(--cyan);
      margin-bottom: 4px;
    }
    .upload-zone-content strong {
      color: var(--navy);
      font-size: .9rem;
    }
    .upload-zone-content span {
      color: #6b7280;
      font-size: .82rem;
    }
    .upload-zone-content small {
      color: #9ca3af;
      font-size: .72rem;
      margin-top: 2px;
    }
    .upload-list {
      margin-top: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .upload-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      background: #fff;
    }
    .upload-thumb {
      width: 52px;
      height: 52px;
      border-radius: 6px;
      object-fit: cover;
      border: 1px solid #e5e7eb;
      flex-shrink: 0;
    }
    .upload-file-icon {
      width: 52px;
      height: 52px;
      border-radius: 6px;
      border: 1px solid #e5e7eb;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .72rem;
      font-weight: 700;
      color: var(--navy);
      background: #f9fafb;
      flex-shrink: 0;
    }
    .upload-info { flex: 1; min-width: 0; }
    .upload-name {
      font-size: .8rem;
      font-weight: 600;
      color: #374151;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .upload-size {
      font-size: .72rem;
      color: #9ca3af;
      margin-top: 2px;
    }
    .upload-remove {
      border: none;
      background: transparent;
      color: #dc2626;
      font-size: 1.25rem;
      line-height: 1;
      cursor: pointer;
      padding: 6px 8px;
      border-radius: 5px;
    }
    .upload-remove:hover { background: #fef2f2; }
    .upload-total {
      margin-top: 8px;
      font-size: .75rem;
      color: #6b7280;
    }
    .upload-total.limit-near { color: #92400e; }
    .upload-total.limit-error { color: var(--err); font-weight: 600; }

    /* ── Rueda warning + upload ── */
    .rueda-box { margin-bottom: 12px; }
    .rueda-warning {
      background: #fef3c7;
      border: 1px solid #fcd34d;
      border-radius: 8px 8px 0 0;
      padding: 10px 14px;
      font-size: .8rem;
      color: #92400e;
    }
    .rueda-box .upload-zone {
      border-color: #fcd34d;
      border-top: none;
      border-radius: 0 0 8px 8px;
      background: #fffbeb;
    }
    .rueda-box .upload-zone:hover,
    .rueda-box .upload-zone.dragover {
      background: #fef3c7;
      border-color: #f59e0b;
    }

    /* ── Pill buttons (damage types) ── */
    .pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
    .pill-btn {
      padding: 8px 16px;
      border-radius: 20px;
      border: 2px solid #d1d5db;
      background: #fff;
      color: #6b7280;
      font-weight: 600;
      font-size: .82rem;
      font-family: inherit;
      cursor: pointer;
      transition: all .15s;
    }
    .pill-btn.active {
      border-color: var(--cyan);
      background: rgba(0,187,242,.1);
      color: var(--navy);
    }
    .pill-btn .check { color: var(--cyan); margin-right: 4px; display: none; }
    .pill-btn.active .check { display: inline; }

    /* ── Lesion Si/No ── */
    .lesion-group { display: flex; gap: 10px; }
    .lesion-btn {
      padding: 9px 30px;
      border-radius: 8px;
      border: 2px solid #d1d5db;
      background: #fff;
      color: #6b7280;
      font-weight: 700;
      font-size: .9rem;
      text-transform: uppercase;
      font-family: inherit;
      cursor: pointer;
      transition: all .18s;
    }
    .lesion-btn.active {
      border-color: var(--cyan);
      background: rgba(0,187,242,.1);
      color: var(--navy);
    }

    /* ── Conditional blocks / repeatable third parties ── */
    .conditional-box {
      margin-top: 14px;
      padding: 14px;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      background: #f9fafb;
    }
    .conditional-box .field-group:last-child { margin-bottom: 0; }
    .chain-person {
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      padding: 14px;
      background: #fff;
      margin-top: 12px;
    }
    .chain-person-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
      color: var(--navy);
      font-size: .84rem;
      font-weight: 700;
    }
    .small-action-btn {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: var(--navy);
      border-radius: 7px;
      padding: 7px 12px;
      font-size: .78rem;
      font-weight: 700;
      cursor: pointer;
    }
    .small-action-btn:hover { background: #f3f4f6; }
    .small-action-btn.danger { color: #b91c1c; }

    /* ── Optional note ── */
    .optional-note {
      font-size: .78rem;
      color: #9ca3af;
      margin-top: -8px;
      margin-bottom: 16px;
    }

    /* ── Email note ── */
    .email-note {
      font-size: .74rem;
      color: #6b7280;
      margin-top: 6px;
      line-height: 1.5;
    }

    /* ── Submit button ── */
    .submit-wrap { margin-top: 32px; }
    .submit-btn {
      background: var(--navy);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 13px 36px;
      font-size: 1rem;
      font-weight: 700;
      font-family: inherit;
      letter-spacing: .02em;
      cursor: pointer;
      transition: background .2s, opacity .2s;
    }
    .submit-btn:hover   { background: #0d3257; }
    .submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }

    /* ── Success screen ── */
    #successScreen {
      position: fixed;
      inset: 0;
      background: linear-gradient(135deg, var(--navy) 0%, #1a5a8a 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      z-index: 200;
    }
    .success-card {
      background: #fff;
      border-radius: 16px;
      padding: 3rem 2rem;
      text-align: center;
      max-width: 480px;
      width: 100%;
      box-shadow: 0 24px 48px rgba(0,0,0,.2);
    }
    .success-icon {
      width: 72px; height: 72px;
      border-radius: 50%;
      background: #dcfce7;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem;
    }
    .success-card h2 {
      color: var(--navy);
      font-weight: 700;
      font-size: 1.5rem;
      margin-bottom: .75rem;
    }
    .success-card p { color: #4b5563; line-height: 1.7; margin-bottom: 1.25rem; }
    .success-alert {
      background: #fef3c7;
      border: 1px solid #fcd34d;
      border-radius: 8px;
      padding: 12px 16px;
      font-size: .8rem;
      color: #92400e;
      text-align: left;
      margin-bottom: 1.75rem;
    }
    .btn-otra {
      background: var(--cyan);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 11px 28px;
      font-weight: 700;
      font-size: .95rem;
      font-family: inherit;
      cursor: pointer;
    }
