/* =========================================================================
   Retraide Public Simulator - Stylesheet (Design Premium & Modern)
   ========================================================================= */

:root {
    --sim-primary: #009bfe;       /* Retraide Blue */
    --sim-primary-dark: #0083da;
    --sim-primary-light: rgba(0, 155, 254, 0.08);
    --sim-text-main: #0f172a;     /* Slate 900 */
    --sim-text-muted: #64748b;    /* Slate 500 */
    --sim-border: #e2e8f0;        /* Slate 200 */
    --sim-bg-light: #f8fafc;      /* Slate 50 */
    
    --sim-primary-gradient: linear-gradient(135deg, #009bfe 0%, #007ccb 100%);
    --sim-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    --sim-card-hover-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 1px 10px rgba(15, 23, 42, 0.04);
    --sim-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rsim-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
    padding: 35px !important;
    max-width: 960px !important;
    margin: 30px auto !important;
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif !important;
    color: #0f172a !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.rsim-container:hover {
    box-shadow: var(--sim-card-hover-shadow);
}

@media screen and (max-width: 768px) {
    .rsim-container {
        padding: 20px;
    }
}

.rsim-header {
    text-align: center;
    margin-bottom: 35px;
}

.rsim-header h2 {
    color: var(--sim-text-main);
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rsim-header p {
    color: var(--sim-text-muted);
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.rsim-mode-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: var(--sim-bg-light);
    padding: 5px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--sim-border);
}

.rsim-mode-btn {
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: var(--sim-transition);
    border: none;
    background: transparent;
    color: var(--sim-text-muted);
}

.rsim-mode-btn:hover {
    color: var(--sim-text-main);
}

.rsim-mode-btn.active {
    background: linear-gradient(135deg, #009bfe 0%, #007ccb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 155, 254, 0.2) !important;
}

.rsim-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.rsim-col-form {
    flex: 1.1;
    min-width: 320px;
}

.rsim-col-result {
    flex: 0.9;
    min-width: 300px;
    background: var(--sim-bg-light);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid var(--sim-border);
    display: flex;
    flex-direction: column;
}

/* Colocataire result frame in senior simulator */
.rsim-col-senior-future {
    background: #ffffff;
    border: 2px solid rgba(0, 155, 254, 0.25);
    box-shadow: 0 10px 25px rgba(0, 155, 254, 0.03);
}

.rsim-group {
    margin-bottom: 22px;
}

.rsim-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--sim-text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rsim-input-wrapper {
    position: relative;
}

.rsim-input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1px solid var(--sim-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--sim-text-main);
    background: #ffffff;
    transition: var(--sim-transition);
}

.rsim-input-wrapper input:focus {
    border-color: var(--sim-primary);
    box-shadow: 0 0 0 4px rgba(0, 155, 254, 0.12);
    outline: none;
}

.rsim-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sim-text-muted);
    font-weight: 700;
    font-size: 14px;
    pointer-events: none;
}

.rsim-range-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rsim-range-wrapper input[type=range] {
    flex-grow: 1;
    cursor: pointer;
    accent-color: var(--sim-primary);
}

.rsim-range-val {
    font-weight: 800;
    color: var(--sim-primary);
    min-width: 30px;
    font-size: 16px;
}

.rsim-result-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--sim-text-main);
    border-bottom: 3px solid var(--sim-primary);
    padding-bottom: 8px;
    display: inline-block;
}

.rsim-kpi {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rsim-kpi label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sim-text-muted);
}

.rsim-kpi span {
    font-weight: 800;
    font-size: 18px;
    color: #009bfe !important;
}

.rsim-big-kpi {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    border-left: 5px solid var(--sim-primary);
}

.rsim-big-kpi.negative {
    border-left-color: #ef4444;
}

.rsim-big-kpi small {
    display: block;
    color: var(--sim-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.rsim-big-kpi strong {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #10b981 !important;
}

.rsim-big-kpi.negative strong {
    color: #ef4444;
}

.rsim-innovation-box {
    margin-top: 25px;
    background: var(--sim-primary-light);
    padding: 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sim-primary-dark);
    border: 1px dashed rgba(0, 155, 254, 0.3);
    display: none;
    line-height: 1.6;
}

.rsim-disclaimer {
    margin-top: 25px;
    font-size: 11px;
    color: var(--sim-text-muted);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* --- STYLES INVESTISSEUR --- */
.rsim-investor-advantages {
    margin-top: 25px;
    background: #ffffff;
    border: 1px solid var(--sim-border);
    border-radius: 10px;
    padding: 20px;
}

.rsim-adv-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--sim-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rsim-adv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rsim-adv-item {
    font-size: 13px;
    color: var(--sim-text-muted);
    margin-bottom: 10px;
    display: flex;
    line-height: 1.5;
}

.rsim-adv-item:last-child {
    margin-bottom: 0;
}

.rsim-adv-icon {
    margin-right: 12px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* --- STYLES SENIOR --- */
.rsim-explanation {
    font-size: 12px;
    color: var(--sim-text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.explanation-highlight {
    color: var(--sim-primary-dark);
    font-weight: 500;
}

.rsim-senior-title-orange {
    color: #f59e0b;
    border-bottom: 2px solid #fcd34d;
    padding-bottom: 10px;
    margin-bottom: 22px;
    font-size: 18px;
    font-weight: 800;
}

.rsim-senior-title-blue {
    color: var(--sim-primary);
    border-bottom: 2px solid rgba(0, 155, 254, 0.2);
    padding-bottom: 10px;
    margin-bottom: 22px;
    font-size: 18px;
    font-weight: 800;
}

.rsim-senior-yearly-highlight {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.18);
    transform: scale(1.01);
}

.rsim-senior-yearly-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 6px;
}

.rsim-senior-yearly-val {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.rsim-senior-pleasure {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
}

/* DESIGN LISTE BÉNÉFICES */
.rsim-human-gains-wide {
    margin-top: 35px;
    background: var(--sim-primary-light);
    border-radius: 12px;
    padding: 25px 30px;
    border: 1px solid rgba(0, 155, 254, 0.15);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.01);
}

.rsim-human-title {
    font-weight: 800;
    color: var(--sim-primary);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rsim-human-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rsim-human-item {
    display: flex;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--sim-text-main);
    line-height: 1.6;
}

.rsim-human-icon {
    font-size: 18px;
    margin-right: 14px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.rsim-human-text strong {
    color: var(--sim-text-main);
    font-weight: 700;
}

/* STYLES BOUTON ACTION (WHITE/BLUE ACCENT) */
.rsim-btn-action {
    display: inline-block;
    margin-top: 20px;
    background: #ffffff;
    color: #059669;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    transition: var(--sim-transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    box-sizing: border-box;
}

.rsim-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    background: var(--sim-bg-light);
    color: #047857;
}

@media (max-width: 768px) {
    .rsim-grid {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .rsim-human-list-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   SIMULATEUR DE CONVIVIALITÉ & LIEN SOCIAL
   ========================================================================= */
.rsc-index-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 15px;
}
.rsc-gauge-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    flex: 1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.rsc-gauge-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--sim-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.rsc-gauge-title.text-primary {
    color: var(--sim-primary);
}
.rsc-gauge-circle {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 10px;
}
.rsc-gauge-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.rsc-gauge-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 9;
}
.rsc-gauge-fill {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.rsc-gauge-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 900;
    color: var(--sim-text-main);
}
.rsc-gauge-val.text-primary {
    color: var(--sim-primary);
}
.rsc-gauge-desc {
    font-size: 12px;
    font-weight: 700;
    margin-top: 5px;
    color: var(--sim-text-muted);
    min-height: 18px;
}

.rsc-select-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 5px;
}
.rsc-select-buttons button.rsc-select-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    box-shadow: none !important;
}
.rsc-select-buttons button.rsc-select-btn:hover {
    border-color: #009bfe !important;
    color: #0f172a !important;
}
.rsc-select-buttons button.rsc-select-btn.active {
    background: rgba(0, 155, 254, 0.08) !important;
    border-color: #009bfe !important;
    color: #0083da !important;
    box-shadow: 0 0 0 1px #009bfe !important;
}

.rsc-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}
.rsc-toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}
.rsc-toggle-label input {
    opacity: 0;
    width: 0;
    height: 0;
}
.rsc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}
.rsc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.rsc-toggle-label input:checked + .rsc-toggle-slider {
    background-color: var(--sim-primary);
}
.rsc-toggle-label input:checked + .rsc-toggle-slider:before {
    transform: translateX(24px);
}
.rsc-toggle-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--sim-text-muted);
}

.rsc-gain-box {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.12);
}
.rsc-gain-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 4px;
}
.rsc-gain-value {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
}
.rsc-gain-desc {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.95;
    margin-top: 4px;
}

.rsc-serenity-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}
.rsc-badge-serenity {
    background-color: #10b981;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
}
.rsc-progress-bar-bg {
    background-color: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.rsc-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    width: 0%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
    .rsc-index-row {
        flex-direction: column;
        align-items: stretch;
    }
    .rsc-select-buttons {
        grid-template-columns: 1fr;
    }
}

.rsim-btn-action.rsc-btn-outline {
    background: #ffffff !important;
    color: var(--sim-primary) !important;
    border: 2px solid var(--sim-primary) !important;
    box-shadow: none !important;
    margin-top: 10px !important;
}

/* ==========================================================================
   10. Autonomy Simulator Shortcode Styles
   ========================================================================== */
.rfw-autonomy-simulator {
    background: #ffffff;
    border: 1.5px solid rgba(0, 155, 254, 0.12);
    border-radius: 24px;
    padding: 40px;
    margin: 40px auto;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 15px 35px -5px rgba(7, 36, 86, 0.05), 0 5px 15px rgba(0, 155, 254, 0.02);
    position: relative;
    overflow: hidden;
}

.rfw-sim-step-pane {
    animation: rfwSimFadeIn 0.4s ease-out;
}

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

.rfw-sim-intro-pane {
    text-align: center;
    padding: 20px 0;
}

.rfw-sim-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #009bfe;
    font-weight: 700;
    margin-bottom: 12px;
    background: rgba(0, 155, 254, 0.08);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 155, 254, 0.1);
}

.rfw-sim-tag.green {
    color: #166534;
    background: rgba(22, 101, 52, 0.08);
    border-color: rgba(22, 101, 52, 0.1);
}

.rfw-sim-title {
    font-size: 28px;
    color: #0b2240;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.rfw-sim-desc {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 30px 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.rfw-sim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #009bfe 0%, #0083da 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 155, 254, 0.25);
}

.rfw-sim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 155, 254, 0.35);
    background: linear-gradient(135deg, #0083da 0%, #009bfe 100%);
}

.rfw-sim-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.rfw-sim-btn:hover .rfw-sim-arrow {
    transform: translateX(4px);
}

/* Progress bar */
.rfw-sim-progress-bar-container {
    margin-bottom: 30px;
    width: 100%;
}

.rfw-sim-progress-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.rfw-sim-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #009bfe, #0083da);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.rfw-sim-progress-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Questions and Options */
.rfw-sim-question-title {
    font-size: 22px;
    color: #0b2240;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.rfw-sim-question-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.rfw-sim-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rfw-sim-option-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

.rfw-sim-option-card:hover {
    border-color: #009bfe;
    background: rgba(0, 155, 254, 0.01);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 155, 254, 0.03);
}

.rfw-sim-option-card.is-selected {
    border-color: #009bfe;
    background: #f0f7ff;
    box-shadow: 0 8px 20px rgba(0, 155, 254, 0.05);
}

.rfw-sim-option-card.is-selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #009bfe;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.rfw-sim-option-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.rfw-sim-option-card:hover .rfw-sim-option-icon {
    transform: scale(1.12);
}

.rfw-sim-option-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 8px 0;
}

.rfw-sim-option-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

/* Navigation */
.rfw-sim-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: 20px;
}

.rfw-sim-btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #f1f5f9;
    color: #475569;
}

.rfw-sim-btn-nav:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

.rfw-sim-btn-nav.rfw-sim-btn-next {
    background: #0b2240;
    color: #ffffff;
}

.rfw-sim-btn-nav.rfw-sim-btn-next:hover:not(:disabled) {
    background: #1e293b;
}

.rfw-sim-btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results styles */
.rfw-sim-results-pane {
    text-align: left;
}

.rfw-sim-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.rfw-sim-result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    border: 2px solid #c5a880; /* Champagne Gold border */
    border-radius: 20px;
    padding: 4px;
    box-shadow: 0 15px 35px rgba(197, 168, 128, 0.08), 0 5px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 35px;
    animation: rfwSimFadeIn 0.5s ease-out;
    box-sizing: border-box;
    width: 100%;
}

.rfw-sim-result-card-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(197, 168, 128, 0.1);
}

.rfw-sim-result-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.rfw-sim-result-badge {
    background: linear-gradient(135deg, #c5a880, #b39366);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 3px 8px rgba(197, 168, 128, 0.2);
}

.rfw-sim-result-match-pct {
    background: rgba(22, 101, 52, 0.06);
    border: 1px solid rgba(22, 101, 52, 0.15);
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
}

.rfw-sim-result-title {
    font-size: 24px;
    color: #0b2240;
    font-weight: 800;
    margin: 0 0 14px 0;
}

.rfw-sim-result-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px 0;
}

.rfw-sim-result-features {
    margin: 0 0 25px 0;
    padding-left: 20px;
    list-style-type: none;
}

.rfw-sim-result-features li {
    position: relative;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
}

.rfw-sim-result-features li::before {
    content: "•";
    color: #c5a880;
    font-size: 20px;
    position: absolute;
    left: -15px;
    top: -3px;
}

.rfw-sim-result-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.rfw-sim-btn-result-primary {
    background: linear-gradient(135deg, #009bfe 0%, #0083da 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 155, 254, 0.2);
    border: none;
}

.rfw-sim-btn-result-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(0, 155, 254, 0.3);
}

.rfw-sim-btn-result-secondary {
    background: #ffffff;
    color: #0b2240 !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1.5px solid #e2e8f0;
}

.rfw-sim-btn-result-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Alternatives scoreboard */
.rfw-sim-alternatives-wrapper {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 155, 254, 0.06);
}

.rfw-sim-alternatives-wrapper h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0b2240;
    margin: 0 0 15px 0;
}

.rfw-sim-alt-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.rfw-sim-alt-row:last-child {
    margin-bottom: 0;
}

.rfw-sim-alt-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    width: 170px;
    flex-shrink: 0;
}

.rfw-sim-alt-bar-wrapper {
    flex-grow: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.rfw-sim-alt-bar {
    height: 100%;
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
    border-radius: 10px;
    transition: width 0.5s ease-out;
}

.rfw-sim-alt-pct {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.rfw-sim-results-footer {
    display: flex;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.rfw-sim-btn-restart {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rfw-sim-btn-restart:hover {
    color: #009bfe;
}

/* Responsive options layout */
@media (max-width: 768px) {
    .rfw-sim-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .rfw-autonomy-simulator {
        padding: 25px;
    }
    
    .rfw-sim-title {
        font-size: 22px;
    }
    
    .rfw-sim-result-card-inner {
        padding: 20px;
    }
    
    .rfw-sim-alt-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .rfw-sim-alt-name {
        width: 100%;
    }
    
    .rfw-sim-alt-bar-wrapper {
        width: 100%;
    }
}

/* Custom additions for City Pages badge, Alternative result badge, and Disclaimer */
.rfw-city-card .rfw-badge-city {
    position: static;
    display: inline-block;
    box-shadow: none;
    margin-right: 8px;
}

.rfw-sim-result-badge.alternative {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 3px 8px rgba(100, 116, 139, 0.2);
}

.rfw-sim-disclaimer {
    background: #fffbeb;
    border: 1.5px solid #fef3c7;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 auto 30px auto;
    font-size: 13.5px;
    color: #b45309;
    line-height: 1.5;
    box-sizing: border-box;
}

.rfw-sim-disclaimer p {
    margin: 0;
}
