/* Person */
/* Efeito menu */
.u-nav-link {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.u-nav-link:hover {
  transform: scale(1.08); /* aumenta 08% */
}

.message-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a3e60;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  font-size: 0.9rem;
}

.message-toast.show {
  opacity: 1;
}

.message-toast.error {
  background: #d32f2f;
}

.message-toast.success {
  background: #2e7d32;
}
/* End Person */

/* ===== UNIVERSAL RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  /* Tamanho base para desktop */
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #091759;
  /* COR DE FUNDO FINAL */
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

/* ===== CSS VARIABLES - TEMA VERMELHO E AMARELO ===== */
:root {
  --primary-orange: #3d77ff;
  /* Vermelho principal */
  --light-orange: #3d77ff;
  /* Vermelho claro */
  --dark-orange: #8c90a7; /* Cor da barra do footer #8c90a7*/
  /* Vermelho escuro */
  --accent-yellow: #FFD700;
  /* Amarelo de destaque */
  --accent-red: #3d77ff;
  /* COR DE DESTAQUE */
  --dark-blue-shadow: #5A0707;
  /* Sombra vermelha escura */
  --text-primary: #FFFFFF;
  --text-dark: #333333;
  --text-on-btn: #900B0B;
  /* Texto do botão em vermelho escuro para contraste */
  --shadow-strong: 0 4px 15px rgba(0, 0, 0, 0.2);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bonus-green: #28a745;

  /* ===== VARIÁVEIS DE COR DO TEMA PARA FORMULÁRIOS ===== */
  --primary-blue: #3d77ff;
  --dark-blue: #091759;
  --accent-orange-form: #FFD700;
  --accent-red-error: #dc3545;
}

/* ===== BACKGROUND LAYERS ===== */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  background: radial-gradient(ellipse at 50% -10%, var(--light-orange) 0%, var(--primary-orange) 40%, var(--dark-orange) 90%);
  overflow: hidden;
}

.background-container::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 50%;
  /* Cor do brilho alterada para azul */
  background: radial-gradient(circle, rgba(9, 23, 89, 0.1) 0%, rgba(9, 23, 89, 0) 60%);
  animation: pulse 5s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translateX(-50%) scale(1.1);
    opacity: 0.5;
  }
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  overflow: visible;
  /* ADICIONE ESTA LINHA */
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== FORM SECTION (Formulário Principal) ===== */
.form-section {
  padding: 4rem 0;
  position: relative;
}

.form-container {
    max-width: 650px; margin: auto; background: rgba(255, 255, 255, 0.95);
    border: 4px solid var(--accent-yellow); border-radius: var(--border-radius);
    padding: 2rem; position: relative; z-index: 2; box-shadow: var(--shadow-strong);
}

@media (min-width: 768px) { .form-container { padding: 3rem; } }

.form-container h2 {
    font-family: 'Luckiest Guy', cursive; font-size: 2.5rem; color: var(--dark-orange);
    margin-bottom: 0.5rem; text-transform: uppercase; text-align: center; line-height: 1.1;
    text-shadow: none;
}

@media (min-width: 768px) { .form-container h2 { font-size: 3rem; } }

.form-container p { color: var(--text-dark); font-size: 1rem; margin-bottom: 2rem; text-align: center; font-weight: 500; }

.form-group, .form-group-whatsapp { margin-bottom: 1.5rem; text-align: left; }
.form-group label, .form-group-whatsapp label { display: block; font-size: 1rem; color: var(--text-dark); margin-bottom: 0.5rem; font-weight: 700; }

.form-group input, .store-select-trigger, #country-code, #whatsapp-number, #country-code-confirm, #whatsapp-number-confirm, .form-group textarea {
    width: 100%; padding: 0.9rem 1.2rem; border-radius: 12px; border: 2px solid #D1D1D1;
    background: #FFFFFF; color: var(--text-dark); font-size: 1rem; font-family: 'Poppins', sans-serif;
    font-weight: 500; outline: none; transition: var(--transition);
}

.form-group input::placeholder, #whatsapp-number-confirm::placeholder, .form-group textarea::placeholder { color: #999999; }
.form-group input:focus, .store-select-trigger:focus, #country-code:focus, #whatsapp-number:focus, #country-code-confirm:focus, #whatsapp-number-confirm:focus, .form-group textarea:focus {
    border-color: var(--primary-orange);
    /* Cor do brilho do foco alterada */
    box-shadow: 0 0 0 3px rgba(24, 33, 218, 0.3);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.whatsapp-inputs { display: flex; gap: 0.75rem; }
#country-code, #country-code-confirm { flex: 0 0 auto; width: 7rem; } /* Ambos os selects de código de país com largura fixa */
#whatsapp-number, #whatsapp-number-confirm { flex: 1; }

.store-select-trigger { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.store-select-trigger.selected { color: var(--text-dark); }

.form-cta-button {
    background: var(--accent-red); /* Cor inicial do botão */
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    display: block;
    margin: 2.5rem auto 0;
    transition: background 0.3s ease-out, transform 0.2s ease-out;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    text-align: center;
    box-shadow: none; /* ALTERADO: Sombra removida */
    position: relative;
    overflow: hidden;
}

.form-cta-button:hover:not(:disabled) {
    transform: translateY(-3px);
    background: #1821da;
    box-shadow: none; /* ALTERADO: Sombra removida */
}

/* Estilos para o estado de carregamento */
.form-cta-button.loading {
    cursor: progress; /* Cursor de progresso */
    background: #6c757d; /* Cinza para carregamento */
    box-shadow: none;
    text-indent: -9999px; /* Esconde o texto original */
}

.form-cta-button.loading .loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-indent: 0;
    color: var(--text-primary);
    z-index: 2;
}

.form-cta-button .loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* Barra de progresso mais sutil */
    width: 0%;
    transition: width 0.1s linear;
    z-index: 1;
}

/* Estilos para o estado de sucesso */
.form-cta-button.success {
    background: var(--bonus-green); /* Verde para sucesso */
    box-shadow: none;
    animation: none;
    cursor: default;
}

.form-cta-button.success:hover {
    transform: none;
    background: var(--bonus-green);
    box-shadow: none;
}

/* Estilos para o estado de erro */
.form-cta-button.error {
    background: #dc3545; /* Vermelho para erro */
    box-shadow: none;
    animation: none;
    cursor: not-allowed;
}

.form-cta-button.error:hover {
    transform: none;
    background: #dc3545;
    box-shadow: none;
}

/* Removendo a animação de pulso no hover do botão principal */
.form-cta-button:not(.loading):not(.success):not(.error):hover {
    transform: translateY(-3px);
    background: #1821da;
    box-shadow: none; /* ALTERADO: Sombra removida */
}


/* ===== FAQ & FOOTER ===== */
.faq-section { padding: 4rem 0; background: var(--light-orange); }
.faq-container { max-width: 900px; margin: auto; }
.section-title {
    font-family: 'Luckiest Guy', cursive; text-align: center; font-size: 3rem; color: var(--text-primary);
    text-shadow: 0 3px 0 var(--dark-orange); margin-bottom: 3rem;
}
.faq-item { background: var(--text-primary); border: 2px solid var(--dark-orange); border-radius: var(--border-radius); margin-bottom: 1.5rem; box-shadow: var(--shadow-strong); overflow: hidden; }
.faq-question { padding: 1.5rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text-dark); }
.faq-question::after { content: "+"; font-size: 2rem; font-weight: 700; color: var(--dark-orange); transition: var(--transition); }
.faq-item.open .faq-question::after { content: "−"; transform: rotate(0deg); } /* Alterado para '-' quando aberto */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
.faq-answer p { padding: 0 1.5rem 1.5rem; color: var(--text-dark); line-height: 1.7; font-size: 1rem; font-weight: 500; }

footer { padding: 1rem 0rem 0rem 0rem; /* background: var(--dark-orange); */background: #ffffff; text-align: center; border-top: 5px solid var(--accent-yellow); }
.footer-text p { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; max-width: 800px; margin: 0 auto 1rem; }

/* ===== FLOATING BUTTONS ===== */
.whatsapp-button, .guarantee-button {
    position: fixed; bottom: 1.5rem; z-index: 1000; text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    border: 2px solid var(--text-dark);
    box-shadow: var(--shadow-strong);
}

.guarantee-button {
    right: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: #F7931E; /* ALTERADO: Laranja para contraste */
    color: #122073;           /* ALTERADO: Azul escuro para texto */
    font-family: 'Luckiest Guy', cursive;
    font-weight: 400;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: 3px solid #333333;
    animation: pulse-button 1.5s infinite alternate 0.2s;
}

.whatsapp-button {
    left: 1.5rem; width: 3.8rem; height: 3.8rem; background: transparent; display: flex;
    align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; cursor: pointer; border: none;
}

.whatsapp-button:hover, .guarantee-button:hover {
    transform: translateY(-2px) scale(1.1);
    animation-play-state: paused;
}

.guarantee-button:hover {
   background: #FFA94D; /* Laranja mais claro no hover */
}


@media (max-width: 767px) {
    .whatsapp-button, .guarantee-button { bottom: 1rem; }
    .whatsapp-button { left: 1rem; width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
    .guarantee-button {
        right: 1rem;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== MODALS (Store & Chat) ===== */
.store-modal, .chat-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 10000; display: none;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}
.store-modal.active, .chat-modal.active { display: flex; align-items: center; justify-content: center; }

.store-modal-content {
    width: 95%; max-width: 500px; max-height: 80vh; background: #fff;
    border-radius: 15px; overflow: hidden; display: flex; flex-direction: column;
    border: 4px solid var(--accent-yellow);
    box-shadow: var(--shadow-strong);
}
.store-modal-header {
    background: var(--dark-orange); padding: 1rem 1.5rem; display: flex;
    justify-content: space-between; align-items: center; color: var(--text-primary);
    font-weight: 700; font-size: 1.2rem;
}
.store-modal-close { background: none; border: none; font-size: 2rem; color: var(--text-primary); cursor: pointer; line-height: 1; }
.store-modal-body { overflow-y: auto; padding: 0.5rem; }
.store-city-header { padding: 1rem 1.5rem; font-weight: 700; color: var(--dark-orange); background: #f0f0f0; }
.store-option { padding: 1rem 1.5rem; color: var(--text-dark); cursor: pointer; transition: var(--transition); font-weight: 600; border-bottom: 1px solid #eee; }
.store-option:hover, .store-option.selected { background: var(--accent-yellow); color: var(--text-on-btn); }

.chat-container {
    width: 90%; max-width: 400px; height: 80%; max-height: 600px;
    background: #fff; border-radius: var(--border-radius); position: relative;
    overflow: hidden; display: flex; flex-direction: column;
}
.chat-header {
    background: var(--dark-orange); padding: 1rem; display: flex;
    justify-content: space-between; align-items: center; color: var(--text-primary);
    font-weight: 700;
}
.chat-close { background: none; border: none; font-size: 1.8rem; color: var(--text-primary); cursor: pointer; line-height: 1; }
.chat-iframe { width: 100%; height: 100%; border: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== ESTILOS PARA O NOVO FORMULÁRIO DE CUPOM ===== */
.coupon-form-container {
    width: 100%; /* Isso foi alterado para se adequar ao container principal */
    max-width: 650px; /* Adicionado para centralizar e limitar largura */
    margin: 0 auto; /* Centraliza o formulário */
    background: rgba(255, 255, 255, 0.98);
    border: 4px solid var(--primary-blue);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-strong);
    text-align: center;
}
@media (min-width: 768px) { .coupon-form-container { padding: 3rem; } }

.coupon-form-container h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 2px 2px 0 rgba(24, 33, 218, 0.2);
}
@media (min-width: 768px) { .coupon-form-container h2 { font-size: 2.8rem; } }

.coupon-form-container p { color: var(--text-dark); font-size: 1rem; margin-bottom: 2rem; font-weight: 500; }
.coupon-form-container .form-group { margin-bottom: 1.5rem; text-align: left; }
.coupon-form-container .form-group label { display: block; font-size: 1rem; color: var(--text-dark); margin-bottom: 0.5rem; font-weight: 700; }
.coupon-form-container .form-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    border: 2px solid #D1D1D1;
    background: #FFFFFF;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}
.coupon-form-container .form-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(24, 33, 218, 0.3);
}

.main-cta-button {
    background: var(--dark-blue);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    display: block;
    margin: 2.5rem auto 0;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.main-cta-button .button-text { position: relative; z-index: 2; }
.main-cta-button:disabled { cursor: not-allowed; background: #6c757d; }
.main-cta-button.loading .button-text::after { content: '...'; display: inline-block; animation: loading-dots 1.4s infinite; animation-timing-function: ease-in-out; }
@keyframes loading-dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }
.main-cta-button.success { background: var(--bonus-green); cursor: default; }
.main-cta-button.error { background: var(--accent-red-error); }
.main-cta-button:hover:not(:disabled) { transform: translateY(-3px); background: var(--primary-blue); }

.hidden { display: none !important; }

#feedback-message { margin-top: 1.5rem; padding: 1rem; border-radius: 10px; font-weight: 600; font-size: 1.1rem; }
#feedback-message.success { color: #0f5132; background-color: #d1e7dd; border: 1px solid #badbcc; }
#feedback-message.error { color: #842029; background-color: #f8d7da; border: 1px solid #f5c2c7; }