/* Question Answer Repeater Widget Styles */

.question-answer-repeater {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

.qa-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.qa-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.qa-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.qa-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.qa-icon-checkmark {
    background: #ff0000;
    color: white;
}

.qa-icon-circle {
    background: #cccccc;
    color: transparent;
}

.qa-icon-question {
    background: #007cba;
    color: white;
}

.qa-icon-info {
    background: #17a2b8;
    color: white;
}

.qa-section h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.qa-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.qa-content p:last-child {
    margin-bottom: 0;
}

.qa-connector {
    height: 30px;
    border-left: 2px dashed #ff0000;
    margin-left: 12px;
    position: relative;
}

.qa-connector::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: #ff0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .qa-sections {
        gap: 15px;
    }
    
    .qa-section {
        padding: 20px;
    }
    
    .qa-section-header {
        gap: 12px;
    }
    
    .qa-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .qa-section h3 {
        font-size: 16px;
    }
    
    .qa-content p {
        font-size: 13px;
    }
    
    .qa-connector {
        height: 25px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .qa-section {
        padding: 15px;
    }
    
    .qa-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .qa-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .qa-section h3 {
        font-size: 15px;
    }
    
    .qa-content p {
        font-size: 12px;
    }
}

/* Hover Effects */
.qa-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.qa-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Animation for initial load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qa-section {
    animation: fadeInUp 0.6s ease-out;
}

.qa-section:nth-child(2) {
    animation-delay: 0.1s;
}

.qa-section:nth-child(4) {
    animation-delay: 0.2s;
}

.qa-section:nth-child(6) {
    animation-delay: 0.3s;
}

/* Print styles */
@media print {
    .question-answer-repeater {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .qa-section {
        box-shadow: none;
        border: 1px solid #eee;
        break-inside: avoid;
    }
    
    .qa-connector {
        border-color: #000;
    }
} 