/**
Theme Name: Astra-child
Author: Nathan Gagné
Author URI: https://thisisnathan.ca
Description: Astra child theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
Tags: astra
*/

/* BEGIN BikeGremlin language class edit */

/* Hide the widget with class 'widget-sr' when the page's language is set to English */

body.en .widget-fr {
    display: none;
}

/* Hide the widget with class 'widget-en' when the page's language is set to French */

body.fr .widget-en {
    display: none;
}

/* END BikeGremlin language class edit */

.custom-footer-content {
    background-color: #4f4753; /* Dark purple-gray */
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.grey-block {
    background-color: #a5a5a5;
    height: 20px;
    width: 100%;
    margin-bottom: 2rem;
}
  
.footer-section {
    margin: 1rem;
    min-width: 200px;
}

.address {
    display: flex;
    gap: 2rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section.links {
    display: flex;
    gap: 1rem;
}

.footer-section.links p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-column div {
    margin: 0;
    padding: 0;
}

.footer-icon {
    fill: #fff;
}

#envelope-icon svg {
    height: 1rem;
    width: auto;
    vertical-align: middle;
}

.footer-facebook-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

#facebook-icon svg {
    height: 2rem;
    width: auto;
    vertical-align: middle;
}

#facebook-icon:hover {
    color: #d1d1d1; /* lighter on hover */
}

.footer-bottom-note {
    background-color: #4f4753;
    color: #ffffff;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Submenu background color override */

.sub-menu a {
    background-color: #ffffff !important;
    border: 1px solid #ccc; /* optional border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* optional for better visibility */
}

/* STARTS HERE ---------------------------------------------------- */

/* Filter Container */
#atim-filter-container {
    padding: 2rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Filter Layout */
.filter-row {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: stretch; /* Ensures equal height columns */
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Filter Groups */
.atim-filter-group {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    flex: 1; /* Allows groups to expand to fill available space */
}

.atim-filter-group > label:first-child {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.25rem;
}

/* Profession Filters */
#profession-filters {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Further reduced from 0.5rem */
    height: 100%; /* Takes full height of its container */
    justify-content: flex-start; /* Changed from space-between to flex-start for compactness */
}

.profession-option {
    display: flex;
    align-items: center;
}

.profession-option label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 0.25rem 0.5rem; /* Further reduced vertical padding */
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    width: 100%;
}

.profession-option label:hover {
    background-color: #f8f9fa;
}

.profession-option input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 16px;
    height: 16px;
    accent-color: #007cba;
}

/* Language Filters */
#language-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#language-filters label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-size: 1rem;
}

/* Language dropdowns container */
.language-dropdowns {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-dropdowns label {
    white-space: nowrap;
    margin: 0;
}

.language-dropdowns select {
    min-width: 150px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.language-dropdowns select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25);
}

/* Specialization Section */
.specialization-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.toggle-btn {
    border: none;
    color: #007cba !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none !important;
}

.toggle-btn:hover {
    background: none !important;
}

.toggle-btn:focus {
    background: none !important;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.collapsible-content {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, visibility 0s linear 0.3s;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 0 1rem;
}

.collapsible-content.active {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, visibility 0s linear;
    padding: 1rem;
    margin: 0.5rem 0;
}

#specialization-multiselector {
    width: 100%;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

#specialization-multiselector.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease-out 0.1s, transform 0.2s ease-out 0.1s;
}

#specialization-multiselector:not(.active) {
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Select2 Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    min-height: 60px !important;
    padding: 0.5rem !important;
    background-color: white !important;
    /* Remove the flex properties that were causing issues */
}

.select2-container--default .select2-selection--multiple:focus-within {
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.25) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
    /* Keep flex for selected items, but don't center them */
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    min-height: auto !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Ensure placeholder starts at the left */
    width: 100% !important;
    text-align: left !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007cba !important;
    border: 1px solid #007cba !important;
    border-radius: 3px !important;
    color: white !important;
    font-size: 0.875rem !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0.125rem 0.125rem 0.125rem 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    font-weight: bold !important;
    margin-right: 0.5rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #f8f9fa !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    border: none !important;
    outline: none !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    min-height: auto !important;
}

.select2-container--default .select2-search--inline {
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
}

.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007cba !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-search--inline {
    flex-shrink: 0 !important;
}

/* Optional Service Filters */
#optional-service-filter {
    display: flex;
    flex-direction: column;
}

#optional-service-filter label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    line-height: 1.4;
    font-size: 1rem;
    border-bottom: none;
}

#optional-service-filter label:hover {
    background-color: #f8f9fa;
}

#optional-service-filter input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    accent-color: #007cba;
    flex-shrink: 0;
}

/* Reset Button */
#reset-filter-btn {
    align-self: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 150px;
    margin-top: 0.5rem;
}

#reset-filter-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#reset-filter-btn:active {
    transform: translateY(0);
}

/* Member Results */
#member-results {
    margin-top: 2rem;
}

/* Member List Styling */
.member-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-list li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.member-list li:last-child {
    border-bottom: none;
}

.member-list li:hover {
    background-color: #f8f9fa;
}

.entry-top-bar {
    height: 1px;
    background: #dee2e6;
    margin-bottom: 1rem;
}

.member-details p:last-of-type {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #atim-filter-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-column {
        width: 100%;
    }
    
    #language-filters {
        gap: 0.5rem;
    }
    
    .language-dropdowns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .language-dropdowns label {
        margin-top: 1rem;
    }
    
    .language-dropdowns label:first-child {
        margin-top: 0;
    }
    
    #reset-filter-btn {
        align-self: stretch;
        min-width: auto;
    }
}

/* Member Entry Styles */
.member-entry {
    padding: 0;
    border-top: none;
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.member-entry:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.member-entry.active {
    background-color: #e3f2fd;
    box-shadow: 0 4px 12px rgba(0,123,186,0.2);
}

/* Three-column layout */
.member-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #007cba;
    border-radius: 4px;
    min-height: 120px;
    align-items: start;
}

/* Left Column */
.member-left-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.member-specializations {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.specialty-item {
    font-size: 0.875rem;
    color: #666;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.view-profile-btn {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.view-profile-btn:hover {
    background-color: #005a87;
    color: white !important;
}

/* Middle Column */
.member-middle-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profession-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profession-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.25rem;
}

.language-pairs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1rem;
}

.language-pair {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.4;
}

.no-professions {
    font-size: 0.875rem;
    color: #999;
    font-style: italic;
}

/* Right Column */
.member-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 30px;
}

.send-email-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.send-email-btn:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 992px) {
    .member-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 1.5rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .member-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .member-right-column {
        align-items: flex-start;
    }
    
    .send-email-btn {
        width: 100%;
    }
    
    .view-profile-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .member-content {
        padding: 1rem;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .specialty-item {
        font-size: 0.8rem;
    }
    
    .profession-title {
        font-size: 0.9rem;
    }
    
    .language-pair {
        font-size: 0.8rem;
    }
}

/* Contact Modal Styles */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100% !important;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-overlay.active {
    max-width: 100% !important;
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.contact-modal-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.contact-modal-title {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: #333;
    margin: 0 !important;
    line-height: 1.2; /* Add consistent line height */
}

.contact-modal-close {
    background: #6c757d;
    color: white;
    border: none;
    width: 36px; /* Increase size slightly */
    height: 36px; /* Ensure width = height for perfect circle */
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem; /* Slightly larger X */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Prevent shrinking */
    line-height: 1; /* Reset line height */
    padding: 0; /* Remove any default padding */
}

.contact-modal-close:hover {
    background: #5a6268;
}

.contact-modal-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.contact-modal-body {
    padding: 2rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-form .form-label .required {
    color: #dc3545;
}

.contact-form .form-input,
.contact-form .form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background: white;
}

.contact-form .form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.file-upload-area.dragover {
    border-color: #007cba;
    background: #e3f2fd;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.file-upload-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.file-upload-text strong {
    color: #007cba;
}

.selected-files {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #e3f2fd;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    color: #666;
    font-size: 0.85rem;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.file-remove:hover {
    background: #c82333;
}

.contact-submit {
    background: #007cba;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.contact-submit:hover {
    background: #005a87;
}

.contact-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .contact-modal {
        width: 95%;
        margin: 1rem;
    }

    .contact-modal-header {
        padding: 1rem 1.5rem;
    }

    .contact-modal-body {
        padding: 1.5rem;
    }

    .contact-modal-title {
        font-size: 1.25rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .file-upload-area {
        padding: 1.5rem 1rem;
    }
}

/* Search styles */

#atim-search-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.search-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-field select {
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.search-field select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-field select:hover {
    border-color: #007cba;
}

/* Search Actions */
.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.search-btn,
.clear-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 150px;
}

.search-btn {
    background: #007cba;
    color: white;
}

.search-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
}

.search-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.clear-btn {
    background: #6c757d;
    color: white;
}

.clear-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Button Loading States */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Info */
.results-info {
    background: #e3f2fd;
    border: 1px solid #007cba;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #005a87;
    text-align: center;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-content {
    text-align: center;
    color: #333;
}

.loading-content p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    #atim-search-container {
        padding: 1.5rem;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .search-actions {
        flex-direction: column;
        align-items: center;
    }

    .search-btn,
    .clear-btn {
        width: 100%;
        max-width: 300px;
    }

    .search-title {
        font-size: 1.25rem;
    }

    .profession-row {
        justify-content: center;
    }
    
    .profession-field {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #atim-search-container {
        padding: 1rem;
    }

    .search-field select {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }

    .search-btn,
    .clear-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

.form-asterisk {
    color: red;
    font-size: 0.5rem;
    vertical-align: text-top;
}

.checkbox-row {
    margin-bottom: 1.5rem;
}

.checkbox-field {
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
    margin-bottom: 1.5rem !important;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.125rem;
    transform: scale(1.2);
    cursor: pointer;
}