body {
  background: linear-gradient(120deg, #1e3c72 0%, #2a5298 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  background: rgba(0,0,0,0.72);
  box-shadow: 0 4px 40px 8px #001d4a33;
  border-radius: 2em;
  padding: 2.5em 2em 2em 2em;
  color: #fff;
  text-align: center;
  max-width: 600px;
  width: 98vw;
  animation: fadeInDown 1s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  font-size: 2em;
  margin-bottom: 0.35em;
  font-weight: 700;
  text-shadow: 0 3px 24px #0005;
  letter-spacing: -1px;
}
.subtitle {
  font-size: 1.08em;
  margin-bottom: 1.5em;
  color: #ffe278;
}
form {
  margin-top: 0.5em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: stretch;
  width: 100%;
  max-width: 500px;
}
input, select, button {
  font-size: 1.08em;
  border-radius: 0.6em;
}
input {
  background: #fff1;
  color: #fff;
  border: 1.5px solid #fff3;
  padding: 0.9em 1em;
  transition: background 0.3s, border-color 0.3s;
  margin-bottom: 0.3em;
}
input:focus {
  background: #fff2;
  border-color: #ffd600;
}
select {
  background: #fff;
  color: #111;
  border: 1.5px solid #fff3;
  padding: 0.9em 1em;
  margin-bottom: 0.3em;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
select:focus {
  background: #fff2;
  color: #1e3c72;
  border-color: #ffd600;
}
option {
  color: #111 !important;
  background: #fff !important;
}
button {
  background: linear-gradient(90deg, #ffd600 60%, #ff6600 100%);
  color: #222;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-top: 0.3em;
  box-shadow: 0 2px 10px #2222;
  font-size: 1.13em;
  padding: 0.9em 1em;
  letter-spacing: 0.02em;
  border: none;
  outline: none;
}
button:hover, button:active {
  background: linear-gradient(90deg, #ff6600 60%, #ffd600 100%);
  color: #1e3c72;
}
.spinner {
  margin: 1.2em auto 0 auto;
  width: 38px;
  height: 38px;
  border: 5px solid #fff2;
  border-top: 5px solid #ffd600;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ...restante do css... */
.progress-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 2.2em 0 1.2em 0;
  position: relative;
  z-index: 2;
  background: transparent;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
  margin: 0;
  top: 0;
  transition: transform 0.18s cubic-bezier(.32,1.56,.62,1), box-shadow 0.22s;
}
.circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  border: 2.5px solid #ffe278;
  color: #fff;
  font-weight: bold;
  font-size: 1.14em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px #ffe27844;
  transition: background 0.22s, border 0.22s, color 0.18s, box-shadow 0.22s, transform 0.16s;
  z-index: 2;
}
.step.completed .circle {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  box-shadow: 0 0 15px #25d36666;
  transform: scale(1.08);
}
.step.current .circle {
  background: #ff7700;
  border-color: #ff7700;
  color: #fff;
  box-shadow: 0 0 15px #ff770077;
  transform: scale(1.18) rotate(-4deg);
}
/* <-- AQUI VAI O NOVO LINE --> */
.line {
  flex: none;
  width: 12px;
  border-top: 3px solid #ffe278;
  height: 0;
  margin: 0 2px;
  z-index: 1;
  position: relative;
  top: 0;
}

/* Adicione isto */
.step.error .circle {
  background: #e44242 !important;
  border-color: #e44242 !important;
  color: #fff !important;
  box-shadow: 0 0 12px #e4424299 !important;
  transform: scale(1.14) !important;
}


.progress-label {
  width: 100%;
  text-align: center;
  color: #ffe278;
  font-size: 1.19em;
  font-weight: bold;
  margin: 10px 0 17px 0;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px #0007;
}
img.thumbnail {
  display: block;
  margin: 0.7em auto 1.3em auto;
  border-radius: 1em;
  box-shadow: 0 0 24px #ffd60022;
  width: 350px;
  height: auto;
  max-width: 96%;
  min-width: 160px;
  transition: width 0.4s;
  z-index: 1;
}
.download-btn {
  background: linear-gradient(90deg, #ffd600 40%, #ff7700 100%);
  color: #222;
  font-weight: bold;
  font-size: 1.23em;
  border: none;
  border-radius: 1em;
  padding: 0.88em 2.1em;
  margin: 1em auto 0.2em auto;
  box-shadow: 0 2px 14px #0005;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.download-btn:hover {
  background: linear-gradient(90deg, #ff7700 30%, #ffd600 100%);
  color: #00225a;
}
.download-btn i {
  font-size: 1.23em;
}
.file-size {
  font-size: 1.07em;
  color: #ffd600;
  margin-top: 0.7em;
  margin-bottom: 0.2em;
}

/* Responsivo */
@media (max-width: 900px) {
  .container { max-width: 99vw; }
}
@media (max-width: 700px) {
  .container { max-width: 98vw; min-width: 0; }
  img.thumbnail { width: 92vw; max-width: 340px; }
}
@media (max-width: 500px) {
  img.thumbnail { width: 97vw; max-width: 170px; }
  .container { padding: 1em 0.5em 1.1em 0.5em; }
  .circle { width: 32px; height: 32px; font-size: 0.97em;}
  .download-btn { font-size: 1em; padding: 0.73em 1.2em; }
}

/* Bolinha FINAL verde ao concluir */
.step.completed-final .circle {
  background: #24d824 !important;
  border-color: #24d824 !important;
  color: #fff !important;
  box-shadow: 0 0 17px #38ef7d77 !important;
  transform: scale(1.16) !important;
}

/* Download button pulse effect */
.pulse-download {
  animation: pulseBtn 1.1s infinite alternate cubic-bezier(.49,.15,.42,.95);
  box-shadow: 0 0 0 0 #ffd80055;
  border: 2.5px solid #ffd800 !important;
}

@keyframes pulseBtn {
  0% {
    filter: brightness(1);
    box-shadow: 0 0 0 0 #ffd80044;
    border-color: #ffd800;
  }
  65% {
    filter: brightness(1.09);
    box-shadow: 0 0 14px 4px #ffe27877;
    border-color: #ffd800;
  }
  100% {
    filter: brightness(1.16);
    box-shadow: 0 0 22px 8px #ffd600aa;
    border-color: #ffd800;
  }
}
