/* ============================================
   AI Career Path Generator v2.0 - CSS
   Energetic Progress Bar + Mobile-First Design
   FIXED: Respect Master Page Header/Footer
   ============================================ */

/* ============================================
   0. MASTER PAGE COMPATIBILITY
   ============================================ */

/* Ensure content doesn't overlap header */
.career-wizard-v2 {
    position: relative;
    min-height: calc(100vh - 200px);
    /* Account for header + footer */
    padding-top: 0;
    z-index: 1;
}

/* Progress bar should be below header */
.progress-bar-container {
    position: fixed;
    top: 80px;
    /* Below header (header is ~80px tall) */
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    /* Below header (1000+) but above content */
    display: none;
    /* Hidden on welcome screen */
    animation: slideDown 0.5s ease;
}

/* Mobile: Progress bar below mobile header */
@media (max-width: 991px) {
    .progress-bar-container {
        top: 60px;
        /* Mobile header is shorter */
    }
}

/* ============================================
   1. ENERGETIC PROGRESS BAR
   ============================================ */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Progress Track */
.progress-track {
    height: 10px;
    background: linear-gradient(90deg, #E5E7EB 0%, #F3F4F6 50%, #E5E7EB 100%);
    background-size: 200% 100%;
    border-radius: 12px;
    overflow: visible;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Animated Fill with Gradient */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
            #DAA520 0%,
            #B8860B 25%,
            #FFD700 50%,
            #B8860B 75%,
            #DAA520 100%);
    background-size: 300% 100%;
    border-radius: 12px;
    position: relative;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradient-shift 4s ease infinite;
    box-shadow:
        0 0 20px rgba(184, 134, 11, 0.4),
        0 2px 10px rgba(184, 134, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Glow Effect */
.progress-glow {
    position: absolute;
    top: -2px;
    right: -20px;
    width: 150px;
    height: calc(100% + 4px);
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: shimmer 2s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-150px);
    }

    100% {
        transform: translateX(100px);
    }
}

/* Floating Particles */
.progress-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
    opacity: 0;
}

.particle:nth-child(1) {
    left: 15%;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(2) {
    left: 45%;
    animation: float 3s ease-in-out 1s infinite;
}

.particle:nth-child(3) {
    left: 75%;
    animation: float 3s ease-in-out 2s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-12px) scale(1.2);
        opacity: 0.8;
    }

    90% {
        opacity: 0.3;
    }
}

/* Progress Info */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

.progress-text {
    color: #4B5563;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
}

.progress-percentage {
    color: #B8860B;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Step Dots */
.step-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E5E7EB;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-dot.active {
    background: #B8860B;
    transform: scale(1.4);
    box-shadow:
        0 0 15px rgba(184, 134, 11, 0.6),
        0 0 25px rgba(184, 134, 11, 0.3);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow:
            0 0 15px rgba(184, 134, 11, 0.6),
            0 0 25px rgba(184, 134, 11, 0.3);
    }

    50% {
        box-shadow:
            0 0 25px rgba(184, 134, 11, 0.8),
            0 0 40px rgba(184, 134, 11, 0.5);
    }
}

.step-dot.completed {
    background: #10B981;
    transform: scale(1.1);
    animation: checkmark 0.5s ease;
}

.step-dot.completed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ============================================
   2. GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: 100vh;
}

.career-wizard-v2 {
    min-height: 100vh;
    padding-top: 0;
}

/* Screen WITHOUT progress bar (Welcome screen) */
.career-wizard-v2 .wizard-screen {
    padding-top: 80px;
    /* Space for header */
}

/* Screen WITH progress bar visible */
.career-wizard-v2.with-progress .wizard-screen {
    padding-top: 180px;
    /* Space for header (80px) + progress bar (100px) */
}

/* ============================================
   3. WIZARD SCREENS
   ============================================ */

.wizard-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Containers */
.container-narrow {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.container-wide {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   4. WELCOME SCREEN
   ============================================ */

.welcome-screen {
    background: radial-gradient(circle at top, #fffdf7 0%, #ffffff 100%);
    text-align: center;
}

.hero-icon {
    margin-bottom: 30px;
}

.rocket-animation {
    position: relative;
    display: inline-block;
    animation: rocketBounce 2s ease-in-out infinite;
}

.rocket {
    font-size: 80px;
    display: inline-block;
    animation: rocketRotate 3s ease-in-out infinite;
}

@keyframes rocketBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rocketRotate {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

.rocket-trail {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom,
            rgba(255, 165, 0, 0.6) 0%,
            rgba(255, 165, 0, 0.3) 50%,
            transparent 100%);
    border-radius: 50%;
    animation: trailPulse 0.5s ease-in-out infinite;
}

@keyframes trailPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleY(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.2);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #1d2330;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

.hero-subtitle {
    font-size: 18px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: #B8860B;
    font-weight: 700;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.trust-badge i {
    font-size: 24px;
    color: #B8860B;
}

.trust-badge div {
    text-align: left;
}

.trust-badge strong {
    display: block;
    font-size: 20px;
    color: #1d2330;
    font-weight: 700;
}

.trust-badge span {
    display: block;
    font-size: 12px;
    color: #6B7280;
}

/* Privacy Acceptance */
.privacy-acceptance {
    max-width: 500px;
    margin: 40px auto;
    text-align: left;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.checkbox-wrapper:hover {
    border-color: #B8860B;
    background: #FFFDF7;
}

.privacy-checkbox {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #B8860B;
}

.privacy-label {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
    cursor: pointer;
}

.privacy-label a {
    color: #B8860B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-label a:hover {
    color: #9A7209;
    text-decoration: underline;
}

.error-message {
    display: block;
    color: #EF4444;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

/* ============================================
   7. STANDARD SITE BUTTONS (COMPACT & PROFESSIONAL)
   Matching apply-now, course-details, institute pages
   ============================================ */

/* Primary Button - Site Standard with Gold-to-Black Gradient */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(90deg, #B8860B 0%, #1a1a1a 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.25);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(184, 134, 11, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(90deg, #9CA3AF 0%, #6B7280 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

/* Secondary Button - Standard Outline Style */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #B8860B !important;
    background: #ffffff;
    border: 2px solid #B8860B;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #B8860B;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.25);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: translateX(-3px);
}

/* Hero Button - Premium for Start/Welcome */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    height: 56px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(90deg, #B8860B 0%, #1a1a1a 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.25);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(184, 134, 11, 0.35);
}

.btn-hero:active {
    transform: translateY(-1px);
}

.btn-hero i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-hero:hover i {
    transform: translate(4px, -4px);
}

/* Pulse animation */
.pulse-animation {
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 10px 25px rgba(184, 134, 11, 0.25);
    }

    50% {
        box-shadow: 0 15px 35px rgba(184, 134, 11, 0.4);
    }
}

/* Button sizing */
.btn-large {
    min-width: 180px;
}

/* Button group */
.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Skip link */
.skip-option {
    text-align: center;
    margin-top: 16px;
}

.skip-link {
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.skip-link:hover {
    color: #B8860B;
    background: rgba(184, 134, 11, 0.1);
    text-decoration: none;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
    margin-top: 20px;
}

.security-badge i {
    color: #10B981;
}

/* ============================================
   5. QUESTION SCREENS
   ============================================ */

.question-screen {
    padding-top: 140px;
    /* Account for progress bar */
}

.emoji-large {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.question-title {
    font-size: 36px;
    font-weight: 700;
    color: #1d2330;
    line-height: 1.3;
    margin-bottom: 12px;
    text-align: center;
}

.animate-slide-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-helper {
    font-size: 16px;
    color: #6B7280;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.highlight-text {
    color: #B8860B;
    font-weight: 700;
}

/* ============================================
   6. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .progress-bar-container {
        padding: 12px 15px;
        top: 60px;
        /* Mobile header height */
    }

    .progress-track {
        height: 8px;
    }

    .progress-info {
        font-size: 12px;
    }

    .progress-percentage {
        font-size: 16px;
    }

    .step-dots {
        gap: 6px;
    }

    .step-dot {
        width: 8px;
        height: 8px;
    }

    .career-wizard-v2 .wizard-screen {
        padding-top: 60px;
        /* Mobile header */
    }

    .career-wizard-v2.with-progress .wizard-screen {
        padding-top: 150px;
        /* Mobile header + progress bar */
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .trust-badges {
        gap: 15px;
    }

    .trust-badge {
        padding: 10px 15px;
    }

    .trust-badge strong {
        font-size: 16px;
    }

    .question-title {
        font-size: 28px;
    }

    .emoji-large {
        font-size: 60px;
    }

    .btn-hero,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 16px 30px;
    }
}

@media (max-width: 480px) {
    .wizard-screen {
        padding: 20px 15px;
    }

    .career-wizard-v2 .wizard-screen {
        padding-top: 60px;
    }

    .career-wizard-v2.with-progress .wizard-screen {
        padding-top: 140px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn-hero {
        width: 100%;
        padding: 16px 30px;
    }
}

/* ============================================
   7. INPUT FIELDS & FORMS
   ============================================ */

.form-grid {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.input-group-modern {
    position: relative;
    margin-bottom: 25px;
}

.label-modern {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.required {
    color: #EF4444;
    font-weight: 700;
}

.input-modern {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 16px;
    color: #1F2937;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-modern:focus {
    outline: none;
    border-color: #B8860B;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.1);
}

.input-large {
    font-size: 20px;
    padding: 18px 20px;
    text-align: center;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

.help-text {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-top: 6px;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-code {
    padding: 14px;
    background: #F3F4F6;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.phone-input {
    flex: 1;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #9CA3AF;
    box-shadow: none;
}

.btn-secondary {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #4B5563;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #B8860B;
    color: #B8860B;
    background: #FFFDF7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.btn-large {
    min-width: 200px;
}

.skip-option {
    text-align: center;
    margin-top: 20px;
}

.skip-link {
    color: #6B7280;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.skip-link:hover {
    color: #B8860B;
    text-decoration: underline;
}

/* ============================================
   8. CARD SELECTIONS
   ============================================ */

/* Education Cards */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.edu-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.edu-card:hover {
    border-color: #B8860B;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(184, 134, 11, 0.15);
}

.edu-card.selected {
    border-color: #B8860B;
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 100%);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.2);
}

.edu-card.selected::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #B8860B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.edu-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.edu-card p {
    font-size: 14px;
    color: #6B7280;
}

.animate-card {
    animation: cardSlideIn 0.5s ease;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Experience Cards */
.experience-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.exp-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.exp-card.large {
    grid-column: span 2;
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 100%);
}

.exp-card:hover {
    border-color: #B8860B;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.15);
}

.exp-card.selected {
    border-color: #B8860B;
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 100%);
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #B8860B;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.card-badge.popular {
    background: #EF4444;
}

.exp-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin: 10px 0;
}

.exp-card p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 10px;
}

.salary-hint {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* Goal Cards */
.goal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.goal-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.goal-card.featured {
    border-color: #B8860B;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.15);
}

.goal-card:hover {
    border-color: #B8860B;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.2);
}

.goal-card.selected {
    border-color: #B8860B;
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 100%);
}

.goal-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin: 15px 0 10px;
}

.goal-card p {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 15px;
}

.card-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card-stats span {
    font-size: 12px;
    color: #6B7280;
    padding: 4px 10px;
    background: #F3F4F6;
    border-radius: 8px;
}

/* Specialization */
.scrollable-cards {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.search-box-wrapper {
    margin: 30px 0 20px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 16px 20px 16px 55px;
    /* Increased padding to prevent overlap */
    font-size: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    /* Pill shape for modern look */
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Search Icon using pseudo-element on wrapper if possible, 
   but since wrapper is just a div without a class for icon in HTML, 
   we keep background image but adjusting position carefully or recommend HTML change.
   Current fix: Better background positioning and padding. */
.search-box {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B8860B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px center;
    /* Fixed position */
    background-size: 20px;
}

.search-box:focus {
    outline: none;
    border-color: #B8860B;
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15);
    background-color: #FFFDF7;
}

.search-box::placeholder {
    color: #9CA3AF;
}

.spec-category {
    margin-bottom: 30px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.spec-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spec-card:hover {
    border-color: #B8860B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.spec-card.selected {
    border-color: #B8860B;
    background: #FFFDF7;
}

.spec-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

/* Skills */
.selected-skills-display {
    min-height: 60px;
    padding: 15px;
    background: #F9FAFB;
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.skills-counter {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin-left: auto;
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category h5 {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.skill-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-chip:hover {
    border-color: #B8860B;
    background: #FFFDF7;
}

.skill-chip.selected {
    background: #B8860B;
    color: white;
    border-color: #B8860B;
}

.skill-chip i {
    font-size: 12px;
    cursor: pointer;
}

/* Target Roles */
.ai-recommendations-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 100%);
    border: 2px solid #B8860B;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #B8860B;
    margin-bottom: 25px;
}

.sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

.role-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.role-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.role-card.recommended {
    border-color: #B8860B;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.15);
}

.role-card:hover {
    border-color: #B8860B;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.2);
}

.role-card.selected {
    border-color: #B8860B;
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF9E6 100%);
}

.role-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.role-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 12px;
}

.role-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.role-stats span {
    font-size: 12px;
    color: #6B7280;
    padding: 4px 10px;
    background: #F3F4F6;
    border-radius: 8px;
}

.checkbox-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.role-card.selected .checkbox-overlay {
    background: #B8860B;
}

.checkbox-overlay i {
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card.selected .checkbox-overlay i {
    opacity: 1;
}

.selected-counter {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    margin-top: 20px;
}

/* ============================================
   9. REVIEW & GENERATING SCREENS
   ============================================ */

.review-screen {
    padding-top: 140px;
}

.completion-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.profile-review-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 2px solid #F3F4F6;
    margin-bottom: 25px;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 14px;
    color: #6B7280;
    margin: 2px 0;
}

.btn-edit {
    padding: 10px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    border-color: #B8860B;
    color: #B8860B;
}

.profile-details {
    display: grid;
    gap: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #F3F4F6;
}

.detail-item .label {
    font-weight: 600;
    color: #6B7280;
    font-size: 14px;
}

.detail-item .value {
    font-weight: 600;
    color: #1F2937;
    text-align: right;
}

.skill-chips,
.role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.skill-chips span,
.role-chips span {
    padding: 6px 12px;
    background: #B8860B;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.profile-strength {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #F3F4F6;
}

.profile-strength h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.strength-meter {
    height: 12px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 10px;
    transition: width 1s ease;
}

.strength-text {
    font-size: 14px;
    color: #6B7280;
}

.strength-text strong {
    color: #10B981;
    font-size: 18px;
}

/* Generating Screen */
.generating-screen {
    padding-top: 140px;
    text-align: center;
}

.ai-brain-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.brain-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
}

.ai-icon {
    position: relative;
    font-size: 80px;
    animation: aiFloat 3s ease-in-out infinite;
}

@keyframes aiFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

.processing-steps {
    max-width: 400px;
    margin: 40px auto;
    text-align: left;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    transition: all 0.5s ease;
}

.process-step.completed {
    border-color: #10B981;
    background: #F0FDF4;
}

.process-step.processing {
    border-color: #B8860B;
    background: #FFFDF7;
}

.process-step i {
    font-size: 20px;
}

.process-step.completed i {
    color: #10B981;
}

.process-step.processing .spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid #E5E7EB;
    border-top-color: #B8860B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.process-step.pending i {
    color: #D1D5DB;
}

.process-step span {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.fun-facts {
    margin: 40px 0;
    min-height: 60px;
}

.rotating-fact {
    font-size: 15px;
    color: #6B7280;
    font-style: italic;
    line-height: 1.6;
    animation: fadeIn 1s ease;
}

.loading-progress {
    max-width: 400px;
    margin: 40px auto 0;
}

.loading-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #DAA520 0%, #B8860B 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 14px;
    color: #6B7280;
}

.loading-text span {
    font-weight: 700;
    color: #B8860B;
}

/* ============================================
   10. MOBILE RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 768px) {

    .card-grid-3,
    .experience-timeline,
    .goal-cards,
    .spec-cards-grid,
    .role-cards-grid {
        grid-template-columns: 1fr;
    }

    .exp-card.large {
        grid-column: span 1;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-item {
        flex-direction: column;
        gap: 5px;
    }

    .detail-item .value {
        text-align: left;
    }

    .skill-chips,
    .role-chips {
        justify-content: flex-start;
    }
}

/* ============================================
   OVERRIDE: PROFESSIONAL PROGRESS BAR
   ============================================ */

/* Progress Track override */
.progress-track {
    height: 8px !important;
    background: #F3F4F6 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    background-image: none !important;
}

/* Animated Fill override */
.progress-fill {
    background: linear-gradient(90deg, #DAA520 0%, #B8860B 100%) !important;
    border-radius: 4px !important;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.3) !important;
    animation: none !important;
}

/* Remove particles and glow */
.progress-particles,
.progress-glow {
    display: none !important;
}

/* Progress Info override */
.progress-info {
    margin-top: 10px !important;
    font-size: 13px !important;
}

/* Step Dots override */
.step-dots {
    gap: 8px !important;
    margin-top: 12px !important;
}

.step-dot {
    width: 8px !important;
    height: 8px !important;
}

.step-dot.active {
    transform: scale(1.2) !important;
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.2) !important;
    animation: none !important;
}

/* ============================================
   MOBILE OPTIMIZATIONS (ADDED)
   ============================================ */

@media (max-width: 768px) {

    /* Optimize Grids for Mobile */
    .card-grid-3,
    .spec-cards-grid,
    .skill-chips-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        gap: 12px !important;
    }

    /* Smaller cards on mobile */
    .edu-card,
    .spec-card,
    .skill-chip {
        padding: 15px !important;
    }

    .card-icon {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }

    .edu-card h4,
    .spec-card h4 {
        font-size: 14px !important;
    }

    /* Search Box on Mobile */
    .search-box {
        padding: 12px 15px 12px 45px !important;
        font-size: 14px !important;
        background-position: 15px center !important;
    }

    .wizard-screen {
        padding: 20px 15px !important;
        padding-top: 140px !important;
        /* Keep space for header */
    }
}


/* ============================================
   FIX: Search Box Padding & Overlap
   ============================================ */
.search-box {
    padding-left: 55px !important;
    /* Force padding */
    background-position: 20px center !important;
}

@media (max-width: 768px) {
    .search-box {
        padding-left: 45px !important;
        background-position: 15px center !important;
    }
}