﻿/**
 * How It Works Section + WhatsApp Widget Styles
 */

/* ===== How It Works Section (Accordion Style) ===== */
.how-it-works-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f4f6fa 100%);
    padding: 50px 0;
}

.accordion-wrapper {
    max-width: 800px;
    margin: 30px auto; /* Reduced from 50px */
}

.steps-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced from 20px */
}

.accordion-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 20px rgba(49, 146, 174, 0.08);
    transform: translateY(-2px);
}

.accordion-header {
    padding: 15px 20px; /* Reduced from 20px 25px */
    display: flex;
    align-items: center;
    cursor: pointer;
    background: white;
    justify-content: space-between;
}

.accordion-title-group {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced from 20px */
}

.step-badge {
    width: 35px; /* Reduced from 40px */
    height: 35px; /* Reduced from 40px */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem; /* Reduced from 1.1rem */
    box-shadow: 0 4px 10px rgba(49, 146, 174, 0.2);
    flex-shrink: 0;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem; /* Reduced from 1.2rem */
    color: var(--text-dark);
    font-weight: 600;
}

.toggle-icon {
    color: var(--text-light);
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 50%;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: white;
}

.accordion-body {
    padding: 0 20px; /* Reduced from 25px */
    max-height: 0;
    /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    opacity: 0;
}

.accordion-item.active .accordion-body {
    padding: 0 20px 20px; /* Reduced from 25px 30px */
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
}

.accordion-content-inner {
    border-top: 1px solid #eee;
    padding-top: 15px; /* Reduced from 20px */
    display: flex;
    gap: 20px; /* Reduced from 30px */
}

@media (max-width: 600px) {
    .accordion-content-inner {
        flex-direction: column;
        gap: 20px;
    }
}

.step-icon-large {
    font-size: 2rem; /* Reduced from 2.5rem */
    color: var(--primary-color);
    opacity: 0.8;
    background: rgba(49, 146, 174, 0.05);
    width: 60px; /* Reduced from 80px */
    height: 60px; /* Reduced from 80px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px; /* Reduced from 12px */
    flex-shrink: 0;
}

.step-details {
    flex: 1;
}

.step-details p {
    color: var(--text-light);
    line-height: 1.5; /* Reduced from 1.6 */
    margin-bottom: 15px;
    font-size: 0.95rem; /* Smaller font */
}

.step-checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.step-checklist li {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.step-checklist li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* CTA Box Refinement */
.cta-box {
    text-align: center;
    background: white;
    padding: 30px; /* Reduced from 50px */
    border-radius: 16px; /* Reduced from 20px */
    margin-top: 40px; /* Reduced from 60px */
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Decorative background blur for CTA */
.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cta-box h3 {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    color: var(--text-dark);
    margin-bottom: 10px; /* Reduced from 15px */
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 20px; /* Reduced from 30px */
    font-size: 0.95rem; /* Smaller text */
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #18a276;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}


