/* Hero Section Overlay */
.search-container{
    width: 700px;
}
.forms-tabs{
    height: 65px;
    padding: 23px 41px 0 32px;
    border-radius: 8px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    background-color: #f9f9f9;
}
#searchDropdown {
    transition: none !important;
    will-change: display, visibility, opacity;
}

#searchDropdown.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
@media (max-width: 800px) {
    .search-container{
        width: 100%;
    }
}
#formsSearch {
    font-size: 16px;
    padding: 18px 37px 17px 12px;
    border-radius: 8px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    border: solid 1px #cdd4d9;
    background-color: #fff;
    height: 60px;
    cursor: pointer;
}

/* Search and Sort Controls */
.sort-by-select {
    min-width: 150px;
    height: 60px;
    border-radius: 8px;
    padding: 18px 37px 17px 12px;
    border: solid 1px #cdd4d9;
    background-color: #fff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}
/* Tabs Styling */
.nav-tabs {
    border-bottom: none;
}
.nav-tabs .nav-link {
    color: #000;
    background: none;
    border: none;
    padding: 0 15px;
    margin-right: 10px;
    font-weight: 600;
}
.nav-tabs .nav-link {
    position: relative;
    border: none;
    background-color: transparent;
}

.nav-tabs .nav-link.active{
    background-color: transparent;
    color: #e64b35;
}

.nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -17px;
    right: 0;
    left: 0;
    height: 4px;
    background-color: #e64b35;
    border-radius: 2px;
}

.nav-tabs .nav-link:hover {
    color: #e64b35;
}

.category-badge{
    height: 30px;
    font-size: 14px;
    padding: 7px 8px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 135px;
    margin-top: 2px;
}

.forms-docs-card-body {
    margin-top: 15px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.forms-docs-card-title{
    font-size: var(--font-size-h5);
    margin-bottom: 0px;
}

.forms-docs-card{
  padding: 16px 15px 17px 16px;
  border-radius: 10px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
  background-color: #fff;
}
.cat-description{
    font-weight: 500;
}
.masonry-card-learn-more {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    #formsSearch {
        font-size: 14px;
        padding: 18px 37px 17px 12px;
        border-radius: 8px;
        box-shadow: none;
        border: solid 1px #cdd4d9;
        background-color: #fff;
        height: 48px;
    }
    .search-icon-forms img{
        width: 17px;
        height: 17px;
    }
}

/* Mobile Accordion Styles */
    .accordion {
        border: none;
        box-shadow: none;
    }

    .accordion-item {
        border: none;
        border-radius: 12px !important;
        margin-bottom: 16px;
        background: white;
        box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
        overflow: hidden;
    }

    .accordion-header-content {
        width: 100%;
        margin-right: 16px;
    }

    .accordion-title {
        font-size: 18px;
        font-weight: var(--font-weight-semibold);
        margin: 0 0 8px 0;
        line-height: 1.3;
    }

    .accordion-description {
        font-size: 14px;
        color: #161f30;
        margin: 0;
        line-height: 1.4;
        font-weight: var(--font-weight-regular);
    }

    .accordion-body {
        padding: 0 20px 20px 20px;
    }

    .forms-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .form-item-mobile-link {
        text-decoration: none;
        color: inherit;
    }

    .form-item-mobile-link:hover {
        text-decoration: none;
        color: inherit;
    }

    .form-item-mobile {
        display: flex;
        align-items: center;
        padding: 16px;
        background: #fff;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid #e9ecef;
        padding: 0 20px 0 0;
    }
    .form-item-mobile-icon {
        width: 48px;
        height: 48px;
        margin-right: 16px;
        flex-shrink: 0;
    }

    .form-item-mobile-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .default-icon {
        width: 48px;
        height: 48px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
    }

    .form-item-mobile-content {
        flex: 1;
        min-width: 0;
    }

    .form-item-mobile-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        color: #161f30;
        line-height: 1.3;
    }

    .form-item-mobile-arrow {
        margin-left: 12px;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .form-item-mobile:hover .form-item-mobile-arrow {
        transform: translateX(4px);
    }

    .no-forms-message {
        text-align: center;
        padding: 40px 20px;
        color: #161f30;
    }

    .no-forms-message h4 {
        font-size: 18px;
        margin-bottom: 8px;
        color: #161f30;
    }

    .no-forms-message p {
        font-size: 14px;
        margin: 0;
    }
 
    @media (max-width: 576px) {
        .accordion-item {
            margin-bottom: 12px;
        }
        
        .accordion-button {
            padding: 16px !important;
        }
        
        .accordion-body {
            padding: 0 16px 16px 16px;
        }
        
        .form-item-mobile-icon {
            width: 40px;
            height: 40px;
            margin-right: 12px;
        }
        
        .default-icon {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
        
        .form-item-mobile-title {
            font-size: 16px;
        }
        
        .accordion-title {
            font-size: 20px;
        }
    }

.search-container {
  position: relative;
}

.search-icon-forms {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  height: 25px;
  width: 25px;
}

@media (min-width: 768px) {
  .search-icon-forms {
    right: 1rem;
  }
  #formsSearch {
    padding-right: 2.5rem;
    padding-left: 0.75rem;
  }
}
@media (max-width: 767.98px) {
  .search-icon-forms {
    left: 1rem;
  }
  #formsSearch {
    padding-left: 2.7rem;
    padding-right: 0.75rem;
  }
}
