/**
 * @author mickMind.com - Professional Web Development
 * @website https://mickmind.com
 * @copyright 2025 mickMind.com - All Rights Reserved
 * @description MVLA.dk - Michael Valbjørn Liberal Alliance Campaign Website
 */

/**
 * MVLA Website - Animation CSS
 * Keyframes, transitions og styling til moderne UI komponenter
 * Bold & Vibrant style
 */

/* ============================================
   CSS VARIABLES - BOLD & VIBRANT
   ============================================ */

:root {
    --electric-blue: #0066CC;
    --vibrant-orange: #FF6B35;
    --neon-yellow: #FFD100;

    --animation-fast: 250ms;
    --animation-medium: 500ms;
    --animation-slow: 1000ms;

    --easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --easing-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --easing-elastic: cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--easing-smooth),
                transform 0.8s var(--easing-smooth);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal variations */
.reveal-fade {
    opacity: 0;
    transition: opacity var(--animation-slow) var(--easing-smooth);
}

.reveal-fade.revealed {
    opacity: 1;
}

/* Keyframe Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all var(--animation-medium) var(--easing-smooth);
}

.reveal-slide-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all var(--animation-medium) var(--easing-smooth);
}

.reveal-slide-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--animation-medium) var(--easing-bounce);
}

.reveal-zoom.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-15px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-8px); }
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* NOTE: pulse-scale tilgængelig for scale-baseret animation
   Primær pulse animation er opacity-baseret (se line ~3695) */

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 209, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 209, 0, 0.8),
                    0 0 30px rgba(255, 209, 0, 0.6);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

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

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   STICKY HEADER STYLES
   ============================================ */

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 47, 93, 0.15);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header.scrolled .logo-img {
    transform: scale(0.85);
    transition: transform 0.3s var(--easing-smooth);
}

/* Scrolled header - modsatte farver for læsbarhed */
.header.scrolled .nav-link {
    color: var(--dark-blue);
}

.header.scrolled .nav-link::after {
    background: var(--dark-blue);
}

.header.scrolled .logo-text,
.header.scrolled .logo-party-text,
.header.scrolled .logo-tagline {
    color: var(--dark-blue);
}

.header.scrolled .logo-tagline-divider {
    color: var(--dark-blue);
    opacity: 0.6;
}

.header.scrolled .dropdown-toggle::before {
    color: var(--dark-blue);
}

.header.scrolled .dropdown-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: var(--dark-blue);
}

.header.scrolled .dropdown-menu .nav-link {
    color: var(--dark-blue);
}

.header.scrolled .dropdown-menu .nav-link:hover {
    background: rgba(0, 47, 93, 0.1);
}

/* ============================================
   STATS SECTION GRID
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, #002F5D 0%, #004B87 50%, #002F5D 100%);
    padding: 4rem 0;
    margin: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Stats Section specific styling - YELLOW theme */
.stats-section .stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
}

.stats-section .stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.stats-section .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFD100;
    line-height: 1;
    margin: 1rem 0;
    font-family: 'Montserrat', sans-serif;
}

.stats-section .stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-section .stat-item {
        padding: 2rem 1.5rem;
    }

    .stats-section .stat-icon {
        font-size: 3rem;
    }

    .stats-section .stat-number {
        font-size: 3rem;
    }
}

/* ============================================   ACCORDION CARDS - Simple expand/collapse   ============================================ *//* Accordion card base */.accordion-card {    background: white;    border-radius: 16px;    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);    overflow: hidden;    transition: box-shadow 0.3s ease, transform 0.3s ease;}.accordion-card:hover {    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);    transform: translateY(-2px);}/* Accordion header (altid synlig) */.accordion-header {    padding: 2rem;    cursor: pointer;    position: relative;}.accordion-header .maerkesag-icon {    font-size: 3.5rem;    margin-bottom: 1rem;    display: block;}.accordion-header .maerkesag-title {    font-size: 1.8rem;    font-weight: 800;    color: var(--dark-blue);    margin-bottom: 0.75rem;    font-family: var(--heading-font);}.accordion-header .maerkesag-description {    font-size: 1.1rem;    color: #555;    line-height: 1.6;    margin-bottom: 1rem;}/* Toggle button */.accordion-toggle {    display: flex;    align-items: center;    gap: 0.5rem;    background: var(--la-yellow);    color: var(--dark-blue);    border: none;    padding: 0.75rem 1.5rem;    border-radius: 25px;    font-weight: 700;    font-size: 1rem;    cursor: pointer;    transition: all 0.3s ease;    margin-top: 1rem;}.accordion-toggle:hover {    background: #FFD700;    transform: scale(1.05);}.accordion-toggle .toggle-icon {    transition: transform 0.3s ease;    font-size: 0.8rem;}/* Når accordion er åben */.accordion-card.expanded .accordion-toggle .toggle-icon {    transform: rotate(180deg);}/* Accordion content (skjult som standard) */.accordion-content {    max-height: 0;    overflow: hidden;    transition: max-height 0.4s ease, padding 0.4s ease;    padding: 0 2rem;}.accordion-card.expanded .accordion-content {    max-height: 1000px;    padding: 0 2rem 2rem 2rem;}.accordion-content .maerkesag-list {    list-style: none;    padding: 0;    margin: 0 0 1.5rem 0;}.accordion-content .maerkesag-list li {    padding: 0.75rem 0;    padding-left: 2rem;    position: relative;    color: #333;    line-height: 1.7;    font-size: 1.05rem;    border-bottom: 1px solid #f0f0f0;}.accordion-content .maerkesag-list li:last-child {    border-bottom: none;}.accordion-content .maerkesag-list li::before {    content: '✓';    position: absolute;    left: 0;    color: var(--la-yellow);    font-weight: bold;    font-size: 1.2rem;}.accordion-content .maerkesag-cta {    background: linear-gradient(135deg, var(--dark-blue), #001933);    color: var(--la-yellow);    padding: 1.25rem;    border-radius: 12px;    text-align: center;    font-weight: 700;    font-size: 1.1rem;    margin-top: 1.5rem;}/* Mærkesager hint text */.maerkesager-hint {    text-align: center;    color: #666;    font-size: 1.1rem;    margin-bottom: 2rem;    font-style: italic;}/* Icon animation */.maerkesag-card .maerkesag-icon {    animation: float 3s ease-in-out infinite;}
/* Ensure mærkesager grid works correctly on all devices */
.maerkesager-grid {
    display: grid !important;
}

/* Mobile optimizations */@media (max-width: 767px) {    .accordion-card {        margin-bottom: 1rem;    }        .accordion-header {        padding: 1.5rem;    }        .accordion-header .maerkesag-icon {        font-size: 2.5rem;    }        .accordion-header .maerkesag-title {        font-size: 1.5rem;    }        .accordion-header .maerkesag-description {        font-size: 1rem;    }        .accordion-content {        padding: 0 1.5rem;    }        .accordion-card.expanded .accordion-content {        padding: 0 1.5rem 1.5rem 1.5rem;    }}/* ============================================
   FLOATING ACTION BUTTON (FAB)
   ============================================ */

.fab-container {
    position: fixed;
    z-index: 9998;
}

.fab-container.bottom-right {
    bottom: 2rem;
    right: 2rem;
}

.fab-container.bottom-left {
    bottom: 2rem;
    left: 2rem;
}

.fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B35, #FFD100);
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    transition: all 0.3s var(--easing-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.6);
}

.fab-open .fab {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--easing-smooth);
}

.fab-open .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: white;
    color: #002F5D;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--easing-smooth);
    white-space: nowrap;
}

.fab-action:hover {
    background: #FFD100;
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(255, 209, 0, 0.3);
}

.fab-action-icon {
    font-size: 1.5rem;
}

.fab-action-label {
    font-size: 0.95rem;
}

/* Mobile FAB adjustments */
@media (max-width: 768px) {
    .fab-container.bottom-right {
        bottom: 1rem;
        right: 1rem;
    }

    .fab {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .fab-action-label {
        display: none;
    }

    .fab-action {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */

.testimonial-section {
    background: linear-gradient(135deg, #002F5D 0%, #004B87 100%);
    padding: 4rem 0;
    margin: 3rem 0;
}

.testimonial-section .section-title {
    color: white;
}

.testimonial-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    min-height: 300px;
}

.testimonial-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: all 0.6s var(--easing-smooth);
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    transform: translateX(0);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.4rem;
    line-height: 1.8;
    color: white;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: #FFD100;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
    opacity: 0.5;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.author-name {
    color: #FFD100;
    font-weight: 600;
    font-size: 1.1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--easing-smooth);
}

.slider-dot.active,
.slider-dot:hover {
    background: #FFD100;
    transform: scale(1.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #FFD100;
    color: #002F5D;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s var(--easing-smooth);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #FFD100;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 10px;
}

.slider-btn-next {
    right: 10px;
}

@media (max-width: 768px) {
    .testimonial-content {
        padding: 2rem 1.5rem;
    }

    .testimonial-quote {
        font-size: 1.2rem;
    }

    .slider-btn-prev {
        left: 5px;
    }

    .slider-btn-next {
        right: 5px;
    }
}

/* ============================================
   INTERACTIVE TIMELINE
   ============================================ */

.timeline-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0;
    margin: 3rem 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.interactive-timeline {
    position: relative;
    padding: 2rem 0;
}

.interactive-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #002F5D, #FFD100, #FF6B35);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 1.5rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: all 0.3s var(--easing-smooth);
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 50%;
    padding-left: 0;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 50%;
    padding-right: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid #FFD100;
    transform: translateY(-50%);
    transition: all 0.3s var(--easing-bounce);
}

.timeline-item:nth-child(odd)::after {
    right: calc(50% - 10px);
}

.timeline-item:nth-child(even)::after {
    left: calc(50% - 10px);
}

.timeline-item.active::after,
.timeline-item:hover::after {
    background: #FFD100;
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 20px rgba(255, 209, 0, 0.6);
}

.timeline-title {
    font-size: 1.4rem;
    color: #002F5D;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-summary {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--easing-smooth);
}

.timeline-item.active .timeline-details {
    margin-top: 1rem;
    max-height: 500px;
}

.timeline-details p {
    color: #666;
    font-style: italic;
    line-height: 1.6;
}

/* Mobile timeline */
@media (max-width: 768px) {
    .interactive-timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 60px;
        padding-right: 1rem;
    }

    .timeline-item::after,
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 12px;
    }
}

/* ============================================
   FORM PROGRESS BAR
   ============================================ */

.form-progress-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 47, 93, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.form-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #002F5D, #FFD100);
    transition: width 0.4s var(--easing-smooth);
    border-radius: 10px;
    position: relative;
}

.form-progress-bar::after {
    content: attr(data-progress) '%';
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.875rem;
    color: #002F5D;
    font-weight: 600;
}

/* ============================================
   TYPED TEXT CURSOR & STYLED TEXT
   ============================================ */

.typed-text {
    color: #FFD100 !important;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cursor {
    animation: blink 1s infinite;
    font-weight: 100;
    font-size: inherit;
    color: #FFD100;
    margin-left: 2px;
}

/* ============================================
   STAGGER ANIMATIONS
   ============================================ */

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--easing-smooth);
}

/* ============================================
   HVERDAG CARDS STYLING
   ============================================ */

.hverdag-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 0;
}

.hverdag-card {
    position: relative;
    padding: 2rem;
    transition: all 0.4s var(--easing-smooth);
}

.hverdag-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.hverdag-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD100, #FF6B35);
    color: #002F5D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 209, 0, 0.4);
}

.hverdag-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.hverdag-title {
    color: #002F5D;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hverdag-description {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hverdag-icon {
        font-size: 2.5rem;
    }

    .hverdag-title {
        font-size: 1.1rem;
    }

    .hverdag-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD100, #FF6B35);
    z-index: 9900; /* Differentiated for proper stacking */
    transition: width 0.1s ease;
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.btn,
.quick-contact-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--easing-smooth);
}

.btn:hover,
.quick-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 209, 0, 0.4);
    animation: pulse 2s infinite;
}

.btn:active,
.quick-contact-btn:active {
    transform: translateY(-1px);
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */

.animate-on-hover:hover {
    animation: float 3s ease-in-out infinite;
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

.shake-on-error {
    animation: shake 0.5s;
}

/* ============================================
   FAQ CHATBOT WIDGET
   ============================================ */

/* Widget Container */
.faq-chatbot-widget {
    position: fixed;
    bottom: 90px; /* Above FAB */
    right: 2rem;
    z-index: 9500; /* Below overlays, above UI elements */
    font-family: 'Open Sans', sans-serif;
}

/* Compact Toggle Button */
.faq-chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #002F5D, #0066CC);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 47, 93, 0.3);
    transition: all 0.3s var(--easing-smooth);
}

.faq-chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.4);
}

.chat-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-bear-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--la-yellow);
    box-shadow: 0 2px 8px rgba(255, 209, 0, 0.3);
}

.chat-label {
    font-size: 0.95rem;
}

/* Chat Window */
.faq-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s var(--easing-smooth);
}

.faq-chatbot-widget.open .faq-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.faq-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #002F5D, #0066CC);
    color: white;
    border-radius: 16px 16px 0 0;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-icon .chatbot-bear-logo {
    width: 45px;
    height: 45px;
}

.chat-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.chat-header-subtitle {
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
    opacity: 0.9;
}

.faq-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.faq-chat-close:hover {
    opacity: 1;
}

/* Chat Body */
.faq-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

/* Messages */
.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 85%;
    padding: 0.875rem 1.125rem;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.bot-message .message-bubble {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #0066CC, #002F5D);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble p {
    margin: 0 0 0.5rem 0;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.action-link {
    font-size: 0.85rem;
    color: #0066CC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.action-link:hover {
    color: #FFD100;
}

/* Quick Questions */
.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-question-btn {
    background: white;
    border: 1px solid #0066CC;
    color: #002F5D;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s var(--easing-smooth);
    font-weight: 500;
}

.quick-question-btn:hover {
    background: #0066CC;
    color: white;
    transform: translateX(4px);
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.search-result-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.875rem;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s var(--easing-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-result-btn:hover {
    border-color: #0066CC;
    background: #f0f7ff;
    transform: translateX(4px);
}

.result-category {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
}

.result-question {
    font-size: 0.9rem;
    color: #002F5D;
    font-weight: 500;
}

/* Chat Footer */
.faq-chat-footer {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 16px 16px;
}

/* Search Input */
.chat-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chat-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
}

.chat-search-input:focus {
    outline: none;
    border-color: #0066CC;
}

.chat-search-btn {
    padding: 0.75rem 1.25rem;
    background: #0066CC;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-search-btn:hover {
    background: #004B87;
}

/* Category Filters */
.chat-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 0.875rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s var(--easing-smooth);
    font-weight: 500;
    color: #666;
}

.category-btn:hover,
.category-btn.active {
    background: #FFD100;
    border-color: #FFD100;
    color: #002F5D;
}

/* Scrollbar Styling */
.faq-chat-body::-webkit-scrollbar {
    width: 6px;
}

.faq-chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.faq-chat-body::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 3px;
}

.faq-chat-body::-webkit-scrollbar-thumb:hover {
    background: #004B87;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .faq-chatbot-widget {
        right: 1rem;
        bottom: 80px;
    }

    .faq-chat-window {
        width: calc(100vw - 2rem);
        height: 500px;
    }

    .chat-label {
        display: none;
    }

    .faq-chatbot-toggle {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .chat-icon {
        font-size: 1.75rem;
    }
}

/* ========================================
   CVR LOOKUP FORM STYLING
   ======================================== */

/* CVR Input Group - Input + Button Layout */
.cvr-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.cvr-input-group input[type="text"] {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s var(--easing-smooth);
    background: white;
}

.cvr-input-group input[type="text"]:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.cvr-input-group input[type="text"]:invalid:not(:placeholder-shown) {
    border-color: #FF6B35;
}

/* CVR Lookup Button */
.btn-cvr-lookup {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #0066CC, #004B87);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--easing-smooth);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn-cvr-lookup:hover {
    background: linear-gradient(135deg, #004B87, #003666);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

.btn-cvr-lookup:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}

.btn-cvr-lookup:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cvr-btn-text,
.cvr-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cvr-btn-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Form Help Text */
.form-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Company Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: background 0.2s var(--easing-smooth);
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0066CC;
}

.checkbox-label span {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Company Fields Container */
#companyContactFields,
#companyAutoFields {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.03), rgba(255, 209, 0, 0.03));
    border: 2px solid #e8f4ff;
    border-radius: 16px;
    animation: slideDown 0.3s var(--easing-smooth);
}

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

/* Auto-filled Field Indicator */
.cvr-input-group input[type="text"][data-autofilled="true"],
#companyAutoFields input[data-autofilled="true"],
#companyContactFields input[data-autofilled="true"] {
    background: linear-gradient(135deg, #f0f8ff, #fffef0);
    border-color: #FFD100;
}

/* Success State */
.cvr-btn-text[data-success="true"] {
    color: #28a745;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cvr-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cvr-input-group input[type="text"] {
        width: 100%;
    }

    .btn-cvr-lookup {
        width: 100%;
        padding: 1rem;
    }

    #companyContactFields,
    #companyAutoFields {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-cvr-lookup {
        font-size: 0.85rem;
        padding: 0.875rem;
    }

    .form-help-text {
        font-size: 0.8rem;
    }

    .checkbox-label span {
        font-size: 0.9rem;
    }
}

/* ========================================
   KANDIDAT PAGE STYLING
   ======================================== */

/* Candidate Hero Section */
.candidate-hero-section {
    padding: 2.5rem 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.candidate-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.candidate-hero-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.candidate-photo-wrapper {
    position: relative;
    animation: fadeInSlideUp 0.8s ease-out forwards;
}

.candidate-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.2);
    border: 4px solid #FFD100;
}

.candidate-badge-photo { /* Photo overlay variant - omdøbt for at undgå konflikt med inline badge */
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, #0066CC, #004B87);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}

.badge-icon {
    width: 24px;
    height: 24px;
}

.badge-text {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.candidate-hero-content {
    animation: fadeInSlideRight 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.candidate-name {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.candidate-title {
    font-size: 1.25rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.candidate-tagline {
    font-size: 1.5rem;
    color: var(--medium-gray);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.candidate-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.candidate-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Candidate Stats specific styling - BLUE theme */
.candidate-stats .stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.candidate-stats .stat-item:hover {
    transform: translateY(-5px);
}

.candidate-stats .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--la-blue);
    font-family: var(--heading-font);
}

.candidate-stats .stat-label {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
}

/* Why Michael Section */
.why-michael-section {
    padding: 2.5rem 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-family: var(--heading-font);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.why-card:hover {
    border-color: var(--la-blue);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-title {
    font-size: 1.35rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.why-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* Experience Timeline */
.experience-section {
    padding: 2.5rem 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.experience-timeline {
    max-width: 1000px;
    margin: 3rem auto 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--la-blue), var(--la-yellow));
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.timeline-item-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.timeline-left .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item.timeline-right .timeline-content {
    grid-column: 3;
    text-align: left;
}

.timeline-marker {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--la-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.timeline-year {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--la-blue);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--la-yellow);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.timeline-position {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.timeline-company {
    font-size: 1.15rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-period {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

/* Skills Grid Section */
.skills-section {
    padding: 2.5rem 20px;
    background: white;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: fadeInSlideUp 0.6s ease-out forwards;
    opacity: 0;
}

.skill-category:hover {
    border-color: var(--la-blue);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.15);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-category-icon {
    font-size: 2.5rem;
}

.skill-category-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-family: var(--heading-font);
}

.skill-item {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.skill-item.skill-item-visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--dark-gray);
}

.skill-percentage {
    color: var(--la-blue);
    font-weight: 700;
}

.skill-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--skill-color);
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

/* Education Section */
.education-section {
    padding: 2.5rem 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--la-yellow);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-degree {
    font-size: 1.35rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.education-institution {
    font-size: 1.1rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.education-period {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.education-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .candidate-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .candidate-photo-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }

    .candidate-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }

    .timeline-item.timeline-left .timeline-content,
    .timeline-item.timeline-right .timeline-content {
        grid-column: 2;
        text-align: left;
    }

    .timeline-marker {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .candidate-name {
        font-size: 2.25rem;
    }

    .candidate-stats {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

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

    .education-grid {
        grid-template-columns: 1fr;
    }

    .experience-modal-content {
        padding: 1.5rem;
    }
}

/* ============================================
   INDUSTRY RECOMMENDATIONS ANIMATION
   ============================================ */

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   LA LOADING SPINNER
   ============================================ */

.la-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 47, 93, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9800; /* Loading overlay - above UI, below critical modals */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.la-spinner-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.la-spinner-container {
    text-align: center;
    animation: fadeInScale 0.4s ease-out;
}

.la-spinner-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.la-spinner-logo {
    width: 100%;
    height: 100%;
    animation: laSpinRotate 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    filter: drop-shadow(0 0 20px rgba(255, 209, 0, 0.6));
}

@keyframes laSpinRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.la-spinner-text {
    color: var(--neon-yellow);
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

/* REMOVED: Duplicate @keyframes pulse (opacity version) - se line ~3695 for primær definition */

/* Responsive */
@media (max-width: 768px) {
    .la-spinner-icon {
        width: 60px;
        height: 60px;
    }

    .la-spinner-text {
        font-size: 0.95rem;
    }
}

/* ============================================
   VALGSEDDEL (BALLOT CARD) COMPONENT
   ============================================ */

.ballot-card-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.ballot-card-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.ballot-card {
    background: #ffffff;
    border: 3px solid #1a1a1a;
    border-radius: 4px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ballot-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--la-yellow) 0%, #FFA500 100%);
    border-radius: 4px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ballot-card:hover::before {
    opacity: 1;
}

.ballot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(255, 209, 0, 0.4);
}

.ballot-header {
    text-align: center;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.ballot-title {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.ballot-subtitle {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666;
}

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

.ballot-party-logo {
    max-width: 80px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.ballot-list-letter {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.ballot-party-name {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.ballot-divider {
    width: 60%;
    height: 2px;
    background: #1a1a1a;
    margin: 1.5rem auto;
}

.ballot-candidate-box {
    background: #f8f9fa;
    border: 2px dashed #666;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.ballot-candidate-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.ballot-candidate-name {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 0.3rem;
}

.ballot-candidate-location {
    font-family: var(--base-font);
    font-size: 1rem;
    color: #555;
}

.ballot-footer {
    text-align: center;
    border-top: 2px solid #1a1a1a;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.ballot-instruction {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ballot-instruction-highlight {
    background: var(--la-yellow);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 700;
}

.ballot-cta {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: var(--dark-blue);
    color: white;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ballot-cta:hover {
    background: var(--la-yellow);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 209, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ballot-card {
        padding: 2rem 1.5rem;
    }
    
    .ballot-list-letter {
        font-size: 2.5rem;
    }
    
    .ballot-candidate-name {
        font-size: 1.5rem;
    }
    
    .ballot-party-name {
        font-size: 1.1rem;
    }
}

/* ============================================
   POLITIK QUIZ (VALUE MATCHER)
   ============================================ */

.policy-quiz-section {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.policy-quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.quiz-subtitle {
    font-family: var(--base-font);
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.quiz-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.quiz-card.active {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--la-yellow);
}

.quiz-question-number {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--la-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.quiz-question-text {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.quiz-option:hover {
    border-color: var(--la-yellow);
    background: rgba(255, 209, 0, 0.05);
    transform: translateX(8px);
}

.quiz-option:hover::before {
    left: 100%;
}

.quiz-option.selected {
    background: var(--la-yellow);
    border-color: var(--dark-blue);
    transform: scale(1.02);
}

.quiz-option-label {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-option-icon {
    font-size: 1.3rem;
}

.quiz-option-description {
    font-family: var(--base-font);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.quiz-option.selected .quiz-option-description {
    color: var(--dark-blue);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.quiz-btn {
    padding: 0.875rem 2rem;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-btn-primary {
    background: var(--dark-blue);
    color: white;
}

.quiz-btn-primary:hover:not(:disabled) {
    background: var(--la-yellow);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 209, 0, 0.3);
}

.quiz-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-btn-secondary {
    background: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.quiz-btn-secondary:hover {
    background: var(--dark-blue);
    color: white;
}

.quiz-result-card {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #001933 100%);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 47, 93, 0.3);
    display: none;
}

.quiz-result-card.show {
    display: block;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-percentage {
    font-family: var(--heading-font);
    font-size: 5rem;
    font-weight: 900;
    color: var(--la-yellow);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 16px rgba(255, 209, 0, 0.5);
}

/* Quiz specific result title */
.quiz-result-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.result-description {
    font-family: var(--base-font);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-match-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.result-match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-match-item:last-child {
    border-bottom: none;
}

.result-match-label {
    font-family: var(--base-font);
    font-size: 1rem;
    color: white;
}

.result-match-value {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--la-yellow);
}

.result-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .quiz-title {
        font-size: 2rem;
    }
    
    .quiz-card {
        padding: 2rem 1.5rem;
    }
    
    .quiz-question-text {
        font-size: 1.3rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .result-percentage {
        font-size: 4rem;
    }
    
    .result-title {
        font-size: 1.6rem;
    }
}


/* ============================================
   MÆRKESAGER IMAGE SECTION (50/50 LAYOUT)
   ============================================ */

.maerkesager-image-section {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.ballot-card-column,
.michael-portrait-column {
    flex: 1;
}

/* Scale ballot card to fit 50% width */
.ballot-card-column .ballot-card-container {
    max-width: 100%;
    padding: 0;
}

.ballot-card-column .ballot-card {
    max-width: 100%;
}

/* Michael portrait in 50% column */
.michael-portrait-column .michael-portrait {
    width: 100%;
    height: auto;
    max-width: 350px;
}

/* Mobile: Stack vertically (Michael first, ballot second) */
@media (max-width: 768px) {
    .maerkesager-image-section {
        flex-direction: column;
        gap: 2rem;
    }

    .ballot-card-column {
        order: 2; /* Ballot card second */
    }

    .michael-portrait-column {
        order: 1; /* Michael first */
        text-align: center;
    }

    .michael-portrait-column .michael-portrait {
        max-width: 100%;
    }
}

/* Tablet */
@media (max-width: 992px) and (min-width: 769px) {
    .maerkesager-image-section {
        gap: 1.5rem;
    }
}

/* ============================================
   MOBILE ACCORDION MODE FOR FLIP CARDS
   ============================================ */


    background: rgba(0, 47, 93, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}


/* ===================================================================
   MAERKESAGER PAGE - PARALLAX SECTIONS
   =================================================================== */

/* Hero Image Section - Michael */
.maerkesager-hero {
    background: linear-gradient(rgba(0, 47, 93, 0.45), rgba(0, 47, 93, 0.55)),
                url('../assets/img/imchael.png') center 25% / cover no-repeat fixed;
}

/* Valgbjornen Parallax Section */
.maerkesager-valbjorn {
    background: linear-gradient(rgba(0, 47, 93, 0.75), rgba(0, 47, 93, 0.85)),
                url('../assets/img/valbjornen.png') center center / contain no-repeat fixed;
}

/* KRITISK MOBIL FIX: Disable fixed backgrounds on mobile for performance */
@media (max-width: 767px) {
    .maerkesager-hero,
    .maerkesager-valbjorn {
        background-attachment: scroll !important;
    }
}
