.lo-survey-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
}

.lo-survey-container * {
    box-sizing: inherit;
}

.lo-survey-intro {
    margin-bottom: 24px;
}
.lo-survey-container .lo-survey-intro p {
    margin: 0 0 16px;
}

.lo-survey-container .lo-survey-intro h2 {
    font-size: 22px;
    margin: 0 0 12px;
    line-height: 1.2;
    text-wrap: balance;
    color: #212529;
}

.lo-survey-progress {
    margin-bottom: 24px;
}

.lo-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.lo-progress-fill {
    height: 100%;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

.lo-progress-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    text-align: right;
}

.lo-survey-privacy-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
}

.lo-survey-privacy-notice p {
    margin: 0;
}

.lo-survey-container .lo-survey-step h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #212529;
}

/* Default no-JS hidden state */
.lo-survey-container .lo-js-only {
    display: none;
}

/* JS Initialized State */
.lo-survey-initialized .lo-survey-step {
    display: none;
}
.lo-survey-initialized .lo-survey-step.active {
    display: block;
}
/* Regression assertion: .lo-survey-container.lo-survey-initialized .lo-js-only has higher specificity (3 classes) and is declared after the default hidden state. */
.lo-survey-container.lo-survey-initialized .lo-js-only {
    display: flex;
}

.lo-survey-container fieldset.lo-form-group {
    border: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.lo-survey-container .lo-form-group {
    margin-bottom: 24px;
}

.lo-survey-container .lo-question-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0;
    font-size: 16px;
}

.lo-survey-container .lo-help-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 12px;
}

.lo-survey-container .lo-radio-label,
.lo-survey-container .lo-checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.lo-survey-container .lo-radio-label input,
.lo-survey-container .lo-checkbox-label input {
    margin-top: 4px;
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #fd7e14;
}

.lo-survey-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

.lo-survey-container textarea:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.lo-survey-container .lo-survey-nav {
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

.lo-survey-container .lo-btn-next,
.lo-survey-container .lo-btn-submit {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.2s;
}

.lo-survey-container .lo-btn-next:hover,
.lo-survey-container .lo-btn-submit:hover {
    background-color: #0b5ed7;
}

.lo-survey-container .lo-btn-prev {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lo-survey-container .lo-btn-prev:hover {
    background-color: #5c636a;
}

.lo-survey-container button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.lo-survey-container .lo-alert {
    padding: 16px;
    margin-top: 20px;
    border-radius: 6px;
    font-size: 14px;
}

.lo-survey-container .lo-alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.lo-survey-container .lo-success-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #d1e7dd;
    color: #0f5132;
    border-radius: 8px;
    border: 1px solid #badbcc;
}

.lo-survey-container .lo-success-message h2 {
    margin-top: 0;
    color: #0f5132;
}

@media (max-width: 360px) {
    .lo-survey-container {
        width: 100%;
        overflow-x: hidden;
    }

    .lo-survey-container .lo-survey-nav {
        flex-direction: column;
        gap: 12px;
    }

    .lo-survey-container .lo-btn-prev,
    .lo-survey-container .lo-btn-next,
    .lo-survey-container .lo-btn-submit {
        width: 100%;
        margin-left: 0;
    }
}

/* Specific hover rule */
.lo-survey-container .lo-radio-label:hover,
.lo-survey-container .lo-checkbox-label:hover {
    background-color: #e9ecef;
}

/* Specific selected rules (placed after hover to override) */
.lo-survey-container .lo-radio-label:has(input:checked),
.lo-survey-container .lo-checkbox-label:has(input:checked),
.lo-survey-container .lo-radio-label.is-selected,
.lo-survey-container .lo-checkbox-label.is-selected {
    background-color: #fff3cd;
    border-color: #ffc107;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lo-survey-container .lo-radio-label:focus-within,
.lo-survey-container .lo-checkbox-label:focus-within {
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.25rem rgba(253, 126, 20, 0.25);
}

/* Other inputs wrapper */
.lo-other-detail {
    margin-top: 8px;
    margin-bottom: 16px;
    width: 100%;
}
.lo-other-detail[hidden] {
    display: none !important;
}
.lo-other-input {
    width: 100%;
}

.lo-survey-container .lo-other-detail label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Sembunyikan floating WhatsApp widget pada halaman survei agar tidak overlap */
.lo-wa-float {
    display: none !important;
}

/* Success Panel Styles */
.lo-survey-container .lo-reward-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    margin-bottom: 16px;
}

.lo-survey-container .lo-btn-primary {
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
    text-align: center;
    cursor: pointer;
}

.lo-survey-container .lo-btn-primary:hover {
    background-color: #0b5ed7;
    color: white;
}

.lo-survey-container .lo-btn-secondary {
    background-color: transparent;
    color: #0d6efd;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    border: 2px solid #0d6efd;
    cursor: pointer;
    text-align: center;
}

.lo-survey-container .lo-btn-secondary:hover {
    background-color: #0d6efd;
    color: white;
}

.lo-survey-container .lo-btn-primary:focus-visible,
.lo-survey-container .lo-btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.5);
}

.lo-survey-container .lo-copy-status {
    height: 20px;
    font-size: 14px;
    color: #0f5132;
    text-align: center;
    margin-bottom: 24px;
}

.lo-survey-container .lo-survey-privacy-notice-reward {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .lo-survey-container .lo-reward-actions {
        flex-direction: column;
        gap: 12px;
    }

    .lo-survey-container .lo-btn-primary,
    .lo-survey-container .lo-btn-secondary {
        width: 100%;
    }
}
