/* ========================================
   How It Works Page - Modern Design
   ======================================== */

/* Main Background */
.main-bg {
    background: #FFF9F0;
    min-height: 100vh;
}

/* Title Section */
.how-it-works-title-section {
    padding: 60px 0 40px;
    background: transparent;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E74C3C;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* Steps Container */
.how-steps-container {
    overflow: visible;
    padding: 40px 0;
    background: transparent;
}

.how-step-row {
    min-height: 400px;
    position: relative;
    overflow: visible;
}

/* Step Content */
.step-content-left,
.step-content-right {
    padding: 20px;
}

.step-heading-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: #E74C3C;
    margin-bottom: 20px;
}

.step-description-main {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* Horizontal Dots Below Text */
.step-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.step-dots::before {
    content: '';
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        to right,
        #ddd 0,
        #ddd 8px,
        transparent 8px,
        transparent 16px
    );
}

/* Center Step Number Container */
.step-number-container {
    position: relative;
    padding: 20px 0;
    z-index: 10;
    background: transparent;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.step-number-large {
    font-size: 4rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1;
}

/* Vertical Dots Connector */
.vertical-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 6px;
    height: 312px;
    background-image: repeating-linear-gradient(
        to bottom,
        #FF6A00 0px,
        #FF6A00 6px,
        transparent 6px,
        transparent 12px
    );
    z-index: 1;
    display: block !important;
}

/* Ensure vertical dots are visible */
.how-step-row:nth-child(1) .vertical-dots,
.how-step-row:nth-child(2) .vertical-dots {
    display: block;
    visibility: visible !important;
}

/* Hide dots on last step */
.how-step-row:last-child .vertical-dots {
    display: none !important;
}

/* Step Image Circle - Desktop & Tablet */
.step-image-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8C00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(255, 106, 0, 0.25);
    animation: float 3s ease-in-out infinite;
}

/* Add subtle inner circle effect */
.step-image-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent);
}

.step-image-circle img {
    position: relative;
    z-index: 2;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Responsive Design - Tablet */
@media (max-width: 991px) {
    .how-step-row {
        min-height: auto;
        margin-bottom: 0px !important;
        padding-bottom: 0px !important;
    }

    .step-number-container {
        margin: 30px 0;
    }

    .step-content-left,
    .step-content-right {
        text-align: center;
        padding: 30px 15px;
    }

    .step-image-circle {
        width: 250px;
        height: 250px;
        margin: 30px auto;
    }

    .step-image-circle img {
        max-width: 160px;
        max-height: 160px;
    }

    .step-number-large {
        font-size: 3.5rem;
    }

    .vertical-dots {
        height: 100px;
    }

    .step-dots::before {
        margin: 0 auto;
        width: 200px;
    }

/* Responsive Design - Mobile */
    /* Title Section */
    .how-it-works-title-section {
        padding: 40px 0 0px;
    }

    .section-title h2 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    /* Steps Container */
    .how-steps-container {
        padding: 0px;
    }

    /* Modern Step Number Badge Design */
    .step-number-container {
        margin: 0 0 25px 0;
        padding: 0;
        background: transparent;
    }

    .step-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
        color: #999;
        text-transform: uppercase;
    }

    .step-number-large {
        font-size: 4rem;
        font-weight: 800;
        color: #2C3E50;
        line-height: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Hide vertical dots on mobile */
    .vertical-dots {
        display: none !important;
    }

    /* Step Image Circle - Mobile Design */
    .step-image-circle {
        width: 240px;
        height: 240px;
        margin: 0 auto 30px auto;
        box-shadow: 0 15px 40px rgba(255, 106, 0, 0.3);
        animation: none; /* Disable float on mobile for better performance */
    }

    .step-image-circle img {
        max-width: 150px;
        max-height: 150px;
    }

    /* Step Content - Clean Mobile Layout */
    .step-content-left,
    .step-content-right {
        text-align: center;
        padding: 0 20px 30px 20px;
    }

    .step-heading-main {
        font-size: 1.5rem;
        margin-bottom: 15px;
        font-weight: 700;
        color: #E74C3C;
    }

    .step-description-main {
        font-size: 0.95rem;
        line-height: 1.7;
        color: #666;
        margin-bottom: 20px;
    }

    /* Horizontal dots - Centered and styled */
    .step-dots {
        margin-top: 0;
        justify-content: center;
        padding: 0 20px;
    }

    .step-dots::before {
        width: 220px;
        height: 3px;
        background: repeating-linear-gradient(
            to right,
            #E0E0E0 0,
            #E0E0E0 6px,
            transparent 6px,
            transparent 12px
        );
    }

    /* Add bottom border separator for each step */
    .how-step-row::after {
        content: '';
        display: block;
        width: 80%;
        height: 1px;
        background: linear-gradient(to right, transparent, #E0E0E0, transparent);
        margin: 40px auto 0;
    }

    /* Remove separator from last step */
    .how-step-row:last-child::after {
        display: none;
    }
}

/* Extra small mobile devices */
@media (max-width: 575px) {
    .section-title h2 {
        font-size: 1.5rem;
    }

    .step-number-large {
        font-size: 3.5rem;
    }

    .step-image-circle {
        width: 220px;
        height: 220px;
    }

    .step-image-circle img {
        max-width: 130px;
        max-height: 130px;
    }

    .step-heading-main {
        font-size: 1.35rem;
    }

    .step-description-main {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .step-dots::before {
        width: 200px;
    }

    .step-content-left,
    .step-content-right {
        padding: 0 15px 25px 15px;
    }
}

/* Newsletter Section Styles */
.newsletter-section {
    background: #FFFAF3;
    padding: 60px 0;
}

.newsletter-wrapper {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.newsletter-content-box .sub-text {
    display: inline-block;
    background: #FFF9E5;
    color: #FF6A00;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.newsletter-content-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 25px;
}

.newsletter-content-box h3 span {
    color: #E74C3C;
}

.newsletter-content-box .form-group {
    position: relative;
}

.newsletter-content-box .form_control {
    width: 100%;
    padding: 15px 180px 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-content-box .theme-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 30px;
    border-radius: 50px;
}

#newsletterSuccess {
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    border: none;
    border-radius: 15px;
}

@media (max-width: 767px) {
    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-wrapper {
        padding: 30px 20px;
    }

    .newsletter-content-box h3 {
        font-size: 1.3rem;
    }

    .newsletter-content-box .sub-text {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .newsletter-content-box .form_control {
        padding: 12px 15px;
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    .newsletter-content-box .theme-btn {
        position: static;
        transform: none;
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
