/**
 * Registration Form - Location Autocomplete Styles
 * Select2 theme matching form inputs
 */

.select2-container {
    display: inline-block !important;
    margin: 10px 0px 10px 30px !important;
    vertical-align: middle;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #999999;
    border-radius: 6px;
    height: auto;
    padding: 5px;
    font-size: 24px;
    background-color: #ffffff;
    width: 420px;
    /* content-box to match .text-input sizing */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #666666;
    line-height: normal;
    /* Match standard input line-height */
    padding-left: 0;
    padding-right: 20px;
    padding-top: 1px;
    /* Slight adjustment for visual centering */
    padding-bottom: 1px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 5px;
    top: 0;
}

.select2-dropdown {
    border: 1px solid #999999;
    border-radius: 6px;
    font-size: 20px;
    z-index: 9999;
}

.select2-container--default .select2-results__option {
    padding: 8px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0066cc;
}

.select2-container--open .select2-dropdown--below {
    border-top: 1px solid #999999;
    margin-top: 2px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 4px;
}

#location-autocomplete-section {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    /* Align with other form items */
}

/* Remove separate margin for inner element since container handles it */
#location-autocomplete-section .select2-location {
    margin: 0;
}

.location-toggle {
    margin: 5px 0px 10px 30px;
    font-size: 16px;
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    clear: both;
}

.location-toggle:hover {
    color: #004499;
}

.location-note {
    margin: 5px 0px 5px 30px;
    font-size: 14px;
    color: #666666;
    display: block;
    clear: both;
}

#profile-update-form #location-autocomplete-section {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

#register-form #location-autocomplete-section {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

#profile-update-form #location-autocomplete-section .select2-container {
    display: block !important;
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 0 !important;
}

#register-form #location-autocomplete-section .select2-container {
    display: block !important;
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 0 !important;
}

#profile-update-form #location-autocomplete-section .select2.select2-container {
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 0 !important;
}

#register-form #location-autocomplete-section .select2.select2-container {
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 0 !important;
}

#location-autocomplete-section .location-field-wrap {
    flex: 0 1 auto;
    min-width: 0;
    width: calc(100% - 40px);
}

#profile-update-form #location-autocomplete-section .select2-selection--single {
    width: 100%;
    box-sizing: border-box;
}

#register-form #location-autocomplete-section .select2-selection--single {
    width: 100%;
    box-sizing: border-box;
}

#profile-update-form #location-autocomplete-section .location-note {
    margin: 5px 0 5px 0;
}

#register-form #location-autocomplete-section .location-note {
    margin: 5px 0 5px 0;
}

#profile-update-form .resume-on-file-card {
    margin-left: 30px;
    max-width: 100%;
    box-sizing: border-box;
    width: calc(100% - 40px);
}

#profile-update-form #location-autocomplete-section .text-error {
    margin-left: 0px;
}

#register-form #location-autocomplete-section .text-error {
    margin-left: 0px;
}

.hidden {
    display: none;
}

/* Keep share-jobs registration grid compact when company fields are toggled off. */
#share-jobs-guest-form .form-holder,
#share-jobs-logged-in-form .form-holder {
    grid-auto-flow: row dense;
}

#share-jobs-guest-form.existing-company-selected .company-fields-group,
#share-jobs-logged-in-form.existing-company-selected .company-fields-group {
    display: none !important;
}

#share-jobs-guest-form.existing-company-selected .company-fields-group .select2,
#share-jobs-guest-form.existing-company-selected .company-fields-group .select2-container,
#share-jobs-logged-in-form.existing-company-selected .company-fields-group .select2,
#share-jobs-logged-in-form.existing-company-selected .company-fields-group .select2-container {
    display: none !important;
}