/* Simple DNA Location Search Styles */
.simple-search-input,
.simple-dna-search-container input {
    margin-top: 0px !important;
    background: #204b72 !important;
    color: #fff !important;
}
.simple-dna-search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Search input wrapper */
.simple-search-input-wrapper {
    display: flex;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 350px;
}

.simple-search-input-wrapper:focus-within {
    border-color: #4a90a4;
    box-shadow: 0 2px 8px rgba(74,144,164,0.2);
}

/* Search input */
.simple-search-input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #333;
    font-family: inherit;
}

.simple-search-input::placeholder {
    color: #999;
    font-size: 14px;
}

/* Search button */
.simple-search-button {
    background: #e93d4c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.simple-search-button:hover {
    background: #2d5a87;
}

.simple-search-button:active {
    background: #153d5c;
}

/* Locations button */
.simple-locations-button {
    display: flex;
    align-items: center;
    background: #4a90a4;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.simple-locations-button:hover {
    background: #3a7d94;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.simple-locations-button svg {
    margin-right: 6px;
    flex-shrink: 0;
}

/* Suggestions dropdown */
.simple-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    max-width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.simple-suggestion-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.simple-suggestion-item:hover,
.simple-suggestion-item.selected {
    background-color: #f8f9fa;
}

.simple-suggestion-item:last-child {
    border-bottom: none;
}

.simple-suggestion-text {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.simple-suggestion-type {
    background: #e9ecef;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.simple-suggestion-type.zip {
    background: #d1ecf1;
    color: #0c5460;
}

.simple-suggestion-type.state {
    background: #d4edda;
    color: #155724;
}

/* No results message */
.simple-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

/* Loading state */
.simple-search-input-wrapper.loading {
    opacity: 0.7;
}

.simple-search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .simple-dna-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .simple-search-input-wrapper {
        max-width: none;
        width: 100%;
    }
    
    .simple-search-input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .simple-search-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .simple-locations-button {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .simple-suggestions-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .simple-search-input-wrapper {
        max-width: 320px;
    }
    
    .simple-locations-button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .simple-search-input-wrapper {
        border: 2px solid #000;
    }
    
    .simple-search-button {
        border: 2px solid #000;
    }
    
    .simple-locations-button {
        border: 2px solid #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .simple-search-input-wrapper {
        background: #2d2d2d;
        border-color: #555;
    }
    
    .simple-search-input {
        color: #fff;
    }
    
    .simple-search-input::placeholder {
        color: #aaa;
    }
    
    .simple-suggestions-dropdown {
        background: #2d2d2d;
        border-color: #555;
    }
    
    .simple-suggestion-item {
        border-bottom-color: #444;
    }
    
    .simple-suggestion-item:hover,
    .simple-suggestion-item.selected {
        background-color: #3d3d3d;
    }
    
    .simple-suggestion-text {
        color: #fff;
    }
}

/* Focus styles for accessibility */

.simple-search-button:focus {
    outline: 2px solid #4a90a4;
    outline-offset: 2px;
}

.simple-locations-button:focus {
    outline: 2px solid #4a90a4;
    outline-offset: 2px;
}