body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    position: relative;
    background: url('header-background.jpg') center top/contain no-repeat;
    color: white;
    padding: 100px 10px; /* Zvýšený padding, aby se zobrazilo více obrázku */
    text-align: center;
    height: 400px; /* Nastaví pevnou výšku pro lepší vykreslení */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Přidává tmavý průhledný overlay pro lepší čitelnost */
    z-index: 1;
}

header h1,
header p,
header nav {
    position: relative;
    z-index: 2;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    z-index: 2;
}

.btn {
    background: #28a745;
    color: white;
}

.btn:hover {
    background: #218838;
}

.btn-secondary {
    background: #17a2b8;
    color: white;
}

.btn-secondary:hover {
    background: #138496;
}

/* Responzivní úpravy pro mobilní verzi */
@media (max-width: 768px) {
    header {
        background-size: cover; /* Přizpůsobení na mobilech */
        height: auto; /* Dynamická výška */
        padding: 120px 10px; /* Větší prostor pro lepší čitelnost */
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    .intro {
        padding: 10px; /* Zvýšení vnitřního prostoru sekcí */
        margin: 10px 5px; /* Odsazení od krajů */
        text-align: center;
    }

    .benefits,
    .how-it-works {
        padding: 10px; /* Zvýšení vnitřního prostoru sekcí */
        margin: 10px 5px; /* Odsazení od krajů */
        text-align: left;
    }

    p {
        padding: 0 10px; /* Odsazení textu od stran */
    }

    .btn,
    .btn-secondary {
        width: 80%;
        text-align: center;
    }
}

/* ---------- Sekce dokumentů na dashboardu ---------- */

.docs-section {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.docs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Na širších obrazovkách – dvě/tři sloupce, ale hezky zalamované */
@media (min-width: 900px) {
    .docs-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.doc-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    background: #fafafa;
    flex: 1 1 360px;   /* ideální šířka boxu */
    max-width: 100%;
    box-sizing: border-box;
}

.doc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    gap: 8px;
}

.doc-card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.doc-card-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-accepted {
    background: #e6ffed;
    color: #137333;
}

.badge-pending {
    background: #fff8e1;
    color: #b36b00;
}

.badge-rejected {
    background: #ffebee;
    color: #c62828;
}

.badge-notuploaded {
    background: #ffebee;
    color: #c62828;
}

.doc-card-desc {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.doc-card-list {
    margin: 0 0 0.5rem 0;
    padding-left: 1rem;
    font-size: 0.8rem;
    color: #444;
}

.doc-card-list li {
    margin-bottom: 0.15rem;
}

.doc-upload-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.doc-upload-form input[type="file"] {
    font-size: 0.8rem;
    flex: 1 1 180px;
}

.doc-upload-form button {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    background: #1d4ed8;
    color: white;
    cursor: pointer;
    white-space: nowrap;
}

.doc-upload-form button:hover {
    background: #1e40af;
}

.doc-small-note {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.25rem;
}

/* ---------- Sekce s manželkou a korespondenční adresou ---------- */

#spouse-section-wrapper,
#correspondence-section-wrapper {
    display: block;
    width: 100%;
    margin-top: 0.8rem;
    /* žádné text-align, ať se to chová jako zbytek formuláře */
}


#spouse-section-wrapper > * ,
#correspondence-section-wrapper > * {
    width: 100%;
    display: block;
    margin-top: 0.8rem;
}