/* Estilos base */
:root {
    --primary-color: #2E8B57; /* Sea Green - Escurecido para melhor contraste */
    --primary-dark: #1E5E3A; /* Verde mais escuro para contraste */
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --text-color: #212529; /* Cinza bem escuro para texto */
    --error-color: #dc3545; /* Vermelho para erros */
    --background-color: #f8f9fa; /* Fundo ligeiramente cinza */
    --card-background: #ffffff; /* Fundo branco para cards */
    --border-color: #dee2e6; /* Borda cinza claro */
    --focus-color: #0d6efd; /* Azul para foco */
    --header-bg: #ffffff; /* Fundo branco para header */
    --footer-bg: #f1f3f5; /* Fundo cinza claro para footer */
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 20px;
}

/* Melhorias de contraste e acessibilidade */
input:focus, 
textarea:focus, 
select:focus, 
button:focus {
    outline: 3px solid var(--focus-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: bold;
}

/* Container principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 30px;
}

.form-container {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabeçalho da etapa */
.step-header {
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.step-header h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

/* Indicador de progresso */
.progress-container {
    padding: 15px 20px 5px;
    background-color: #f5f5f5;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-dark);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Questões e formulário */
form {
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
    padding: 0 20px;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-weight: bold;
    margin-bottom: 10px;
    width: 100%;
}

.question {
    display: none;
    padding-bottom: 20px;
}

.question.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

/* Campos do formulário */
input, 
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    margin-top: 8px;
    transition: border 0.3s;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-color);
}

input:hover, 
select:hover, 
textarea:hover {
    border-color: var(--primary-color);
}

input:focus, 
select:focus, 
textarea:focus {
    border-color: var(--primary-dark);
}

input.error, 
select.error, 
textarea.error {
    border-color: var(--error-color);
    background-color: rgba(231, 76, 60, 0.05);
}

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

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.option-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: white;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 60px;
}

.option-button:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-button.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.option-button.selected:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.option-button .check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-button.selected .check-icon {
    opacity: 1;
}

/* Botões de navegação */
.navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #f9f9f9;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-dark); /* Usar cor escura nos botões */
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--primary-color); /* Cor um pouco mais clara no hover */
}

#prevBtn {
    background-color: #95a5a6;
}

#prevBtn:hover {
    background-color: #7f8c8d;
}

/* Área de resultado */
#result {
    padding: 20px;
}

.result-content {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-dark);
}

.result-content h3:first-child {
    margin-top: 0;
}

.result-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#printBtn {
    background-color: #34495e;
}

#printBtn:hover {
    background-color: #2c3e50;
}

#emailBtn {
    background-color: var(--secondary-color);
}

#emailBtn:hover {
    background-color: var(--secondary-dark);
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: var(--text-color);
}

.convidado-info {
    background-color: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 8px;
    margin: 5px 0;
}

.convidado-info span {
    margin-right: 15px;
}

.convidado-info span strong {
    color: var(--primary-dark);
    margin-right: 5px;
}

/* Animação de carregamento */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: var(--primary-color);
    font-size: 16px;
    text-align: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pré-formatado para o roteiro */
pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    font-family: monospace;
}

.isca-digital {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid var(--secondary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .options {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    button {
        width: 100%;
    }
    
    .convidado-info {
        flex-direction: column;
        gap: 8px;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 8px;
    }
    
    .actions {
        flex-direction: column;
    }
}

/* Estilos para impressão */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .navigation, 
    .progress-container, 
    .actions {
        display: none;
    }
    
    .step-header {
        background-color: white;
        padding: 0;
        margin-bottom: 10px;
    }
    
    #result {
        padding: 0;
    }
    
    .result-content {
        border: none;
        padding: 0;
    }
}

.error-container {
    background-color: #fff;
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.error-container h3 {
    color: var(--error-color);
    margin-bottom: 15px;
}

.error-container p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.retry-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.retry-button:hover {
    background-color: var(--primary-dark);
}

/* Header */
.header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    color: var(--primary-dark); /* Usar cor escura no header */
    font-size: 1.2rem;
    margin: 0;
}

.logo span {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Botão de Info */
.info-button {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
}

.info-button:hover {
    background-color: rgba(0,0,0,0.05);
    transform: scale(1.1);
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .info-button {
        font-size: 1.2rem;
        padding: 0.3rem;
        width: 32px;
        height: 32px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .header {
        padding-right: 50px;
    }
}

/* Modal de Informações */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 2rem;
    text-align: center;
}

.modal.active {
    display: block;
}

.modal-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

.modal-content p {
    margin: 0.7rem 0;
    color: var(--text-color);
}

.modal-content .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.modal-content .social-links a {
    color: var(--primary-dark);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.modal-content .social-links a:hover {
    transform: scale(1.2);
}

.close-modal {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    z-index: 2010; /* Acima do modal */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #333;
    background-color: rgba(0,0,0,0.05);
}

#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    cursor: pointer;
}

#modalOverlay.active {
    display: block;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.result-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.action-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background-color: #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    white-space: nowrap;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-button i {
    font-size: 18px;
}

.whatsapp-button {
    background-color: #25D366;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Seção de introdução */
.intro-section {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-section h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.intro-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

.benefit-item i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.intro-cta {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .intro-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .intro-text, .intro-cta {
        font-size: 1rem;
    }
}

/* Landing Page */
.landing-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto;
    padding: 16px;
    padding-top: 30px;
}

.landing-page .intro-section {
    max-width: 800px;
    text-align: center;
    padding: 3rem;
    border-radius: 12px;
    background-color: var(--card-background);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.landing-page .intro-section h2 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

.landing-page .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.intro-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.benefit-item i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.start-button {
    margin-top: 2rem;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background-color: var(--primary-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    background-color: #1a5234; /* Slightly darker */
}

.start-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Form Section */
.form-section {
    padding-top: 20px;
} 