html {
    overflow-y: scroll !important;
}

/* Prevent Elementor bounce */
body {
    min-height: 100vh;
}

.rqs-pro-quiz {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0.95; }
    to { opacity: 1; }
}

.rqs-pro-form {
    width: 100%;
}

.rqs-progress {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.rqs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #B370A1, #745F85);
    transition: width 0.5s ease;
}

.rqs-step-info {
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
    font-weight: 500;
}

.rqs-step {
    animation: fadeIn 0.3s ease-in;
}

.rqs-question:last-of-type {
    border-bottom: none;
}

.rqs-question h3 {
    font-size: 18px;
    margin: 0 0 25px;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
}

.rqs-options {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rqs-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s ease;
    min-height: 100px;
    text-align: center;
}

.rqs-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.rqs-option input {
    margin-bottom: 10px;
    cursor: pointer;
    accent-color: #667eea;
    width: 20px;
    height: 20px;
}

.rqs-option span {
    cursor: pointer;
    font-size: 13px;
    color: #555;
    font-weight: 400;
    line-height: 1.4;
}

.rqs-buttons {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #745F85;
}

.rqs-next, .rqs-final, .rqs-submit, .rqs-prev, .rqs-back {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rqs-next, .rqs-final {
    background: #745F85;
    color: white;
}

.rqs-next:hover, .rqs-final:hover {
    background: #745F85;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 91, 149, 0.2);
}

.rqs-submit {
    background: #745F85;
    color: white;
}

.rqs-submit:hover {
    background: #B370A1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 125, 176, 0.2);
}

.rqs-prev, .rqs-back {
    background: #745F85;
    color: #555;
}

.rqs-prev:hover, .rqs-back:hover {
    background: #745F85;
}

.rqs-info {
    background: #fafafa;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.rqs-info h3 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.rqs-info input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    background: white;
}

.rqs-info input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08);
}

.rqs-results {
    margin-top: 30px;
}

.rqs-thank-you {
    background: #f5f9ff;
    border: 1px solid #d4e6f1;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
}

.rqs-thank-you h2 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 500;
}

.rqs-thank-you p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

@media (max-width: 768px) {
    .rqs-pro-quiz {
        padding: 20px 15px;
    }
    
    .rqs-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .rqs-option {
        min-height: 80px;
        padding: 12px 8px;
    }
    
    .rqs-buttons {
        flex-direction: column-reverse;
    }
}