/* Isolation Reset */
.refeyn-is-container, .refeyn-is-container * {
    all: revert;
    box-sizing: border-box;
}

.refeyn-is-container {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    max-width: 750px;
    margin: 80px auto !important;
    color: #2c3e50 !important;
    min-height: 520px;
    display: block !important;
    position: relative;
    overflow: hidden; /* Prevents scrollbars during animation */
}

/* Progress Section */
.is-progress-wrapper {
    width: 100%;
    height: 6px;
    background: #eef2f3;
    border-radius: 10px;
    margin-bottom: 50px;
    overflow: hidden;
}

.is-progress-bar {
    height: 100%;
    background: #18345d;
    width: 25%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ANIMATION LOGIC --- */

.is-step {
    display: none;
    opacity: 0;
    width: 100%;
}

/* Fade In Animation */
.is-step.active {
    display: block !important;
    animation: stepFadeIn 0.4s forwards ease-out;
}

/* Fade Out Animation (Triggered by JS) */
.is-step.is-fading-out {
    display: block !important;
    animation: stepFadeOut 0.3s forwards ease-in;
    pointer-events: none; /* Prevents double-clicking during transition */
}

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

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

/* --- QUESTION STYLING --- */

.is-number {
    font-size: 16px !important;
    color: #18345d !important;
    font-weight: 600 !important;
    display: block;
    margin-bottom: 10px;
}

h2.is-question {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 35px !important;
    color: #1a2a3a !important;
    border: none !important;
}

.is-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.is-opt {
    background: #ffffff !important;
    border: 1px solid #d1d9e0 !important;
    border-radius: 8px !important;
    padding: 20px 25px !important;
    font-size: 18px !important;
    color: #2c3e50 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.is-opt:hover {
    border-color: #18345d !important;
    background: #e8ebef !important;
}

.is-footer {
    margin-top: 50px;
    border-top: 1px solid #eef2f3;
    padding-top: 25px;
}

#is-back-btn {
    background: transparent !important;
    border: none !important;
    color: #7f8c8d !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-decoration: underline !important;
}

.is-result-card {
    background: #f8fafb;
    padding: 40px;
    border-radius: 12px;
}

.is-ctas {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.is-btn-primary {
    background: #18345d !important;
    color: white !important;
    padding: 15px 25px !important;
    border-radius: 9999px !important;
    border: none !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.is-btn-secondary {
    background: transparent !important;
    color: #2c3e50 !important;
    padding: 15px 25px !important;
    border: 1px solid #d1d9e0 !important;
    border-radius: 6px !important;
}
