:root {
      --gov-blue: #1351B4;
      --gov-navy: #071D41;
      --gov-yellow: #FFCD07;
      --gov-green: #168821;
      --gov-red: #E52207;
    }
    * {
      box-sizing: border-box;
      font-family: Arial, Helvetica, sans-serif;
    }
    body {
      background-color: #f4f6f8;
      color: #333;
      padding: 20px;
      margin: 0;
      font-size: 16px;
    }
    .container {
      max-width: 720px;
      margin: 0 auto;
      background: #ffffff;
      padding: 28px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      border-top: 5px solid var(--gov-navy);
      position: relative;
    }
    .container::after {
      content: '';
      position: absolute;
      top: 5px; left: 0; right: 0;
      height: 3px;
      background: var(--gov-yellow);
    }
    .header {
      text-align: center;
      border-bottom: 2px solid #e2e8f0;
      padding-bottom: 15px;
      margin-bottom: 20px;
    }
    .header h1 {
      font-size: 21px;
      color: #1a202c;
      margin: 0 0 8px 0;
      text-transform: uppercase;
    }
    .header h2 {
      font-size: 15px;
      color: var(--gov-blue);
      margin: 0;
      text-transform: uppercase;
    }
    .intro-text {
      margin-top: 15px;
    }
    .objective {
      font-size: 13px;
      color: #4a5568;
      background: #edf2f7;
      padding: 10px 15px;
      border-radius: 4px;
      text-align: justify;
      margin-bottom: 10px;
    }
    .disclaimer {
      font-size: 12px;
      color: #718096;
      font-style: italic;
      text-align: center;
    }

    /* ===== PROGRESSO ===== */
    .progress-wrap {
      margin-bottom: 22px;
    }
    .progress-bar {
      width: 100%;
      height: 8px;
      background: #e2e8f0;
      border-radius: 4px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      background: var(--gov-blue);
      width: 0%;
      transition: width 0.25s ease;
    }
    .step-counter {
      text-align: center;
      font-size: 13px;
      color: #718096;
      margin-top: 6px;
      font-weight: bold;
    }

    /* ===== PASSOS ===== */
    .step-title {
      font-size: 19px;
      font-weight: bold;
      color: #1a202c;
      margin: 0 0 16px 0;
      line-height: 1.35;
    }
    .step-subtitle {
      font-size: 13px;
      color: #718096;
      margin: -10px 0 16px 0;
    }

    .options-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .options-group.grid-2 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }
    @media (min-width: 560px) {
      .options-group.grid-2 { grid-template-columns: 1fr 1fr; }
    }

    .option-item {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 16px;
      cursor: pointer;
      padding: 13px 14px;
      border: 2px solid #e2e8f0;
      border-radius: 8px;
      background: #fff;
      transition: border-color 0.15s ease, background 0.15s ease;
      min-height: 50px;
    }
    .option-item.selected {
      border-color: var(--gov-blue);
      background: #eaf2fb;
    }
    .option-item input[type="radio"],
    .option-item input[type="checkbox"] {
      cursor: pointer;
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      accent-color: var(--gov-blue);
    }
    .candidate-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex: 1;
      gap: 8px;
    }
    .candidate-name {
      font-weight: bold;
      font-size: 15px;
    }
    .candidate-number {
      font-size: 12px;
      color: #718096;
      white-space: nowrap;
    }
    .outro-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
    }
    .outro-row input[type="text"] {
      flex: 1;
      border: none;
      border-bottom: 1px solid #4a5568;
      padding: 4px 4px;
      font-size: 14px;
      outline: none;
      background: transparent;
    }

    .input-text {
      width: 100%;
      padding: 12px 14px;
      border: 2px solid #cbd5e0;
      border-radius: 8px;
      font-size: 16px;
    }
    .field-label {
      display: block;
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 6px;
      color: #4a5568;
    }

    .btn-gps {
      display: block;
      width: 100%;
      background: #edf2f7;
      color: var(--gov-blue);
      border: 2px dashed var(--gov-blue);
      padding: 12px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: bold;
      cursor: pointer;
      margin-bottom: 16px;
    }
    .btn-gps:disabled {
      opacity: 0.6;
      cursor: default;
    }
    .gps-status {
      font-size: 13px;
      margin: -10px 0 16px 0;
      min-height: 16px;
    }
    .gps-status.ok { color: #22543d; }
    .gps-status.error { color: #c53030; }

    .step-error {
      display: none;
      color: #c53030;
      font-size: 14px;
      font-weight: bold;
      margin-top: 14px;
      padding: 10px 12px;
      background: #fff5f5;
      border: 1px solid #feb2b2;
      border-radius: 6px;
    }
    .step-error.show { display: block; }

    /* ===== NAVEGAÇÃO ===== */
    .nav-buttons {
      display: flex;
      gap: 10px;
      margin-top: 26px;
    }
    .btn-back,
    .btn-next,
    .btn-submit {
      border: none;
      padding: 14px 20px;
      font-size: 16px;
      font-weight: bold;
      border-radius: 8px;
      cursor: pointer;
      text-transform: uppercase;
    }
    .btn-back {
      background: #e2e8f0;
      color: #2d3748;
      flex: 1;
    }
    .btn-next,
    .btn-submit {
      background: var(--gov-blue);
      color: #fff;
      flex: 2;
    }
    .btn-next:hover,
    .btn-submit:hover { background: var(--gov-navy); }
    .btn-submit:disabled { opacity: 0.7; cursor: default; }

    .btn-secondary {
      background-color: #718096;
      color: #fff;
      border: none;
      font-size: 13px;
      padding: 10px 16px;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 10px;
    }
    .btn-secondary:hover { background-color: #4a5568; }

    /* ===== SUCESSO ===== */
    .success-message {
      display: none;
      text-align: center;
      padding: 30px 20px;
      background-color: #c6f6d5;
      border: 1px solid #38a169;
      color: #22543d;
      border-radius: 6px;
      font-size: 18px;
      font-weight: bold;
      margin-top: 20px;
    }
    .success-message .count {
      display: block;
      font-size: 12px;
      font-weight: normal;
      color: #2f6b4a;
      margin-top: 10px;
      text-transform: none;
    }

    .footer {
      margin-top: 25px;
      padding-top: 15px;
      border-top: 1px dashed #cbd5e0;
      text-align: right;
      font-size: 11px;
      color: #a0aec0;
      text-transform: uppercase;
    }

    @media (max-width: 480px) {
      body { padding: 10px; }
      .container { padding: 18px 14px; }
      .step-title { font-size: 17px; }
      .footer { text-align: center; }
    }
