/* Quiz Floating Button & Modal */
.quiz-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    background: linear-gradient(135deg, #e8430a 0%, #ff6b35 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 67, 10, 0.45);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "CeraPro", Arial, sans-serif;
    animation: quiz-pulse 2s infinite;
}
.quiz-float-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(232, 67, 10, 0.6);
}
.quiz-float-btn i {
    font-size: 20px;
}
@keyframes quiz-pulse {
    0% { box-shadow: 0 4px 20px rgba(232, 67, 10, 0.45); }
    50% { box-shadow: 0 4px 30px rgba(232, 67, 10, 0.7); }
    100% { box-shadow: 0 4px 20px rgba(232, 67, 10, 0.45); }
}

/* Overlay */
.quiz-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.quiz-overlay.active {
    display: flex;
}

/* Modal */
.quiz-modal {
    background: #fff;
    border-radius: 16px;
    width: 95%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: quiz-slideUp 0.3s ease;
}
@keyframes quiz-slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.quiz-close:hover {
    color: #333;
}

/* Header */
.quiz-header {
    background: linear-gradient(135deg, #e8430a 0%, #ff6b35 100%);
    color: #fff;
    padding: 28px 30px 24px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}
.quiz-header h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}
.quiz-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Progress */
.quiz-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 30px 10px;
}
.quiz-progress-step {
    width: 60px;
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0;
    transition: background 0.3s;
}
.quiz-progress-step.active {
    background: #e8430a;
}
.quiz-progress-step.done {
    background: #4caf50;
}

/* Body */
.quiz-body {
    padding: 20px 30px 30px;
}

/* Step */
.quiz-step {
    display: none;
}
.quiz-step.active {
    display: block;
}
.quiz-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
}
.quiz-step-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0 0 20px;
}

/* Input groups */
.quiz-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.quiz-input-group {
    flex: 1;
}
.quiz-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.quiz-input-group input,
.quiz-input-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    font-family: "CeraPro", Arial, sans-serif;
    box-sizing: border-box;
}
.quiz-input-group input:focus,
.quiz-input-group select:focus {
    border-color: #e8430a;
}

/* Radio options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.quiz-option:hover {
    border-color: #e8430a;
    background: #fff8f5;
}
.quiz-option.selected {
    border-color: #e8430a;
    background: #fff0eb;
}
.quiz-option input[type="radio"] {
    display: none;
}
.quiz-option-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.quiz-option.selected .quiz-option-radio {
    border-color: #e8430a;
}
.quiz-option.selected .quiz-option-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8430a;
}
.quiz-option-icon {
    font-size: 22px;
}
.quiz-option-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}
.quiz-btn {
    padding: 13px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "CeraPro", Arial, sans-serif;
}
.quiz-btn-back {
    background: #f0f0f0;
    color: #555;
}
.quiz-btn-back:hover {
    background: #e0e0e0;
}
.quiz-btn-next {
    background: linear-gradient(135deg, #e8430a 0%, #ff6b35 100%);
    color: #fff;
    flex: 1;
    max-width: 220px;
}
.quiz-btn-next:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.quiz-btn-submit {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #fff;
    flex: 1;
    font-size: 16px;
}
.quiz-btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Benefits list */
.quiz-benefits {
    background: #f8fdf8;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 18px;
}
.quiz-benefits-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}
.quiz-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.quiz-benefits li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    padding-left: 22px;
    position: relative;
}
.quiz-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: 700;
}

/* Privacy */
.quiz-privacy {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 14px;
}
.quiz-privacy a {
    color: #e8430a;
    text-decoration: underline;
}

/* Success */
.quiz-success {
    display: none;
    text-align: center;
    padding: 40px 30px;
}
.quiz-success.active {
    display: block;
}
.quiz-success-icon {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 16px;
}
.quiz-success h3 {
    font-size: 22px;
    color: #333;
    margin: 0 0 10px;
}
.quiz-success p {
    font-size: 15px;
    color: #777;
    margin: 0;
}

/* Error state */
.quiz-input-error {
    border-color: #e53935 !important;
}

/* Responsive */
@media (max-width: 575px) {
    .quiz-float-btn {
        bottom: 16px;
        right: 16px;
        padding: 14px 22px;
        font-size: 13px;
        gap: 8px;
        border-radius: 40px;
    }
    .quiz-float-btn span {
        display: inline;
    }
    .quiz-float-btn i {
        font-size: 18px;
    }
    .quiz-modal {
        border-radius: 12px;
    }
    .quiz-header {
        padding: 22px 20px 18px;
    }
    .quiz-header h3 {
        font-size: 18px;
    }
    .quiz-body {
        padding: 16px 20px 24px;
    }
    .quiz-input-row {
        flex-direction: column;
        gap: 10px;
    }
    .quiz-step-title {
        font-size: 16px;
    }
    .quiz-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
}
