/* =========================================
   Additional Styles for New Sections
   ========================================= */

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem;
    padding-right: 5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to left, var(--color-blue-50) 0%, var(--color-purple-50) 100%);
    border-radius: var(--radius-xl);
    border-right: 4px solid var(--color-blue-600);
    transition: all var(--transition-base);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-right-color: var(--color-purple-600);
}

.step-number {
    position: absolute;
    top: 2rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-purple-600));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-zinc-900);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-title i {
    color: var(--color-blue-600);
}

/* Content Lists */
.content-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.content-list li {
    padding: 0.75rem 0;
    padding-right: 1.5rem;
    position: relative;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-list li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--color-blue-600);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Success and Danger Lists */
.success-list li {
    color: var(--color-zinc-800);
}

.success-list li::before {
    content: "✓";
    color: var(--color-green-600);
}

.danger-list li {
    color: var(--color-zinc-700);
}

.danger-list li::before {
    content: "✗";
    color: var(--color-red-500);
}

/* Risk Items */
.risk-item {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-zinc-100);
    transition: all var(--transition-base);
}

.risk-item:hover {
    border-color: var(--color-blue-200);
    box-shadow: var(--shadow-md);
}

.risk-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-zinc-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-title i {
    color: var(--color-yellow-400);
}

/* Card Variants */
.card-dark {
    background: linear-gradient(135deg, var(--color-zinc-900) 0%, var(--color-zinc-800) 100%);
    color: var(--color-white);
    border: none;
}

.card-dark .dark-box-text {
    color: var(--color-white);
}

.card-cta {
    background: linear-gradient(135deg, var(--color-blue-50) 0%, var(--color-purple-50) 100%);
    border: 2px solid var(--color-blue-100);
}

/* Text Utilities */
.text-xxlarge {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
}

.text-xlarge {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 800;
}

.text-large {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 700;
}

.text-medium {
    font-size: 1.125rem;
    line-height: 1.8;
}

.text-muted {
    color: var(--color-zinc-600);
}

.text-strong {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
}

.text-divider {
    text-align: center;
    color: var(--color-zinc-300);
    font-weight: 300;
    letter-spacing: 0.5em;
    margin: 1rem 0;
}

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

/* Gradient Text */
.gradient-text-large {
    background: linear-gradient(to left, var(--color-blue-600), var(--color-purple-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: 900;
    display: block;
    margin: 1rem 0;
}

/* Strikethrough */
.strikethrough {
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--color-red-500);
    opacity: 0.4;
}

/* Badge Variants */
.badge-purple {
    background: linear-gradient(to left, var(--color-purple-50), var(--color-blue-50));
    color: var(--color-purple-600);
    border: 1px solid var(--color-purple-100);
}

/* Button Variants */
.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .process-step {
        padding-right: 2rem;
        padding-top: 4rem;
    }
    
    .step-number {
        top: 1rem;
        right: 50%;
        transform: translateX(50%);
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .text-xxlarge {
        font-size: 1.75rem;
    }
    
    .text-xlarge {
        font-size: 1.5rem;
    }
    
    .text-large {
        font-size: 1.25rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
}

/* Dark Box Enhancement */
.dark-box {
    background: linear-gradient(135deg, var(--color-zinc-900), var(--color-zinc-800));
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin: 2rem 0;
    box-shadow: var(--shadow-2xl);
}

.dark-box-text {
    color: var(--color-white);
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 700;
}

.text-highlight {
    color: var(--color-yellow-400);
    font-weight: 800;
}

/* Subtext */
.subtext {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-zinc-600);
    margin-top: 1rem;
}

/* Content Text Spacing */
.content-text p {
    margin-bottom: 1rem; /* Reduced from 1.5rem (-33%) */
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Animation Delays for Lists */
.bullets-list li {
    animation: slideInRight 0.5s ease-out backwards;
}

.bullets-list li:nth-child(1) { animation-delay: 0.1s; }
.bullets-list li:nth-child(2) { animation-delay: 0.2s; }
.bullets-list li:nth-child(3) { animation-delay: 0.3s; }
.bullets-list li:nth-child(4) { animation-delay: 0.4s; }
.bullets-list li:nth-child(5) { animation-delay: 0.5s; }

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

/* Scroll to Form Button */
button[onclick="scrollToForm()"] {
    cursor: pointer;
}

/* =========================================
   Mobile Sticky CTA Bar
   ========================================= */

.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--color-zinc-200);
    display: none; /* Hidden by default, shown only on mobile */
    animation: slideUpFade 0.3s ease-out;
}

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

/* Make button full width inside sticky bar */
.mobile-sticky-bar .btn {
    width: 100%;
}

/* Hide sticky bar when keyboard is visible */
.mobile-sticky-bar.hidden-by-keyboard {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Show on mobile/tablet only */
@media (max-width: 1023px) {
    .mobile-sticky-bar {
        display: block;
    }
}

/* =========================================
   Desktop TOC CTA Button
   ========================================= */

/* Desktop CTA inside TOC */
.desktop-cta-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-zinc-100);
    background: linear-gradient(135deg, var(--color-blue-600), var(--color-purple-600));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}

.desktop-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.desktop-cta-btn:active {
    transform: scale(0.98);
}

.desktop-cta-btn i {
    width: 18px;
    height: 18px;
}

/* Hide on mobile */
@media (max-width: 1023px) {
    .desktop-cta-btn {
        display: none;
    }
}

.desktop-toc-cta {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    z-index: 40;
    display: none; /* Hidden by default, shown only on desktop */
}

/* Add padding to bottom of page for mobile sticky bar */
@media (max-width: 1023px) {
    body {
        padding-bottom: 5rem;
    }
}

/* =========================================
   Video Responsive Container
   ========================================= */

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-zinc-900);
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
    .video-container {
        padding-bottom: 56.25%; /* 16:9 ratio */
        height: 0;
    }
}

/* =========================================
   New Image Sections Styling
   ========================================= */

/* Hero Visual */
.hero-visual {
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .hero-visual {
        margin-top: 0;
    }
}

/* Section Image Wrapper for Inline Images */
.section-image-wrapper {
    width: 100%;
    margin: 3rem 0;
}

.section-image-wrapper .section-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-zinc-200);
    background: var(--color-zinc-100);
}

@media (min-width: 768px) {
    .section-image-wrapper .section-image {
        min-height: 400px;
    }
}

@media (min-width: 1024px) {
    .section-image-wrapper .section-image {
        min-height: 500px;
    }
}

.section-image-wrapper .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, opacity 0.3s ease;
}

.section-image-wrapper .section-image:hover img {
    transform: scale(1.05);
}

/* Hero Visual Specific Styling */
.hero-visual .section-image {
    height: 350px;
}

@media (min-width: 768px) {
    .hero-visual .section-image {
        height: 500px;
    }
}

@media (min-width: 1024px) {
    .hero-visual .section-image {
        height: 600px;
    }
}

/* Fade-in animation for images */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-image img {
    animation: fadeInImage 0.8s ease-out forwards;
}

