@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --danger: #f72585;
  --success: #4cc9f0;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --border-radius: 0.5rem;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--gray-800);
  line-height: 1.6;
  padding: 0;
  min-height: 100vh;
}

/* Container principal */
.formulario-cadastro {
  max-width: 900px;
  margin: 2rem auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: 0;
}

.formulario-cadastro h2 {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.formulario-cadastro h2 i {
  font-size: 1.25rem;
}

.obrigatorio {
  text-align: center;
  padding: 0.75rem;
  background-color: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
}

/* Campos do formulário */
.grupo-campos {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.grupo-campos:last-child {
  border-bottom: none;
}

.grupo-campos legend {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.grupo-campos legend i {
  font-size: 1rem;
  color: var(--accent);
}

.campo-form {
  margin-bottom: 1.25rem;
  position: relative;
}

.campo-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.campo-form input:not([type="radio"]):not([type="checkbox"]),
.campo-form select,
.campo-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--gray-100);
}

.campo-form input:focus,
.campo-form select:focus,
.campo-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  background-color: white;
}

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

/* Campos duplos */
.campo-duplo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .campo-duplo {
    grid-template-columns: 1fr;
  }
}

/* Grupos de radio/checkbox */
.grupo-radio,
.grupo-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.grupo-radio label,
.grupo-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.grupo-radio label:hover,
.grupo-checkbox label:hover {
  background-color: var(--gray-100);
}

.grupo-radio input[type="radio"],
.grupo-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-400);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.grupo-radio input[type="radio"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
}

.grupo-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
}

.grupo-checkbox input[type="checkbox"] {
  border-radius: 4px;
}

.grupo-checkbox input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  position: relative;
}

.grupo-checkbox input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  position: absolute;
  font-size: 0.7rem;
  top: 1px;
  left: 2px;
}

/* Botões */
.botoes-form {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.botao-enviar,
.botao-limpar {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.botao-enviar {
  background-color: var(--primary);
  color: white;
}

.botao-enviar:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.botao-limpar {
  background-color: var(--gray-200);
  color: var(--gray-700);
}

.botao-limpar:hover {
  background-color: var(--gray-300);
}

/* Termos */
.termos-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  cursor: pointer;
}

.termos-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.termos-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.termos-label a:hover {
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
  body {
    padding: 0;
    background: white;
  }
  
  .formulario-cadastro {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  
  .grupo-campos {
    padding: 1rem;
  }
  
  .botoes-form {
    flex-direction: column;
  }
  
  .botao-enviar,
  .botao-limpar {
    width: 100%;
    justify-content: center;
  }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.grupo-campos {
  animation: fadeIn 0.3s ease forwards;
}

.grupo-campos:nth-child(2) { animation-delay: 0.1s; }
.grupo-campos:nth-child(3) { animation-delay: 0.2s; }
.grupo-campos:nth-child(4) { animation-delay: 0.3s; }
.grupo-campos:nth-child(5) { animation-delay: 0.4s; }
.grupo-campos:nth-child(6) { animation-delay: 0.5s; }

/* Estilos para a página de confirmação */
.confirmacao-inscricao {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.confirmacao-inscricao h2 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirmacao-inscricao h2 i {
    font-size: 2.2rem;
}

.dados-inscricao {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.dados-inscricao p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
}

.dados-inscricao strong {
    color: #333;
    min-width: 160px;
    display: inline-block;
}

.downloads {
    margin: 2rem 0;
}

.downloads h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.botoes-download {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.botoes-download .botao {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.botoes-download .botao i {
    font-size: 1.2rem;
}

.botoes-download .botao:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acoes {
    margin-top: 2rem;
}

.acoes .botao-secundario {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.acoes .botao-secundario:hover {
    background: #e0e0e0;
}

/* Efeito de card moderno */
.card-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .confirmacao-inscricao {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .botoes-download {
        flex-direction: column;
    }
    
    .botoes-download .botao {
        width: 100%;
    }
}

/* ========== HEADER MODERNO ========== */
.cabecalho-moderno {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.logo-icon {
    margin-right: 0.5rem;
    color: #3498db;
    font-size: 1.8rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}

.menu-principal ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
    background: #f8f9fa;
}

.nav-link.highlight {
    background: #3498db;
    color: white;
}

.nav-link.highlight:hover {
    background: #2980b9;
}

/* ========== FOOTER MODERNO ========== */
.rodape-moderno {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

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

.footer-col {
    margin-bottom: 1.5rem;
}

.logo-footer .logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.logo-footer .logo-icon {
    color: #3498db;
}

.slogan {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ecf0f1;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-links i {
    color: #bdc3c7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

.footer-links i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.botao-newsletter {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botao-newsletter:hover {
    background: #2980b9;
}

.newsletter-info {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.back-to-top .top-link {
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-top .top-link:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

/* ========== MODAL MODERNO ========== */
.modal-moderno {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-conteudo {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s;
}

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

.fechar-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #7f8c8d;
}

.fechar-modal:hover {
    color: #e74c3c;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-principal {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
    }
    
    .menu-principal.active {
        clip-path: circle(1000px at 90% -10%);
    }
    
    .menu-principal ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

.logo-header-img {
    height: 50px; /* Adjust as needed */
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-header-img:hover {
    opacity: 0.8;
}

.popup-overlay {
    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;
}

.popup-container {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.popup-header h2 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.fechar-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0 10px;
}

.popup-content {
    padding: 20px;
}

.popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}