/* Base Styles (Desktop) */
.pricing-intro {
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-container {
    margin: 4rem 0;
    padding-left: 5rem;
    position: relative;
}


.slidecontainer {
    margin-top: 40px;
    position: relative;
}

.revenue-section {
    background-color: #ffffff;
    border: 1px solid rgba(49, 68, 90, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    padding: 2.5rem 10rem 2.5rem 2.5rem;
}


.revenue-section h4{
   line-height:1.5;
}

.info-button {
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #31445A;
    border: 1px solid #007bff;
    border-radius: 16px;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.info-button:hover {
    background-color: #eaf6ff;
    color: #31445A;
}

#revenue-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 10px;
    background: linear-gradient(to right, #FDEBD9, #F7AB8D, #F46665);
    border-radius: 8px;
    outline: none;
    padding:0 5px 0;
}

#revenue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 6px 2px rgba(49, 68, 90, 0.15);
    transition: transform 0.3s ease;
}

#revenue-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #31445A;
}

.current-revenue {
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  font-weight: bold;
  font-size: 12px;
  pointer-events: none;
  z-index: 10;
  color: var(--btn-color);
  min-width: 70px;
  text-align: center;
}

.growth-plan-display {
    background-color: #ffffff;
    border: 1px solid rgba(49, 68, 90, 0.15);
    border-radius: 16px;
    box-shadow: 2px 2px 6px 2px rgba(49, 68, 90, 0.15);
    padding: 20px 20px 40px;
    text-align: center;
    position: absolute;
    right:40px;
    top: -35px;
    height: 260px;
    width: 100%;
    max-width: 19.5rem;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: var(--btn-radius);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 3px;
}

.toggle-option.active {
    background-color: var(--btn-color);
    color: var(--btn-text-color);
}

.toggle-option:hover:not(.active) {
    background-color: #eaf6ff;
    color: #007bff;
}

.plan-name {
    font-size: 22px;
    font-weight: bold;
    color: #31445A;
    margin:25px 0 0;
    transition: opacity 0.5s ease;
}

.plan-price {
    font-size: 36px;
    font-weight: bold;
    color: #31445A;
    margin-bottom: 20px;
    transition: opacity 0.5s ease;
}

#plan-fee {
    font-size: 14px;
    color: #555;
    display: inline;
    position: relative;
}

.cta-container {
    margin: 2rem 0;
    text-align: center;
}

.tooltip-icon {
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    position: absolute;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #F7AB8D;
    color: #31445A;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    position: absolute;
    font-size: 0.75rem;
    top: -40px;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: pre-wrap;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .pricing-container {
        margin: 1rem 0;
        padding-left: 0 !important;
    }

    .revenue-section {
        padding: 2rem 8rem 2rem 2rem;
        max-width: 90%;
        margin:1rem;
        max-width:550px;
    }

/*     .growth-plan-display {
        margin-top: 1.5rem;
        padding: 20px;
        max-width: 40%;
        height: auto;    
        right: -10px;
        top: -40px;
    } */

}


/* Mobile Styles */
@media (max-width: 768px) {
    .pricing-container {
        margin: 1rem 0;
        padding-left: 0;
/*         display: flex;
        flex-direction: column-reverse; */
        border: 1px solid rgba(49, 68, 90, 0.15);
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .revenue-section {
        padding: 1rem;
        max-width: 100%;
        margin: 0.5rem auto;
        border:none;
        border-radius:none;
        box-shadow:none;
    }

    .growth-plan-display {
        margin-top: 0;
        padding: 0 20px 20px 20px;
        max-width: 100%;
        height: auto;
        position: static; /* Prevents overlap and keeps layout fluid */
        border:none;
        border-radius:none;
        box-shadow:none;
    }

}

    /* Text Adjustments */

    .plan-name {
        font-size: 1.1rem;
    }

      #plan-price-monthly{
          font-size:2rem;
      }

    .plan-price {
        font-size: 1rem;
    }

    #plan-fee {
        font-size: 0.875rem;
    }

    .current-revenue {
        font-size: 0.675rem;
    }


    #revenue-slider {
        width: 100%;
    }

    .slider-labels {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        font-size: 0.875rem;
        margin-top: 5px;
    }

    .slider-labels span {
        font-size: 0.875rem;
        margin: 2px;
    }

    /* Toggle Options */
    .toggle-container {
        flex-direction: row;
        gap: 2px;
        margin-bottom: 6px;
    }


    /* CTA Button */
    .cta-container {
        margin: 1.5rem 0;
        margin-bottom:4rem;
    }

    .cta-container button {
        width: 100%;
        font-size: 1rem;
        padding: 10px 20px;
    }

}
