*{
    margin: 0;
    padding:0;
    box-sizing: border-box;
}

body{
    width: 100%;
    overflow-x: hidden;

}

.logo-container {
    margin-left: 30px;
}

.help-btn {
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    background: #DFF0FF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}


.help-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}


.help-btn img{
    width: 25px;
    height: 25px;
    aspect-ratio: 1/1;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background-color: white;
    font-family: "Nunito Sans";
    color: #043259;

}
.home-banner {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 600px; /* Adjust height as needed */
    background-image: url('HomeBanner.png');
    background-size: cover;
    background-position: center;
    padding-bottom: 80px;
    /*margin-bottom: 2rem;
    opacity: 0.5; /* This makes the background 50% transparent */
} 

.search-input {
    text-transform: uppercase;
}

.dropdown-btn {
    text-transform: uppercase;
}

.home-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, .60); 
    z-index: 1;
}

.home-banner > * {
    position: relative;
    z-index: 2;
}

.intro {
    text-align: center;
    position: relative;
    padding-top: 40px;
    padding-bottom: 32px;
    z-index: 2;
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 24px;
    font-weight: 400;
    font-size: clamp(18px, 3vw, 24px);
    padding-left: 20px;
    padding-right: 20px;
    
}

.intro p {
    margin-bottom: 5px;
}

.step-category {
    display: flex;
    flex-direction: row;
    margin-left: 40px;
    margin-right: 40px;
    align-items: flex-start;
    gap: 40px;
}

/*NEED TO MAKE ADJUSTMENT HERE MUY PEGADO A LA ESQUINA */
.step-1 {
    min-width: 180px;
    width: 200px;
    padding: 20px;
    border-radius: 8px;
    font-family: "Nunito Sans";
    color: #043259;
    font-size: 20px;
    font-weight: 500;
    flex-shrink: 0;
}

.step-1 p {
    margin-bottom: 10px;
}


/* Categories grid */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
    gap: 20px;
    flex: 1;
    justify-content: center;
    
}

.category-item {
    background-color: white;
    border-radius: 10px;
    padding: 16px 12px;
    padding-bottom: 0px;
    text-align: center;
    width: 170px;
    height: 170px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    border: 3px solid #4D6F8C;
    color: #4D6F8C;
}

.category-item.selected {
    border: 3px solid #4D6F8C;
    color: #4D6F8C;
    background-color: #f0f5fa;
}

.category-link {
    text-decoration: none;
    color:#043259;
    transition: color 0.2s;
    font-weight: 400;
}

.category-link:hover {
    color: #26a69a;
}



.category-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 4px;
    margin-top: 4px;
}

.category-item h3 {
    margin-bottom: 0px;
    font-size: 18px;
    font-weight: 600;
    font-family: "Nunito Sans";
    color: #043259;
    margin-bottom: 4px;
}


.category-item p {
    font-size: 14px;
    font-family: "Nunito Sans";
    color: #043259;
    margin-top: 0;
}

.category-item p a {
    text-decoration: none;
    font-family: "Nunito Sans";
    color: #043259;
}

.category-item p a:hover{
    text-decoration: underline;
    color: #4d6f8c;

}

.search-container {
    background-color: #D5EDE7;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.50);
    border-radius: 30px;
    border: 1px solid #043259;
    max-width: 1200px;
    width: calc(100% - 80px);
    margin: 40px auto;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
}

.step-2 {
    width: 100%;
    margin-bottom: 16px;
    margin-top: 16px;
    font-family: "Nunito Sans";
    color: #043259;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}

.search-params {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.search-input, .dropdown-btn {
    padding: 12px 16px;
    border: 1px solid #60A699;
    border-radius: 5px;
    background-color: white;
    font-family: "Nunito Sans";
    color: #043259;
    font-size: 14px;
    width: 100%;
}

.dropdown{
    position: relative;
}

.dropdown-btn {
    cursor: pointer;
    text-align: left;
}

.search {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}


.search-btn {
    background-color: #043259;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    width: 150px;
    font-family: "Nunito Sans";
    font-size: 22px;
    min-width: 300px;
    position: relative;
    padding-left: 25px; /* Make room for the icon */
    margin: 0 auto; /* Center the button */
    transition: all 0.3s ease;
}

.search-btn::before {
    content: "";
    position: absolute;
    left: 90px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-image: url('search-30.png'); /* Path to your reset icon */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-btn:hover {
    border-radius: 5px;
    background: #4D6F8C;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    color: #FFF;

}

/* Input Group Container */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

/* Label Styling */
.input-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #043259; /* Navy from brand */
    text-align: left;
    margin-bottom: 4px;
}


.restart-search {
    margin-top: 10px;
    color: #043259;
    font-family: "Nunito Sans";
    font-size: 14px;
    text-decoration: none;
    align-items: center;
    margin-bottom: 16px;
    position: relative; /* Critical - this was missing */
    padding-left: 25px; /* Make room for the icon */
}

.restart-search::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('refresh-30.png'); /* Path to your reset icon */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}



.restart-search:hover {
    text-decoration: underline;
}

.info {
    color: #043259;
    font-family: "Nunito Sans";
    margin: 0 auto;
    padding: 220px 40px 40px 40px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    background-color: white;


}

.info h3 {
    font-size: clamp(18px, 2.5vw, 20px);
    padding: 5px;
    margin-top:40px;
    margin-bottom: 16px;

}

.info p{
    font-size: clamp(14px, 2vw, 16px);
    padding: 5px 0;
    line-height: 3;
    margin-bottom: 12px;
}

.provider-container {
    border: 2px solid rgb(96, 166, 153);
    background: rgba(176, 217, 205, 0.35);
    border-radius: 30px;
    max-width: 900px;
    width: calc(100% - 80px);
    margin: 20px auto 40px;
    padding: 30px 30px;
    position: relative;
    z-index: 1;
    line-height: 1.8;

}

.provider-container h3 {
    font-size: 20px;
    color: #043259;
    font-family: "Nunito Sans";
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.provider-container p {
    font-size: 16px;
    padding: 5px;
    line-height: 50px;
    color: #043259;
    font-family: "Nunito Sans";
    margin-left: 30px;
    margin-right: 30px;
}

.register-provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 10px;
}

.register-btn {
    background-color: #043259;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    width: 150px;
    font-family: "Nunito Sans";
    font-size: 22px;
    min-width: 300px;
}

.register-btn:hover {
    border-radius: 5px;
    background: #4D6F8C;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    color: #FFF;
}

.main-content {
    min-height: calc(100vh - 45px); /* Viewport height minus footer height */
    position: relative;
    width: 100%;
}

html {
    scroll-padding-bottom: 45px; /* Same as footer height */
}

.provider-count {
    font-weight: bold;
    margin-right: 5px;
}

.category-item.selected .category-link {
    color: #043259;
    font-weight: bold;
}

/* ==========================================
   TABLET (769px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .home-banner {
        min-height: 580px;
    }

    .intro {
        font-size: 20px;
        padding-top: 20px;
        margin-top: 40px;
        margin-bottom: 0;
        padding-bottom: 0 !important;
    }

    .step-category {
        margin: 0 30px;
        gap: 25px;
    }

    .step-1 {
        width: 160px;
        font-size: 18px;
        padding: 16px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 360px;
    }

    .category-item {
        width: 100%;
        height: 160px;
    }

    .search-container {
        width: calc(90% - 60px);
        padding: 16px 24px;

    }

    .search-params {
        grid-template-columns: repeat(2, 1fr);
    }

    .info {
        padding-top: 450px;
        width: 90%;

    }


    .provider-container {
        width: calc(90% - 60px);
    }
}

/* ==========================================
   MOBILE (481px - 768px)
   ========================================== */
@media (max-width: 768px) {
    .home-banner {
        min-height: 540px;
        padding-bottom: 40px;
    }

    .home-header {
        padding: 15px 20px;
    }

    .logo-container {
        margin-left: 0;
    }

    .logo-container img {
        height: 50px;
    }

    .intro {
        font-size: 16px;
        padding: 25px 20px 10px;
        line-height: 1.5;
    }

    /* Stack step + categories */
    .step-category {
        flex-direction: column;
        margin: 0 20px;
        gap: 16px;
        align-items: center;
    }

    .step-1 {
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 14px;
    }

    .step-1 p {
        margin-bottom: 6px;
    }

    /* Categories - 2x2 grid */
    .categories {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 320px;
        justify-items: center;
        margin-bottom: 20px;
    }

    .category-item {
        width: 145px;
        padding: 12px 8px 8px;
        height: 145px;
    }

    .category-item img {
        width: 45px;
        height: 45px;
    }

    .category-item h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .category-item p {
        font-size: 11px;
    }

    /* Search - single column */
    .search-container {
        width: calc(100% - 40px);
        padding: 20px 24px;
        margin: 25px auto 35px !important;
        border-radius: 24px;
    }

    .step-2 {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .search-params {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .input-label {
        font-size: 14px;
    }

    .search-input,
    .dropdown-btn {
        font-size: 12px;
        padding: 11px 14px;
    }

    .search-btn {
        width: 100%;
        min-width: 100%;
        font-size: 18px;
        padding: 11px;
        grid-column: 1 / -1;
    }

    .search-btn::before {
        position: static;
        left: auto;
        top: auto;
        transform: none;
    }

    .restart-search {
        font-size: 13px;
    }

    /* Info */
    .info {
        padding-top: 333px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .info h3 {
        font-size: 18px;
        margin-top: 20px;

    }

    .info h3:first-child {
        margin-top: 0;
    }

    .info p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Provider */
    .provider-container {
        width: calc(100% - 40px);
        padding: 20px;
    }

    .provider-container h3 {
        font-size: 18px;
    }

    .provider-container p {
        font-size: 15px;
        margin: 0 10px 16px;
        line-height: 1.7;
    }

    .register-btn {
        width: 100%;
        min-width: 100%;
        font-size: 17px;
    }
}

/* ==========================================
   MOBILE SMALL (321px - 480px)
   ========================================== */
@media (max-width: 480px) {
    .home-banner {
        min-height: 520px;
    }

    .logo-container img {
        height: 45px;
    }

    .intro {
        font-size: 15px;
        padding: 22px 16px 10px;
    }

    .step-category {
        margin: 0 16px;
    }

    .step-1 {
        font-size: 15px;
        padding: 12px;
        font-weight: 500;
    }

    /* Categories - single column */
    .categories {
        grid-template-columns: repeat(2, 1fr);
        max-width: 290px;
        gap: 8px;
    }

    .category-item {
        width: 135px;
        height: 120px;
        padding-top: 10px;
        padding-bottom: 0;
    }

    .category-item img {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
    }

    .category-item h3 {
        font-size: 13px;
    }

    .category-item p {
        font-size: 10px;
    }

    .search-container {
    width: calc(90% - 24px) !important;
    margin: 8px auto 8px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    }
    
    .step-2 {
        font-size: 13px;
    }
    
    .input-label {
        font-size: 13px;
    }

    .search-input,
    .dropdown-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .search-btn {
        font-size: 16px;
        padding: 10px;
    }

    .restart-search {
        font-size: 12px;
    }

        /* Info */
    .info {
        padding-top: 333px;
        padding-left: 25px;
        padding-right: 25px;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .info h3 {
        font-size: 18px;
        margin-top: 20px;

    }

    .info h3:first-child {
        margin-top: 0;
    }

    .info p {
        font-size: 15px;
        line-height: 1.6;
    }

    .provider-container {
        width: calc(100% - 32px);
        padding: 18px;
        margin-bottom: 0;
    }

    .provider-container h3 {
        font-size: 16px;
    }

    .provider-container p {
        font-size: 14px;
        margin: 0 8px 14px;
    }

    .register-btn {
        font-size: 14px;
        padding: 10px;
    }
}

/* ==========================================
   MOBILE TINY (< 320px)
   ========================================== */
@media (max-width: 320px) {
    .home-banner {
        min-height: 500px;
    }

    .logo-container img {
        height: 40px;
    }

    .intro {
        font-size: 14px;
        padding: 20px 12px 16px;
    }

    .step-category {
        margin: 0 12px;
    }

    .step-1 {
        font-size: 14px;
        padding: 10px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        max-width: 260px;
    }

    .category-item {
        width: 120px;
        height: 120px;
        padding: 8px 5px 5px;
    }

    .category-item img {
        width: 35px;
        height: 35px;
        margin-bottom: 4px;
    }

    .category-item h3 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .category-item p {
        font-size: 9px;
    }

    .search-container {
        width: calc(90% - 20px) !important;
        padding: 14px 16px !important;
    }

    .step-2 {
        font-size: 13px;
    }

    .input-label {
        font-size: 12px;
    }

    .search-input,
    .dropdown-btn {
        font-size: 11px;
        padding: 8px 10px;
    }

    .search-btn {
        font-size: 15px;
        padding: 9px;
    }

    .info {
        padding-top: 80px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .info h3 {
        font-size: 16px;
        margin-top: 22px;
    }

    .info p {
        font-size: 13px;
    }

    .provider-container {
        width: calc(100% - 24px);
        padding: 16px;
    }

    .provider-container h3 {
        font-size: 16px;
    }

    .provider-container p {
        font-size: 13px;
        margin: 0 4px 12px;
    }

    .register-btn {
        font-size: 15px;
    }
}