/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FBFDFE;
    height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Override default focus styles */
*:focus {
    outline: 2px solid #C2DBE8 !important;
    outline-offset: 2px;
}

*:focus-visible {
    outline: 2px solid #C2DBE8 !important;
    outline-offset: 2px;
}

/* Floating Arrow Illustration */
.floating-arrow {
    position: absolute;
    top: calc(75% + 60px); /* Moved down to halfway to bottom edge */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20; /* Higher z-index to ensure visibility */
    pointer-events: auto; /* Enable hover and press interactions */
    display: none; /* Hidden by default, shown on tablet and above */
    cursor: pointer;
}

.arrow-image {
    width: 120px;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: floatAndRotate 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.dual-arrow {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.dual-arrow.show {
    opacity: 1;
}

/* Specific positioning for dual arrow (arrow-left-right.png) */
.floating-arrow .dual-arrow {
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 44px);
    transform: translate(-50%, -50%);
}

@keyframes floatAndRotate {
    0% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(5deg); 
    }
    50% { 
        transform: translateY(0px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-10px) rotate(-5deg); 
    }
    100% { 
        transform: translateY(0px) rotate(0deg); 
    }
}

/* Hover and press effects */
.floating-arrow:hover .arrow-image,
.floating-arrow:active .arrow-image {
    width: 140px;
    animation: fastFloatAndRotate 2s ease-in-out infinite;
}

/* Mirror animation when CTA is enabled */
.floating-arrow.cta-enabled .arrow-image {
    transform: scaleX(-1);
    animation: floatAndRotateMirrored 4s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.floating-arrow.cta-enabled:hover .arrow-image,
.floating-arrow.cta-enabled:active .arrow-image {
    width: 140px;
    animation: fastFloatAndRotateMirrored 2s ease-in-out infinite;
}

@keyframes floatAndRotateMirrored {
    0% { 
        transform: scaleX(-1) translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: scaleX(-1) translateY(-10px) rotate(-5deg); 
    }
    50% { 
        transform: scaleX(-1) translateY(0px) rotate(0deg); 
    }
    75% { 
        transform: scaleX(-1) translateY(-10px) rotate(5deg); 
    }
    100% { 
        transform: scaleX(-1) translateY(0px) rotate(0deg); 
    }
}

@keyframes fastFloatAndRotateMirrored {
    0% { 
        transform: scaleX(-1) translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: scaleX(-1) translateY(-15px) rotate(-8deg); 
    }
    50% { 
        transform: scaleX(-1) translateY(0px) rotate(0deg); 
    }
    75% { 
        transform: scaleX(-1) translateY(-15px) rotate(8deg); 
    }
    100% { 
        transform: scaleX(-1) translateY(0px) rotate(0deg); 
    }
}

@keyframes fastFloatAndRotate {
    0% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(8deg); 
    }
    50% { 
        transform: translateY(0px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(-8deg); 
    }
    100% { 
        transform: translateY(0px) rotate(0deg); 
    }
}

/* Show floating arrow on tablet and above */
@media (min-width: 768px) {
    .floating-arrow {
        display: block;
    }
}

/* Ensure arrow has proper z-index */
.floating-arrow {
    z-index: 20 !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow fade-out animation */
.floating-arrow.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) translateY(20px);
    pointer-events: none;
    filter: blur(2px);
}

/* Arrow fade-in animation */
.floating-arrow.fade-in {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0px);
    pointer-events: auto;
    filter: blur(0px);
}

/* Welcome Popup Overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(227, 242, 250, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.6s ease;
}

/* Prevent body scroll when welcome overlay is open */
body.welcome-overlay-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

@keyframes overlayFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes overlayFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.welcome-popup {
    background: transparent;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    outline: none;
    box-shadow: none;
}

.close-btn:focus {
    outline: none;
    box-shadow: none;
}

.close-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.close-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.2s ease;
}

.close-icon:hover {
    transform: rotate(-2deg);
}

.close-icon:active {
    animation: wiggle 0.3s ease;
}

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}



.welcome-content {
    padding: 0;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.welcome-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.welcome-logo {
    height: 30px;
    width: auto;
    opacity: 0.9;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    min-width: 100%;
    padding: 40px 80px;
    opacity: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: translateX(100%);
}

.carousel-slide.active {
    z-index: 2;
    pointer-events: auto;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.carousel-slide.next {
    transform: translateX(100%);
    z-index: 1;
}

/* Carousel Navigation Arrows - Same style as role selection */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    border: none;
    background: rgba(194, 219, 232, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #006296;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(194, 219, 232, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow:active {
    background: rgba(194, 219, 232, 0.7);
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}


.slide-content {
    padding: 0;
    width: 100%;
    max-width: 1000px;
}

/* Make all carousel icons light blue */
.carousel-slide .point-icon svg,
.carousel-slide .feature-icon svg,
.carousel-slide .vision-icon svg,
.carousel-slide .solution-icon svg {
    color: #C2DBE8;
    opacity: 0.9;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #006296;
    text-align: center;
    margin-bottom: 40px;
    font-family: "Inter", sans-serif;
}

/* Slide Title with Illustration */
/* Slide 3 Layout - Background Illustration with Overlay */
.slide-3-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-3-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide-3-illustration {
    width: 90px;
    height: auto;
    opacity: 0.15;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.slide-3-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.slide-3-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #006296;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}


/* Stats Grid - Desktop */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(194, 219, 232, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 98, 150, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #FF4138;
    margin-bottom: 12px;
    font-family: "Open Sans", sans-serif;
}

.stat-text {
    font-size: 1rem;
    color: #006296;
    line-height: 1.4;
    font-weight: 500;
}

.slide-description {
    text-align: center;
    font-size: 1.2rem;
    color: #006296;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Vision and Solution Content */
.vision-content,
.solution-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vision-icon,
.solution-icon {
    margin-bottom: 40px;
    color: #006296;
    opacity: 0.8;
}

/* Vision Points */
.vision-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 30px 0;
}

.vision-point {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(194, 219, 232, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 98, 150, 0.05);
    transition: transform 0.3s ease;
}

.vision-point:hover {
    transform: translateY(-4px);
}

.point-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #C2DBE8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-point h3 {
    color: #006296;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    font-family: "Inter", sans-serif;
}

.vision-point p {
    color: #006296;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Solution Features */
.solution-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0 30px 0;
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(194, 219, 232, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 98, 150, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #006296;
    margin: 0 0 12px 0;
    font-family: "Inter", sans-serif;
}

.feature-card p {
    font-size: 0.9rem;
    color: #006296;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.solution-cta {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 98, 150, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(0, 98, 150, 0.2);
}

.cta-text {
    font-size: 1.1rem;
    color: #006296;
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-overlay {
        padding: 10px;
    }
    
    .welcome-content {
        padding: 0;
    }
    
    .welcome-header {
        top: 15px;
        left: 15px;
    }
    
    .welcome-logo {
        height: 22.5px;
    }
    
    .carousel-slide {
        padding: 5px 15px;
    }
    
    .slide-content h2 {
        font-size: 1.53rem;
        margin-bottom: 15px;
    }
    
    .slide-3-illustration {
        display: none; /* Hide on mobile */
    }
    
    .slide-3-overlay h2 {
        font-size: 1.53rem !important;
        margin-bottom: 15px;
    }
    
    
    /* Bento Grid for Mobile Stats */
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .stat-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }
    
    .stat-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .stat-item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .stat-item:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .stat-item:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }
    
    .stat-item:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 4;
    }
    
    .stat-item {
        padding: 12px 10px;
        border-radius: 16px;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 4px;
    }
    
    .stat-text {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .slide-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .vision-content,
    .solution-content {
        max-width: 100%;
    }
    
    .vision-icon,
    .solution-icon {
        margin-bottom: 25px;
    }
    
    .vision-icon svg,
    .solution-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .vision-points {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .vision-point {
        padding: 12px;
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    
    .point-card-header {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .point-icon {
        font-size: 2rem;
        margin-right: 12px;
        margin-bottom: 0;
        flex-shrink: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .vision-point h3 {
        font-size: 1rem;
        margin: 0;
        flex: 1;
        color: #006296;
    }
    
    .vision-point p {
        font-size: 0.85rem;
        margin: 0;
        color: #006296;
    }
    
    .solution-features {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 10px 0 15px 0;
    }
    
    .feature-card {
        padding: 12px;
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    
    .feature-card-header {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .feature-icon {
        margin-right: 12px;
        margin-bottom: 0;
        flex-shrink: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        margin: 0;
        flex: 1;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0;
    }
    
    .solution-cta {
        margin-top: 20px;
        padding: 16px;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .carousel-slide {
        padding: 20px 60px;
    }
    
    .slide-3-illustration {
        width: 90px;
        opacity: 0.12;
    }
    
    .slide-3-overlay h2 {
        font-size: 2.2rem;
        margin-bottom: 35px;
    }
    
    .carousel-arrow {
        width: 28px;
        height: 40px;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
    
    
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
    }
    
    .close-icon {
        width: 36px;
        height: 36px;
    }
}

/* Global Header */
.global-header {
    position: fixed;
    top: 6px;
    left: 12px;
    right: 12px;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

/* Ensure header is completely transparent on mobile */
@media (max-width: 1024px) {
    .global-header {
        background: transparent !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        top: 0;
        left: 0;
        right: 0;
    }
}

.app-logo {
    max-width: 126px; /* 84px * 1.5 = 126px */
}

.app-logo-image {
    height: 33.6px; /* 22.4px * 1.5 = 33.6px */
    width: auto;
    object-fit: contain;
    opacity: 0.8;
}

.header-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    width: 2.5vw;
    height: 2.5vw;
    min-width: 24px;
    min-height: 24px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.container {
    display: flex;
    max-width: 100vw;
    margin: 0 auto;
    gap: 2vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    box-sizing: border-box;
    overflow: hidden;
}

/* Left Section - Input/Calculator */
.left-section {
    flex: 1;
    max-width: 45vw;
    min-width: 300px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container {
    background: transparent;
    border-radius: 16px;
    padding: 2vh 10vw;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    overflow: visible;
    box-sizing: border-box;
}

/* Role Selection */
.role-selection {
    margin-bottom: 4px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 220px;
    min-height: 220px;
    margin: 0 auto;
    overflow: visible;
    padding-top: 20px;
    padding-bottom: 0;
    gap: 6px;
}

.nav-arrow {
    background: rgba(233, 244, 251, 0.6);
    border: none;
    width: 48px;
    height: 99px;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-arrow.left-arrow {
    left: -20px;
}

.nav-arrow.right-arrow {
    right: -20px;
}

.nav-arrow:hover {
    background: rgba(233, 244, 251, 0.8);
    color: #64748b;
}

.nav-arrow:active {
    background: rgba(194, 219, 232, 0.9);
    color: #006296;
}

.nav-arrow svg {
    width: 16px;
    height: 16px;
}

.avatar-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.avatar {
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.role-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.avatar-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.avatar-image[src*="Character-1"],
.avatar-image[src*="Character-2"],
.avatar-image[src*="Character-3"],
.avatar-image[src*="Character-4"],
.avatar-image[src*="Character-5"],
.avatar-image[src*="Character-6"] {
    width: 80%;
    height: 80%;
    margin: 10% 10% 0 10%;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #E9F4FB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon svg {
    width: 62px;
    height: 62px;
    color: #006296;
}

.role-name {
    font-size: 18px;
    font-weight: 600;
    color: #006296;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 0 10px;
    overflow: visible;
}

.role-tag {
    background: rgba(0, 98, 150, 0.1);
    color: #006296;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(0, 98, 150, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 98, 150, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: #006296;
    transform: scale(1.2);
}

/* Input Fields */
.input-fields {
    margin-bottom: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
}

/* Hide salary input section temporarily */
.input-group:has(#salarySlider),
.input-group:has(#salarySliderMobile) {
    display: none !important;
}

.input-group {
    margin-bottom: 0;
    width: 100%;
    max-width: 400px;
}

.input-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #006296;
    margin-bottom: 12px;
}

/* Slider Styles */
.slider-container {
    position: relative;
    margin-top: 20px;
    z-index: 2;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E9F4FB;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
    z-index: 1;
}

/* Remove focus/active state borders */
.slider:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.slider:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.slider:focus-visible {
    outline: none;
    border: none;
    box-shadow: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2E8DBF;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(46, 141, 191, 0.3);
    border: none;
    outline: none;
    position: relative;
    z-index: 10;
}

.slider::-webkit-slider-thumb:focus {
    outline: none;
    border: none;
    box-shadow: 0 2px 6px rgba(46, 141, 191, 0.3);
    z-index: 10;
}

.slider::-webkit-slider-thumb:active {
    outline: none;
    border: none;
    box-shadow: 0 2px 6px rgba(46, 141, 191, 0.3);
    z-index: 10;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2E8DBF;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(46, 141, 191, 0.3);
    outline: none;
    position: relative;
    z-index: 10;
}

.slider::-moz-range-thumb:focus {
    outline: none;
    border: none;
    box-shadow: 0 2px 6px rgba(46, 141, 191, 0.3);
    z-index: 10;
}

.slider::-moz-range-thumb:active {
    outline: none;
    border: none;
    box-shadow: 0 2px 6px rgba(46, 141, 191, 0.3);
    z-index: 10;
}

.slider-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #C2DBE8;
    color: #006296;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    z-index: 10;
    margin-left: 0;
}

.slider-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #C2DBE8;
    margin-top: -1px;
    margin-left: 0;
}

.delayed-tooltip {
    opacity: 1 !important;
    background: #C2DBE8;
    color: #006296;
    font-size: 12px;
    padding: 6px 12px;
    top: -12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    white-space: nowrap;
    pointer-events: none;
    left: 0;
    transform: translateX(-50%);
}

.delayed-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #C2DBE8;
    margin-top: -1px;
}

.delayed-tooltip::after {
    display: none;
}

/* Decisions tooltip styling - positioned above the node */
.decisions-tooltip {
    opacity: 1 !important;
    background: #C2DBE8;
    color: #006296;
    font-size: 12px;
    padding: 6px 12px;
    top: -12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    white-space: nowrap;
    pointer-events: none;
    left: 0;
    transform: translateX(-50%);
}

.decisions-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #C2DBE8;
    margin-top: -1px;
}

.decisions-tooltip::after {
    display: none;
}


.slider-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.slider-indicator {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    transition: opacity 0.3s ease;
}

.slider-indicator.left {
    color: #94a3b8;
}

.slider-indicator.right {
    color: #94a3b8;
    font-size: 16px;
}


/* Stepper Styles */
.stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.stepper-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stepper-btn:hover {
    border-color: #2E8DBF;
    color: #2E8DBF;
}

.stepper-input {
    width: 80px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #006296;
    outline: none;
    transition: border-color 0.2s ease;
}

.stepper-input:focus {
    border-color: #C2DBE8;
    outline: 2px solid #C2DBE8;
    outline-offset: 2px;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: #E9F4FB;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: 100%;
    justify-content: space-between;
}

.segment-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* More specific selector to ensure font size is applied */
.input-group .segment-btn,
.segmented-control .segment-btn,
.mobile-form-content .segment-btn,
button.segment-btn,
.segmented-control button.segment-btn {
    font-size: 14px !important;
}

/* Even more specific for mobile */
@media (max-width: 1024px) {
    .mobile-form-content .input-group .segmented-control .segment-btn,
    .mobile-form-content .segmented-control .segment-btn,
    .mobile-form-content .segment-btn {
        font-size: 14px !important;
    }
}

/* Force font size with highest specificity */
.input-group .segmented-control button.segment-btn[data-value] {
    font-size: 14px !important;
}

/* Additional override for all segment buttons */
button[class*="segment-btn"] {
    font-size: 14px !important;
}

.segment-btn.active {
    background: #2E8DBF;
    color: white;
    box-shadow: 0 2px 4px rgba(46, 141, 191, 0.2);
}


.segment-btn:hover:not(.active) {
    color: #2E8DBF;
}

/* Team Size Toggle */
.team-size-toggle {
    display: flex;
    background: #E9F4FB;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: 100%;
    justify-content: space-between;
}

.team-size-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.team-size-btn.active {
    background: #2E8DBF;
    color: white;
    box-shadow: 0 2px 4px rgba(46, 141, 191, 0.2);
}

.team-size-btn:hover:not(.active) {
    color: #2E8DBF;
    background: rgba(46, 141, 191, 0.1);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2E8DBF 0%, #1e6b99 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 141, 191, 0.3);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(46, 141, 191, 0.3), 0 0 20px rgba(46, 141, 191, 0.2);
    }
    100% {
        box-shadow: 0 4px 12px rgba(46, 141, 191, 0.3), 0 0 30px rgba(46, 141, 191, 0.4);
    }
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 141, 191, 0.4), 0 0 35px rgba(46, 141, 191, 0.5);
    animation: none;
}

.calculate-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 18px;
}

/* Right Section - Results */
.right-section {
    flex: 1;
    max-width: 45vw;
    min-width: 300px;
    height: 85vh;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.results-container {
    background: rgba(0, 98, 150, 0.03);
    border-radius: 16px;
    padding: 2vh 4vw;
    height: 100%;
    max-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

/* Results Header */
.results-header {
    margin-bottom: 15px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.empty-content {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Animated Icon */
.empty-icon {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-image {
    width: 192px;
    height: 192px;
    object-fit: contain;
    animation: bounce 2s ease-in-out infinite;
}

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

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

.empty-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #006296;
    margin: 0;
    line-height: 1.3;
}

/* Stats Preview */
.stats-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: linear-gradient(135deg, #F7FAFC 0%, #E0F0F9 100%);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid #C2DBE8;
    box-shadow: 0 4px 12px rgba(0, 98, 150, 0.08);
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #006296;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #C2DBE8, transparent);
}

/* Call to Action */
.empty-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.empty-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
}

.empty-state .calculate-btn {
    margin-top: 0;
}

.empty-state .calculate-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    filter: none;
    animation: none;
}

.empty-state .calculate-btn:disabled:hover {
    background: #e2e8f0;
    color: #94a3b8;
    transform: none;
    box-shadow: none;
}

.empty-state .calculate-btn:disabled .btn-arrow {
    color: #94a3b8;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
}

.loading-spinner {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-image {
    width: 100px;
    height: 100px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #006296;
    font-weight: 500;
}

/* Results Display */
.results-display {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Loss Summary */
.loss-summary {
    text-align: center;
    margin-bottom: 30px;
}

.loss-text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #006296;
    margin-bottom: 10px;
}

.loss-amount-container {
    position: relative;
    margin-bottom: 10px;
    display: inline-block;
    min-width: 200px;
    min-height: 60px;
    text-align: center;
    overflow: hidden;
}

.loss-amount-background {
    position: absolute;
    top: 3px;
    left: 0;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(2rem, 4vw, 2.625rem);
    font-style: normal;
    font-weight: 800;
    line-height: 100%;
    opacity: 0.1;
    background: linear-gradient(180deg, #FF4138 0%, #830B10 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.loss-amount {
    position: relative;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(2rem, 4vw, 2.625rem);
    font-style: normal;
    font-weight: 800;
    line-height: 100%;
    background: linear-gradient(180deg, #FF4138 0%, #BF1E25 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 14.2px rgba(252, 178, 178, 0.25);
    z-index: 2;
    white-space: nowrap;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.loss-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: #006296;
}

.calculation-note {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 4px;
    font-style: italic;
}

/* Loss Breakdown */
.loss-breakdown {
    border-radius: 24px;
    border: 1px solid #E0F0F9;
    background: linear-gradient(107deg, #FFF 18.14%, #FAFAFA 102.17%);
    padding: 24px;
    margin-bottom: 30px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-icon {
    width: 24px;
    height: 24px;
    color: #006296;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.breakdown-icon svg {
    width: 100%;
    height: 100%;
}

.breakdown-text {
    flex: 1;
    font-size: 16px;
    color: #006296;
    font-weight: 500;
}

.breakdown-amount {
    font-size: 18px;
    font-weight: 700;
    color: #006296;
}

/* Call to Action */
.cta-text {
    font-size: 18px;
    color: #006296;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Savings and ROI */
.savings-roi {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.savings-box {
    flex: 1;
    border-radius: 14.25px;
    border: 1.188px solid rgba(0, 133, 51, 0.50);
    background: linear-gradient(104deg, #008533 2.08%, #56D888 112.31%);
    box-shadow: 0 4px 19.6px 0 rgba(0, 133, 51, 0.35);
    color: white;
    padding: 20px;
    text-align: center;
}

.savings-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.savings-value {
    font-size: 24px;
    font-weight: 700;
}

.roi-box {
    flex: 1;
    border-radius: 14.25px;
    border: 1.188px solid #E0F0F9;
    background: linear-gradient(104deg, #E0F0F9 2.08%, #FFF 112.31%);
    box-shadow: 0 4px 20.2px 0 rgba(0, 98, 150, 0.05);
    color: #64748b;
    padding: 20px;
    text-align: center;
}

.roi-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #006296;
}

.roi-value {
    font-size: 24px;
    font-weight: 700;
    color: #006296;
}

/* Disclaimer */
.disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #006296;
    text-align: center;
    justify-content: center;
}

.disclaimer-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.disclaimer-icon svg {
    width: 100%;
    height: 100%;
}

/* Desktop and larger screens - move dual arrow 12px right */
@media (min-width: 1025px) {
    .floating-arrow .dual-arrow {
        left: calc(50% - 32px);
    }
}

/* Under 1300px width - move dual arrow 12px left */
@media (max-width: 1299px) {
    .floating-arrow .dual-arrow {
        left: calc(50% - 56px);
    }
}

/* Large screens - maintain side-by-side layout */
@media (min-width: 1200px) {
    .container {
        gap: 3vw;
        padding: 3vh 3vw;
        height: 100vh;
    }
    
    .left-section,
    .right-section {
        max-width: 40vw;
        height: 90vh;
        max-height: 90vh;
    }
}

/* iPad specific optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 3vh 3vw;
        gap: 2vw;
        height: 100vh;
    }
    
    /* Move dual arrow 12px left on iPad */
    .floating-arrow .dual-arrow {
        left: calc(50% - 56px);
    }
    
    .left-section,
    .right-section {
        max-width: 42vw;
        height: 88vh;
    }
    
    .app-logo {
        margin-left: 80px;
        max-width: 126px; /* 50% increase from base */
    }
    
    .app-logo-image {
        height: 33.6px; /* 50% increase from base */
    }
    
    .left-section,
    .right-section {
        max-height: 88vh;
    }
    
    .input-container,
    .results-container {
        padding: 1.5vh 3vw;
    }
    
    .role-selection {
        margin-bottom: 0.33vh;
        min-height: 40px;
    }
    
    .input-group {
        margin-bottom: 1.5vh;
    }
    
    .input-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .avatar-container {
        min-height: 200px;
        overflow: visible;
        padding-top: 0;
        padding-bottom: 10px;
        width: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .avatar-icon {
        width: 120px;
        height: 120px;
    }
    
    .role-name {
        font-size: 16px;
    }
    
    .role-tags {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .role-tag-first {
        display: block;
        margin: 0 auto;
    }
    
.role-tags-remaining {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

/* Force spacing between side-by-side tags - multiple approaches */
.role-tags-remaining .role-tag {
    margin-right: 4px;
}

.role-tags-remaining .role-tag:last-child {
    margin-right: 0;
}

.role-tags-remaining .role-tag + .role-tag {
    margin-left: 4px !important;
}

/* Additional specific selector for role tags */
.role-selection .role-tags-remaining .role-tag + .role-tag {
    margin-left: 4px !important;
}

/* Even more specific selectors */
.avatar-container .role-tags-remaining .role-tag + .role-tag {
    margin-left: 4px !important;
}

.role-selection .role-tags .role-tags-remaining .role-tag + .role-tag {
    margin-left: 4px !important;
}

/* Ultra-specific selector to force spacing */
div.role-selection div.role-tags div.role-tags-remaining span.role-tag + span.role-tag {
    margin-left: 4px !important;
}

/* Force spacing with transform as fallback */
.role-tags-remaining .role-tag:not(:first-child) {
    transform: translateX(4px);
}

/* Add left margin to all tags except the first one (tags that have another tag to their left) */
.role-tags-remaining .role-tag:not(:first-child) {
    margin-left: 4px !important;
}

/* Mobile-specific override to ensure gap is maintained */
@media (max-width: 1024px) {
    .role-tags-remaining {
        gap: 4px !important;
        justify-content: center !important;
    }
    
    .role-tags-remaining .role-tag {
        margin-right: 4px !important;
    }
    
    .role-tags-remaining .role-tag:last-child {
        margin-right: 0 !important;
    }
    
    .role-tags-remaining .role-tag + .role-tag {
        margin-left: 4px !important;
    }
    
    .avatar-container .role-tags-remaining .role-tag + .role-tag {
        margin-left: 4px !important;
    }
    
    .role-selection .role-tags .role-tags-remaining .role-tag + .role-tag {
        margin-left: 4px !important;
    }
    
    /* Add left margin to all tags except the first one on mobile */
    .role-tags-remaining .role-tag:not(:first-child) {
        margin-left: 4px !important;
    }
    
    /* C-Suite first row uses gap for 4px spacing between CFO and COO on mobile */
    .role-selection .role-tags .role-tags-first-row {
        gap: 4px !important;
    }
    
    /* Multiple approaches for mobile to ensure 4px gap works */
    .role-tags-first-row {
        gap: 4px !important;
    }
    
    /* Target by class names on mobile */
    .role-tags-first-row .cfo-tag + .coo-tag {
        margin-left: 4px !important;
    }
    
    /* Nuclear option for mobile */
    div.role-tags-first-row span.cfo-tag + span.coo-tag {
        margin-left: 4px !important;
    }
    
    /* Force gap on the container for mobile */
    .role-selection .c-suite-role .role-tags-first-row {
        gap: 4px !important;
    }
    
    /* Ensure C-Suite role uses same vertical spacing as other roles on mobile */
    .c-suite-role {
        gap: 4px !important; /* Same vertical spacing as other roles on mobile */
    }
    
    /* Ensure consistent spacing for C-Suite role on mobile */
    .role-selection .c-suite-role {
        gap: 4px !important;
    }
    
    /* More specific targeting on mobile */
    .role-selection .role-tags.c-suite-role {
        gap: 4px !important;
    }
}

/* Custom layout for C-Suite role */
.role-tags-first-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px !important; /* 4px gap between CFO and COO - force with !important */
    justify-content: center; /* Match role-tags-remaining centering */
    /* margin-bottom removed - let parent .role-tags gap handle vertical spacing */
}

/* Ensure C-Suite role uses same vertical spacing as other roles */
.c-suite-role {
    gap: 4px !important; /* Same vertical spacing as other roles */
}

/* Force 4px gap between CFO and COO tags with high specificity */
.role-selection .role-tags .role-tags-first-row {
    gap: 4px !important;
}

/* Multiple approaches to ensure 4px gap works */
.role-tags-first-row {
    gap: 4px !important;
}

/* Target by class names */
.role-tags-first-row .cfo-tag + .coo-tag {
    margin-left: 4px !important;
}

/* Alternative approach using flexbox gap */
.role-tags-first-row[class*="role-tags-first-row"] {
    gap: 4px !important;
}

/* Nuclear option - target the specific structure */
div.role-tags-first-row span.cfo-tag + span.coo-tag {
    margin-left: 4px !important;
}

/* Force gap on the container */
.role-selection .c-suite-role .role-tags-first-row {
    gap: 4px !important;
}

/* Alternative approach - target the role-tags container directly for C-Suite */
.role-selection .c-suite-role {
    gap: 4px !important;
}

/* More specific targeting */
.role-selection .role-tags.c-suite-role {
    gap: 4px !important;
}

/* C-Suite first row uses gap for 4px spacing between CFO and COO */

.role-tag-second-row {
    display: block;
    margin: 0;
    text-align: center; /* Center text instead of using margin */
}
}

/* Tablet and smaller screens - stack vertically */
@media (max-width: 767px) {
    .container {
        flex-direction: column;
        gap: 2vh;
        padding: 2vh 3vw;
        height: 100vh;
        overflow-y: auto;
    }
    
    .left-section,
    .right-section {
        flex: none;
        min-width: auto;
        max-width: 100%;
        height: 48vh;
        max-height: 48vh;
    }
    
    .input-container,
    .results-container {
        padding: 2vh 3vw;
    }
}

/* Mobile Floating CTA Button */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    padding: 15px 20px;
    z-index: 1000;
    display: none;
}

.mobile-calculate-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #2E8DBF 0%, #1E6B9F 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(46, 141, 191, 0.3);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.mobile-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 141, 191, 0.4), 0 0 35px rgba(46, 141, 191, 0.5);
    animation: none;
}

.mobile-calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(46, 141, 191, 0.3);
}

/* Mobile Pages */
.mobile-pages {
    display: none;
}

.mobile-page {
    min-height: 100vh;
    margin-top: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    background: #FBFDFE;
    position: relative;
}

/* Hide scrollbars on mobile */
@media (max-width: 1024px) {
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
        overflow-x: hidden;
    }
    
    body::-webkit-scrollbar {
        display: none;
    }
    
    * {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    *::-webkit-scrollbar {
        display: none;
    }
    
    /* Increase touch zone for slider thumbs on mobile */
    .slider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
        margin-top: -6px; /* Adjust for larger thumb */
    }
    
    .slider::-moz-range-thumb {
        width: 32px;
        height: 32px;
        border: none;
    }
    
    /* Add padding around slider for easier touch */
    .slider-container {
        padding: 8px 0;
    }
    
    /* Increase slider track height for better touch interaction */
    .slider {
        height: 8px;
    }
    
    /* Make slider track more prominent on mobile */
    .slider::-webkit-slider-track {
        height: 8px;
        background: #E0F0F9;
        border-radius: 4px;
    }
}

/* Hide fullscreen button on mobile */
@media (max-width: 768px) {
    #fullscreenBtn {
        display: none;
    }
}

.mobile-results-page {
    overflow: hidden;
    padding: 0 24px 24px 24px;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
}

.mobile-form-page {
    padding-bottom: 300px;
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-form-page::-webkit-scrollbar {
    display: none;
}

.mobile-form-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(251, 253, 254, 0.9) 0%, rgba(251, 253, 254, 0.6) 40%, rgba(251, 253, 254, 0.2) 80%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

.mobile-form-page::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #FBFDFE 0%, rgba(251, 253, 254, 0.9) 30%, rgba(251, 253, 254, 0.3) 70%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

.mobile-form-content {
    max-width: 100%;
    margin: 0 auto;
}

    .mobile-results-content {
        max-width: 100%;
        margin: 0 auto;
        height: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        padding: 36px 0 116px 0;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

.mobile-results-content::-webkit-scrollbar {
    display: none;
}

.mobile-results-content .results-container {
    width: 100%;
    min-height: auto;
    max-height: none;
    padding: 24px 24px 80px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
}

.mobile-form-content .input-container {
    background: transparent;
    padding: 0 24px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 150px;
    padding-bottom: 50px;
}

.mobile-form-content .role-selection {
    margin-bottom: 2px;
}

.mobile-form-content .input-group {
    margin-bottom: 0;
}

.mobile-form-content .input-label {
    font-size: 16px;
    font-weight: 600;
    color: #006296;
    margin-bottom: 12px;
    display: block;
}

/* Mobile screens - Two page flow */
@media (max-width: 924px) {
    .container {
        display: none !important;
    }
    
    .mobile-cta {
        display: block;
    }
    
    .mobile-pages {
        display: block;
    }
    
    .mobile-page {
        display: block;
    }
    
    .global-header {
        padding: 0 24px;
    }
    
    .app-logo {
        max-width: 100px;
    }
    
    .app-logo-image {
        height: 28px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .control-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    .global-header {
        padding: 0 24px;
    }
    
    .app-logo {
        max-width: 80px;
    }
    
    .app-logo-image {
        height: 24px;
    }
    
    /* Fix mobile scrolling issues */
    .mobile-form-page {
        padding-bottom: 300px;
        min-height: 100vh;
    }
    
    .mobile-form-content .input-container {
        margin-bottom: 100px;
        padding-bottom: 50px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .control-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .mobile-page {
        padding: 15px;
    }
    
    .mobile-form-content .input-container {
        padding: 0 clamp(16px, 4vw, 40px);
        gap: 8px;
        margin-bottom: 100px;
        padding-bottom: 50px;
    }
    
    .mobile-calculate-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Mobile results page styling */
    .mobile-results-page .results-title {
        display: none !important;
    }
    
    /* Ensure title is hidden on mobile landscape */
    @media (max-width: 768px) and (orientation: landscape) {
        .mobile-results-page .results-title {
            display: none !important;
        }
    }
    
    .mobile-results-page .loss-amount-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        text-align: center;
    }
    
    .mobile-results-page .loss-amount-background {
        font-size: 8vw;
        font-family: "Open Sans", sans-serif;
        font-weight: 800;
        line-height: 100%;
        position: absolute;
        top: 17px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.1;
        background: linear-gradient(180deg, #FF4138 0%, #830B10 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        z-index: 1;
        pointer-events: none;
        white-space: nowrap;
        width: 100%;
        text-align: center;
    }
    
    .mobile-results-page .loss-amount {
        font-size: 8vw;
        font-family: "Open Sans", sans-serif;
        font-weight: 800;
        line-height: 100%;
        position: relative;
        background: linear-gradient(180deg, #FF4138 0%, #BF1E25 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 4px 14.2px rgba(252, 178, 178, 0.25);
        z-index: 2;
        white-space: nowrap;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
    }
    
    .mobile-results-page .loss-text {
        font-size: 4vw;
    }
    
    .mobile-results-page .loss-subtitle {
        font-size: 3vw;
    }
    
    .mobile-results-page .calculation-note {
        font-size: 2.5vw;
        color: #94a3b8;
        text-align: center;
        margin-top: 2px;
        font-style: italic;
    }
    
    .mobile-results-page .breakdown-text {
        font-size: 3.5vw;
    }
    
    .mobile-results-page .breakdown-amount {
        font-size: 3.5vw;
    }
    
    .mobile-results-page .cta-text {
        font-size: 3.5vw;
    }
    
    .mobile-results-page .savings-label,
    .mobile-results-page .roi-label {
        font-size: 3vw;
    }
    
    .mobile-results-page .savings-value,
    .mobile-results-page .roi-value {
        font-size: 4vw;
    }
    
    .mobile-results-page .disclaimer-text {
        font-size: 2.5vw;
    }
}


