/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #22356f;
    --secondary-blue: #22356f;
    --primary-yellow: #fbbf24;
    --secondary-yellow: #fed7aa;
    --light-yellow: #fef3c7;
    --dark-blue: #22356f;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --success-green: #10b981;
    --error-red: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .site-title {
    margin: 0;
    margin-right: auto;
    display: block;
    text-align: left;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.logo i {
    font-size: 1.25rem;
    color: var(--primary-yellow);
}

.header .container .logo-link {
    text-decoration: none; /* Remove sublinhado do link */
    color: inherit; /* Garante que a cor do texto seja herdada */
    display: block; /* Faz o link ocupar todo o espaço do logo */
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-yellow);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
    position: static;
    margin-left: auto;
    transform: none;
    right: unset;
    top: unset;
    z-index: 1100;
    margin-top: -10px;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow), #f59e0b);
    color: var(--primary-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f59e0b, var(--primary-yellow));
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-compact {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.btn-portal-empresas {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.btn-portal-empresas:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-portal-empresas i {
    font-size: 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white), var(--light-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Filtros */
.filters {
    background: var(--gray-50);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.filter-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input, .filter-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

/* Seções */
.vagas, .sobre {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.ver-todas-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-ver-todas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
    border: 1px solid var(--primary-blue);
    cursor: pointer;
}

.btn-ver-todas:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-ver-todas i {
    font-size: 1rem;
}

.btn-ver-todas span {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: normal;
    margin-left: 0.25rem;
}

/* Grid de Vagas */
.vagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.vaga-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.vaga-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-yellow), #f59e0b);
}

.vaga-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.vaga-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.vaga-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.vaga-empresa {
    color: var(--text-light);
    font-weight: 500;
}

.vaga-categoria {
    background: var(--light-yellow);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.vaga-info {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.vaga-info-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.vaga-info-item i {
    color: var(--primary-yellow);
}

.vaga-descricao {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.vaga-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-candidatar {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.btn-candidatar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-200);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Sobre */
.sobre {
    background: var(--gray-50);
}

.sobre-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.sobre-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.feature i {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-100);
}

/* Formulário */
.form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-info .logo {
    margin-bottom: 1rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Portal Empresas fica igual aos outros links no mobile */
    .btn-portal-empresas {
        background: none !important;
        border: none !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 0 !important;
        font-size: 1rem !important;
        backdrop-filter: none !important;
        transform: none !important;
        box-shadow: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .btn-portal-empresas:hover {
        background: none !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        transform: none !important;
        box-shadow: none !important;
        color: var(--primary-yellow) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    #btnPostarVaga {
        margin: 0.5rem 1rem;
        width: calc(100% - 2rem);
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .filters {
        padding: 1.5rem 0;
    }

    .filter-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .vagas, .sobre {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .vagas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vaga-card {
        padding: 1.5rem;
    }

    .vaga-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .vaga-categoria {
        align-self: flex-start;
    }

    .vaga-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social {
        justify-content: center;
    }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-header {
        padding: 1rem;
    }

    .form {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
  .crie-curriculo .container > div {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 20px 8px !important;
    align-items: center !important;
  }
  .crie-curriculo .container h2 {
    font-size: 1.3rem !important;
    text-align: center;
  }
  .crie-curriculo .container p {
    font-size: 1rem !important;
    text-align: center;
  }
  .crie-curriculo .container a {
    width: 100% !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 12px 0 !important;
  }
  .crie-curriculo .container [style*='background: #e0e7ff'] {
    width: 60px !important;
    height: 60px !important;
  }
  .crie-curriculo .container i.fas.fa-file-alt {
    font-size: 28px !important;
  }
}


/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vaga-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state local */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-light);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: slideInRight 0.3s ease-out;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.success-content i {
    font-size: 1.25rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Melhorias adicionais para mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 0.7rem;
    }

    .logo i {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .vaga-title {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .success-message {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
    }
} 

.hidden {
  display: none !important;
} 

.vagas-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}
.vagas-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e7ef;
  border-top: 4px solid #22356f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.cookie-notice {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1000;
}

.cookie-notice p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    flex-grow: 1;
    padding-right: 15px;
}

.cookie-notice a {
    color: #22356f;
    text-decoration: underline;
}

.btn-accept-cookies {
    background-color: #22356f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-accept-cookies:hover {
    background-color: #1d4ed8;
}

@media (max-width: 768px) {
    .cookie-notice {
        flex-direction: column;
        padding: 10px;
    }

    .cookie-notice p {
        padding-right: 0;
        margin-bottom: 10px;
    }
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #22356f;
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  display: inline-block;
}
.site-title:hover {
  text-decoration: underline;
}
footer .site-title,
.footer-content .site-title,
.footer-info .site-title {
  color: #fff !important;
}
.header .site-title,
.header .logo .site-title,
.container > .site-title {
  color: #fff !important;
}

.footer-content a[href*="instagram.com/irecodeoficial"],
.footer-info a[href*="instagram.com/irecodeoficial"],
footer a[href*="instagram.com/irecodeoficial"] {
  color: #fff !important;
  font-weight: 800;
  text-decoration: underline;
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-info, .footer-links, .footer-social {
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    margin: 0;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center !important;
  }
}

/* =====================================================
   MODAL FUNIL "FUNCIONÁRIO PERFEITO"
   ===================================================== */

.modal-funil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-funil.active {
    opacity: 1;
    visibility: visible;
}

.modal-funil-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-funil.active .modal-funil-content {
    transform: scale(1);
}

.modal-funil-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-funil-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22356f, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(34, 53, 111, 0.3);
}

.modal-funil-logo i {
    font-size: 2rem;
    color: white;
}

.modal-funil-header h2 {
    color: #22356f;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.modal-funil-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.modal-funil-body {
    margin-bottom: 2rem;
}

.pergunta-funil h3 {
    color: #22356f;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.pergunta-funil p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

.form-funil {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-funil {
    display: flex;
    flex-direction: column;
}

.form-group-funil label {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group-funil select,
.form-group-funil input,
.form-group-funil textarea {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group-funil textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group-funil input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-group-funil select:focus,
.form-group-funil input:focus {
    outline: none;
    border-color: #22356f;
    box-shadow: 0 0 0 3px rgba(34, 53, 111, 0.1);
}

.modal-funil-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-funil {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.btn-funil-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-funil-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-funil-primary {
    background: linear-gradient(135deg, #22356f, #4f46e5);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 53, 111, 0.3);
}

.btn-funil-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 53, 111, 0.4);
}

.btn-funil-primary:active {
    transform: translateY(0);
}

/* Opções do funil */
.opcoes-funil {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-opcao {
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
}

.btn-opcao:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-opcao-sim {
    border-color: #22356f;
    color: #22356f;
}

.btn-opcao-sim:hover {
    background: #22356f;
    color: white;
}

.btn-opcao-nao {
    border-color: #6b7280;
    color: #6b7280;
}

.btn-opcao-nao:hover {
    background: #6b7280;
    color: white;
}

.btn-opcao i {
    font-size: 1.1rem;
}

/* Checkbox do funil */
.checkbox-group-funil {
    margin-top: 0.5rem;
}

.checkbox-option-funil {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
}

.checkbox-option-funil input[type="checkbox"] {
    display: none;
}

.checkbox-custom-funil {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option-funil input[type="checkbox"]:checked + .checkbox-custom-funil {
    background: #22356f;
    border-color: #22356f;
}

.checkbox-option-funil input[type="checkbox"]:checked + .checkbox-custom-funil::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Texto de ajuda */
.form-help {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}

/* Mensagem de sucesso do funil */
.mensagem-funil {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
}

.mensagem-funil-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mensagem-funil-content i {
    font-size: 1.2rem;
}

.mensagem-funil-content p {
    margin: 0;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-funil-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-funil-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-funil-logo {
        width: 60px;
        height: 60px;
    }
    
    .modal-funil-logo i {
        font-size: 1.5rem;
    }
    
    .modal-funil-footer {
        flex-direction: column;
    }
    
    .btn-funil {
        width: 100%;
    }
    
    .mensagem-funil {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-funil-content {
        padding: 1rem;
    }
    
    .modal-funil-header h2 {
        font-size: 1.2rem;
    }
    
    .pergunta-funil h3 {
        font-size: 1.1rem;
    }
}