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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #10b981;
    --danger: #ef4444;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-900: #111827;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--neutral-50);
    color: var(--neutral-900);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--neutral-900);
}

.subtitle {
    font-size: 14px;
    color: var(--neutral-600);
}

.search-section {
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--neutral-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 12px 12px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--neutral-900);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: var(--neutral-300);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.relative {
    position: relative;
}

.submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--neutral-200);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 14px;
    color: var(--neutral-700);
}

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

.suggestion-item:hover {
    background-color: var(--neutral-100);
}

.suggestion-item.active {
    background-color: var(--primary);
    color: white;
}

.results {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease-out;
}

.result-card {
    margin-bottom: 16px;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.result-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.result-icon.available {
    background-color: rgba(16, 185, 129, 0.1);
}

.result-icon.unavailable {
    background-color: rgba(239, 68, 68, 0.1);
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-900);
}

.result-status {
    font-size: 14px;
    font-weight: 500;
}

.result-status.available {
    color: var(--success);
}

.result-status.unavailable {
    color: var(--danger);
}

.result-details {
    font-size: 13px;
    color: var(--neutral-600);
    line-height: 1.5;
}

.result-details p {
    margin-bottom: 8px;
}

.result-details p:last-child {
    margin-bottom: 0;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--neutral-600);
    font-size: 14px;
}

.error {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    padding: 16px;
    color: var(--danger);
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--neutral-600);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--neutral-600);
    font-size: 12px;
    border-top: 1px solid var(--neutral-200);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 13px;
    }

    main {
        padding: 16px;
    }

    header {
        margin-bottom: 32px;
    }

    .results {
        padding: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .submit-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}
