/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Desktop: reativa efeitos visuais para o formulário */
@media (min-width: 601px) {
  .form-container {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  .form-step {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .form-actions {
    background: white;
    border-top: 1px solid #eee;
    box-shadow: none;
  }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Scroll lock when modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

/* Page System */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.fa-gift {
    color: #ff7300;
    font-size: 2rem;
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* Generic modal helpers (in case inline styles are missing) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    max-height: 90vh;
    overflow: auto;
}

/* Logo Styles */
.logo-container {
    margin: 2rem auto;
    text-align: center;
    width: 1000px; /* Largura original da imagem */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.logo-image {
    width: 1000px; /* Largura original */
    height: auto; /* Mantém a proporção */
    max-width: 100%; /* Garante que não ultrapasse a largura da tela */
}

/* Hero Section */
.hero-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 20px 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e8449 0%, #16a085 100%);
    z-index: -2;
    overflow: hidden;
}

:root {
    --imagem-trofeu: url('trofeu.png');
    --imagem-logo: url('logo.png');
    --imagem-logo-mini: url('logo_mini.png');
}

.hero-background::before {
    content: '';
    position: absolute;
    left: 12%; /* Distância da borda esquerda */
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: 100%; /* Altura fixa do troféu */
    aspect-ratio: auto 1/1; /* Mantém a proporção */
    background-image: var(--imagem-trofeu, url('trofeu.png'));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 0.8;
    z-index: -1;
}

@media (max-width: 1200px) {
    .hero-background::before {
        height: 800px; /* Tamanho menor para telas médias */
    }
}

@media (max-width: 768px) {
    .hero-background::before {
        height: 500px; /* Tamanho menor para dispositivos móveis */
        left: 10px;
    }
    
    /* Hide mini logo on mobile */
    .navbar .nav-brand {
        display: none !important;
    }
    
    /* Center and enlarge social icons on mobile */
    .navbar {
        justify-content: center !important;
        padding: 1.5rem !important;
    }
    
    .social-links {
        gap: 1.8rem; /* More space between icons */
        width: 100%;
        justify-content: center !important;
        margin: 0 auto;
    }
    
    .social-link {
        width: 44px; /* Larger icons */
        height: 44px;
        font-size: 1.6rem;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .social-link:hover {
        transform: translateY(-3px) scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 150px 150px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 50px; /* Ajuste conforme necessário para o tamanho do seu logo */
}

.nav-logo {
    height: 100%;
    width: auto;
    max-height: 50px; /* Ajuste conforme necessário */
}

.nav-brand i {
    font-size: 2rem;
    color: #ffd700;
}

.businessName {
    width: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.login-btn {
    background: linear-gradient(45deg, #16a085, #1abc9c);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem 0.6rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn i {
    font-size: 1.1rem;
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 160, 133, 0.3);
    background: linear-gradient(45deg, #1abc9c, #16a085);
}

@media (max-width: 768px) {
    .login-btn {
        padding: 0.5rem 1rem 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .login-btn i {
        font-size: 1rem;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.9;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Cores específicas para cada rede social */
.social-link:nth-child(1):hover { /* Instagram */
    color: #E1306C;
}

.social-link:nth-child(2):hover { /* Facebook */
    color: #1877F2;
}

.social-link:nth-child(3):hover { /* YouTube */
    color: #FF0000;
}

.social-link:nth-child(4):hover { /* WhatsApp */
    color: #25D366;
}

/* Hero Content */
.hero-content {
    max-width: 800px;
    padding: 2rem;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.title-highlight {
    display: block;
    color: #ffd700;
    font-size: 0.6em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.title-main {
    display: block;
    background: linear-gradient(45deg, #ffffff, #e6ffe6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.hero-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Botões */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.btn:active {
    transform: translateY(2px) translateZ(0);
}

.btn i {
    font-size: 1.1em;
}

.btn-primary {
    background-color: #16a085; /* Verde oceano */
    color: white;
}

.btn-primary:hover {
    background-color: #1abc9c; /* Verde oceano mais claro no hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 188, 156, 0.3);
}

.btn-secondary {
    background-color: #27ae60; /* Verde */
    color: white;
}

.btn-secondary:hover {
    background-color: #2ecc71; /* Verde mais claro no hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Estilos para os contadores de tempo */
.contador-tempo {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contador-tempo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a085 0%, #2ecc71 100%);
    opacity: 0.9;
}

.contador-tempo .rotulo {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-bottom: 0.5rem;
}

.contador-tempo .rotulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.contador-tempo .tempo {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
}

.contador-tempo .tempo span {
    min-width: 1.8rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 0.25rem;
}

.contador-tempo .tempo span::after {
    content: attr(data-label);
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.contador-tempo .dias { color: #ffe100; } /* Verde oceano */
.contador-tempo .horas { color: #00fffb; } /* Verde */
.contador-tempo .minutos { color: #2ecc71; } /* Verde mais claro */
.contador-tempo .segundos { color: #1abc9c; } /* Verde água */

/* Efeito de brilho suave */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 160, 133, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(22, 160, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 160, 133, 0); }
}

.contador-tempo {
    animation: pulse 3s infinite;
}

/* Efeito hover */
.contador-tempo:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
    .contador-tempo {
        padding: 0.8rem 1.2rem;
        min-width: 180px;
    }
    
    .contador-tempo .tempo {
        gap: 0.3rem;
    }
    
    .contador-tempo .tempo span {
        min-width: 1.5rem;
    }
}

/* Debug styles for countdown timers */
.contador-tempo {
    display: block !important; /* Force display */
    opacity: 1 !important; /* Ensure fully visible */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
    margin: 15px auto !important;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #27ae60 !important; /* Verde */
    color: white !important;
    border: 2px solid #27ae60 !important;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2ecc71 !important; /* Verde mais claro no hover */
    border-color: #2ecc71 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.features, .categories {
    padding: 5rem 0;
    background: #f8f9fa;
}

.features:nth-child(even) {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(22, 160, 133, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(22, 160, 133, 0.15);
    border-color: rgba(22, 160, 133, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #16a085, #1abc9c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(22, 160, 133, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background: #f8f9fa;
    width: 100%;
}

.categories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.categories .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
    padding-bottom: 1.5rem;
}

.categories .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

/* Radio Button Styles */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 10px;
    margin: 0.5rem 0;
    align-items: stretch;
}

.radio-option {
    display: grid;
    grid-template-columns: 18px 1fr; /* rádio + texto */
    column-gap: 6px; /* aproxima o texto do rádio */
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    width: 100%;
    min-height: 52px;
    user-select: none;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.radio-option input[type="radio"] {
    margin: 0; /* sem espaçamento extra */
    justify-self: start; /* encosta o rádio à esquerda */
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #1a73e8;
    font-weight: 500;
}

/* Radio label wraps nicely */
.radio-label {
    line-height: 1.25;
    white-space: nowrap; /* evita quebra no desktop quando houver espaço */
}

/* Mobile: 1 por linha para evitar amontoar */
@media (max-width: 600px) {
  .radio-group {
    grid-template-columns: 1fr;
  }
  .radio-label {
    white-space: normal; /* no mobile pode quebrar linha */
  }
}

/* Form Validation States */
.is-valid {
    border-color: #10b981 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid {
    border-color: #ef4444 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Logo Upload Styles */
.logo-upload-container {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.logo-upload-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    margin-top: 0.5rem;
}

.logo-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
}

.logo-preview:hover {
    border-color: #4a6cf7;
    background-color: #f0f4ff;
}

.logo-preview i {
    font-size: 2.5rem;
    color: #777;
    margin-bottom: 10px;
}

.logo-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    background-color: white;
    padding: 10px;
}

.logo-preview span,
.logo-preview small {
    position: relative;
    z-index: 2;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.logo-preview.has-image span,
.logo-preview.has-image i,
.logo-preview.has-image small {
    display: none;
}

.btn-remove-logo {
    display: block;
    margin: 10px auto 0;
    padding: 5px 15px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-remove-logo:hover {
    background-color: #ff7875;
}

.btn-remove-logo i {
    margin-right: 5px;
}

/* Business Card Styles */
.business-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.business-card.selected {
    border: 2px solid #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.business-logo {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: white;
    border-bottom: 1px solid #eee;
}

.business-logo.default-logo {
    font-size: 3rem;
    color: #adb5bd;
}

.business-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.business-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.business-info p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
    flex: 1;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    width: min(800px, 95vw);
    margin: 2rem auto;
    background: white; /* desktop/tablet padrão */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* desktop */
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container, 
.voting-container,
.page,
.form-step {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
    -webkit-font-smoothing: subpixel-antialiased;
}

/* Melhoria no foco dos campos de formulário */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus:not([type="radio"]):not([type="checkbox"]),
select:focus,
textarea:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25) !important;
    outline: none;
}

/* Melhoria nos botões */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.5) !important;
}

.form-header {
    background: linear-gradient(135deg, #27ae60 0%, #1abc9c 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-btn {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:active {
    transform: scale(0.95) translateZ(0);
}

.back-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Form Steps */
.form-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    pointer-events: none;
    backface-visibility: hidden;
    padding: 20px;
    background: white; /* desktop/tablet padrão */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* desktop */
    overflow-y: auto;
    overflow-x: hidden; /* evita barra horizontal dentro do passo */
    -webkit-overflow-scrolling: touch;
}

.form-step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    min-width: 0; /* permite encolher sem estourar */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

/* Estilo para a descrição da categoria */
.category-description {
    display: none;
    font-size: 0.85rem;
    color: #666;
    background-color: #f8f9fa;
    border-left: 3px solid #4e73df;
    padding: 0.5rem 0.75rem;
    margin-top: 0.25rem;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

/* Garante que os campos full-width ocupem 100% da largura do grid */
.form-group.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

/* Garante que os inputs dentro de full-width ocupem 100% */
.form-group.full-width input,
.form-group.full-width textarea,
.form-group.full-width select,
#businessAddress,
#businessName {
    width: 100%;
    box-sizing: border-box;
}

/* Ajuste específico para o campo de Nome do Negócio */
#businessName {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    width: 100%;
    max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.voting-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding: 0 1rem;
}

.voting-actions .btn {
    flex: 0 0 auto; /* don't grow to full width */
    width: auto !important; /* ensure not stretched by other rules */
    min-width: 160px;
    white-space: nowrap;
    margin: 0;
}

/* Keep actions on one line for small-and-up screens when space allows */
@media (min-width: 480px) {
  .voting-actions {
    flex-wrap: nowrap;
  }
  .voting-actions .btn {
    min-width: 180px;
  }
}

/* Internal spacing for general containers */
.container > * + * {
    margin-top: 1.25rem;
}

.form-container > * + * {
    margin-top: 1rem;
}

/* Estilo para o botão de pular categoria */

/* ---- Layout hotfix: previne altura extra quando o conteúdo é curto ---- */
.form-container {
    height: auto !important;
}

.form-step {
    bottom: auto; /* evita esticar quando for relative/absolute */
}

.form-step.active {
    height: auto !important;
    min-height: auto !important;
}
#skipCategoryBtn.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

#skipCategoryBtn.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
}

#skipCategoryBtn.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

#skipCategoryBtn.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .voting-actions {
        flex-direction: row; /* keep side-by-side on mobile */
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .voting-actions .btn {
        flex: 1 1 calc(50% - 0.5rem); /* two per line when possible */
        min-width: 140px;
        width: auto !important;
        margin: 0;
    }

    /* Tighter internal spacing on mobile */
    .container > * + * {
        margin-top: 0.75rem;
    }
    .form-container > * + * {
        margin-top: 0.75rem;
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee; /* desktop padrão */
    position: relative;
    z-index: 10;
    background: white; /* desktop padrão */
    box-shadow: none;
}

.form-step h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Business Type Selector */
.business-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 520px) {
    .business-type-selector {
        grid-template-columns: 1fr; /* força 1 coluna em telas muito estreitas */
    }
    .form-grid {
        grid-template-columns: 1fr; /* garante 1 coluna e elimina overflow */
    }
}

/* Mobile: apenas o header em full-bleed; corpo mantém margens agradáveis */
@media (max-width: 600px) {
  /* mantém container centrado e com margens no mobile */
  .form-container {
    width: min(800px, 95vw);
    margin: 1rem auto;
    border-radius: 12px;
    overflow: visible; /* permite o header ultrapassar sem ser cortado */
  }
  /* expande somente o header para a largura total da viewport */
  .form-header {
    width: 100vw; /* garante 100% da viewport */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0; /* topo sem cantos no encontro com as bordas */
    padding-left: 20px;
    padding-right: 20px;
  }
  /* mantém cantos arredondados do conteúdo para separar visualmente do header */
  .form-step {
    border-radius: 12px;
  }
}

.type-option {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-option:hover {
    border-color: #667eea;
    transform: translateY(-5px);
}

.type-option.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.type-option i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.type-option h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.type-option p {
    color: #666;
    font-size: 0.9rem;
}

/* Partner logos strip */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px; /* consistent spacing between elements */
  margin-top: 12px;
  margin-bottom: 16px; /* spacing from action buttons */
  flex-wrap: wrap;
}

.partner-logos img {
  display: block;
  height: 56px; /* fixed height to keep logos uniform */
  width: auto;
  object-fit: contain;
}

/* Mobile: keep all partner logos on a single line */
@media (max-width: 640px) {
  .partner-logos {
    flex-wrap: nowrap; /* prevent wrapping */
    gap: 8px; /* tighter spacing on mobile */
    margin-bottom: 20px; /* a bit more room on mobile */
    justify-content: center;
  }
  .partner-logos img {
    height: 40px; /* smaller fixed height on mobile to fit 3 in a row */
    max-width: none; /* don't constrain width to half, keep intrinsic ratio */
  }
}

/* Larger screens: allow slightly bigger logos and maintain spacing */
@media (min-width: 641px) {
  .partner-logos {
    gap: 20px;
  }
  .partner-logos img {
    height: 64px; /* fixed height on larger screens */
  }
}

.voting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}

.voting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    gap: 0.5rem;
}

.voting-progress {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
}

.back-btn {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

/* Custom Alert */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.custom-alert-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.custom-alert h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.custom-alert p {
    color: #666;
    margin-bottom: 1.5rem;
}

.custom-alert button {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.custom-alert button:hover {
    background: #3a5bd9;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff4444 !important;
}

.voting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.voting-progress {
    flex: 1;
    max-width: 100%;
}

.progress-bar {
    --progress: 0%;
    width: 100% !important;
    height: 18px;
    /* Draw gradient fill as background layer based on --progress */
    background-image: linear-gradient(45deg, #667eea, #764ba2);
    background-size: var(--progress) 100%;
    background-repeat: no-repeat;
    background-position: left center;
    background-color: #e9ecef; /* track */
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: none;
    box-shadow: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-size 0.25s ease;
}

.progress-fill {
    display: none; /* no inner fill; using text instead */
}

.progress-bar #progressPercent {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.progress-bar #progressPercent.on-fill {
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.voting-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: #666;
    font-size: 1.1rem;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.business-card {
background: #f8f9fa;
border: 3px solid #e9ecef;
border-radius: 15px;
padding: 2rem;
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
}

.business-card:hover {
border-color: #667eea;
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.business-card.selected {
border-color: #667eea;
background: #f8f9ff;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.business-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.business-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.voting-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Estilo específico para botões na seção de votação */
.voting-actions .btn {
    min-width: 150px;
    justify-content: center;
}

/* Garantindo que o botão secundário tenha a aparência correta */
.voting-actions .btn-secondary {
    background-color: #27ae60 !important;
    color: white !important;
    border: 2px solid #27ae60 !important;
}

.voting-actions .btn-secondary:hover {
    background-color: #2ecc71 !important;
    border-color: #2ecc71 !important;
}

/* Voting layout improvements (scoped) */
.voting-content {
    padding: 2.5rem;
}

.voting-content .businesses-grid, .voting-content #businessesGrid, #businessesGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2rem;
}

.voting-content .business-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.voting-content .business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-color: #dbe2ea;
}

.voting-content .business-card.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: #f8faff;
}

.voting-content .business-logo {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 220px;
    background: #f7f8fa;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #eef1f5;
    border-radius: 12px;
}

.voting-content .business-logo.default-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b8c4;
    font-size: 2.25rem;
}

.voting-content .business-info h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #222;
}

.voting-content .business-info p {
    margin: 0.25rem 0 0 0;
    color: #667085;
    line-height: 1.5;
}

.voting-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0.85) 60%, rgba(255,255,255,0));
    padding-bottom: 1rem;
}

.voting-actions .btn {
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

/* Responsive tuning for voting grid */
@media (min-width: 1200px) {
    .voting-content .businesses-grid, .voting-content #businessesGrid, #businessesGrid {
        grid-template-columns: repeat(3, minmax(320px, 1fr));
        gap: 2.25rem;
    }
}

@media (max-width: 991px) {
    /* Keep header items in a row on small screens to avoid wrapping overlap */
    .voting-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .voting-content {
        padding: 2rem 1.25rem;
    }
    .voting-content .businesses-grid, .voting-content #businessesGrid, #businessesGrid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    /* Voting progress: restore proper proportions on small screens */
    .voting-header {
        padding: 1rem 0;
        margin-bottom: 1.25rem;
    }
    .voting-progress {
        width: 100%;
        max-width: 100%;
    }
    .progress-bar {
        height: 18px;
        border-radius: 999px;
    }
    .progress-text {
        font-size: 0.85rem;
    }
    .voting-content .businesses-grid, .voting-content #businessesGrid, #businessesGrid {
        grid-template-columns: 1fr;
    }
    .voting-content .business-logo {
        aspect-ratio: 16/10;
        max-height: 180px;
    }
    /* Reduce outer paddings so cards use the screen width better */
    .voting-container {
        padding: 0.75rem !important;
    }
    .voting-content {
        padding: 1rem 0.75rem !important;
        box-shadow: none !important;
        background: transparent;
        border-radius: 12px;
    }
    .voting-content .business-card {
        padding: 1rem !important;
        border-width: 1px;
    }
    .voting-content .businesses-grid, .voting-content #businessesGrid, #businessesGrid {
        gap: 0.9rem;
    }
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.modal-body p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

/* LGPD Consent Styles */
.lgpd-consent {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1abc9c;
}

.lgpd-consent .form-check-input {
    margin-top: 0.25rem;
}

.lgpd-consent .form-check-label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.lgpd-consent a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: 500;
}

.lgpd-consent a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .hero-header {
        justify-content: flex-start;
        padding-top: 100px;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-action-item {
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .business-type-selector {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 0; /* remove side gutters on mobile */
        margin: 0 auto; /* remove top gap */
    }
    
    .form-step {
        padding: 1rem 0.5rem; /* tighter side padding */
    }

    /* reduce header padding and make top flush */
    .form-header {
        padding: 0.5rem 0.75rem 1rem; /* smaller top padding */
    }

    /* move back button closer to the top and slightly smaller */
    .back-btn {
        top: 0.5rem;
        left: 0.75rem;
        width: 36px;
        height: 36px;
    }

    /* remove top rounding so the header encosta no topo */
    .form-container {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    
    .voting-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .voting-actions {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 2rem 1rem;
        margin: 0.5rem; /* slightly tighter modal margins on mobile */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 0.6rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .hero-header {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        gap: 1rem;
    }
    
    .contador-tempo {
        padding: 0.8rem 1rem;
        min-width: auto;
        width: 100%;
    }
    
    .contador-tempo .tempo {
        font-size: 1.1rem;
    }
    
    .contador-tempo .rotulo {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .nav-brand i {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==============================
   Categoria: Autocomplete & Chip
   ============================== */
.category-autocomplete {
    position: relative;
}

.category-autocomplete .form-control {
    background: #f8f9fa;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-height: 260px;
    overflow-y: auto;
    list-style: none;
    padding: 6px 0;
    display: none; /* aberto via JS */
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f0f4ff;
}

.autocomplete-other {
    color: #1a73e8;
    font-weight: 600;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f4ea; /* verde suave */
    color: #1a7f37;
    border: 1px solid #c7ebd0;
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.category-chip .chip-clear {
    background: transparent;
    border: none;
    color: #1a7f37;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.category-chip .chip-clear:hover {
    opacity: 0.8;
}

  /* Icon styles inside autocomplete and chip */
  .cat-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      color: inherit;
      flex: 0 0 auto;
  }
  img.cat-icon {
      width: 18px;
      height: 18px;
      object-fit: contain;
  }
  .autocomplete-item .cat-icon {
      margin-right: 8px;
  }
  .category-chip .cat-icon {
      margin-right: 6px;
  }
