/* Help Intent Audio Button Styles */
/* Glass-Neumorphism Audio Button */
.help-audio-btn {
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    /* Glass-Neumorphism button */
    background: linear-gradient(145deg, #FFE8D0, #FFF0E0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        6px 6px 16px rgba(255, 140, 0, 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.9),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(255, 140, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0 8px;
    position: relative;
}
.help-audio-btn.prominent {
    width: 88px;
    height: 88px;
    background: linear-gradient(145deg, #FFE5C8, #FFEED8);
    box-shadow:
        8px 8px 24px rgba(255, 140, 0, 0.2),
        -8px -8px 24px rgba(255, 255, 255, 0.95),
        inset 0 3px 6px rgba(255, 255, 255, 0.9),
        inset 0 -3px 6px rgba(255, 140, 0, 0.12);
}
.help-audio-btn:hover {
    transform: scale(1.05);
    box-shadow:
        8px 8px 24px rgba(255, 140, 0, 0.22),
        -8px -8px 24px rgba(255, 255, 255, 1),
        0 8px 20px rgba(255, 140, 0, 0.2);
}
.help-audio-btn:active, .help-audio-btn:focus {
    transform: scale(0.98);
    box-shadow:
        inset 4px 4px 10px rgba(255, 120, 0, 0.15),
        inset -4px -4px 10px rgba(255, 255, 255, 0.7);
    background: linear-gradient(145deg, #FFDFC0, #FFE8D0);
}
.help-audio-mic {
    display: block;
    width: 38px;
    height: 38px;
    background: none;
    mask: url('data:image/svg+xml;utf8,<svg width="38" height="38" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" fill="none"/><path d="M12 16c1.66 0 3-1.34 3-3V7c0-1.66-1.34-3-3-3s-3 1.34-3 3v6c0 1.66 1.34 3 3 3zm5-3c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.07 2.13 5.64 5 6.32V21h2v-1.68c2.87-.68 5-3.25 5-6.32h-2z" fill="orange"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg width="38" height="38" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" fill="none"/><path d="M12 16c1.66 0 3-1.34 3-3V7c0-1.66-1.34-3-3-3s-3 1.34-3 3v6c0 1.66 1.34 3 3 3zm5-3c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.07 2.13 5.64 5 6.32V21h2v-1.68c2.87-.68 5-3.25 5-6.32h-2z" fill="orange"/></svg>') center/contain no-repeat;
    background-color: #FF9800;
}
.help-type-link {
    color: #FF9800;
    font-weight: 600;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 8px;
    margin-right: 8px;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    transition: color 0.2s;
}
.help-type-link:hover {
    color: #FF8C00;
}
.help-type-textarea {
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
/* ========================================
   Mobile Responsive Styles
   Optimized for touch and smaller screens
   ======================================== */

@media (max-width: 600px) {
    .wizard-modal-overlay::before {
        display: none; /* Hide click outside hint on mobile */
    }

    .wizard-modal-overlay {
        /* Allow scrolling on the overlay for mobile */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wizard-modal-container {
        width: 100%;
        max-width: 100vw;
        /* Use min-height instead of height to allow expansion with larger fonts */
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
        max-height: none; /* Remove max-height restriction */
        height: auto;
        border-radius: 0;
        animation: wizardModalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        /* Allow content to overflow and scroll */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes wizardModalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .wizard-header {
        padding: 20px 20px 16px;
        border-radius: 0;
    }

    .wizard-title {
        font-size: 22px;
    }

    .wizard-subtitle {
        font-size: 14px;
    }

    .wizard-close {
        top: 12px;
        right: 12px;
    }

    .wizard-progress {
        padding: 16px 12px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wizard-progress-step {
        min-width: 60px;
    }

    .wizard-progress-circle {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .wizard-progress-label {
        font-size: 10px;
    }

    .wizard-body {
        padding: 20px 16px;
        padding-bottom: 160px; /* Space for fixed footer */
        /* Ensure scrolling works on mobile with larger fonts */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Allow body to grow with content */
        min-height: 0;
        flex: 1 1 auto;
    }

    .wizard-step h3 {
        font-size: 20px;
    }

    .wizard-step-description {
        font-size: 14px;
    }

    .wizard-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        background: var(--bg-white);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .wizard-footer-info {
        width: 100%;
        justify-content: center;
        order: -1;
        margin-bottom: 4px;
    }

    .wizard-btn {
        flex: 1;
        min-height: 52px;
        font-size: 16px;
        border-radius: 12px;
    }

    .wizard-btn-primary {
        font-size: 17px;
        font-weight: 700;
    }

    .wizard-btn-secondary {
        flex: 0 0 auto;
        min-width: 100px;
    }

    .wizard-btn-secondary::before {
        display: none;
    }

    .wizard-btn-primary::after {
        display: none;
    }

    /* Segment cards - 2 column on mobile */
    .wizard-segment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wizard-segment-card {
        padding: 16px 12px;
    }

    .wizard-segment-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .wizard-segment-title {
        font-size: 13px;
    }

    .wizard-segment-desc {
        font-size: 11px;
    }

    /* Skills grid - 2 column on mobile */
    .wizard-skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .wizard-skill-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Photo upload compact */
    .wizard-photo-upload {
        flex-direction: column;
        text-align: center;
    }

    .wizard-photo-preview {
        width: 72px;
        height: 72px;
    }

    /* Form inputs touch-friendly */
    .wizard-form-input,
    .form-input {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    textarea.wizard-form-input,
    textarea.form-input {
        min-height: 100px;
    }

    /* Summary compact */
    .wizard-summary-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .wizard-summary-value {
        max-width: 100%;
        text-align: left;
    }

    /* Toast position for mobile */
    .wizard-toast {
        left: 16px;
        right: 16px;
        bottom: 100px;
        transform: translateY(100px);
    }

    .wizard-toast.show {
        transform: translateY(0);
    }
}

/* Small phones */
@media (max-width: 380px) {
    .wizard-segment-grid {
        grid-template-columns: 1fr;
    }

    .wizard-skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wizard-progress-label {
        display: none;
    }

    .wizard-progress-step:not(:last-child)::after {
        top: 16px;
    }
}

/* Tablet landscape */
@media (min-width: 601px) and (max-width: 900px) {
    .wizard-modal-container {
        width: 90%;
        max-width: 600px;
    }
}

/* Large screens */
@media (min-width: 901px) {
    .wizard-modal-container {
        width: 620px;
    }

    .wizard-segment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Jambvant - Profile Wizard Styles */
/* Modern UX inspired by LinkedIn, Notion, and top web apps */

.wizard-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glass-Neumorphism overlay */
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wizard-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Clicking outside to close indicator */
.wizard-modal-overlay::before {
    content: 'Click outside to close';
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease 0.5s;
    pointer-events: none;
}

.wizard-modal-overlay.active::before {
    opacity: 1;
}

.wizard-modal-container {
    /* Glass-Neumorphism wizard container */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    box-shadow:
        14px 14px 40px var(--glass-neu-dark, rgba(0, 0, 0, 0.12)),
        -14px -14px 40px var(--glass-neu-light, rgba(255, 255, 255, 0.95)),
        inset 0 2px 2px rgba(255, 255, 255, 0.95),
        inset 0 -1px 1px rgba(0, 0, 0, 0.02);
    width: 580px;
    max-width: 95%;
    max-height: 90vh;
    position: relative;
    animation: wizardModalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Changed from hidden to allow scrolling within wizard-body */
    overflow: visible;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .wizard-modal-container {
    background: rgba(28, 28, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        14px 14px 40px var(--glass-neu-dark, rgba(0, 0, 0, 0.5)),
        -14px -14px 40px var(--glass-neu-light, rgba(50, 50, 50, 0.3)),
        inset 0 2px 2px rgba(255, 255, 255, 0.04);
}

@keyframes wizardModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal closing animation */
.wizard-modal-overlay.closing .wizard-modal-container {
    animation: wizardModalSlideOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes wizardModalSlideOut {
    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

.wizard-header {
    padding: 28px 28px 20px;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: white;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

/* Decorative pattern overlay */
.wizard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.wizard-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.wizard-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.wizard-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.wizard-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.wizard-subtitle {
    margin: 10px 0 0 0;
    font-size: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Modern Progress Bar - LinkedIn/Notion style */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 28px;
    background-color: var(--bg-white);
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
    gap: 8px;
}

.wizard-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 120px;
}

.wizard-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 3px;
    background-color: var(--border-color);
    z-index: 0;
    border-radius: 2px;
    transition: background-color 0.4s ease;
}

.wizard-progress-step.completed::after {
    background: linear-gradient(90deg, #FF8C00, #FFB347);
}

.wizard-progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-progress-step.active .wizard-progress-circle {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    border-color: #FF8C00;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.4);
}

.wizard-progress-step.completed .wizard-progress-circle {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-color: #10B981;
    color: white;
}

/* Checkmark for completed steps */
.wizard-progress-step.completed .wizard-progress-circle::after {
    content: '\2713';
    font-size: 16px;
    font-weight: 700;
}

.wizard-progress-step.completed .wizard-progress-circle span {
    display: none;
}

.wizard-progress-label {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.wizard-progress-step.active .wizard-progress-label {
    color: #FF8C00;
    font-weight: 700;
}

.wizard-progress-step.completed .wizard-progress-label {
    color: #10B981;
}

.wizard-body {
    padding: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    scroll-behavior: smooth;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: wizardStepFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Direction-aware animations for next/prev navigation */
.wizard-step.active.slide-left {
    animation: wizardStepSlideLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step.active.slide-right {
    animation: wizardStepSlideRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes wizardStepSlideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes wizardStepSlideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-step h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.wizard-step-description {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Step indicator badge */
.wizard-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #FF8C00;
    margin-bottom: 16px;
}

.wizard-footer {
    padding: 20px 28px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Footer info text */
.wizard-footer-info {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-footer-info svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.wizard-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.wizard-btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.wizard-btn-secondary:hover:not(:disabled) {
    background-color: var(--border-color);
    transform: translateX(-2px);
}

.wizard-btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Arrow icon for back button */
.wizard-btn-secondary::before {
    content: '\2190';
    font-size: 18px;
    margin-right: 4px;
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: white;
    flex: 1;
    max-width: 200px;
    box-shadow: 0 4px 14px rgba(255, 140, 0, 0.25);
}

.wizard-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4);
}

.wizard-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.4);
}

.wizard-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

/* Arrow icon for next button */
.wizard-btn-primary::after {
    content: '\2192';
    font-size: 18px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.wizard-btn-primary:hover:not(:disabled)::after {
    transform: translateX(4px);
}

/* Submit button style - different icon */
#wizardSubmitBtn::after {
    content: '\2713';
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading state for buttons */
.wizard-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.wizard-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: wizardBtnSpin 0.8s linear infinite;
}

@keyframes wizardBtnSpin {
    to { transform: rotate(360deg); }
}

.wizard-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.wizard-segment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.wizard-segment-card {
    padding: 20px 16px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Selection indicator */
.wizard-segment-card::before {
    content: '\2713';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10B981;
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-segment-card:hover {
    border-color: #FF8C00;
    background-color: rgba(255, 140, 0, 0.03);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.12);
}

.wizard-segment-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3);
}

.wizard-segment-card.selected {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
    transform: translateY(-2px);
}

.wizard-segment-card.selected::before {
    opacity: 1;
    transform: scale(1);
    background: white;
    color: #FF8C00;
}

.wizard-segment-card.selected .wizard-segment-title,
.wizard-segment-card.selected .wizard-segment-desc {
    color: white;
}

.wizard-segment-icon {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.wizard-segment-card:hover .wizard-segment-icon {
    transform: scale(1.1);
}

.wizard-segment-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.wizard-segment-desc {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
}

.wizard-skill-item {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--bg-white);
    position: relative;
}

.wizard-skill-item:hover {
    border-color: #FF8C00;
    background-color: rgba(255, 140, 0, 0.05);
    transform: translateY(-2px);
}

.wizard-skill-item:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.wizard-skill-item.selected {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Skill item selection animation */
.wizard-skill-item.selected::after {
    content: '\2713';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: skillCheckPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes skillCheckPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.wizard-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 14px;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.wizard-toggle-container:hover {
    border-color: rgba(255, 140, 0, 0.3);
}

.wizard-toggle-label {
    flex: 1;
}

.wizard-toggle-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 15px;
}

.wizard-toggle-description {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

.wizard-toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    margin-left: 16px;
    flex-shrink: 0;
}

.wizard-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wizard-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
}

.wizard-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wizard-toggle-switch input:checked + .wizard-toggle-slider {
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
}

.wizard-toggle-switch input:checked + .wizard-toggle-slider:before {
    transform: translateX(26px);
}

.wizard-toggle-switch input:focus + .wizard-toggle-slider {
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3);
}

/* Review/Summary Section - Card style */
.wizard-summary {
    background-color: var(--bg-white);
    border-radius: 14px;
    padding: 0;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.wizard-summary-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.08) 0%, rgba(255, 140, 0, 0.03) 100%);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FF8C00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.wizard-summary-item:last-child {
    border-bottom: none;
}

.wizard-summary-item:hover {
    background-color: rgba(255, 140, 0, 0.02);
}

.wizard-summary-label {
    font-weight: 500;
    color: var(--text-gray);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wizard-summary-label-icon {
    font-size: 16px;
    opacity: 0.7;
}

.wizard-summary-value {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
    max-width: 60%;
    font-size: 14px;
    line-height: 1.4;
}

.wizard-summary-value.empty {
    color: var(--text-gray);
    font-style: italic;
    font-weight: 400;
}

/* Edit button in summary */
.wizard-summary-edit {
    margin-left: 8px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #FF8C00;
    background: rgba(255, 140, 0, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-summary-edit:hover {
    background: rgba(255, 140, 0, 0.2);
}

.wizard-skills-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    min-height: 40px;
}

.wizard-skill-tag {
    padding: 8px 14px;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: tagPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.25);
}

@keyframes tagPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.wizard-skill-tag-remove {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.wizard-skill-tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Empty state for skills */
.wizard-skills-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-gray);
    font-size: 14px;
}

.wizard-skills-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Custom Scrollbar Styles for Wizard Body */
.wizard-body::-webkit-scrollbar {
    width: 6px;
}

.wizard-body::-webkit-scrollbar-track {
    background: transparent;
}

.wizard-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.wizard-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Firefox scrollbar */
.wizard-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* ========================================
   Enhanced Form Input Styles
   Modern floating label & validation styles
   ======================================== */

.wizard-form-group {
    margin-bottom: 20px;
    position: relative;
}

.wizard-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.wizard-form-label.required::after {
    content: '*';
    color: #EF4444;
    margin-left: 4px;
}

.wizard-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.wizard-form-input:hover {
    border-color: rgba(255, 140, 0, 0.4);
}

.wizard-form-input:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.12);
}

.wizard-form-input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

/* Textarea specific */
textarea.wizard-form-input {
    resize: vertical;
    min-height: 100px;
}

/* Input with icon */
.wizard-input-icon-wrapper {
    position: relative;
}

.wizard-input-icon-wrapper .wizard-form-input {
    padding-left: 44px;
}

.wizard-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-gray);
    pointer-events: none;
    transition: color 0.2s ease;
}

.wizard-input-icon-wrapper:focus-within .wizard-input-icon {
    color: #FF8C00;
}

/* Validation states */
.wizard-form-input.valid {
    border-color: #10B981;
}

.wizard-form-input.valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.wizard-form-input.invalid {
    border-color: #EF4444;
}

.wizard-form-input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.wizard-form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: #EF4444;
    animation: errorShake 0.4s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.wizard-form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Character counter */
.wizard-char-counter {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 11px;
    color: var(--text-gray);
    background: var(--bg-white);
    padding: 2px 6px;
    border-radius: 4px;
}

.wizard-char-counter.warning {
    color: #F59E0B;
}

.wizard-char-counter.limit {
    color: #EF4444;
}

/* Photo upload enhanced */
.wizard-photo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.wizard-photo-upload:hover {
    border-color: rgba(255, 140, 0, 0.5);
    background: rgba(255, 140, 0, 0.03);
}

.wizard-photo-upload.dragover {
    border-color: #FF8C00;
    background: rgba(255, 140, 0, 0.08);
}

.wizard-photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.wizard-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-photo-preview-placeholder {
    font-size: 32px;
    color: var(--text-gray);
    opacity: 0.5;
}

.wizard-photo-info {
    flex: 1;
}

.wizard-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-photo-btn:hover {
    background: var(--bg-light);
    border-color: #FF8C00;
    color: #FF8C00;
}

.wizard-photo-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-gray);
}

/* Success toast notification */
.wizard-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 24px;
    background: #10B981;
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.wizard-toast.error {
    background: #EF4444;
}

/* Zoom-aware wizard modal adjustments */
@media screen and (min-resolution: 1.25dppx) {
    .wizard-modal-container {
        max-height: 85vh;
    }
}

@media screen and (min-resolution: 1.5dppx) {
    .wizard-modal-container {
        max-height: 80vh;
    }
}

@media screen and (min-resolution: 2dppx) {
    .wizard-modal-container {
        max-height: 75vh;
    }
}

/* ========================================
   Accessibility Improvements
   ======================================== */

/* Focus visible for keyboard navigation */
.wizard-segment-card:focus-visible,
.wizard-skill-item:focus-visible,
.wizard-btn:focus-visible {
    outline: 3px solid #FF8C00;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .wizard-modal-container,
    .wizard-step,
    .wizard-progress-circle,
    .wizard-segment-card,
    .wizard-skill-item,
    .wizard-btn {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wizard-form-input {
        border-width: 3px;
    }

    .wizard-progress-step.active .wizard-progress-circle {
        border-width: 3px;
    }
}

/* ========================================
   Large Text / Accessibility Font Size Support
   Ensures wizard is scrollable when system font size is increased
   ======================================== */

/* Mobile with large text - ensure scrollability */
@media (max-width: 600px) {
    /* When root font size is large (user has increased text size) */
    .wizard-modal-overlay {
        position: fixed;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wizard-modal-container {
        /* Remove fixed height constraints */
        position: relative;
        height: auto;
        min-height: 100%;
        max-height: none;
        /* Allow vertical scrolling */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Prevent touch-action issues on Android */
        touch-action: pan-y;
    }

    .wizard-body {
        /* Ensure body content is scrollable */
        overflow-y: visible;
        overflow-x: hidden;
        /* Allow natural flow */
        height: auto;
        min-height: auto;
        max-height: none;
        /* Touch scrolling */
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pan-x;
    }

    .wizard-progress {
        /* Allow horizontal scroll for progress steps with larger fonts */
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        /* Ensure touch scrolling works */
        touch-action: pan-x;
    }

    .wizard-footer {
        /* Keep footer accessible but allow page scroll */
        position: sticky;
        bottom: 0;
        z-index: 1001;
    }

    /* Segment grid - single column on large text */
    .wizard-segment-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Skills grid - ensure readable with large text */
    .wizard-skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ========================================
   Mobile Swipe-to-Dismiss Handle
   ======================================== */

.wizard-swipe-handle {
    display: none; /* Hidden on desktop */
}

@media (max-width: 600px) {
    .wizard-swipe-handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 16px 8px;
        background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
        cursor: grab;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
    }

    .wizard-swipe-handle:active {
        cursor: grabbing;
    }

    .wizard-swipe-indicator {
        width: 40px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 3px;
        margin-bottom: 4px;
    }

    .wizard-swipe-hint {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 500;
    }

    /* Animate when being dragged */
    .wizard-modal-container.dragging {
        transition: none !important;
    }

    .wizard-modal-container.dismissing {
        transition: transform 0.3s ease-out, opacity 0.3s ease-out !important;
    }
}

/* Extra small screens or very large text */
@media (max-width: 380px) {
    .wizard-modal-container {
        /* Full viewport on tiny screens */
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .wizard-header {
        padding: 16px;
    }

    .wizard-title {
        font-size: 18px;
    }

    .wizard-subtitle {
        font-size: 13px;
    }

    .wizard-body {
        padding: 16px 12px;
        padding-bottom: 140px;
    }

    .wizard-footer {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .wizard-btn {
        min-height: 48px;
        font-size: 14px;
        padding: 12px 16px;
    }
}
