/* Questionário Styles - Arquivo separado para não afetar outros estilos */

/* Ocultar Header e Footer */
.header,
.footer {
    display: none !important;
}

/* Ajustar main-content para ocupar toda a tela */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Questionnaire Section */
.questionnaire-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.questionnaire-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.questionnaire-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
}

/* Question Card */
.question-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.question-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.answer-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    flex: 1;
}

.answer-option.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* Text Input */
.text-input-area {
    width: 100%;
}

.text-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Navigation Buttons */
.questionnaire-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.btn-questionnaire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-questionnaire-back {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-questionnaire-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-questionnaire-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-questionnaire-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-questionnaire-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-questionnaire-next:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #667eea;
    width: 40px;
    border-radius: 6px;
}

.progress-dot.completed {
    background: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .questionnaire-section {
        padding: 40px 15px;
    }
    
    .questionnaire-title {
        font-size: 36px;
    }
    
    .question-card {
        padding: 25px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .questionnaire-navigation {
        flex-direction: column;
    }
    
    .btn-questionnaire {
        width: 100%;
    }
}

/* Questionnaire Modal */
.questionnaire-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.questionnaire-modal.active {
    display: flex;
}

.questionnaire-modal-content {
    background: linear-gradient(180deg, #0d2763 0%, #0a1f5e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    padding: 30px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    overflow-y: auto;
}

.questionnaire-modal-content::-webkit-scrollbar {
    width: 6px;
}

.questionnaire-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.questionnaire-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.questionnaire-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.questionnaire-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 16px;
}

.modal-back-btn,
.modal-close-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #F5F5F5;
    background: transparent;
    border-radius: 39px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.modal-back-btn i,
.modal-close-btn i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-back-btn:hover,
.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.progress-bar-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-segments {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 400px;
}

.progress-segment {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.progress-segment.active {
    background: #667eea;
}

.progress-segment.completed {
    background: #667eea;
}

.question-counter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 12px;
}

.questionnaire-modal-body {
    text-align: center;
}

.modal-question-text {
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 35px;
}

.modal-answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.modal-answer-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modal-answer-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-answer-option input[type="radio"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modal-answer-option input[type="radio"]:checked {
    border-color: #667eea;
    background: #667eea;
}

.modal-answer-option input[type="radio"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.modal-answer-option label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    flex: 1;
    text-align: left;
}

.modal-answer-option .option-check {
    display: none;
    color: #667eea;
    font-size: 16px;
    margin-left: auto;
}

.modal-answer-option.selected {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.modal-answer-option.selected .option-check {
    display: block;
}

.btn-modal-next {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-next:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-modal-next:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-modal-next:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .questionnaire-modal-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .modal-question-text {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .modal-answer-option {
        padding: 14px 16px;
    }
    
    .modal-answer-option label {
        font-size: 14px;
    }
}

/* Cancel Survey Modal */
.cancel-survey-content {
    background: linear-gradient(180deg, #0d2763 0%, #0a1f5e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 30px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    text-align: center;
}

.cancel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cancel-modal-logo {
    height: 20px;
}

.cancel-modal-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cancel-modal-close-btn:hover {
    color: #ffffff;
}

.cancel-modal-title {
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 20px;
}

.cancel-modal-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 500;
}

.cancel-modal-subtext {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 35px;
}

.cancel-modal-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.btn-cancel-yes,
.btn-cancel-no {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 24px;
    gap: 6px;
    height: 48px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-yes {
    background: transparent;
    color: #FF4444;
    border: 2px solid rgba(255, 68, 68, 0.5);
}

.btn-cancel-yes:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #FF4444;
    transform: translateY(-2px);
}

.btn-cancel-no {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: none;
}

.btn-cancel-no:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cancel-survey-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .cancel-modal-title {
        font-size: 24px;
    }
    
    .cancel-modal-subtext br {
        display: none;
    }
    
    .cancel-modal-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-cancel-yes,
    .btn-cancel-no {
        font-size: 13px;
        padding: 0px 16px;
    }
}
