* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.logo h1 span {
    color: #e67e22;
}

.tagline {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #e67e22;
}

.hero {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-box {
    max-width: 900px;
    margin: 2rem auto 0;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

#searchForm {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.8fr;
    gap: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e67e22;
}

button[type="submit"] {
    background: #e67e22;
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover {
    background: #d35400;
}

.features {
    max-width: 1200px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    margin-bottom: 0.75rem;
    color: #e67e22;
    font-size: 1.3rem;
}


/* AI Assistant Styles */
.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.assistant-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    position: relative;
}

.assistant-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(230,126,34,0.4);
}

.assistant-avatar {
    font-size: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(230,126,34,0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.assistant-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.assistant-window.hidden {
    display: none;
    transform: scale(0.9);
    opacity: 0;
}

.assistant-header {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-header-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.assistant-header-info {
    flex: 1;
}

.assistant-header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.assistant-header-info p {
    margin: 0;
    font-size: 11px;
    opacity: 0.9;
}

.close-assistant {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-assistant:hover {
    background: rgba(255,255,255,0.2);
}

.assistant-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.assistant-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.assistant-message.assistant {
    justify-content: flex-start;
}

.assistant-message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
}

.assistant-message.assistant .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.assistant-message.user .message-bubble {
    background: #e67e22;
    color: white;
    border-bottom-right-radius: 4px;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-btn {
    background: #f0f0f0;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    color: #e67e22;
}

.quick-btn:hover {
    background: #e67e22;
    color: white;
}

.assistant-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    background: white;
    gap: 8px;
}

.assistant-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 13px;
}

.assistant-input-area input:focus {
    border-color: #e67e22;
}

.assistant-input-area button {
    background: #e67e22;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-input-area button:hover {
    background: #d35400;
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 14px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingAnim 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnim {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.loading-tip-card {
    background: #fff3e0;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
    border-left: 4px solid #e67e22;
}

.loading-tip-card h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #e67e22;
}

.loading-tip-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

@media (max-width: 480px) {
    .assistant-window {
        width: 320px;
        height: 500px;
        right: 10px;
        bottom: 80px;
    }
    
    .assistant-button {
        width: 55px;
        height: 55px;
    }
    
    .assistant-avatar {
        font-size: 35px;
    }
}

footer {
    text-align: center;
    padding: 2rem;
    background: #1a1a1a;
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    #searchForm {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
}