form.was-submitted input:invalid {
    border: 2px solid #e94c3d !important;
    outline: none;
}

input.form-control,
.form-check,
.form-select {
    height: 40px;
}
.form-control,
.form-check,
.form-select {
    background-color: #f1f5ff;
    border: 0.8px solid #b8bdc9;
    padding: 7px;
    padding-left: 12px !important;
    border-radius: 0;
}


label {
    font-family: "Inter", sans-serif;
    font-weight: 500 !important;
    margin-left: 3px;
    margin-bottom: 5px;
    display: inline-block;
    word-break: break-word;
    font-weight: 600;
    color: #2c3345;
    font-size: 15px;
}

.form-check-label {
    display: block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

label span.required {
    color: red;
}

.checkbox {
    margin-left: 20px
}

hr {
    margin: 15px 0px;
}

.sub-label {
    font-size: 13px;
    margin-top: 10px;
    margin-left: 2px;
    display: block;
    word-break: break-word;
}

.nav-pills .nav-link{
    background-color: #ebebeb;
    color:#656565;
    border-radius: 0;
}
.nav-pills .nav-link.active{
    background-color: #295fe6;
    border-radius: 0;
}

.remove-applicant-btn,
.remove-benf-owner-btn {
    position: absolute;
    right: 10px;
    bottom: 11px;
    display: none;
}

.card-header,
.card-footer {
    background-color: #f1f5ff;
}

#card-header-title {
    color: #303749;
    font-family: "Inter", sans-serif;
    font-weight: 600 !important;
}

#card-header-desc {
    font-family: "Inter", sans-serif;
    font-size: .875em !important;
    color: #57647e;
    font-weight: 500;
    line-height: 1.6;
}

.tooltip-inner{
    background-color: #2c3345;
    font-size: 12px;
    text-align: start;
}
#pills-tab {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
}

#pills-tab .nav-item {
    flex-shrink: 0;
    margin-right: 10px;
}

/* Define primary color for easier use */
:root {
    --custom-primary: #3971ed;
    --custom-primary-rgb: 57, 113, 237;
    /* For Bootstrap components */
}

/* Override Bootstrap primary colors */
#help .btn-primary {
    background-color: var(--custom-primary);
    border-color: var(--custom-primary);
}

#help .btn-primary:hover {
    background-color: #2d5bb7;
    /* Darker shade for hover */
    border-color: #2d5bb7;
}

#help .text-primary {
    color: var(--custom-primary) !important;
}

#help a .text-primary:hover {
    color: #2d5bb7 !important;
}

/* Style the nav pills to look like the cards */
#help .entity-nav .nav-link {
    background-color: #f8f9fa;
    /* Light background */
    border: 1px solid #dee2e6;
    color: #212529;
    /* Default text color */
    text-align: left;
    margin-bottom: 1rem;
    /* Spacing between tab cards */
    height: 100%;
    display: flex;
    flex-direction: column;
}

#help .entity-nav .nav-link:hover {
    border-color: #adb5bd;
}

/* Active tab styling */
#help .entity-nav .nav-link.active {
    color: var(--custom-primary);
    background-color: #e7f0ff;
    border-color: var(--custom-primary);
    
}

#help .entity-nav .nav-link.active i {
    color: var(--custom-primary);
    /* Make icon blue on active */
}

#help .entity-nav .nav-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    /* Muted icon color */
}

/* Icon styling in the detail section */
#help .detail-icon-wrapper {
    background-color: var(--custom-primary);
    color: white;
    border-radius: 0.5rem;
    /* Slightly rounded square */
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

#help .detail-card-icon {
    font-size: 1.25rem;
}

#help .card-title-separator {
    height: 3px;
    background-color: var(--custom-primary);
    display: block;
    margin-bottom: 0.75rem;
}

#help .detail-card ul {
    padding-left: 1.2rem;
    /* Indent bullet points */
}

#help .detail-card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}