/* 
   User Journey Enhancements for BLBC 2025
   This file contains styles to improve user flow and conversions
*/

/* Journey Flow Indicators */
.journey-step {
    position: relative;
    padding-top: var(--space-lg);
}

.journey-step::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 5;
}

.journey-step::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    height: 50px;
    border-left: 2px dashed var(--primary-green);
    z-index: 1;
}

.journey-step.step-1::before {
    content: "1";
}

.journey-step.step-2::before {
    content: "2";
}

.journey-step.step-3::before {
    content: "3";
}

.journey-step.step-4::before {
    content: "4";
}

.journey-title {
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-green);
    margin-bottom: var(--space-sm);
}

/* Value Proposition Box */
.value-prop {
    background-color: var(--white);
    border-left: 4px solid var(--primary-gold);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-soft);
}

.value-prop h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
}

.value-prop p {
    margin-bottom: var(--space-xs);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    bottom: 30px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 999;
    max-width: 100%;
    box-sizing: border-box;
    padding-right: 5px;
}

/* Floating CTA Button */
.floating-cta {
    background-color: var(--primary-green);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transform: scale(0);
    animation: appear 0.3s forwards;
    animation-delay: 3s;
    text-decoration: none;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.3s ease, background-color 0.3s ease;
    touch-action: manipulation;
}

.cta-text {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .floating-elements {
        bottom: 20px;
        right: 10px;
    }
    
    .floating-cta {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .cta-text {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .floating-elements {
        right: 5px;
        bottom: 15px;
        gap: 10px;
    }
    
    .floating-cta {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    
    .cta-text {
        max-width: 90px;
    }
}

@media (max-width: 380px) {
    .floating-elements {
        right: 3px;
    }
    
    .floating-cta {
        padding: 6px 12px;
        min-height: 34px;
    }
    
    .cta-text {
        max-width: 70px;
    }
}

.floating-cta.main-cta {
    background-color: var(--primary-green);
}

.floating-cta.secondary-cta {
    background-color: var(--primary-brown);
    animation-delay: 3.5s;
}

.floating-cta i {
    font-size: 1.2rem;
}

/* Hover effects for non-touch devices */
@media (hover: hover) {
    .floating-cta:hover {
        transform: translateY(-5px);
        color: var(--white);
    }

    .floating-cta.main-cta:hover {
        background-color: var(--secondary-green);
    }

    .floating-cta.secondary-cta:hover {
        background-color: #604020;
    }
}

/* Active state for touch devices */
.floating-cta:active {
    transform: scale(0.95);
    color: var(--white);
}

.floating-cta.main-cta:active {
    background-color: var(--secondary-green);
}

.floating-cta.secondary-cta:active {
    background-color: #604020;
}

.scroll-to-top {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    animation: appear 0.3s forwards;
    animation-delay: 4s;
    touch-action: manipulation;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-to-top:hover {
    background-color: var(--white);
    transform: translateY(-5px);
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Package Comparison Indicator */
.best-value {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-gold);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transform: rotate(15deg);
}

/* Feature Highlights */
.feature-highlight {
    font-weight: bold;
    color: var(--primary-brown);
}

/* FAQ Accordion */
.faq-container {
    margin: var(--space-lg) 0;
}

.faq-item {
    margin-bottom: var(--space-sm);
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    background-color: var(--light);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
}

.faq-question.active::after {
    content: "−";
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: var(--space-sm) var(--space-md);
    max-height: 1000px;
}

/* Testimonials */
.testimonial {
    background-color: var(--light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    position: relative;
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(0,0,0,0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-brown);
    margin-top: var(--space-sm);
    text-align: right;
}

/* Steps Section */
.steps-container {
    counter-reset: step;
    margin: var(--space-md) 0;
}

.step-item {
    display: flex;
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 50px;
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-content h4 {
    margin-bottom: var(--space-xs);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(74, 124, 89, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.countdown-container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    display: inline-flex;
    gap: var(--space-xs);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    color: var(--white);
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.action-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Package card enhancements */
.package-card {
    position: relative;
    border: 1px solid #eee;
}

.package-card.best-choice {
    border: 2px solid var(--primary-gold);
    box-shadow: 0 5px 25px rgba(182, 138, 1, 0.2);
}

.savings {
    color: var(--primary-gold);
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.9rem;
}

.remaining {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 5px;
}

.remaining-spots {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 600;
    margin: 5px 0 10px;
}

.package-cta {
    margin-top: auto;
    width: 100%;
}

.exhibition-card {
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
}

.exhibition-card.premium-option {
    border: 2px solid var(--primary-gold);
}

.exhibition-card .features {
    text-align: left;
    margin: 15px 0;
    font-size: 0.9rem;
}

.exhibition-card .features li {
    margin-bottom: 5px;
}

.exhibition-options {
    gap: 20px;
}

.urgency-message {
    margin-bottom: 15px;
    font-weight: 600;
    color: #e74c3c;
}

.action-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(74, 124, 89, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.action-title {
    font-size: 1.4rem;
    color: var(--primary-brown);
    margin-bottom: var(--space-xs);
}

.action-card .btn {
    margin-top: auto;
    width: 100%;
}

.feature-list {
    text-align: left;
    margin: 15px 0;
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Section backgrounds */
.why-participate-section {
    background-color: var(--light);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

.faq-section {
    background-color: var(--white);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

.testimonials-section {
    background-color: var(--light);
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 1;
}

/* Testimonials grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

/* Contact CTA */
.contact-cta {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid #eee;
    text-align: center;
}

.contact-cta p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--primary-brown);
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.outline-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
}