:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #283db4;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.03);
  --radius: 14px;
  --maxw: 980px;
}

* {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #071024 0%, #071827 100%);
  color: #e6eef6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
}

/* Sidebar / Stepper */

.sidebar {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  /*color: white;*/
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(45deg, var(--accent), #131B62);
  display: grid;
  place-items: center;
  color: #012;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.08), inset 0 -3px 8px rgba(255, 255, 255, 0.03);
}

.brand h3 {
  margin: 0;
  font-size: 16px;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.progress-wrap {
  margin-top: 6px;
}

.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  transition: width .35s ease;
}

.steps {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s ease;
  color: var(--muted);
}

.step-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--glass);
  display: grid;
  place-items: center;
  flex: 0 0 36px;
}

.step-item .meta {
  font-size: 13px;
}

.step-item .meta .title {
  display: block;
  font-weight: 600;
  color: #e6eef6;
}

.step-item .meta .subtitle {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.step-item.active {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  box-shadow: inset 0 -2px 8px rgba(255, 255, 255, 0.01);
}

.step-item.done .icon {
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.06);
}

.step-item:hover {
  transform: translateY(-3px);
}

/* Main content */

.main {
  padding: 28px;
  position: relative;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.titles {
  display: flex;
  flex-direction: column;
}

.titles h2 {
  margin: 0;
  font-size: 20px;
}

.titles p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.formcard {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 320px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

/* Estilos para o step de documentos */

.document-upload {
  margin: 20px 0;
}

.upload-item {
  margin-bottom: 20px;
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.upload-item:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.upload-item.has-file {
  border-color: #28a745;
  background-color: #d4edda;
}

.upload-item input[type="file"] {
  display: none;
}

.upload-label {
  cursor: pointer;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border-radius: 4px;
  display: inline-block;
  margin: 10px 0;
  transition: background-color 0.3s;
}

.upload-label:hover {
  background: #0056b3;
}

.file-info {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.preview-container {
  margin-top: 15px;
}

.preview-image {
  max-width: 200px;
  max-height: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 5px;
}

.remove-file {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin: 5px;
  cursor: pointer;
  font-size: 12px;
}

.remove-file:hover {
  background: #c82333;
}

.upload-instructions {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  line-height: 1.4;
}

.required-indicator {
  color: #dc3545;
  font-weight: bold;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #e6eef6;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.full {
  grid-column: 1/-1;
}

.actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  color: #013;
  box-shadow: 0 8px 22px rgba(45, 212, 191, 0.06);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* summary overlay */

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.6);
  z-index: 50;
  padding: 20px;
}

.summary {
  width: 100%;
  max-width: 900px;
  max-height: 800px;
  background: #071029;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #e6eef6;
  overflow-y: auto;
  overflow-x: hidden;
}

.summary h3 {
  margin-top: 0;
}

.summary .row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  flex: 1 1 260px;
}

.summary .row .card h4 {
  margin: 0 0 8px 0;
}

.summary .close {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  gap: 12px;
}

.summary .close .btn {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Botão de fechar (ghost) */

.summary .close .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #e6eef6;
}

.summary .close .btn.ghost:hover {
  background: rgba(255,255,255,0.1);
}

/* Botão principal */

.summary .close .btn {
  background: #2563eb;
  border: none;
  color: #fff;
}

.summary .close .btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* small screens */

@media (max-width:900px) {
  .container {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

@media (max-width:900px) {
  .sidebar {
    order: 2;
    flex-direction: row;
    gap: 8px;
    overflow: auto;
    padding: 12px;
  }
}

@media (max-width:900px) {
  .steps {
    flex-direction: row;
    gap: 6px;
  }
}

@media (max-width:900px) {
  .step-item {
    min-width: 200px;
    flex: 0 0 auto;
  }
}

@media (max-width:900px) {
  .main {
    order: 1;
  }
}

@media (max-width:900px) {
  .fields {
    grid-template-columns: 1fr;
  }
}

/* tiny helper for required invalid */

.invalid {
  outline: 2px solid rgba(255, 80, 80, 0.14);
  box-shadow: 0 6px 18px rgba(255, 80, 80, 0.03);
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.chip {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: var(--muted);
}

