:root {
    --rqp-purple: #8B5CF6;
    --rqp-purple-light: #EDE9FE;
    --rqp-text-main: #374151;
    --rqp-text-muted: #9CA3AF;
    --rqp-bg: #F9FAFB;
    --rqp-card-bg: #FFFFFF;
    --rqp-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

#rqp-form-root {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 750px;
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.rqp-top-button-wrapper {
    margin-bottom: 24px;
    perspective: 1000px;
}

.rqp-top-button {
    background: var(--rqp-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideUpDown 3s ease-in-out infinite;
    transition: transform 0.2s ease;
}

@keyframes slideUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.rqp-top-button:hover {
    transform: scale(1.05);
}

.rqp-container {
    background: var(--rqp-card-bg);
    border-radius: 24px;
    box-shadow: var(--rqp-shadow);
    padding: 48px;
    width: 750px;
    max-width: 100%;
    min-height: 400px;
    box-sizing: border-box;
}

.rqp-header {
    margin-bottom: 32px;
}

.rqp-step-info {
    font-size: 14px;
    color: var(--rqp-text-muted);
    margin-bottom: 12px;
}

.rqp-progress-wrapper {
    display: flex;
    gap: 8px;
    height: 6px;
    width: 100%;
}

.rqp-progress-segment-main,
.rqp-progress-segment-bonus {
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.rqp-progress-segment-main {
    flex: 9;
}

.rqp-progress-segment-bonus {
    flex: 1;
}

.rqp-progress-bar {
    height: 100%;
    background: var(--rqp-purple);
    width: 0%;
    transition: width 0.4s ease;
}

.rqp-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    width: 100%;
}

.rqp-btn-primary,
.rqp-btn-secondary,
.rqp-btn-inline {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rqp-btn-primary,
.rqp-btn-inline {
    background: var(--rqp-purple);
    color: white;
    border: none;
}

.rqp-btn-secondary {
    background: white;
    color: var(--rqp-text-muted);
    border: 1px solid #E5E7EB;
}

.rqp-btn-primary:hover,
.rqp-btn-inline:hover {
    opacity: 0.9;
}

.rqp-btn-secondary:hover {
    border-color: var(--rqp-purple);
    color: var(--rqp-purple);
}

.rqp-btn-inline {
    margin-top: 20px;
    width: auto;
}

.rqp-btn-inline.full-width {
    width: 100%;
}

.rqp-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--rqp-text-main);
    margin-bottom: 32px;
}

.rqp-options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rqp-option-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    color: var(--rqp-text-main);
    background: #F9FAFB;
}

.rqp-option-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: white;
}

.rqp-option-card:hover {
    border-color: var(--rqp-purple);
}

.rqp-option-card.selected {
    border-color: var(--rqp-purple);
    background: var(--rqp-purple-light);
}

.rqp-option-card.selected .rqp-option-circle {
    border-color: var(--rqp-purple);
}

.rqp-option-card.selected .rqp-option-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--rqp-purple);
    border-radius: 50%;
}

.rqp-input-text {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.rqp-input-text:focus {
    border-color: var(--rqp-purple);
}

.rqp-custom-input-container,
.rqp-email-container,
.rqp-multi-input-container {
    margin-top: 16px;
}

.rqp-multi-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rqp-multi-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--rqp-text-main);
    display: block;
}

.rqp-multi-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
    background: #F9FAFB;
}

.rqp-multi-group input:focus {
    border-color: var(--rqp-purple);
    background: white;
    box-shadow: 0 0 0 4px var(--rqp-purple-light);
}

.rqp-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 14px;
    color: var(--rqp-text-main);
}

.rqp-privacy-text {
    font-size: 13px;
    color: var(--rqp-text-muted);
    margin-top: 16px;
    line-height: 1.4;
}

.rqp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 18px;
    color: var(--rqp-text-muted);
}

.rqp-fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimization */
@media (max-width: 600px) {
    .rqp-container {
        padding: 24px;
    }

    .rqp-title {
        font-size: 22px;
    }
}