/* ==========================================
   How It Works Section - Timeline Design
   ========================================== */

.how-it-works-section-new {
    padding: 100px 0;
    background: #ffffff;
}

/* Header */
.how-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-header-box {
    background: #ffffff;
    border: 1px solid rgba(15, 26, 43, 0.08);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 
        0 4px 12px rgba(15, 26, 43, 0.04),
        0 1px 3px rgba(15, 26, 43, 0.02);
}

.how-main-title {
    font-size: 2.75rem;
    font-weight: 600;
    color: rgba(15, 26, 43, 0.95);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Timeline */
.how-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    padding: 0 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}

.timeline-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 50% 50%, #f0f4ff 0%, #d8e3ff 50%, #c5d5f5 100%);
    border: 1px solid rgba(200, 210, 230, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: #3a4557;
    transition: all 0.3s ease;
    box-shadow: 
        0 1px 1px rgba(255, 255, 255, 0.8) inset,
        0 -1px 2px rgba(0, 0, 0, 0.1) inset,
        0 10px 20px -5px rgba(15, 26, 43, 0.15),
        0 4px 8px -2px rgba(15, 26, 43, 0.1),
        0 1px 3px rgba(15, 26, 43, 0.08);
    position: relative;
}

.timeline-circle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.timeline-circle.active {
    background: 
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 50% 50%, #7aa0ff 0%, #5b85ff 50%, #4169E1 100%);
    border: 1px solid rgba(100, 150, 255, 0.4);
    color: #ffffff;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 1px 1px rgba(255, 255, 255, 0.3) inset,
        0 -2px 4px rgba(0, 0, 0, 0.2) inset,
        0 15px 30px -5px rgba(65, 105, 225, 0.4),
        0 8px 16px -4px rgba(65, 105, 225, 0.3),
        0 4px 8px rgba(65, 105, 225, 0.2),
        0 0 20px rgba(91, 133, 255, 0.15);
}

.timeline-circle.active::before {
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
}

/* checkmark class no longer used */

.timeline-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a2b49;
    text-align: center;
    max-width: 140px;
    line-height: 1.3;
}

/* New Timeline Content Box - Shadow Box under circles */
.timeline-content-box {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 26, 43, 0.08);
    border-radius: 14px;
    padding: 24px 24px 64px 24px;
    max-width: 260px;
    width: 260px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 6px 16px rgba(15, 26, 43, 0.1),
        0 3px 8px rgba(15, 26, 43, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content-box:hover {
    box-shadow: 
        0 8px 20px rgba(15, 26, 43, 0.12),
        0 4px 10px rgba(15, 26, 43, 0.06);
    transform: translateY(-2px);
}

.timeline-box-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a2b49;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.timeline-box-subtext {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(15, 26, 43, 0.65);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* Timeline Bubble - Now at bottom inside box */
.timeline-bubble {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    background: linear-gradient(135deg, #4169E1 0%, #5b85ff 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.25);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Professional CTA Box */
.timeline-cta-box {
    max-width: 700px;
    margin: 50px auto 0 auto;
    padding: 28px 36px;
    background: #ffffff;
    border: 1px solid rgba(65, 105, 225, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 
        0 4px 12px rgba(15, 26, 43, 0.08),
        0 2px 6px rgba(15, 26, 43, 0.04);
    transition: all 0.3s ease;
}

.timeline-cta-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(15, 26, 43, 0.12),
        0 3px 8px rgba(15, 26, 43, 0.06);
}

.timeline-cta-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4169E1 0%, #5b85ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.25);
}

.timeline-cta-icon i {
    font-size: 22px;
    color: #ffffff;
    transform: rotate(90deg);
}

.timeline-cta-content {
    flex: 1;
}

.timeline-cta-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a2b49;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.timeline-cta-text {
    font-size: 0.9375rem;
    color: rgba(15, 26, 43, 0.65);
    margin: 0;
    line-height: 1.4;
}

.timeline-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2f56c9;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(47, 86, 201, 0.3);
    transition: all 0.3s ease;
}

.timeline-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(47, 86, 201, 0.4);
    background: #2548b0;
}

.timeline-cta-button i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.timeline-cta-button .fa-phone-alt {
    transform: rotate(90deg);
}

.timeline-cta-button:hover .fa-arrow-right {
    transform: translateX(3px);
}

.timeline-connector {
    flex: 1;
    min-width: 60px;
    height: 3px;
    background: linear-gradient(to right, #5b85ff 0%, #d0e3ff 100%);
    margin: 0 12px;
    margin-bottom: 295px;
    border-radius: 2px;
    align-self: flex-start;
    margin-top: 44px;
}

/* Content Area */
.how-content-area {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.how-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.how-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.how-text {
    padding: 20px 0;
}

.how-step-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #5b85ff;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.how-step-description {
    font-size: 1.125rem;
    line-height: 1.5;
    color: rgba(15, 26, 43, 0.65);
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.1em;
}

/* CTA */
.how-cta {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .how-it-works-section-new {
        padding: 80px 0;
    }

    .how-header-box {
        padding: 40px 32px;
        max-width: 90%;
    }

    .how-main-title {
        font-size: 2rem;
    }

    .how-timeline {
        margin-bottom: 50px;
        padding: 0 20px;
    }

    .timeline-circle {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .timeline-checkmark {
        width: 100px;
        height: 100px;
        margin-top: 95px;
    }

    .timeline-connector {
        min-width: 60px;
        margin: 0 15px;
        margin-bottom: 295px;
    }

    .timeline-label {
        font-size: 0.875rem;
        max-width: 100px;
    }

    .timeline-content-box {
        max-width: 220px;
        padding: 20px 16px 16px 16px;
        min-height: 260px;
        height: 260px;
    }

    .timeline-box-title {
        font-size: 1.0625rem;
        margin: 0 0 10px 0;
    }

    .timeline-box-subtext {
        font-size: 0.9375rem;
        padding-bottom: 55px;
    }

    .timeline-bubble {
        font-size: 0.75rem;
        padding: 6px 12px;
        bottom: 14px;
    }

    .timeline-cta-box {
        padding: 24px 28px;
        gap: 20px;
    }

    .timeline-cta-icon {
        width: 45px;
        height: 45px;
    }

    .timeline-cta-icon i {
        font-size: 20px;
    }

    .timeline-cta-title {
        font-size: 1.25rem;
    }

    .timeline-cta-text {
        font-size: 0.875rem;
    }

    .timeline-cta-button {
        padding: 11px 20px;
        font-size: 0.875rem;
    }

    .how-content-area {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .how-image img {
        width: 280px;
        height: 280px;
    }

    .how-step-title {
        font-size: 1.5rem;
    }

    .how-step-description {
        font-size: 1.0625rem;
    }
}

/* Tablet: 2×2 grid layout */
@media (min-width: 641px) and (max-width: 968px) {
    .how-it-works-section-new {
        padding: 56px 16px;
    }

    .how-header {
        margin-bottom: 32px;
    }

    .how-header-box {
        padding: 24px 20px;
        max-width: 100%;
        border-radius: 12px;
    }

    .how-main-title {
        font-size: 1.5rem;
    }

    .how-timeline {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
        padding: 0 12px !important;
        margin-bottom: 32px !important;
        max-width: 600px !important;
        flex-direction: unset !important;
        overflow: visible !important;
    }

    /* Hide connectors in grid layout */
    .timeline-connector {
        display: none !important;
    }

    .timeline-step {
        flex-direction: column;
        align-items: center;
    }

    .timeline-circle {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.25rem !important;
    }

    .timeline-content-box {
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        padding: 16px 14px 44px 14px !important;
    }

    .timeline-box-title {
        font-size: 0.9rem;
        margin: 0 0 6px 0;
    }

    .timeline-box-subtext {
        font-size: 0.78rem;
        padding-bottom: 0;
        line-height: 1.4;
    }

    .timeline-bubble {
        font-size: 0.75rem;
        padding: 5px 10px;
        bottom: 10px;
    }

    .timeline-cta-box {
        padding: 18px 20px;
        gap: 16px;
        margin-top: 24px;
    }

    .timeline-cta-icon {
        width: 36px;
        height: 36px;
    }

    .timeline-cta-icon i {
        font-size: 16px;
    }

    .timeline-cta-title {
        font-size: 1rem;
    }

    .timeline-cta-text {
        font-size: 0.8rem;
    }

    .timeline-cta-button {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .how-it-works-section-new {
        padding: 60px 0;
    }

    .how-header-box {
        padding: 32px 24px;
        max-width: 90%;
        border-radius: 12px;
    }

    .how-main-title {
        font-size: 1.75rem;
    }

    .how-timeline {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .timeline-connector {
        width: 3px;
        min-width: 3px;
        height: 40px;
        margin: -15px 0;
        background: linear-gradient(to bottom, #5b85ff 0%, #d0e3ff 100%);
    }

    .timeline-step {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .timeline-circle {
        width: 60px;
        height: 60px;
        font-size: 1.375rem;
        flex-shrink: 0;
    }

    .timeline-checkmark {
        width: 90px;
        height: 90px;
        margin-top: 0;
    }

    .timeline-label {
        text-align: left;
        max-width: none;
        font-size: 0.9375rem;
    }

    .timeline-content-box {
        max-width: 100%;
        width: 100%;
        text-align: center;
        min-height: auto;
        height: auto;
        padding: 20px 16px 56px 16px;
        position: relative;
    }

    .timeline-box-title {
        font-size: 1rem;
        margin: 0 0 10px 0;
    }

    .timeline-box-subtext {
        font-size: 0.875rem;
        padding-bottom: 0;
        margin-bottom: 16px;
    }

    .timeline-bubble {
        font-size: 0.75rem;
        padding: 6px 12px;
        bottom: 16px;
    }

    .timeline-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
        margin: 40px 20px 0 20px;
    }

    .timeline-cta-icon {
        width: 45px;
        height: 45px;
    }

    .timeline-cta-icon i {
        font-size: 20px;
    }

    .timeline-cta-title {
        font-size: 1.125rem;
    }

    .timeline-cta-text {
        font-size: 0.875rem;
    }

    .timeline-cta-button {
        padding: 12px 24px;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    .how-image img {
        width: 250px;
        height: 250px;
    }

    .how-step-title {
        font-size: 1.375rem;
    }

    .how-step-description {
        font-size: 1rem;
    }
}
