.mr-q-wrapper {
    font-family: 'Inter', system-ui, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.mr-q-header {
    background: linear-gradient(135deg, #6772E5, #8A92F1);
    padding: 30px 40px;
    color: white;
}

.mr-q-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.mr-q-progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.mr-q-progress-bar {
    height: 100%;
    background: #ffffff;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mr-q-body {
    padding: 40px;
    min-height: 400px;
    position: relative;
}

.mr-q-step {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.mr-q-step.active {
    display: block;
}

.mr-q-step-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1f36;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #f3f3f5;
    padding-bottom: 15px;
}

.mr-q-question {
    margin-bottom: 30px;
}

.mr-q-label {
    display: block;
    font-weight: 500;
    font-size: 16px;
    color: #3c4257;
    margin-bottom: 12px;
}

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

.mr-q-option-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fcfcfd;
}

.mr-q-option-label:hover {
    border-color: #6772E5;
    background: #f7f9fc;
}

.mr-q-option-label input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #6772E5;
}

.mr-q-option-label.selected {
    border-color: #6772E5;
    background: rgba(103, 114, 229, 0.05);
    box-shadow: 0 0 0 1px #6772E5;
}

.mr-q-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    min-height: 100px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.mr-q-textarea:focus {
    outline: none;
    border-color: #6772E5;
    box-shadow: 0 0 0 3px rgba(103, 114, 229, 0.1);
}

.mr-q-footer {
    padding: 20px 40px;
    background: #f7f9fc;
    border-top: 1px solid #e3e8ee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mr-q-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.mr-q-btn-prev {
    background: #ffffff;
    color: #3c4257;
    border: 1px solid #e3e8ee;
}

.mr-q-btn-prev:hover {
    background: #f3f3f5;
}

.mr-q-btn-next {
    background: #6772E5;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(103, 114, 229, 0.2);
}

.mr-q-btn-next:hover {
    background: #5469d4;
    transform: translateY(-1px);
}

.mr-q-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

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

.mr-hidden {
    display: none !important;
}

/* Spinner */
.mr-q-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Centered Popup */
.mr-q-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    color: #e53e3e;
    padding: 24px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    text-align: center;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mr-q-toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}
