/* ============================================================
   WIZARD GLOBAL THEME — TMA 2026 Branding
============================================================ */

:root {
    --tma-blue: #05367B;
    --tma-blue-light: #305CDE;
    --tma-gray: #f5f7fb;
    --tma-shadow: rgba(0, 0, 0, 0.1);
}

/* GLOBAL ANIMATIONS */
.fade-in {
    animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Subtle transitions for UI polish */
* {
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* ============================================================
   PAGE & LAYOUT STRUCTURE
   (Fixes the broken content / sidebar / footer alignment)
============================================================ */

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: var(--tma-gray);
}

/* Sidebar + Content wrapper */
#wizard-main {
    flex: 1;
    display: flex;
    align-items: stretch;

    /* FIX: Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Sidebar placement fix */
.wizard-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 3px 0 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 110px; /* Same height as header */
    height: calc(100vh - 110px);
    overflow-y: auto;
    z-index: 5;
}

/* Content area alignment fix */
.wizard-content {
    flex: 1;
    padding: 40px;
    background: var(--tma-gray);
    min-height: calc(100vh - 110px);

    /* FIX horizontal scrolling */
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Remove extra spacing on welcome page */
#wizard-step-container {
    margin-top: 0;
}

/* ============================================================
   FOOTER
============================================================ */

.wizard-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding: 22px 0;
    text-align: center;
    width: 100%;
}

.wizard-footer-inner p {
    margin: 0;
    font-size: 14px;
    color: #555;
    opacity: 0.9;
}

/* ============================================================
   RESPONSIVE FIXES
============================================================ */

@media (max-width: 900px) {

    #wizard-main {
        flex-direction: column;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .wizard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        box-shadow: none;
    }

    .wizard-content {
        margin-left: 0;
        padding: 20px;

        /* needed again on mobile */
        overflow-x: hidden;
        box-sizing: border-box;
    }
}
/* ============================================================
   HARD OVERRIDES TO ELIMINATE HORIZONTAL SCROLL
============================================================ */

html, body {
    overflow-x: hidden !important;
}

#wizard-main,
.wizard-content,
.wizard-header,
.wizard-header-inner {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

.step-card {
    max-width: 100%;
    overflow-x: hidden;
}
.nav-item i {
    width: 18px;
    flex-shrink: 0;
    overflow: hidden;
    display: inline-block;
}
.fa-solid, .fas {
    max-width: 100%;
    overflow: hidden;
    display: inline-block;
}
