/* Estilos do Teste de Personalidade */
#personality-test-container {
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Seções do teste */
.test-section {
    display: none;
    background: transparent;
    border-radius: 12px;
    padding: 30px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    margin-bottom: 10px;
    position: relative;
	max-width: 960px;
	margin: 0 auto;
}

.test-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Introdução */
#test-intro h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
}

#test-intro p {
    text-align: center;
    color: #ffffff;
    font-size: 1em;
}

.user-info-form {
    max-width: 525px;
    margin: 0 auto;
}

.user-info-form input,
.user-info-form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.user-info-form input:focus,
.user-info-form select:focus {
    outline: none;
    border-color: #3498db;
}

.user-info-form select {
    background-color: white;
    cursor: pointer;
}

.user-info-form select:invalid {
    color: #999;
}

/* Seção de instruções do formulário */
.form-instructions {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border: 1px solid #e3f2fd; */
    border-radius: 12px;
    padding: 10px 20px;
    margin: 25px auto 25px auto;
    max-width: 535px;
    /* box-shadow: 0 2px 10px rgba(52, 152, 219, 0.1); */
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.instruction-icon {
    font-size: 20px;
    flex-shrink: 0;
	display: none;
}

.instruction-item p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Botões */
.btn-primary, .btn-secondary, .btn-success {
    padding: 6px 25px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s;
    margin: 20px 0;
}

.btn-primary {
    background: #00fffe;
    color: #000000;
	border: 2px solid #00fffe;
}

.btn-primary:hover {
    background: #00fffe99;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
	border: 2px solid #fff;
    color: white !important;
}

.btn-secondary:hover {
    background: #333333;
}

.btn-success {
    background: #00fffe;
    color: #000;
}

.btn-success:hover {
    background: #00fffe99;
}

#start-test {
    font-size: 18px;
}

/* Mensagens de erro */
.test-error-message {
	backdrop-filter: blur(6px);
    background-color: #ff000044;
    color: #ff0000;
    border: 2px solid #660000;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in-out;
}

/* Loader Overlay */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #01609750;
	backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

.loader-spinner {
    border: 6px solid #f3f3f3; /* Cinza claro */
    border-top: 6px solid #3498db; /* Azul */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-overlay p {
    font-size: 1.1em;
    font-weight: 500;
    color: #2c3e50;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Barra de progresso */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f130;
    border-radius: 6px;
    margin-bottom: 9px;
    overflow: hidden;
	border: 1px solid #00ffff20;
}

.glow-element {
  background: linear-gradient(to left, transparent 0%, rgba(0, 255, 255, 0.4) 30%, rgba(0, 255, 255, 0.2) 40%, transparent 100%);
  background-size: 200% 100%;
  animation: moveGlow 3s linear infinite;
}

@keyframes moveGlow {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #00fffe);
    width: 0%;
    border-radius: 6px;
    box-shadow: 10px 10px 13px 3px rgba(0, 255, 254, 0.6);
    transition: width 0.5s ease;
}

.question-counter {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.question-counter #current-question {
    font-weight: bold;
    color: #00fffe;
}

/* Questões */
.question-block h3 {
    color: #fff;
	font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.3em;
    line-height: 1.25;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    background: #00b6ff70;
	backdrop-filter: blur(8px);
    padding: 12px;
    border-radius: 12px;
    border: 0;
    transition: all 0.35s;
}

.option-item:hover {
    background: #00b6ff50;
}

.option-item label {
    display: block;
    margin-bottom: 9px;
    color: #ffffff;
    font-weight: 400;
	text-align: center;
	font-size: 0.9em;
    line-height: 1.33;
}

.rating-scale {
    display: flex;
    gap: 10px;
    align-items: center;
	background: linear-gradient(0deg,rgba(0, 255, 254, 0) 32%, rgba(0, 255, 254, 1) 32%, rgba(0, 255, 254, 1) 68%, rgba(0, 255, 254, 0) 68%);
	justify-content: space-between !important;
}

.rating-scale input[type="radio"] {
    display: none;
}

.rating-scale label {
    width: 35px;
    height: 35px;
    border: 2px solid #00fffe;
    border-radius: 50%;
	color: #000;
	background: #00fffe;
	color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s;
    font-weight: 600;
    margin-bottom: 0;
}

.rating-scale input[type="radio"]:checked + label {
    background: #ffb100;
    border-color: #ffb100;
    font-size: 0.8em;
    color: #000;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    font-weight: 700;
    transform: scale(1.7);
}

.rating-scale label:hover {
    border-color: #ffb100;
    transform: scale(0.8);
}


/* Navegação */
.navigation-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 5px;
}
.navigation-buttons button {
	margin: 5px 0 !important;
}

/* Resultados */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.main-persona h3 {
    color: #43fffe;
    margin-bottom: 15px;
}

.persona-card {
    background: #f8f9fa25;
	backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: left;
}

.persona-card h4 {
    color: #43fffe;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.persona-card p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 15px;
}

.characteristics h5 {
    color: #fff;
    margin-bottom: 10px;
}

.characteristics ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.characteristics li {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* Gráfico */
.results-chart {
    margin: 40px 0;
}

.results-chart h3 {
    text-align: center;
    color: #43fffe;
    margin-bottom: 20px;
}

.chart-container {
    height: 400px;
    position: relative;
	background-color: #ffffff;
}

/* Todas as personas */
.all-personas h3 {
    color: #43fffe;
    margin-bottom: 20px;
}

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

.persona-summary {
    background: #f8f9fa33;
    padding: 15px;
	backdrop-filter: blur(10px);
    border-radius: 8px;
    transition: transform 0.3s;
}

.persona-summary:hover {
    transform: translateY(-2px);
}

.persona-summary.main {
    background: #e8f6f333;
	backdrop-filter: blur(10px);
    border-left-width: 5px !important;
}

.persona-summary h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.persona-summary .score {
    font-weight: bold;
    color: #43fffe;
    font-size: 14px;
    margin-bottom: 8px;
}

.persona-summary p {
    color: #34495e;
    font-size: 14px;
    line-height: 1.4;
}

/* Mensagem final */
.final-message {
    background: #f0f8ff33;
	backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-top: 30px;
}

.final-message p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsividade */
@media (max-width: 768px) {
    #personality-test-container {
        padding: 10px;
    }

    .test-section {
        padding: 0px;
    }
    
    .form-instructions {
        margin: 20px auto 20px auto;
        padding: 8px 15px;
    }
    
    .instruction-item {
        gap: 10px;
    }
    
    .instruction-icon {
        font-size: 18px;
    }
    
    .instruction-item p {
        font-size: 13px;
    }
    
    .rating-scale {
        justify-content: center;
    }
    
    .navigation-buttons {
        flex-direction: row;
        gap: 10px;
		justify-content: space-between;
    }
	.navigation-buttons button {
		width: auto;
	}
    
    .personas-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #test-intro h2 {
        font-size: 1.8em;
    }
    
    .question-block h3 {
        font-size: 1.1em;
    }
    
    .rating-scale label {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .chart-container {
        height: 300px;
		background-color: #ffffff;
        border-radius: 12px;
        zoom: 0.5;
    }
}

/* Estilos de Impressão */
@media print {
    body * {
        visibility: hidden;
    }
    
    #personality-test-container, #personality-test-container * {
        visibility: visible;
    }

    #personality-test-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }

    .action-buttons, .navigation-buttons {
        display: none;
    }

    .results-header h2, .persona-card h4, .results-chart h3, .all-personas h3 {
        color: #000;
    }

    .persona-card, .persona-summary {
        border: 1px solid #ccc;
        box-shadow: none;
        background: #fff;
    }

    .chart-container {
        height: 350px;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
}

/* Estilos para URL única */
.unique-url-message {
    background: #f8f9fa;
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.unique-url-message h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.unique-url-message p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.url-display {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
}

.url-display input {
    flex: 1;
    max-width: 400px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
}

.url-display button {
    padding: 10px 15px;
    white-space: nowrap;
}

.url-note {
    font-size: 0.9em;
    color: #95a5a6;
    font-style: italic;
}

/* Estilos para resultados existentes */
.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-message h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Responsivo para URL única */
@media (max-width: 768px) {
    .url-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .url-display input {
        max-width: none;
    }
    
    .unique-url-message {
        padding: 15px;
    }
}

.lgpd-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    /* background: #f8f9fa;
    border: 1px solid #e3f2fd; 
    border-radius: 8px; */
    padding: 12px 14px;
    font-size: 14px;
    /* box-shadow: 0 1px 4px rgba(52,152,219,0.07); */
}
.lgpd-checkbox-wrapper input[type="checkbox"] {
    accent-color: #3498db;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
.lgpd-label {
    color: #ffffff;
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
    user-select: text;
    padding: 3px 0px;
}
.lgpd-label a {
	color: #00fffe;
}

/* Passo a passo do formulário inicial */
.step-form {
    position: relative;
}
.form-step {
    display: none;
    animation: fadeIn 1.0s;
    position: relative;
}
.form-step input,
.form-step select {
    width: 100%;
    margin-bottom: 0;
}
.form-step .btn-next-step,
.form-step .btn-prev-step {
    background: #00fffe;
    color: #000;
    border: none;
	font-weight: 900;
    border-radius: 12px;
	padding: 8px 30px;
    min-width: 45px;
    font-size: 18px;
    margin: 20px 0;
    cursor: pointer;
    transition: background 0.2s;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.form-step .btn-prev-step {
    background: #00fffe90;
    color: #000;
}
.form-step .btn-next-step:active,
.form-step .btn-next-step:focus {
    background: #999999;
}
.form-step .btn-prev-step:active,
.form-step .btn-prev-step:focus {
    background: #888888;
}
.form-step .btn-next-step[disabled],
.form-step .btn-prev-step[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
.form-step .btn-next-step:last-child,
.form-step .btn-prev-step:last-child {
    margin-right: 0;
}
.form-step .lgpd-checkbox-wrapper {
    margin-bottom: 0px;
}
.form-step {
    text-align: center;
}

.scale-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* background: linear-gradient(90deg, #e3f2fd 0%, #f8f9fa 100%); 
    border-radius: 10px; */
    padding: 12px 18px;
    margin-bottom: 10px;
	backdrop-filter: blur(14px);
    font-size: 1em;
    color: #ffffff;
	border: 1px solid #00fffe;
	border-radius: 12px;
	position: relative;
}
.scale-legend .legend-title {
    font-weight: bold;
    color: #00fffe;
    font-size: 1.05em;
	width: 100%;
    text-align: center;
	margin-bottom: 8px;
}
.scale-legend .legend-item {
    padding: 2px 0;
    font-size: 0.88em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
	width: 25%;
}
.legend-item strong {
	border: 1px solid #00fffe;
    text-align: center;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    line-height: 26px;
    color: #00fffe;
    margin-right: 3px;
	
}

@media (max-width: 600px) {
    .scale-legend {
        flex-direction: row;
        align-items: flex-start;
        font-size: 0.97em;
        padding: 5px 6px;
    }
    .scale-legend .legend-item {
        margin-bottom: 4px;
        margin-right: 0;
    }
}

/* Aviso importante */
.important-notice {
    background: #fff3cd33
    border: 1px solid #ffeaa7;
	backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.85em;
    line-height: 1.5;
    color: #856404;
    text-align: center;
}

.important-notice p {
    margin: 0 0 10px 0;
    color: #7f8c8d;
}

.important-notice p:last-child {
    margin-bottom: 0;
}

.important-notice strong {
    color: #856404;
    font-weight: 600;
}

/* Responsivo para o aviso */
@media (max-width: 768px) {
    .important-notice {
        font-size: 0.8em;
        padding: 12px;
    }
}

/* Responsivo para o fundo animado, topo e footer */
@media (max-width: 768px) {
    .network-background video {
		height: 100%;
		width: auto;
	}
	.main-title {
        width: 100% !important;
        margin-top: 25px !important;
        grid-template-columns: 3fr 1fr !important;
		margin-bottom: 15px !important;
    }
    .logo {
        margin-bottom: 10px;
    }
	.question-box-vazio {
		display: none !important;
	}
	.copy {
		margin-top: 15px;
		font-size: 0.7rem;
	}
	.scale-legend .legend-item {
		width: 50%;
	}
}