main {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center everything horizontally */
    justify-content: flex-start; /* Align items to the top */
}

#searchForm {
    margin-bottom: 0;
}

/* Banner Section Styling */
.banner {
    width: 100%;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.7), rgba(0, 119, 182, 0.9)), 
                url('../assets/complaintsbanner.png') no-repeat center center;
    background-size: cover;
    color: white;  /* Text color */
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-bottom: 40px;  /* Space below the banner */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* Subtle shadow for depth */
}

/* Banner Title Styling */
.banner-title {
    margin-top: 0;
    font-size: 48px;  /* Larger font size for the title */
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;  /* Adding some spacing between letters */
}

/* Banner Description Styling */
.banner-description {
    font-size: 20px;  /* Slightly larger description */
    color: #f0f0f0;  /* Lighter color for better contrast */
    max-width: 800px;  /* Limit the width of the description */
    margin: 0 auto;  /* Center the text */
    margin-bottom: 10px;
}

/* Heading for Service Section */
.service-heading {
    text-align: center;
    margin-bottom: 40px;
}

.service-heading h2 {
    font-size: 32px;  /* Larger font size for better prominence */
    color: #374957;
    font-weight: bold;
    text-transform: uppercase;  /* Uppercase for more emphasis */
    letter-spacing: 1px;
}

/* Ensure equal height for all cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    justify-content: center;
    margin-bottom: 30px;
}

/* Additional styles to ensure 2 cards on the second row */
.card-container > .card:nth-child(n+4) {
    grid-column: span 1;  /* Ensure the second row contains 2 cards */
}

/* Ensure uniform card size */
.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    min-height: 320px; /* Ensure cards have a minimum height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.card-icon{
    width: 200px;
    height: auto;
}

/* Hover effect for the cards */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Card title */
.card-title {
    font-size: 2rem;
    font-weight: bold;
    color: #374957;
    margin: 0;
}

/* Card description */
.purpose-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* Button inside the card */
.card-button {
    padding: 10px 20px;
    background-color: #0077B6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    display: inline-block;
    border: 2px solid #0077B6;
}

.card-button:hover {
    background-color: transparent;
    color: #0077B6;
    border: 2px solid #0077B6;
}
.purpose-toggle {
        display: inline-block;
        color: #0077B6;
        cursor: pointer;
        font-weight: bold;
        text-decoration: underline;
    }

    /* Fix the issue where "See More" expands the height */
.more-text {
    display: none;
}

.see-more {
    color: #0077B6;
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 10px;
}

.see-more:hover {
    color: #0088d1;
}

.progress-indicator {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 600px;
        margin: 20px auto;
    }

    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .circle {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: lightgray;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: white;
    }

    .step.active .circle {
        background: #0077B6;
    }

    .step span {
        margin-top: 5px;
        font-size: 14px;
    }

    .line {
        flex: 1;
        height: 4px;
        background: lightgray;
        margin: 0 5px;
    }

    .step.active +  {
        background: #0077B6;
    }

    .review-container {
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 5px;
        background: #f9f9f9;
        font-size: 14px;
    }

    .review-item {
        padding: 5px 0;
        font-size: 14px;
    }

    .button-container {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
    }

    .back-btn, .submit-btn {
        flex: 1;
        padding: 8px;
        font-size: 14px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .back-btn {
        background-color: #ccc;
        color: #333;
    }
    .back-btn:hover {
        background-color: #bbb;
    }

    .submit-btn {
        background-color: #0077B6;
        color: white;
    }
    .submit-btn:hover {
        background-color: rgb(20, 101, 187);
    }

    .button-container {
        display: flex;
        justify-content: space-evenly;
        margin-top: 20px;
        gap: 30px;
    }

    .back-btn {
        background-color: #ccc; /* Gray color for back button */
        color: #333;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: 0.3s;
        width: 100%;
    }

    .back-btn:hover {
        background-color: #bbb;
    }

    .next-btn {
        background-color: #007bff; /* Blue color for next button */
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: 0.3s;
    }

    .next-btn:hover {
        background-color: #0056b3;
    }

    .step.completed .circle {
        background-color: #0077B6; /* Fill previous steps */
        color: white;
    }
    
    .step.completed span {
        color: #0077B6;
    }