/**
 * Frontend CSS for ATC Aviação Quiz
 */

/* Quiz Container */
.atc-quiz-container {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111827;
    overflow: hidden;
}

.quiz-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Quiz Header with Logo */
.quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Adjust content padding when header is present */
.quiz-content {
    padding-top: 6rem;
}

.quiz-content.no-header {
    padding-top: 2rem;
}

/* Quiz Steps */
.quiz-step {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem 2.5rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.quiz-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Welcome Step */
.welcome-header {
    margin-bottom: 3rem;
}

.welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.welcome-icon .dashicons {
    font-size: 3rem;
    color: white;
    width: 50px;
    height: 40px;
}

.quiz-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-description {
    font-size: 1.375rem;
    color: var(--secondary-color);
    margin: 0 0 3rem 0;
    line-height: 1.6;
    font-weight: 400;
}

.welcome-content {
    margin-bottom: 3rem;
}

.welcome-main {
    margin-bottom: 3rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.welcome-text {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon .dashicons {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.feature-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Step Headers */
.step-header {
    margin-bottom: 2.5rem;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.step-icon .dashicons {
    font-size: 2rem;
    color: white;
    display: block;
    margin: 0 auto;
    text-align: center;
    height: 30px;
    width: 50px;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.step-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Form Styles */
.contact-form {
    margin-bottom: 2.5rem;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    z-index: 2;
}

.form-group input {
    width: 100%;
    padding: 1.25rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.required-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
    display: inline-block;
}

/* Checkbox Styles */
.skip-contact {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #6b7280;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    line-height: 1.4;
}

/* Quiz Progress */
.quiz-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 5px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

/* Questions */
.question-container,
.question-item {
    text-align: left;
    margin-bottom: 2rem;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-item {
    margin-bottom: 0.5rem;
}

.answer-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.answer-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.answer-label:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.answer-label:hover::before {
    opacity: 1;
}

.answer-input {
    display: none;
}

.answer-checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.answer-input:checked + .answer-checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.answer-input:checked + .answer-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.answer-text {
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
    transition: all 0.2s ease;
    font-weight: 500;
    z-index: 2;
    position: relative;
}

.answer-input:checked ~ .answer-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Quiz Buttons */
.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quiz-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.quiz-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.quiz-btn:hover::before {
    left: 100%;
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.quiz-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.quiz-btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.quiz-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.quiz-btn-secondary:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.quiz-btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    min-width: 180px;
}

.btn-text {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    text-align: center;
    flex-shrink: 0;
}

.quiz-btn:hover .btn-icon {
    transform: translateX(3px);
}

.quiz-btn-secondary:hover .btn-icon {
    transform: translateX(-3px);
}

/* Force hide previous button when it should be hidden */
#prev-question[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Results */
.results-container {
    text-align: center;
}

.result-content {
    margin-bottom: 2rem;
}

.result-header {
    margin-bottom: 2rem;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.result-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.result-icon .dashicons {
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.result-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.result-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.result-scores {
    margin: 2rem 0;
    text-align: left;
}

.result-scores h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    text-align: center;
}

.scores-list {
    display: grid;
    gap: 0.75rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.score-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.score-name {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.score-value {
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    min-width: 60px;
    text-align: center;
    font-size: 0.875rem;
}

/* Quiz Footer */
.quiz-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.quiz-footer p {
    margin: 0;
}

/* Loading */
.quiz-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-loading p {
    color: var(--secondary-color);
    font-size: 1.125rem;
    margin: 0;
    font-weight: 500;
}

/* Error and Success Messages */
.quiz-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No Questions Message */
.no-questions-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    margin: 2rem 0;
}

.no-questions-message .message-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-questions-message .dashicons {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    display: block;
}

.no-questions-message h3 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.no-questions-message p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-content {
        padding: 1rem;
        max-width: 98%;
        width: 98%;
    }
    
    .quiz-header {
        padding: 0.75rem 0;
    }
    
    .logo-image {
        max-height: 50px;
        max-width: 150px;
    }
    
    .quiz-content {
        padding-top: 5rem;
    }
    
    .quiz-content.no-header {
        padding-top: 1rem;
    }
    
    .quiz-step {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }
    
    /* Ajustar largura da etapa de resultado no mobile */
    #step-results {
        max-width: 98%;
        width: 98%;
        margin: 0 auto;
    }
    
    .quiz-title {
        font-size: 2.25rem;
    }
    
    .quiz-description {
        font-size: 1.125rem;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .question-title {
        font-size: 1.25rem;
    }
    
    .question-item {
        margin-bottom: 1.5rem;
    }
    
    .answer-label {
        padding: 1.25rem;
    }
    
    .step-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .quiz-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .result-title {
        font-size: 2rem;
    }
    
    .welcome-icon,
    .step-icon {
        width: 70px;
        height: 70px;
    }
    
    .welcome-icon .dashicons {
        font-size: 2.5rem;
    }
    
    .step-icon .dashicons {
        font-size: 1.75rem;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 0.5rem 0;
    }
    
    .logo-image {
        max-height: 40px;
        max-width: 120px;
    }
    
    .quiz-content {
        padding-top: 4rem;
    }
    
    .quiz-content.no-header {
        padding-top: 1rem;
    }
    
    .quiz-step {
        padding: 1.5rem 1rem;
        margin: 0 0.25rem;
    }
    
    .quiz-title {
        font-size: 1.875rem;
    }
    
    .form-group input {
        padding: 1rem 1rem 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .answer-label {
        padding: 1rem;
    }
    
    .quiz-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        min-width: 120px;
    }
    
    .quiz-btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .welcome-features {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 0.5rem;
    }
}

/* Accessibility */
.quiz-btn:focus,
.form-group input:focus,
.answer-label:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .step-actions,
    .quiz-footer,
    .quiz-loading {
        display: none !important;
    }
    
    .quiz-step {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        page-break-inside: avoid;
    }
}

/* New Results Page Styles */
.result-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-main-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    line-height: 1.5;
}

.result-profile-section {
    margin-bottom: 3rem;
}

.result-profile-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.result-profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    flex-direction: row;
    text-align: left;
}

.result-profile-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.result-profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.result-profile-placeholder .dashicons {
    font-size: 3rem;
    color: white;
}

.result-profile-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.result-profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result-profile-description {
    font-size: 1.3rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

/* Mobile responsive for new results page */
@media (max-width: 768px) {
    .result-main-title {
        font-size: 2rem;
    }
    
    .result-main-subtitle {
        font-size: 1.1rem;
    }
    
    .result-profile-title {
        font-size: 1.5rem;
    }
    
    .result-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
        max-width: 98%;
        width: 98%;
        align-items: center;
    }
    
    .result-profile-info {
        text-align: center;
        width: 100%;
        align-items: center;
    }
    
    .result-profile-name {
        font-size: 1.8rem;
    }
    
    .result-profile-description {
        font-size: 1rem;
    }
    
    /* Ocultar imagem de fundo e overlay no mobile */
    .atc-quiz-container {
        background-image: none !important;
        background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    }
    
    .atc-quiz-container::before {
        display: none !important;
    }
    

    
    /* Ajustar espaçamento do card para acomodar o botão */
    .result-profile-section {
        margin-bottom: 2rem;
    }
    
    /* Centralizar texto e ícones dos botões no mobile */
    .step-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .step-actions .quiz-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }
    
    .step-actions .quiz-btn .btn-text {
        text-align: center;
    }
    
    .step-actions .quiz-btn .btn-icon {
        text-align: center;
    }
    
    /* Ajustar layout dos scores para mobile */
    .score-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem;
    }
    
    .score-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .score-name {
        font-weight: 600;
        color: var(--primary-color);
        font-size: 0.95rem;
    }
    
    .score-value {
        background: white;
        color: var(--primary-color);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-weight: 600;
        min-width: 80px;
        text-align: center;
        font-size: 0.9rem;
        border: 1px solid var(--primary-color);
    }
    
    .score-bar {
        width: 100%;
        height: 8px;
        background: #e5e7eb;
        border-radius: 4px;
        overflow: hidden;
        margin-top: 0.5rem;
    }
    
    .score-fill {
        height: 100%;
        border-radius: 4px;
        transition: width 0.3s ease;
    }
}

@media (max-width: 480px) {
    .result-main-title {
        font-size: 1.8rem;
    }
    
    .result-main-subtitle {
        font-size: 1rem;
    }
    
    .result-profile-title {
        font-size: 1.3rem;
    }
    
    .result-profile-card {
        padding: 1rem;
    }
    
    .result-profile-image-container {
        width: 100px;
        height: 100px;
    }
    
    .result-profile-name {
        font-size: 1.6rem;
    }
}

/* Regras específicas para controle dos botões "Fazer Teste Grátis" */
/* Desktop: ocultar botão mobile, mostrar botão desktop */
.mobile-free-test-btn {
    display: none !important;
}

.desktop-free-test-btn {
    display: block;
}

/* Mobile: ocultar botão desktop, mostrar botão mobile */
@media (max-width: 768px) {
    .desktop-free-test-btn {
        display: none !important;
    }
    
    .mobile-free-test-btn {
        display: block !important;
        width: 100%;
        margin-top: 1rem;
    }
}

/* Forçar centralização dos textos dos botões em todos os dispositivos */
.quiz-btn {
    text-align: center !important;
    justify-content: center !important;
}

.quiz-btn .btn-text {
    text-align: center !important;
    width: 100% !important;
}

.quiz-btn .btn-icon {
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* Garantir que os botões mantenham centralização em dispositivos móveis */
@media (max-width: 768px) {
    .quiz-btn {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .quiz-btn .btn-text {
        text-align: center !important;
        width: 100% !important;
    }
    
    .quiz-btn .btn-icon {
        text-align: center !important;
        flex-shrink: 0 !important;
    }
}
