* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  min-height: 100vh;
  color: #1f2937;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dbeafe;
}

.topbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 56px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-item {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.nav-item:hover {
  background: #eff6ff;
}

.nav-item.active {
  background: #dbeafe;
  color: #1d4ed8;
}

/* CARROSSEL */
#carrosel-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  height: clamp(180px, 38vw, 400px);
  background: #f5f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

#carrosel-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}

#carrosel-prev,
#carrosel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: clamp(32px, 9vw, 40px);
  height: clamp(32px, 9vw, 40px);
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  z-index: 2;
  font-size: clamp(16px, 4vw, 22px);
  display: none;
}

#carrosel-prev {
  left: 10px;
}

#carrosel-next {
  right: 10px;
}

.carrosel-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.post_img img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* HERO */
.hero {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(79,70,229,0.1));
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.hero-logo {
  height: 220px;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 3rem;
}

/* FEATURES */
.banner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.banner {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
}

.banner .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.icon.blue { background: #dbeafe; }
.icon.green { background: #dcfce7; }
.icon.purple { background: #ede9fe; }

.banner h3 {
  margin: 1rem 0 0.5rem;
}

.banner p {
  font-size: 0.95rem;
  color: #6b7280;
}

/* PROCESS */
.process {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: auto;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.step.active {
  background: #2563eb;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37,99,235,0.4);
}

.arrow {
  color: #cbd5e1;
}

.process-box {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  text-align: center;
}


.step-content {
  display: none;
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.step-content.active {
  display: flex;
}




.step-content h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}

.step-content p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}

.upload-box {
  width: 100%;
  height: 220px;
  border: 2px dashed #007bff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  text-align: center;
}

.upload-box:hover {
  background: #f0f8ff;
  border-color: #0056b3;
}

.upload-icon {
  font-size: 50px;
  color: #007bff;
  margin-bottom: 10px;
}

.termo-section {
  margin: 20px 0;
  text-align: left;
}

.termo-section label {
  cursor: pointer;
  font-size: 14px;
}

.termo-section a {
  margin-left: 5px;
  font-size: 12px;
  color: #007bff;
  text-decoration: none;
}

.termo-section a:hover {
  text-decoration: underline;
}

.arquivo-selecionado {
  font-size: 15px;
  font-weight: 600;
  color: #007bff;
  background: #f0f8ff;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  width: 100%;
  align-items: start;
}

.config-item {
  background: #fff;
  border: 2px solid #e0e8ff;
  border-radius: 14px;
  padding: 18px 20px 14px 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}


.config-item:hover {
  border-color: #007bff;
  box-shadow: 0 4px 16px rgba(0,123,255,0.08);
  z-index: 2;
}

/* Estilo para seleção de tipo de impressão */
.config-item input[type="radio"] {
  accent-color: #007bff;
  margin-right: 10px;
}

.config-item.selected {
  border-color: #007bff;
  background: #f8faff;
  box-shadow: 0 2px 12px rgba(0,123,255,0.08);
}

.config-item .config-icon {
  font-size: 22px;
  margin-right: 8px;
  color: #888;
  vertical-align: middle;
}

/* Ícone de cor (paleta) invertido: fundo azul, símbolo branco */
.config-item .fa-palette {
  background: #fff;
  color: #888;
  border-radius: 50%;
  padding: 4px;
  font-size: 22px;
  margin-right: 8px;
  vertical-align: middle;
}


.config-item label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #222;
  margin-bottom: 0;
  font-size: 15px;
  gap: 6px;
}

.config-item .desc {
  font-size: 13px;
  color: #888;
  margin-left: 28px;
  margin-top: 2px;
}

/* Frente e Verso Switch */
.config-item.check {
  background: #fafbfc;
  border: 1.5px solid #e0e8ff;
  border-radius: 12px;
  padding: 18px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-width: 340px;
  margin-left: auto;
  margin-right: 0;
  box-shadow: none;
}
.config-item.check label {
  font-size: 15px;
  color: #222;
  font-weight: 600;
  gap: 8px;
}
.config-item.check .desc {
  font-size: 13px;
  color: #888;
  margin-left: 32px;
  margin-top: 2px;
}

/* Switch estilizado */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-left: 10px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #eee;
  border-radius: 24px;
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: .3s;
}
.switch input:checked + .slider {
  background-color: #007bff;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Número de cópias */
.copies-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border: 2px solid #e0e8ff;
  border-radius: 14px;
  padding: 18px 20px 14px 20px;
  min-width: 180px;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.copies-label {
  font-weight: 600;
  color: #222;
  font-size: 15px;
}
.copies-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.copies-btn {
  width: 32px;
  height: 32px;
  border: 1.5px solid #e0e8ff;
  background: #fafbfc;
  color: #222;
  font-size: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
}
.copies-btn:active {
  background: #e0e8ff;
}
.copies-value {
  font-size: 18px;
  font-weight: 600;
  width: 36px;
  text-align: center;
}
.copies-desc {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.config-item label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.config-item input[type="number"],
.config-item select,
.config-item input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

/* Compat: estilos inspirados em teste/step2.css para a Etapa 2 */
#print-config {
  background: rgba(255,255,255,0.98);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.price-summary, .resumo-box.price-summary {
  margin-top: 16px;
  background: linear-gradient(90deg, #eff6ff, #eef2ff);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e6eefc;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #334155;
}

.summary-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e6e9f0;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1d4ed8;
}

/* Buttons used in teste/step2 */
.btn-outline {
  padding: 0.6rem 1.25rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary {
  padding: 0.6rem 1.25rem;
  border: none;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

/* Small helper components to match teste/step2 layout */
.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #eff6ff;
  padding: 12px;
  border-radius: 12px;
}
.file-icon { font-size: 1.6rem; background: #dbeafe; padding: 8px; border-radius: 8px; }
.file-badge { margin-left: auto; background: white; padding: 4px 8px; border-radius: 8px; font-size: 0.85rem; border:1px solid #d1d5db; }

/* Radio / card style for compact options */
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid #e5e7eb;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.switch-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  padding: 10px;
  border-radius: 12px;
}

.copies-section { margin-top: 6px; }
.copies-control { display:flex; align-items:center; gap:8px; }
.copies-control button { width:34px; height:34px; border:1px solid #d1d5db; background:white; border-radius:8px; cursor:pointer; }
.copies-value { width:46px; text-align:center; font-size:1.05rem; font-weight:600; }

.config-item input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
  cursor: pointer;
}

.config-item.check {
  text-align: left;
  padding: 10px;
}

.config-item.check label {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.config-icon {
  font-size: 28px;
  color: #007bff;
  margin-bottom: 10px;
}

.resumo-box {
  background: #f8faff;
  border: 1px solid #e0e8ff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.resumo-box p {
  padding: 8px 0;
  font-size: 15px;
  margin: 0;
}

#resumo-valor {
  color: #1bb300;
  font-size: 22px;
  font-weight: bold;
}

#resumo-valor-unitario, #resumo-valor-por-copia, #resumo-valor {
  display: block;
  margin-top: 5px;
}


.resumo-box hr {
  grid-column: 1 / -1;
  margin: 15px 0;
  border: none;
  border-top: 1px solid #ddd;
  text-align: left;
  width: 100%;
}

.resumo-box p {
  padding: 8px 0;
  font-size: 15px;
}

.resumo-box hr {
  margin: 15px 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* ============================================
   QR CODE (ETAPA 4)
   ============================================ */
.qrcode-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.qrcode-link {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
  text-align: center;
  word-break: break-all;
  background: #f8faff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e8ff;
  font-family: 'Courier New', monospace;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CÓDIGO DE IMPRESSÃO (ETAPA 5)
   ============================================ */
.codigo-box {
  margin: 20px auto;
  padding: 20px 30px;
  border: 2px dashed #007bff;
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  width: fit-content;
  background: #f8faff;
}

/* ============================================
   BOTÕES
   ============================================ */
.step-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  width: 100%;
}

.next-btn,
.back-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.next-btn {
  background: #007bff;
  color: white;
}

.next-btn:hover:enabled {
  background: #0062d1;
  transform: translateY(-2px);
}

.next-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.back-btn {
  background: #ff5c5c;
  color: white;
}

.back-btn:hover {
  background: #e04b4b;
  transform: translateY(-2px);
}

/* ============================================
   MODAL (TERMO DE RESPONSABILIDADE)
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  text-align: left;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 20px;
  text-align: center;
}

.modal-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #007bff;
}

.modal-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.modal-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.modal-content li {
  margin-bottom: 8px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s;
}

.close:hover {
  color: #000;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
  .topbar-container {
    height: auto;
    padding: 8px 12px;
    gap: 8px;
  }

  .nav {
    gap: 4px;
    flex-wrap: wrap;
  }

  .logo img {
    height: 40px;
  }

  .nav-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .step-content {
    padding: 20px 15px;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .resumo-box {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 20px;
  }

  main h1 {
    font-size: 22px;
  }

  main h2 {
    font-size: 16px;
  }

  #carrosel-container {
    height: clamp(120px, 34vw, 160px);
  }

  .carrosel-image {
    object-fit: contain;
    border-radius: 0;
  }

  #carrosel-prev,
  #carrosel-next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #carrosel-container {
    height: clamp(100px, 32vw, 130px);
  }

  #carrosel-prev,
  #carrosel-next {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

