:root {
    --primary: #0077B6;
    --primary-dark: #005F91;
    --primary-light: #caf0f8;
    --secondary: #00B4D8;
    --accent: #48CAE4;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #FFFFFF;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 24px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.section { padding: 5rem 0; }
.bg-white { background-color: white; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.2; margin-bottom: 1rem; font-weight: 800; color: #0f172a; }
h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.2rem; letter-spacing: -0.01em; }
p { margin-bottom: 1rem; }

/* Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo span { color: var(--secondary); }

/* SEARCH UI */
.header-search { flex-grow: 1; max-width: 450px; position: relative; }

.search-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.search-box input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    width: 100%;
}

.search-box .search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: none;
    z-index: 1001;
}

.search-suggestions.active { display: block; }

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:hover { background: #f8fafc; }
.suggestion-item .city-name { font-weight: 600; flex-grow: 1; }
.suggestion-item .dept-code { color: var(--text-muted); font-size: 0.8rem; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-main); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.cta-header { background: var(--primary); color: white !important; padding: 0.6rem 1.2rem; border-radius: 10px; }

/* HERO */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.search-hero-container {
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.search-box-hero {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.3s;
}

.search-box-hero:focus-within {
    border-color: var(--primary);
}

.search-box-hero .search-icon {
    margin-left: 1rem;
    color: var(--primary);
    width: 20px;
}

.search-box-hero input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
}

.search-helper {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-helper i { width: 14px; }

.hero-features {
    display: flex;
    gap: 24px;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i { color: #10b981; width: 20px; }
.feature-item span { font-weight: 600; font-size: 0.95rem; color: var(--text-main); }

/* CARDS */
.pa-form-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.pa-form-header {
    background: #0f172a;
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.pa-form-header h3 { color: white !important; margin: 0; font-size: 1.2rem; }
.pa-form-header p { margin: 0.3rem 0 0; opacity: 0.7; font-size: 0.85rem; }
.pa-form-body { padding: 1.5rem; }

/* REVEAL ON SCROLL */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* TAGS */
.tag-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    background: white;
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* FOOTER */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 6rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* BUTTONS */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 25px -5px rgba(0, 119, 182, 0.4);
    transform: translateY(-2px);
}

.btn-primary-sm {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-outline-sm {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-text strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
}

.cookie-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .hero { padding: 4rem 0; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-features { justify-content: center; }
    .search-hero-container { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 1.2rem; }
    .cookie-actions { width: 100%; justify-content: center; }
    .btn-primary-sm, .btn-outline-sm { flex: 1; text-align: center; }
}