@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600&family=Poppins:wght@400;600;700&display=swap');

:root {
  --primary-color: #0E9594;
  --secondary-color: #F2542D;
  --form-icon-color: #28a745;
  --dark-color: #4A3F35;
  --light-color: #f8f9fa;
  --text-color: #4a5568;
  --bg-color: #DBE4EE;
  --border-color: #e2e8f0;
  --border-radius: 16px;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s ease-in-out;
  --max-width: 1080px;
  --accent: #f15a2b;
  --muted: #6b7176;
  --heading-color: #3b332f;
  /* cor do H1 */

  /* Novas variáveis para o formulário moderno */
  --form-bg: #ffffff;
  --form-border: #e1e8ed;
  --form-focus: #0E9594;
  --form-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --form-shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.12);
  --input-bg: #f8fafc;
  --input-border: #e2e8f0;
  --input-focus-border: #0E9594;
  --input-focus-shadow: 0 0 0 4px rgba(14, 149, 148, 0.1);
  --button-gradient: linear-gradient(135deg, #F2542D 0%, #e04a20 100%);
  --button-hover-gradient: linear-gradient(135deg, #e04a20 0%, #d13d1a 100%);
  --payment-hover-bg: #f8fafc;
  --success-color: #10b981;
  --error-color: #ef4444;
  --shadow-glow: 0 0 40px rgba(0, 191, 165, 0.3);
}

/* ========== ESTILOS GERAIS ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-color);
  font-weight: 600;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0.5rem 0;
}

/* ========== CABEÇALHO (HEADER) ========== */
.header {
  background-color: #ffffff;
  padding: 2.6rem 0 3.2rem;
  /* mais espaço topo/baixo para hierarquia */
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CONTAINER para controlar largura do conteúdo */
.header .container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* LOGO — escala menor e proporcional */
.header .logo {
  width: auto;
  max-width: 300px;
  /* ajustado para ficar proporcional com título */
  height: auto;
  margin-bottom: 0.6rem;
  display: block;
}

/* PRE-HEAD / topo pequeno (ex: "Tenha sua marca em evidência.") */
.header .pre-head {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* SLOGAN / H1 mais harmônico */
.header .slogan {
  font-family: 'Monsterrat';
  color: var(--heading-color);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.12;
  margin: 0.6rem 0 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.02em;
  max-width: 940px;
  /* controla comprimento da linha */
  text-align: center;
}

/* TITLE SECTION (subtitulo logo abaixo do H1) */
.title {
  margin: 2.4rem 0 1rem;
  width: 100%;
}

.title p {
  font-family: 'Lato';
  font-weight: 400;
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
}

/* BOTÃO principal (ajuste visual) */
.btn-with-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.08);
  margin-bottom: 2rem;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5), var(--shadow-glow);

}

.btn-with-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
  z-index: -1;
}

.btn-with-badge:hover::before {
  left: 100%;
}

.btn-with-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.10);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5), var(--shadow-glow);
}

/* BADGE — mais discreto, com fundo claro para contraste */
.cta-badge {
  background: rgba(255, 255, 255, 0.95);
  /* branco translúcido para melhor leitura */
  color: var(--accent);
  /* texto laranja */
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--secondary-color);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 50px;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 700;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* MICROCOPY sob o botão */
.micro {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: 'Lato', sans-serif;
}

/* GRADIENT / topo animado — tornar sutil */
@keyframes varredura {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.topbar h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--accent), #5a8df0, var(--accent));
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: varredura 6s linear infinite;
}

/* CORREÇÃO DE SELECTOR INVÁLIDO anterior */
@keyframes entradaEsquerda {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* exemplo para aplicar entrada a um botão específico */
.btn-with-badge {
  animation: entradaEsquerda 0.8s ease-out 0.3s both;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .header .logo {
    max-width: 260px;
  }

  .header .slogan {
    font-size: 1.9rem;
    max-width: 720px;
  }

  .title p {
    font-size: 1.0rem;
    max-width: 640px;
  }

  .title {
    margin-top: 1rem;
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.6rem 0 2rem;
  }

  .header .logo {
    max-width: 200px;
    margin-bottom: 0.25rem;
  }

  .header .slogan {
    font-size: 1.4rem;
    margin-top: 0.4rem;
  }

  .btn-with-badge {
    padding: 0.6rem 1rem;
    gap: 8px;
  }

  .cta-badge {
    display: none;
  }

  /* simplificar em mobile */
  .title {
    margin: 2rem 0 1rem;
  }

  .title p {
    font-size: 0.96rem;
    max-width: 92%;
  }
}


/* ========== SEÇÃO COMO FUNCIONA ========== */
.how-it-works {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 colunas no desktop */
  gap: 2.5rem;
  margin-top: 3rem;
}

.step-item {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  /* Espaçamento original para desktop */
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  /* ALINHAMENTO CENTRALIZADO */
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  border-left: none !important;
  /* Garante que não haja borda esquerda */
}

/* A barra superior que você gostou */
.step-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.step-item img {
  height: 80px;
  /* Tamanho original para desktop */
  width: auto;
  margin-bottom: 1.5rem;
}

.step-item h3 {
  font-size: 1.25rem;
  /* Tamanho original para desktop */
  margin-bottom: 1rem;
}

.step-item p {
  font-size: 1rem;
  /* Tamanho original para desktop */
  line-height: 1.7;
}

.step-item:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Regras APENAS para TELAS MENORES (celulares) */
@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: 1fr;
    /* 1 coluna no celular */
    gap: 1.5rem;
    /* Espaço menor entre os cards */
  }

  .step-item {
    padding: 2rem 1.5rem;
    /* Padding MENOR para ser mais compacto */
  }

  .step-item img {
    height: 60px;
    /* Ícone MENOR */
  }

  .step-item h3 {
    font-size: 1.15rem;
    /* Título MENOR */
  }

  .step-item p {
    font-size: 0.95rem;
    /* Texto MENOR */
  }
}

/* ========== PORTFÓLIO SWIPER ========== */
.portfolio-swiper {
  width: 100%;
  height: 400px;
  margin: 0 auto;
  overflow: visible;
  padding: 0 50px;
}

.swiper-slide {
  text-align: center;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  width: auto;
  flex-shrink: 0;
}

.swiper-slide:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.slide-1 img {
  object-position: center bottom;
  /* Exemplo: Foco um pouco mais para cima */
}

/* Regra específica para a imagem do slide 2 */
.slide-2 img {
  object-position: center bottom;
  /* Exemplo: Foco na parte de baixo da imagem */
}

.slide-6 img {
  object-position: center bottom;
  /* Exemplo: Foco na parte de baixo da imagem */
}

.slide-8 img {
  object-position: 50% 85%;
  /* Exemplo: Foco na parte de baixo da imagem */
}

.slide-5 img {
  object-position: center bottom;
  /* Exemplo: Foco na parte de baixo da imagem */
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

/* Customização dos controles do Swiper */
.swiper-pagination {
  bottom: 20px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  background: transparent;
  box-shadow: none;
  width: auto;
  /* Deixa o tamanho ser definido pelo ícone */
  height: auto;
  color: white;

  /* 3. Posicionamento ajustado para não ficar tão colado na borda */
  --swiper-navigation-sides-offset: 15px
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: transparent;
  color: white;
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 48px;
  font-weight: 900;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease-in-out;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  transform: scale(1.2);
  color: var(--primary-color);
  text-shadow: none;
}

/* Overlay com informações */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: var(--transition);
  opacity: 0;
}

.swiper-slide:hover .slide-overlay {
  transform: translateY(0);
  opacity: 1;
}

.slide-overlay h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.slide-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsividade do Swiper */
@media (max-width: 768px) {
  .portfolio-swiper {
    height: 450px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }

  .slide-overlay {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .portfolio-swiper {
    height: 360px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* ========== SELETOR DE CORES ========== */
.color-selection {
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  color: #333;
  font-size: 2rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 20px;
  color: #6c757d;
  font-size: 1.1rem;
}

.instructions {
  text-align: center;
  padding: 15px;
  background-color: #e9f5ff;
  color: #005a9e;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.palette-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.palette-title {
  margin: 0 0 15px 0;
  color: #333;
  font-weight: 600;
}

.palette-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.palette-btn {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #555;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.palette-btn:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  transform: translateY(-2px);
}

.selection-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 30px;
}

.selection-panel {
  flex: 1;
  min-width: 300px;
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.panel-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.panel-title i {
  color: #007bff;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.color-option {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* Garante que seja sempre um quadrado */
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.color-option:hover {
  transform: scale(1.08);
}

.color-option.selected {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  outline: 3px solid #007bff;
  outline-offset: 3px;
}

.color-option .color-name {
  font-size: 11px;
  font-weight: 600;
  color: white;
  padding: 3px 6px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  margin: 4px;
  text-shadow: none;
}

.color-option .color-name.light {
  color: #333;
  background-color: rgba(255, 255, 255, 0.4);
}

.selected-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #555;
}

.selected-color-box {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.preview-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  margin-bottom: 30px;
}

.preview-title {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.4rem;
}

.preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  /* Aumentado para melhor visualização */
}

.apron-preview {
  width: 150px;
  height: 200px;
  background-color: #f0f0f0;
  border-radius: 15px 15px 5px 5px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

/* ================================================================== */
/* 👇 SUBSTITUA O SEU .logo-preview ANTIGO POR ESTE BLOCO 👇 */
/* ================================================================== */

.logo-preview {
  /* Mantém o posicionamento centralizado que já fizemos */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  z-index: 2;
  /* Garante que fique sobre o avental */
  display: flex;
  justify-content: center;
  align-items: center;

  /* 👇 Propriedades que REMOVEMOS para tirar o círculo 👇 */
  /* background-color: #ccc; (removido) */
  /* border-radius: 50%; (removido) */
  /* box-shadow: ...; (removido) */
  /* overflow: hidden; (removido - isso parará de cortar a logo) */
}

/* 👇 ADICIONE ESTA NOVA REGRA para a imagem da logo 👇 */
.logo-preview img {
  max-width: 100%;
  max-height: 50%;
  object-fit: contain;
  /* Garante que a logo inteira apareça sem distorção */
}

/* ================================================================== */
/* NOVO: Estilo para o botão de upload */
.upload-logo-action {
  text-align: center;
  margin-top: 20px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.action-buttons {
  text-align: center;
}

.apron-preview {
  background-color: transparent;
  /* O fundo agora é transparente */
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.apron-shape {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  /* Fica atrás da logo */
  transition: fill 0.3s ease;
  /* Animação suave na troca de cor */
}

.logo-preview {
  z-index: 2;
  /* Garante que a logo fique na frente do avental */
}

/* Agora, modifique suas classes de cor para usar "fill" */
.apron-nude .apron-shape {
  fill: #d2b48c;
}

.apron-lilas .apron-shape {
  fill: #d8bfd8;
}

.apron-roxo .apron-shape {
  fill: #9370db;
}

.apron-verde-limao .apron-shape {
  fill: #32cd32;
}

.apron-azul-bebe .apron-shape {
  fill: #add8e6;
}

.apron-azul-royal .apron-shape {
  fill: #4169e1;
}

.apron-azul-marinho .apron-shape {
  fill: #000080;
}

.apron-rosa-bebe .apron-shape {
  fill: #ffc0cb;
}

.apron-rosa-pink .apron-shape {
  fill: #ff69b4;
}

.apron-preto .apron-shape {
  fill: #000000;
}

/* MELHORIA: Botão principal mais visível */
#confirmButton {
  background-color: #28a745;
  /* Verde sucesso */
  color: white;
  padding: 18px 40px;
  /* Maior */
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#confirmButton:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

#confirmButton:not(:disabled):hover {
  background-color: #218838;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* NOVO: Estilo para a mensagem de sucesso */
.success-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 150%);
  background-color: #28a745;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.4s ease-in-out;
  z-index: 1000;
}

.success-message.show {
  transform: translate(-50%, 0);
}

.success-message i {
  font-size: 1.5rem;
}

/* Suas classes de cores .apron-* e .logo-* podem ser coladas aqui */

@media (max-width: 768px) {
  .color-selection {
    padding: 20px;
    margin: 20px;
  }

  .selection-container {
    flex-direction: column;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .color-options {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  }

  #confirmButton {
    padding: 15px 30px;
    width: 100%;
  }
}

/* ========== SEÇÃO DE UPLOAD ========== */
.upload {
  padding: 5rem 0;
}

.upload-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  background-color: #ffffff;
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.upload-info h2 {
  margin-bottom: 1.5rem;
}

.upload-info .formats {
  font-size: 0.9rem;
  background-color: var(--light-color);
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.upload-area {
  border: 3px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: #fafafa;
}

.upload-area i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background-color: #F8FEFE;
}

/* ========== SEÇÃO DE PEDIDO (FORMULÁRIO MODERNIZADO) ========== */
.order {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.order::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
  pointer-events: none;
}

.order .container {
  position: relative;
  z-index: 1;
}

.order .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.order .section-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.order .section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.order-form {
  max-width: 900px;
  margin: 0 auto;
  background: var(--form-bg);
  padding: 3.5rem;
  border-radius: 24px;
  box-shadow: var(--form-shadow);
  border: 1px solid var(--form-border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.order-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.order-form:hover {
  box-shadow: var(--form-shadow-hover);
  transform: translateY(-2px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--dark-color);
  transition: var(--transition);
}

.form-group label i,
.form-group label img {
  color: var(--form-icon-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.form-group:hover label i,
.form-group:hover label img {
  transform: scale(1.1);
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  transition: var(--transition);
  position: relative;
}

.form-control:focus {
  outline: none;
  border-color: var(--input-focus-border);
  background: var(--form-bg);
  box-shadow: var(--input-focus-shadow);
  transform: translateY(-1px);
}

.form-control:hover {
  border-color: var(--primary-color);
  background: var(--form-bg);
}

.form-control::placeholder {
  color: #94a3b8;
  font-style: italic;
}

.form-icon-img {
  width: 24px;
  height: auto;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.quantity-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
  padding-left: 0.5rem;
}

/* ========== OPÇÕES DE PAGAMENTO MODERNIZADAS ========== */
.payment-options {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border: 1px solid var(--form-border);
}

.payment-options h3 {
  max-width: 620px;
  margin: 3rem auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
  font-weight: 600;
}

.payment-options h3 img {
  width: 28px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.payment-options .options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.payment-options .option {
  background: var(--form-bg);
  border: 2px solid var(--input-border);
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.payment-options .option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 149, 148, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
}

.payment-options .option:hover::before {
  opacity: 1;
}

.payment-options .option img {
  width: 40px;
  height: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.payment-options .option h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.payment-options .option:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(14, 149, 148, 0.15);
}

.payment-options .option:hover img {
  transform: scale(1.1);
}

.payment-options .option:hover h4 {
  color: var(--primary-color);
}

.payment-options .option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(14, 149, 148, 0.1) 0%, rgba(14, 149, 148, 0.05) 100%);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(14, 149, 148, 0.2);
}

.payment-options .option.selected h4 {
  color: var(--primary-color);
}

.payment-options .option.selected img {
  transform: scale(1.1);
}

/* Esconde o radio nativo nas opções de pagamento, mantendo acessível */
.payment-options .option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ========== BOTÃO DE ENVIO MODERNIZADO ========== */
.btn-submit {
  width: 100%;
  background: var(--button-gradient);
  color: #fff;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 8px 25px rgba(242, 84, 45, 0.3);
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  background: var(--button-hover-gradient);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(242, 84, 45, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-submit i {
  font-size: 1.2rem;
  transition: var(--transition);
}

.btn-submit:hover i {
  transform: translateX(3px);
}

/* ========== RESPONSIVIDADE DO FORMULÁRIO ========== */
@media (max-width: 768px) {
  .order-form {
    padding: 2.5rem 2rem;
    margin: 0 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .payment-options .options {
    grid-template-columns: 1fr;
  }

  .payment-options .option {
    padding: 1rem 0.8rem;
  }

  .order .section-header h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .payment-options,
  .financial-summary,
  .btn-submit {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .order-form {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .payment-options {
    padding: 1.5rem 1rem;
  }

  .btn-submit {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .form-control {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .order-form {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .payment-options {
    padding: 1rem;
    margin: 2rem 0;
  }

  .payment-options .options {
    gap: 1rem;
  }

  .payment-options .option {
    padding: 0.9rem 0.6rem;
  }

  .payment-options .option img {
    width: 36px;
  }

  .payment-options .option h4 {
    font-size: 0.85rem;
  }

  .form-control {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .btn-submit {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* ========== SEÇÃO DE DEPOIMENTOS (NOVO) ========== */
.testimonials {
  padding: 4rem 0 5rem 0;
  background-color: var(--light-color);
}

.testimonial-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.testimonial-card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 5px solid var(--primary-color);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card h4 {
  color: var(--dark-color);
  font-weight: 600;
}


/* ========== BOTÕES ========== */
.btn,
.btn-secondary {
  display: inline-block;
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn {
  background: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(242, 84, 45, 0.3);
}

.btn-secondary {
  background: var(--primary-color);
  box-shadow: 0 4px 15px rgba(14, 149, 148, 0.3);
}

.btn:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

/* Efeito de brilho no botão */
.btn::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:hover::after,
.btn-secondary:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }

  100% {
    transform: scale(100, 100);
    opacity: 0;
  }
}


/* ========== RODAPÉ (FOOTER) ========== */
.footer {
  background: var(--dark-color);
  color: #a0aec0;
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer .social-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer .social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer .social-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .testimonial-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .upload-content {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2.5rem;
  }

  .upload-info {
    text-align: center;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  .title {
    margin: 2.5rem 0;
  }

  .how-it-works,
  .upload,
  .order,
  .portfolio {
    padding: 3rem 0;
  }

  .order-form,
  .color-selector,
  .upload-content {
    padding: 2rem;
  }

  .payment-options .options {
    grid-template-columns: 1fr;
  }
}

/* ========== SEÇÃO DE PORTFÓLIO/GALERIA (VERSÃO CORRIGIDA) ========== */
.portfolio {
  padding: 4rem 0;
  background-color: var(--light-color);
}

.gallery {
  display: grid;
  /* Mantém o layout de 3 colunas que você gostou */
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
  /* Define uma largura máxima para o grid */
  margin: 0 auto;
  /* Centraliza o grid na página */
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- AJUSTES DE RESPONSIVIDADE PARA A GALERIA --- */
@media (max-width: 992px) {
  .gallery {
    /* Altera para 2 colunas */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery {
    /* Altera para 1 coluna, para melhor visualização */
    grid-template-columns: 1fr;
  }
}

/* ========== ESTILOS PARA CAMPOS VÁLIDOS/INVÁLIDOS ========== */
.form-control.valid {
  border-color: var(--success-color);
  background: var(--form-bg);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.form-control.invalid {
  border-color: var(--error-color);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

/* ========== MENSAGENS DE VALIDAÇÃO (APENAS PARA ERROS) ========== */
.validation-message {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-style: italic;
  transition: var(--transition);
  animation: fadeInUp 0.3s ease-out;
}

.validation-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
  border-left: 3px solid var(--error-color);
}

/* ========== MENSAGENS DE FORMULÁRIO (APENAS PARA ERROS) ========== */
.form-message {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  animation: fadeInUp 0.3s ease-out;
}

.form-message.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  color: var(--error-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message i {
  font-size: 1.1rem;
}

/* ========== ESTADOS DE FOCO DOS CAMPOS ========== */
.form-group.focused label {
  color: var(--primary-color);
  transform: scale(1.02);
}

.form-group.focused .form-icon-img {
  filter: drop-shadow(0 4px 8px rgba(14, 149, 148, 0.3));
}

/* ========== MELHORIAS NOS CAMPOS NUMÉRICOS ========== */
.form-control[type="number"] {
  -moz-appearance: textfield;
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ========== MELHORIAS NO BOTÃO DE ENVIO ========== */
.btn-submit.loading {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  cursor: not-allowed;
  animation: pulse 2s infinite;
}

.btn-submit.loading:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(242, 84, 45, 0.3);
}

.btn-submit.success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.btn-submit.success i {
  animation: fadeInUp 0.3s ease-out;
}

/* ========== EFEITOS DE HOVER NOS CAMPOS ========== */
.form-control:hover {
  border-color: var(--primary-color);
  background: var(--form-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* ========== MELHORIAS NOS LABELS ========== */
.form-group label {
  transition: var(--transition);
}

.form-group label:hover {
  color: var(--primary-color);
}

/* ========== ANIMAÇÕES DE ENTRADA ADICIONAIS ========== */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group,
.payment-options,
.btn-submit {
  animation: slideInFromBottom 0.8s ease-out both;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

.form-group:nth-child(4) {
  animation-delay: 0.4s;
}

.payment-options {
  animation-delay: 0.5s;
}

.btn-submit {
  animation-delay: 0.6s;
}

/* ========== MELHORIAS PARA DISPOSITIVOS TÁTEIS ========== */
@media (hover: none) and (pointer: coarse) {
  .form-control:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  }

  .payment-options .option:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .btn-submit:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(242, 84, 45, 0.3);
  }
}

/* ========== MELHORIAS DE ACESSIBILIDADE ========== */
.form-control:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.payment-options .option:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ========== ESTILOS PARA ESTADOS DE CARREGAMENTO ========== */
.form-control:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.7;
}

.form-control:disabled::placeholder {
  color: #94a3b8;
}

/* ========== MELHORIAS NO ESPAÇAMENTO ========== */
.form-group+.form-group {
  margin-top: 0.5rem;
}

.payment-options+.btn-submit {
  margin-top: 2.5rem;
}

/* ========== EFEITOS DE TRANSIÇÃO SUAVES ========== */
.form-control,
.payment-options .option,
.btn-submit {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== MELHORIAS PARA TELAS PEQUENAS ========== */
@media (max-width: 480px) {
  .validation-message {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .form-message {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .form-message i {
    font-size: 1rem;
  }
}

/* ========== SEÇÃO INTEGRADA DE UPLOAD DE LOGO ========== */
.logo-upload-integrated {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--form-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.upload-info-integrated h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-weight: 600;
}

.upload-info-integrated h3 i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.formats-info {
  background: rgba(14, 149, 148, 0.05);
  border-left: 3px solid var(--primary-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.formats-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.formats-info p:first-child {
  font-weight: 600;
  color: var(--dark-color);
}

.upload-area-integrated {
  border: 3px dashed var(--primary-color);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--form-bg);
  position: relative;
  overflow: hidden;
}

.upload-area-integrated::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 149, 148, 0.02) 100%);
  opacity: 0;
  transition: var(--transition);
}

.upload-area-integrated:hover::before {
  opacity: 1;
}

.upload-area-integrated:hover {
  border-color: #1D8E7C;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 149, 148, 0.15);
}

.upload-area-integrated i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.upload-area-integrated:hover i {
  transform: scale(1.1);
  color: #1D8E7C;
}

.upload-area-integrated p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.btn-upload-integrated {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: 0 4px 12px rgba(14, 149, 148, 0.3);
}

.btn-upload-integrated:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 149, 148, 0.4);
}

/* ========== MELHORIAS NA SEÇÃO DE CORES ========== */
.color-selection {
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
}

.color-selection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ========== RESPONSIVIDADE DA SEÇÃO INTEGRADA ========== */
@media (max-width: 768px) {
  .logo-upload-integrated {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .upload-area-integrated {
    padding: 2rem 1.5rem;
  }

  .upload-area-integrated i {
    font-size: 2.5rem;
  }

  .upload-info-integrated h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo-upload-integrated {
    padding: 1rem;
    margin: 1rem 0;
  }

  .upload-area-integrated {
    padding: 1.5rem 1rem;
  }

  .upload-area-integrated i {
    font-size: 2rem;
  }

  .upload-area-integrated p {
    font-size: 0.9rem;
  }

  .btn-upload-integrated {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .formats-info {
    padding: 0.8rem;
  }

  .formats-info p {
    font-size: 0.85rem;
  }
}

/* ========== PACKS DE AVENTAIS ========== */
.pack-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.pack-option {
  background: var(--form-bg);
  border: 2px solid var(--input-border);
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pack-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(14, 149, 148, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
}

.pack-option:hover::before {
  opacity: 1;
}

.pack-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 149, 148, 0.15);
}

.pack-option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(14, 149, 148, 0.1) 0%, rgba(14, 149, 148, 0.05) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 149, 148, 0.2);
}

.pack-header {
  margin-bottom: 0.5rem;
}

.pack-quantity {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
}

.pack-units {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.pack-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-color);
  font-family: 'Poppins', sans-serif;
}

.pack-info {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

/* ========== SELECT DE PACKS DE AVENTAIS ========== */
.pack-select {
  background: var(--form-bg);
  border: 2px solid var(--input-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
}

.pack-select:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
  transform: translateY(-1px);
}

.pack-select:hover {
  border-color: var(--primary-color);
}

.pack-select option {
  padding: 0.8rem;
  font-size: 0.95rem;
  background: var(--form-bg);
  color: var(--dark-color);
}

.pack-select option:first-child {
  color: var(--muted);
  font-style: italic;
}

/* ========== SEÇÃO DE ENDEREÇO ========== */
.address-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--form-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.address-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.address-title i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.address-grid .form-group:nth-child(1) {
  grid-column: 1 / 2;
}

.address-grid .form-group:nth-child(2) {
  grid-column: 1 / -1;
}

.address-grid .form-group:nth-child(3) {
  grid-column: 2 / 3;
}

.address-grid .form-group:nth-child(4) {
  grid-column: 1 / -1;
}

.address-grid .form-group:nth-child(5) {
  grid-column: 1 / 2;
}

.address-grid .form-group:nth-child(6) {
  grid-column: 2 / 3;
}

.address-grid .form-group:nth-child(7) {
  grid-column: 1 / 2;
}

/* ========== RESUMO FINANCEIRO ========== */
.financial-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--form-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 2rem auto;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.summary-title i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(14, 149, 148, 0.1);
}

.summary-item.total {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1D8E7C 100%);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.summary-label {
  font-weight: 600;
  color: var(--dark-color);
}

.summary-item.total .summary-label {
  color: white;
}

.summary-value {
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
}

.summary-item.total .summary-value {
  color: white;
}

/* ========== RESPONSIVIDADE DOS NOVOS ELEMENTOS ========== */
@media (max-width: 768px) {
  .address-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .address-grid .form-group:nth-child(n) {
    grid-column: 1 / -1;
  }

  .address-section,
  .financial-summary {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {

  .address-section,
  .financial-summary {
    padding: 1rem;
    margin: 1rem 0;
  }

  .summary-item {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .summary-title {
    font-size: 1.2rem;
  }
}

/* ========== PÁGINAS DE STATUS DE PAGAMENTO ========== */
.status-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-color);
  padding: 2rem;
  font-family: 'Poppins', sans-serif;
}

.status-card {
  background-color: #ffffff;
  padding: 3rem 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  max-width: 600px;
  border-top: 5px solid;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.status-card h1 {
  font-size: 2.2rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.status-card p {
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.status-card .next-steps {
  background-color: var(--light-color);
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 1rem;
  border-left: 4px solid;
}

.btn-back {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
}

.btn-back:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

/* Cores específicas por status */
.status-success {
  border-color: #28a745;
}

.status-success .status-icon {
  color: #28a745;
}

.status-success .next-steps {
  border-color: #28a745;
}

.status-failure {
  border-color: #dc3545;
}

.status-failure .status-icon {
  color: #dc3545;
}

.status-failure .next-steps {
  border-color: #dc3545;
}

.status-failure .btn-back {
  background-color: #dc3545;
}

.status-pending {
  border-color: #ffc107;
}

.status-pending .status-icon {
  color: #ffc107;
}

.status-pending .next-steps {
  border-color: #ffc107;
}

@media (max-width: 576px) {
  .status-card {
    padding: 2rem 1.5rem;
  }

  .status-icon {
    font-size: 4rem;
  }

  .status-card h1 {
    font-size: 1.8rem;
  }

  .status-card p {
    font-size: 1rem;
  }
}

/* ========== FRETE ========== */
/* Estilos para o frete */
.btn-calculate-shipping {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.shipping-option {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.shipping-option:hover {
  border-color: #667eea;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.shipping-option input[type="radio"] {
  width: 20px;
  height: 20px;
}

.shipping-info {
  flex: 1;
}

.shipping-company {
  font-weight: 600;
  color: #343a40;
  font-size: 1.1rem;
}

.shipping-price {
  font-weight: 700;
  color: #28a745;
  font-size: 1.1rem;
}

/* ========== ESTILOS PARA OPÇÕES DE FRETE ========== */
.shipping-option {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.shipping-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(14, 149, 148, 0.1);
  transform: translateY(-2px);
}

.pickup-details {
  background: rgba(14, 149, 148, 0.05);
  border: 1px dashed var(--primary-color);
  border-radius: 12px;
  padding: 0 1rem;
  margin: 0 0 1rem 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.pickup-details.open {
  padding: 1rem;
  max-height: 300px;
  opacity: 1;
}

/* Estilo para quando o radio button está selecionado */
.shipping-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-color);
  background-color: #f0f9ff;
  box-shadow: 0 6px 16px rgba(14, 149, 148, 0.15);
}

.shipping-option input[type="radio"] {
  /* Esconde o radio button padrão, mas o mantém funcional */
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.5em;
  height: 1.5em;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  flex-shrink: 0;
}

.shipping-option input[type="radio"]::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--primary-color);
}

.shipping-option input[type="radio"]:checked::before {
  transform: scale(1);
}

.shipping-info {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  /* Coloca o preço na direita */
  align-items: center;
  gap: 0.25rem 1rem;
}

.shipping-company {
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.05rem;
  grid-column: 1 / 2;
}

.shipping-details {
  font-size: 0.9rem;
  color: var(--text-color);
  grid-column: 1 / 2;
}

.shipping-price {
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--primary-color);
  font-size: 1.1rem;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  /* Ocupa as duas linhas da grid */
  text-align: right;
}

/* ========== CORREÇÕES DE RESPONSIVIDADE PARA O SELETOR DE COR ========== */

@media (max-width: 768px) {

  /*
     Isso faz com que os dois painéis ('Cor do Avental' e 'Cor da Logo')
     fiquem um embaixo do outro em telas de tablets e celulares.
  */
  .selection-container {
    flex-direction: column;
    /* Organiza os painéis em uma coluna vertical */
    gap: 20px;
    /* Reduz o espaçamento entre eles */
  }

  /*
     Garante que os painéis não tenham uma largura mínima que os
     force a serem maiores que a tela.
  */
  .selection-panel {
    min-width: 100%;
    /* Permite que o painel ocupe a largura total */
  }

  /*
     Reduz o espaçamento interno do container principal em telas menores
     para evitar que o conteúdo fique espremido.
  */
  .color-selection {
    padding: 20px;
  }
}

/* ========== CORREÇÃO PARA OVERFLOW HORIZONTAL EM TELAS MÓVEIS ========== */
.container {
  overflow-x: hidden;
}

.portfolio-swiper {
  width: 100%;
}

* {
  max-width: 100%;
}

.address-section {
  transition: opacity 0.3s ease-in-out;
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #333;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-family: "Poppins", sans-serif;
  z-index: 1000;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Estilo para o spinner de carregamento do frete */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  font-size: 1.1rem;
  color: #555;
  gap: 10px;
  /* Espaço entre o ícone e o texto */
}

/* ================================================================== */
/* ========== PLANO DE REFINAMENTO VISUAL (MOBILE) ========== */
/* ================================================================== */

/* Usamos 768px como o ponto de quebra para tablets e celulares */
@media (max-width: 768px) {

  /* --- PASSO 1: TIPOGRAFIA E HIERARQUIA --- */
  h2 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .header .slogan {
    font-size: 1.8rem;
    max-width: 100%;
  }

  .title p {
    font-size: 1rem;
  }

  /* --- PASSO 2: FORMULÁRIO E BLOCOS "CONDENSADOS" --- */
  .order .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Faz o CARD do formulário ocupar a tela inteira */
  .order-form {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    border: none;
  }

  .address-section,
  .payment-options,
  .financial-summary {
    padding: 1.5rem;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: none;
  }

  /* --- PASSO 3: DETALHES E CONSISTÊNCIA --- */
  .form-group label i,
  .form-group label img {
    color: var(--primary-color) !important;
    filter: none;
  }

  #confirmButton:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    opacity: 1;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem;
  }

  .order-form {
    padding: 1.5rem 1rem;
  }

  .address-section,
  .payment-options,
  .financial-summary {
    margin-left: 0;
    margin-right: 0;
  }
}

.action-buttons {
  text-align: center;
  margin-top: 2rem;
  /* Aumenta a distância da área de upload acima */
}

/* 2. Suaviza as bordas do botão e refina o estilo */
#confirmButton {
  border-radius: 12px !important;
  /* <<-- DEIXA AS BORDAS MENOS REDONDAS */
  padding: 16px 32px;
  /* Ligeiramente ajustado para o novo formato */
  font-weight: 600;
}

@media (max-width: 480px) {

  /* 1. Ajusta o botão principal para empilhar o conteúdo */
  .btn-with-badge {
    flex-direction: column;
    gap: 6px;
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
  }

  .btn-with-badge {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-size: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cta-badge {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    white-space: nowrap;
  }
}

/* ================================================================== */
/* ========== ESTILOS PARA A PRÉVIA DE DESIGN DINÂMICA ========== */
/* ================================================================== */

.design-preview-container {
  text-align: center;
  margin-bottom: 2rem;
}

.preview-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.apron-preview-container {
  width: 100%;
  max-width: 400px;
  /* Limita a largura máxima da imagem no desktop */
  margin: 0 auto;
  background-color: #FFF;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1rem;
  border: 1px solid var(--border-color);
}

#apronPreviewImage {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* Arredonda os cantos da imagem */
  /* Adiciona uma transição suave ao trocar de imagem */
  transition: opacity 0.4s ease-in-out;
}

@media (max-width: 576px) {
  .header {
    /* Adiciona um padding extra nas laterais do cabeçalho */
    padding-left: 1rem;
    padding-right: 1rem;
  }
}