.es-survey-container {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-family: inherit;
    width: 100%;
    overflow: hidden;
}

.es-survey-container form{
    position: relative;
    min-height: 300px;
    display: flex;
}
.es-step {
    top:0;
    left: 0;
    width: 100%;
    position: absolute;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.es-step.active {
    animation:  500ms slideIn forwards;
}
.es-question-item { margin-bottom: 25px; }
.es-question-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.es-question-title svg{
    width: 32px;
    height: 32px
}
.es-choice-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.es-choice-label:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}
.es-choice-label input { margin-right: 12px; }
.es-nav-btns {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.es-submit-result{display: none; width: 50%}
.es-result-screen { display: none; text-align: center; }
.es-score-box {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    margin: 15px 0;
}
.es-note-box{
    margin-bottom: 20px;
}
.es-form-group { margin-bottom: 15px; text-align: left; width: 100% }
.es-form-group label { display: block; font-weight: 600; margin-bottom: 5px; }
.es-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}
.es-alert {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}
.es-alert-success { background: #dcfce7; color: #15803d; }
.es-alert-error { background: #fee2e2; color: #b91c1c; }

@keyframes slideIn {
    from{
        opacity: 0;
        transform: translateX(100%);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hide the default native checkbox */
.gradient-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Style the custom checkbox container */
.checkmark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease-in-out;
    margin-right: 8px;
    vertical-align: middle;
}

/* Hover state */
.gradient-checkbox-label:hover .gradient-checkbox ~ .checkmark {
    border-color: #9ca3af;
}

/* Checked state with gradient background */
.gradient-checkbox:checked ~ .checkmark {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    border-color: transparent;
}

/* Create the checkmark tick indicator */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show tick when checked */
.gradient-checkbox:checked ~ .checkmark:after {
    display: block;
}

.score-card {
    /* Rich gradient background */
    background: linear-gradient(90deg, var( --e-global-color-8039df ) 0%, var( --e-global-color-ff7728 ) 100%);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
   width: 50%;
    text-align: center;
    font-family: sans-serif;
    display: none;
}

.score-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    /* Switched to white for contrast */
    color: #ffffff;
    opacity: 0.9;
}

.score-display {
    margin-bottom: 12px;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    /* Switched to white to pop against gradient */
    color: #ffffff;
}

.total {
    font-size: 18px;
    /* Soft white overlay for subtext */
    color: rgba(255, 255, 255, 0.7);
}

.grade-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
    font-size: 3rem;
}

.description {
    margin-bottom: 20px;
    font-size: 14px;
    /* Clean contrast text */
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}
.flex{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

@media all and (max-width: 480px){
    .flex{
        flex-direction: column;
    }
    .score-card, .es-submit-result{width: 100%}



}