
/* WIZARD CODE */

/* Wizard tagline - smaller size and tighter spacing */
#app-wizard-modal h2 { 
    display: block;
    gap: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    text-align: center;
    margin: -1rem 0 1rem;
    line-height: 1.4;
}

#app-wizard-modal h3 {
    font-size: 2rem;
    color: #aaa;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

#app-wizard-modal h4 {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Wizard icons inline with titles */
.wizard-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 10px;
}

.wizard-label {
    display: block;
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.wizard-content {
    text-align: center;
}

.wizard-nav {
    display: flex;
    justify-content: space-between; /* Puts Back on left, Next on right */
    gap: 12px;
    align-items: center;
    padding: 20px 30px;
    margin-top: auto; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* If ONLY the "Start My Journey" button exists, center it */
.wizard-nav:has(> :only-child) {
    justify-content: center;
}

/* WIZARD BUTTON STYLES - FIX */
.btn-wizard-primary {
    background-color: var(--accent-color);
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    min-width: 160px;
    transition: transform 0.1s, filter 0.2s;
    white-space: nowrap;
    font-size: 1rem;
}

.btn-wizard-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-wizard-secondary {
    background: transparent;
    border: 1px solid var(--box-border);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
    transition: background 0.2s;
    white-space: nowrap;
    font-size: 1rem;
}

.btn-wizard-secondary:hover {
    background: #333;
}

/* Wizard Progress Dots */
.dots-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 20px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #555; 
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Blue filled for completed */
.dot.completed {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* White-ish border for current */
.dot.current {
    border-color: #9dc6d8;
    /* This adds a glow/halo effect without increasing size */
    box-shadow: 0 0 0 2px rgba(157, 198, 216, 0.4); 
}

/* If it is BOTH completed and current, keep it blue but show the border */
.dot.completed.current {
    background-color: var(--accent-color);
    border-color: #ffffff; /* Bright white to pop against blue */
}

.dot.skipped {
    background-color: #333;
    border-color: #555;
}

/* Dark Mode Time Inputs */
/* 1 2 3 4 5 6 7 8 9 10 11 12 am pm selector buttons*/
/* cosmetic only, no structure -- the structure is in .input subgroup select */
.dark-time-input {
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
    width: 100%;
    max-width: 100px;
    margin: 0;
    /* Match .input-subgroup select sizing so wizard inputs aren't too short */
    height: 36px;
    font-size: 1.1rem;
    padding: 0 0 0 6px;
    box-sizing: border-box;
}

/* Wizard time input layout — centers the select pair under each question */
.wizard-q-group .time-input-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns for desktop */
    gap: 10px;
    margin-top: 20px;
    text-align: left;
}

.review-item {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
    display: flex;
    justify-content: space-between;
}

.text-muted {
    color: #777;
    font-style: italic;
}


/* Wizard modal - SCROLLING FIX */
#app-wizard-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: flex; /* Change from block to flex like info modal */
    align-items: flex-start; /* Not center, so it can scroll */
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0; /* Add padding for scroll breathing room */
}


/* ---- MOBILE ------ */

/* This handles the switch from 6 columns to 4 columns */
@media (max-width: 800px) {

    /* MOBILE WIZARD SCROLLING FIX */
    #app-wizard-modal .modal-content {
        margin: 0; /* Remove margin on mobile */
        min-height: 100vh; /* Ensure full height */
        border-radius: 0; /* Remove rounded corners on mobile */
    }
}

@media (max-width: 600px) {
    /* wizard */
    .review-grid { grid-template-columns: 1fr; }
}

/* END WIZARD CODE */
