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

/* Override water.css body constraints */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
    max-width: none;
    margin: 0;
    padding: 0;
}

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

/* MAZE PATTERN — тънки бели линии */
:root {
    --maze: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 0 30 L 30 30 L 30 0' fill='none' stroke='white' stroke-opacity='0.07' stroke-width='0.8'/%3E%3Cpath d='M 60 30 L 30 30 L 30 60' fill='none' stroke='white' stroke-opacity='0.07' stroke-width='0.8'/%3E%3C/svg%3E");
}

/* HEADER */
header {
    background-color: #1d4ed8;
    background-image: var(--maze);
    color: white;
    padding: 18px 0;
    text-align: center;
}

.logo-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 10px 28px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: background 0.18s, box-shadow 0.18s;
    cursor: pointer;
}
.logo-box:hover {
    background: rgba(255,255,255,0.16);
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
}

.tagline {
    font-size: 13px;
    color: #bfdbfe;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

/* HERO */
.hero {
    background-color: #1e40af;
    background-image: var(--maze), linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 60px 0 56px;
    text-align: center;
}

.hero h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 17px;
    color: #bfdbfe;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    padding: 14px 28px;
    backdrop-filter: blur(4px);
    min-width: 100px;
}

.stat span {
    display: block;
    font-size: 26px;
    font-weight: 800;
}

.stat small {
    font-size: 11px;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FORM SECTION */
.form-section {
    padding: 48px 0;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.card h2 {
    font-size: 22px;
    margin-bottom: 24px;
    color: #1e293b;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 6px;
}

.field label small {
    font-weight: 400;
    color: #9ca3af;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #2563eb;
}

.checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.15s;
}

.check:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

/* Иконка за категория */
.cat-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 4px;
}
.cat-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Badges за източници */
.src-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    margin-right: 6px;
    min-width: 32px;
    text-align: center;
}
.src-badge.eu   { background: #dbeafe; color: #1d4ed8; }
.src-badge.op   { background: #ede9fe; color: #6d28d9; }
.src-badge.gov  { background: #f1f5f9; color: #475569; }
.src-badge.agri { background: #dcfce7; color: #15803d; }
.src-badge.edu  { background: #ffedd5; color: #c2410c; }
.src-badge.cult { background: #fdf4ff; color: #7e22ce; }

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

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

button[type="submit"]:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.message {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.hidden { display: none; }

/* SOURCES */
.sources {
    background: white;
    border-radius: 12px;
    padding: 28px 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.sources h3 {
    font-size: 16px;
    color: #374151;
    margin-bottom: 14px;
}

.sources ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sources li {
    font-size: 15px;
    color: #374151;
}

/* FOOTER */
footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
}

@media (max-width: 520px) {
    .hero h1 { font-size: 24px; }
    .checkboxes { grid-template-columns: 1fr; }
    .stats { gap: 24px; }
    .card { padding: 24px 18px; }
}
