/* ==========================================================================
   Premium Treatment Details Page Styles
   ========================================================================== */

/* --- Animations --- */
@keyframes softFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(229, 138, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(229, 138, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 138, 0, 0); }
}

/* Base Styles & Utilities */
.rounded-shadow-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.treatment-intro-image:hover .rounded-shadow-img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 92, 48, 0.15);
}

/* ==========================================================================
   Intro Section (Glassmorphism & Overlaps)
   ========================================================================== */
.treatment-intro-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #F8FAF9 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.treatment-intro-section::before {
    content: '';
    position: absolute;
    top: -10%; left: -5%;
    width: 40%; height: 60%;
    background: radial-gradient(circle, rgba(0, 92, 48, 0.04) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.treatment-intro-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Text Card */
.treatment-intro-content {
    flex: 1 1 50%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
    /* Negative margin to overlap image slightly on desktop */
    margin-right: -40px;
}

.treatment-title {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.treatment-intro-content p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.treatment-intro-image {
    flex: 1 1 40%;
    max-width: 500px;
    display: flex;
    position: relative;
    z-index: 1;
    animation: softFloat 6s ease-in-out infinite;
}

.treatment-intro-image .rounded-shadow-img {
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.treatment-benefits-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
    position: relative;
}

.benefits-title {
    text-align: center;
    color: var(--color-dark-blue);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
}

.benefits-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.benefits-card {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 92, 48, 0.05);
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 25px;
}

.benefits-list li {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
    
    /* Fix: Use padding and relative positioning instead of flex so text flows naturally */
    position: relative;
    padding-left: 40px;
    transition: transform 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(8px);
}

/* Custom SVG Checkmark replacing bullets */
.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 3px;
    box-shadow: 0 4px 10px rgba(0, 92, 48, 0.2);
}

.benefits-list li strong {
    font-weight: 700;
    color: var(--color-primary-dark);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.treatment-gallery-section {
    padding: 80px 0;
    background: #fff;
}

.gallery-title {
    text-align: center;
    color: var(--color-dark-blue);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 92, 48, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(0, 92, 48, 0.15);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.treatment-faq-section {
    padding: 80px 0 100px;
    background-color: var(--color-bg-light);
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-section-title {
    text-align: center;
    color: var(--color-dark-blue);
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.faq-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 25px 30px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: bold;
    transition: var(--transition-smooth);
}

/* Active State for FAQ */
.faq-item.active {
    background: linear-gradient(to right, rgba(0, 92, 48, 0.02), #fff);
    border-left: 4px solid var(--color-primary);
}

.faq-item.active .faq-icon {
    background-color: var(--color-accent-orange);
    color: #fff;
    transform: rotate(45deg); /* Turns + into x */
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: transparent;
}

.faq-item.active .faq-content {
    max-height: 500px;
    transition: max-height 0.4s ease-in-out;
}

.faq-content p {
    padding: 0 30px 25px 30px;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Call to Action Section
   ========================================================================== */
.treatment-cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--color-dark-blue);
    background-image: linear-gradient(135deg, var(--color-dark-blue) 0%, #001f3f 100%);
    position: relative;
    overflow: hidden;
}

.cta-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.btn-cta-pulse {
    display: inline-block;
    padding: 16px 45px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(229, 138, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite;
    position: relative;
    z-index: 2;
}

.btn-cta-pulse:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--color-secondary-hover);
    color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .treatment-intro-content {
        margin-right: 0;
        padding: 30px;
    }
    
    .benefits-card {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .treatment-intro-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .treatment-intro-content {
        flex: 1 1 100%;
        max-width: 100%;
        order: 1;
    }
    
    .treatment-intro-image {
        flex: 1 1 100%;
        max-width: 100%;
        order: 2;
    }
    
    .treatment-title {
        font-size: 2rem;
    }
    
    .benefits-title, .faq-section-title, .gallery-title, .cta-title {
        font-size: 1.8rem;
    }

    /* Reduce paddings on mobile */
    .treatment-intro-section, 
    .treatment-benefits-section, 
    .treatment-gallery-section, 
    .treatment-faq-section, 
    .treatment-cta-section {
        padding: 50px 0;
    }
    
    .faq-toggle {
        padding: 20px;
        font-size: 1.05rem;
    }
    
    .faq-content p {
        padding: 0 20px 20px 20px;
    }
}
