﻿/* =========================
   General Select2 Styles
   ========================= */

/* Ensure Select2 container fills width */
.select2-container {
    width: 100% !important;
}

/* Hide hidden select element */
.select2-hidden {
    visibility: hidden;
}

/* Multiple select fields and regular input styling */
.select2-container--default .select2-selection--multiple,
.sign-up-bar-section form input,
.form-container input.form-control {
    background-color: white;
    border: 0.5px solid #fff;
    min-height: 60px;
    padding-left: 7px;
    padding-bottom: 8px !important;
    margin: 0;
    font-family: 'Mulish', sans-serif !important;
    color: rgba(0, 0, 0, 0.7);
}

/* Focused input fields / selects */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.sign-up-bar-section form input:focus,
.form-container input.form-control:focus {
    border: 3px solid #ACB9CE; /* lighter shade of #4D6582 */
    outline: none;
}

/* Placeholder text */
.select2-container--default textarea::placeholder,
.form-container input::placeholder {
    color: rgba(77, 101, 130, 0.5); /* faint tone of #4D6582 */
    font-family: 'Mulish', sans-serif;
    font-size: 18px;
    padding-top: 13px;
}

/* =========================
   Selected Items / Pills
   ========================= */

/* Pill appearance */
.select2-selection__choice {
    background: linear-gradient(to bottom, #5C738F 0%, #4D6582 100%);
    color: white !important;
    margin-bottom: 6px;
    border: none;
}

/* Pill hover */
.select2-selection__choice:hover {
    background: linear-gradient(to bottom, #5E7897 100%, #6C86A4 0%) !important;
    color: #FFF !important; /* Keep text white */
}

/* Pill remove X */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    border-right: 0.5px rgba(255,255,255, 0.25) solid;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(255,255,255, 0.25);
    color: white;
}

/* Pills border spacing */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #4D6582;
    margin-left: 2px;
}

/* Clear all button in Select2 */
.select2-container .select2-selection--multiple .select2-selection__clear {
    color: #4D6582;
    margin-top: 3px;
}

/* =========================
   Search / Inline Fields
   ========================= */
.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 0;
    min-height: 40px;
}

/* Select2 results highlighting */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(0,0,0,0.03);
    color: #212529;
}

/* Font weight for dropdown options */
.select2-results__option--selectable,
.select2-results__option {
    font-weight: 300;
}

/* =========================
   Form Container Styling
   ========================= */
.form-container {
    background-color: rgba(77, 101, 130, 0.85); /* Slightly transparent #4D6582 */
    padding: 2rem 0.5rem;
    border-radius: 12px;
    color: white; /* default text */
    width: 100%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25); /* shadow for entire form */
}

/* Headings and text inside container */
.form-container h2,
.form-container p {
    color: white;
}

.form-tabs-content h2 {
    font-size: 35px;
    font-weight: 700 !important;
    padding-top: 0;
    padding-bottom: 0;
}

.form-tabs-content p {
    font-size: 20px;
}

.form-tabs-content {
    padding-top: 5px;
    padding-bottom: 20px;
    border-radius: 5px;
}

.form-tabs-content textarea {
    min-height: 70px;
}




 /* =========================
        Button Styling
   ========================= */
.form-container .btn {
background-color: #4D6582;
color: white;
border: 1px solid white;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: all 0.2s ease;
height: 60px;
}

.form-container .btn:hover {
    background-color: #5C738F; /* slightly lighter */
    color: white;
    border: 1px solid white;
}

/* Small X inside input fields */
.form-container .form-control-clear {
    color: #4D6582;
    cursor: pointer;
}

/* Search Results */

#searchResults{
    margin-top: 30px;
    width: 100%;
    padding: 0 20px;
      
}

.form-container .alert {
    margin-left: 35px;
    margin-right: 35px;
}


.results-partial {
    background-color: #e1e6ed;
    border: 1px #95A4BA solid;
    border-radius: 5px;
    margin: 0;
}

.results-box .section-title {
    color: #292929;
}

.results-box .result-found::after {
    content: "To unlock full access to expert profiles, litigation history, and direct messaging, an account must be created.";
    display: block;
    font-size: 16px;
    font-weight: normal;
    margin-top: 25px;
    padding: 0 30px;
}



/* =========================
      Tabs (Red Version)
   ========================= */
.form-tabs #searchPills .nav-item button {
    color: #304054;
    font-size: 15px;
    border-radius: 7px;
}

.form-tabs #searchPills {
    margin-bottom: 7px;
    margin-top: -20px;
}


.form-tabs-content .select2-container--default .select2-selection--multiple {
    min-height: 38px;
    padding-bottom: 3px !important;
    padding-top: 3px;
}

.form-tabs-content .select2-container--default .select2-selection--multiple > ul {
    margin-bottom: 10px;
}

.form-tabs-content.form-container .btn {
    height: 38px;
}

.form-tabs-content .select2-container--default .select2-search--inline .select2-search__field {
    margin-top: -10px;
}

.form-tabs-content .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 0;
}

.form-tabs-content .select2-container--default .select2-search--inline .select2-search__field {
    margin-bottom: -15px;
}

.form-tabs-content .select2-container--default .select2-search--inline .select2-search__field {
    line-height: 20px;
}

.form-tabs-content textarea::placeholder {
    font-size: 15px;
}

.form-tabs-content {
    background-color: rgba(0,0,0,0);
    box-shadow: none;
}

.form-tabs-content .select2-selection {
    border: 1px #AA1D0E solid;
}

.form-tabs-content .btn {
    background-color: #AA1D0E;
}

    .form-tabs-content .btn:hover {
        background-color: #ba3a2d;
    }


/* Focused input fields / selects */
    .form-tabs-content .select2-container--default.select2-container--focus .select2-selection--multiple,
    .sign-up-bar-section form input:focus,
    .form-tabs-content input.form-control:focus {
        border: 3px solid rgba(170, 29, 14, 0.4);
    }

/* Placeholder text */
.form-tabs-content .select2-container--default textarea::placeholder,
.form-tabs-content .form-container input::placeholder {
    color: rgba(170, 29, 14, 0.4);
}

/* Pill appearance */
.form-tabs-content .select2-selection__choice {
    background: linear-gradient(to bottom, #ba3a2d 0%, #AA1D0E 100%);
    color: white !important;
    margin-bottom: 6px;
    border: none;
}

/* Pill hover */
.form-tabs-content .select2-selection__choice:hover {
    background: linear-gradient(to bottom, #D84738 100%, #C73A2B 0%) !important;
}


/* Pills border spacing */
.form-tabs-content .select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 1px solid #911A0D;
}

/* Clear all button in Select2 */
.form-tabs-content .select2-container .select2-selection--multiple .select2-selection__clear {
    color: #AA1D0E;
}

/* =========================
         Results table
   ========================= */

.results-table thead {
    background-color: rgba(255, 226, 223, 1);
    border-radius: 0.25rem 0.25rem 0 0;
}

.results-table thead th {
    color: black;
}

.results-table tbody tr:hover {
    background-color: rgba(255, 226, 223, 0.2);
    
}

.results-table .initials-placeholder {
    background-color: rgba(255, 226, 223, 1);
    border-radius: 50%;
    border: 1px solid #AA1D0E;
    color: #AA1D0E;
    width: 50px;
    height: 50px;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons button {
    background-color: #EB7367;
    color: white;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.action-buttons button:hover {
    background-color: #F8887D;
    color: white;
}


.action-buttons > div > button {
    width: 40px;
    display: flex;
    justify-content: center;
    padding: 5px;
}

.action-buttons > button {
   min-width: 125px;
}

.results-table .table-header-icon {
    margin-top: -3px;
}


.results-table .addresses .address-line span {
    padding-bottom: 10px;
    padding-top: 10px;
    
}

.results-table .addresses-block {
    margin-top: -10px;
}


.results-table .additional-addresses-block .address-line span, .results-table .addresses-block .address-line:not(:first-child) span {
    border-top: 1px solid lightgrey;
    width: 100%;
}





.results-table .primary-address {
    margin-left: -25px;
}

.results-table .additional-addresses-block {
    display: none;
}

.results-table .primary-address svg {
    margin-right: 5px;
}

.results-table .addresses a {
    color: #EB7367;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
}

.results-table .addresses a:hover {
    color: #F8887D;
}

.open-map-btn {
    background-color: transparent;
    border: none;
}

/* =========================
         Media Queries
   ========================= */
@media (max-width:1200px) {
    .container {
        padding-right: 30px;
        padding-left: 30px;
    }

}

@media (max-width:767px) {
    .form-container {
        padding-right: 2.5rem;
        padding-left: 2.5rem;
    }

    #searchResults, .form-container .alert {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* STYLES FOR A HALF-SIZE SEARCH FORM - ADD PARENT CONTAINER WITH .half-form CLASS */

.half-form #searchForm {
    display: flex;
    flex-direction: column;
}

.half-form #searchForm > div {
    width: auto;
}

.half-form .form-container {
    padding: 40px 30px;
}

.half-form .alert {
   text-align: center;
   margin: 0 5px;
   width: 100%;
}
  