/* CSS cho Suggestion Dropdown và Popup */
#search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e3e8;
    border-radius: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f4f9;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #181c20;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background-color: #f1f4f9;
}
.suggestion-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: #0059bb;
    width: 24px;
    text-align: center;
}
.suggestion-title {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.popup-overlay.active {
    display: flex;
}
.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.popup-close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    color: #717786;
}
.popup-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.popup-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #181c20;
}

/* Error messages for form */
.error-message {
    color: #ba1a1a;
    font-size: 0.75rem;
    display: none;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    text-align: left;
}
.error-message.active {
    display: block;
}
.input-error {
    border-color: #ba1a1a !important;
}