/* DIAGNOSTIC STYLES - Jerry.ma (Tactical & Premium) */

/* Page Container - Dark Mode by default */
.container {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove side margins */
    width: 100% !important;
    max-width: none !important;
    background: url('assets/hero/hero-diagnostic.jpg.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden; /* Prevent body scroll */
}

/* Card Container */
.card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 520px;
    border-radius: 30px;
    padding: var(--space-lg) var(--space-lg) var(--space-lg); /* Reduced top padding from XL */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    max-height: 90dvh; /* Zero Scroll Core */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Internal scroll only */
    transition: transform 0.3s ease;
}

/* Progress Bar */
.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.05);
}

.progress-fill {
    height: 100%;
    background: var(--burnt-orange);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Step Container */
.step {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.active {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Step Elements */
.step-tag {
    color: var(--burnt-orange);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px; /* Tapered from 20px */
    display: block;
}

h2 {
    font-weight: 900;
    font-size: 2.2rem; /* Massive titles */
    color: var(--slate-blue);
    margin: 0 0 10px 0; /* Tightened from space-sm */
    line-height: 1.1;
    letter-spacing: -1px;
}

.helper {
    font-size: 1rem;
    opacity: 0.6;
    margin-bottom: 15px; /* Tapered from space-md */
    line-height: 1.5;
    display: block;
    font-weight: 600;
}

/* Jerry Data Numbers - Specialized for numeric inputs */
.jerry-data-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--burnt-orange);
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

/* Sub-Question / Extra Container (e.g. Renforcement format) */
.extra-question-container {
    margin-top: 15px !important;
    padding: 12px 15px !important;
    border-radius: 15px !important;
}

.check-item-sm {
    margin-bottom: 8px !important;
    font-size: 0.9rem !important;
}

/* Option Buttons - Tactical Block Style */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.opt-btn {
    background: #f8fafc;
    padding: 18px 22px; /* Denser */
    border-radius: 18px;
    cursor: pointer;
    font-weight: 800;
    border: 3px solid #f1f5f9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.opt-btn span {
    font-size: 1.5rem;
}

.opt-btn:hover {
    border-color: #e2e8f0;
    transform: translateX(5px);
}

.opt-btn.selected {
    border-color: var(--burnt-orange);
    background: rgba(211, 84, 0, 0.03);
    color: var(--burnt-orange);
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.1);
}

/* Input Fields - Deep & Focused */
.input-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

input[type="number"],
input[type="tel"],
input[type="text"] {
    width: 100%;
    max-width: 320px;
    height: 90px;
    background: #f8fafc;
    border: 4px solid #f1f5f9;
    border-radius: 25px;
    text-align: center;
    font-size: 3rem; /* Huge numbers */
    font-weight: 900;
    color: var(--burnt-orange);
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

input:focus {
    border-color: var(--burnt-orange);
    background: white;
    box-shadow: 0 15px 30px rgba(211, 84, 0, 0.1);
}

/* Unit labels under inputs */
.unit-label {
    font-weight: 900;
    margin-top: 20px;
    color: var(--slate-blue);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Checkboxes - Block Style */
.checks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.05rem;
    border: 3px solid #f1f5f9;
    transition: all 0.2s ease;
}

.check-item input {
    display: none;
}

.checkmark {
    width: 28px;
    height: 28px;
    border-radius: 8px; /* Square tactique */
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.check-item.active {
    border-color: var(--burnt-orange);
    background: rgba(211, 84, 0, 0.03);
    color: var(--burnt-orange);
}

.check-item.active .checkmark {
    border-color: var(--burnt-orange);
    background: var(--burnt-orange);
}

.check-item.active .checkmark::after {
    content: '✓';
    color: white;
    font-size: 18px;
    font-weight: 900;
}

/* Achievement Badges for Milestones */
.milestone-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--slate-blue);
    color: var(--burnt-orange);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Intensity Sliders */
.intensity-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    border: 3px solid #f1f5f9;
}

.intensity-label {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--slate-blue);
}

.intensity-value {
    color: var(--burnt-orange);
    font-size: 1.4rem;
}

.intensity-slider {
    width: 100%;
    height: 12px;
    border-radius: 10px;
    outline: none;
    background: #e2e8f0;
    -webkit-appearance: none;
    appearance: none;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--burnt-orange);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.btn {
    flex: 1;
    padding: 22px;
    border-radius: 20px;
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-prev {
    background: #f1f5f9;
    color: #64748b;
    flex: 1; /* Match next btn */
    white-space: nowrap;
}

.btn-prev:hover {
    background: #e2e8f0;
}

.btn-next {
    background: var(--slate-blue);
    color: white;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2);
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.btn-next:disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive fixes */
@media (max-width: 480px) {
    .container {
        padding: 0; /* High density immersion */
        min-height: 100dvh;
        overflow: hidden;
    }

    .card {
        padding: 15px 15px 12px; /* Optimized for Zero Scroll */
        border-radius: 20px;
        max-height: 94dvh; /* Maximum immersion */
        width: 100%;
    }
    
    .step-tag {
        margin-bottom: 4px;
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .helper {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .options-list, .checks-list {
        gap: 6px;
        margin-top: 8px;
    }

    .opt-btn, .check-item {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .opt-btn span {
        font-size: 1.2rem;
    }

    .jerry-data-number {
        font-size: 2.2rem;
    }

    input[type="number"],
    input[type="tel"],
    input[type="text"] {
        font-size: 1.8rem;
        height: 55px;
        border-radius: 12px;
    }

    /* Footer Nav mobile standard */

    .btn {
        padding: 12px;
        font-size: 0.82rem; /* Reduced further to ensure fit */
        letter-spacing: 0.5px;
    }

    .btn-prev {
        flex: 1 !important;
        white-space: nowrap;
    }
    
    .btn-next {
        flex: 1 !important;
    }
}

/* Animations */
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.shake-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

