/* KUYC - Know and Understand Your Customer - Stylesheet */

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

:root {
    --primary-color: #4285f4;
    --primary-hover: #3367d6;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dfe1e5;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --success: #34a853;
    --error: #ea4335;
    --warning: #fbbc04;
    --shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    --shadow-hover: 0 2px 8px rgba(32, 33, 36, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Container - Google-like */
.search-container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Search Form */
.search-form {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: var(--background-alt);
    color: var(--primary-color);
}

/* Autocomplete */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--background-alt);
    transition: background 0.2s ease;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--background-alt);
}

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

/* Results Section */
.results-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

.results-section.hidden {
    display: none;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading.hidden {
    display: none;
}

.spinner {
    border: 4px solid var(--background-alt);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Results Content */
.results-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.results-content h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.results-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.results-content h3 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.results-content p {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.results-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.results-content li {
    margin-bottom: 8px;
}

.results-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Hierarchy styling */
.results-content .hierarchy {
    margin-left: 20px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}

/* Disclaimer */
.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    color: #856404;
}

.disclaimer strong {
    display: block;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.contact-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.contact-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.contact-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .search-container {
        min-height: 50vh;
        padding: 20px;
    }
    
    .results-content,
    .contact-section {
        padding: 25px;
    }
    
    .results-content h1 {
        font-size: 1.6rem;
    }
    
    .results-content h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .results-content,
    .contact-section {
        padding: 20px;
    }
}
