body {
    font-family: Arial, sans-serif;
    margin: 0; /* премахваме 20px margin за пълно покритие */
    background-image: url('/static/img/backgrounds/fls_photo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255,255,255,0); /* полупрозрачен бял слой */
    background-blend-mode: lighten; /* избледнява картинката */
}
/* Полупрозрачен слой над бекграунда */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.4);
    z-index: 10; /* по-нисък от бутоните и header, но над бекграунда */
}

table {
    border-collapse: collapse;
}
th, td {
    padding: 5px 10px;
}
/* --- Header / навигация --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;  /* колкото искаш */
    padding: 0 20px; /* само страничен отстъп */
    background-color: rgba(0, 51, 43, 0.9);
}

header img {
    height: 80px;
}

header nav a,
header nav button {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

header nav button:hover,
header nav a:hover {
    text-decoration: underline;
}

/* --- Модален прозорец --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;       /* по подразбиране скрит */
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-content input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.modal-content button {
    background-color: #004B4B !important;  /* петролно зелено */
    color: white !important;
    border: none;
    border-radius: 5px;
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

.modal-content .error {
    color: red;
    margin-bottom: 15px;
}

.login-box button:hover {
    background-color: #006666 !important;  /* по-светъл петролен нюанс */

}
/* --- Фиксирано лого при клик върху бутон --- */
#logoTopLeft {
    position: fixed;   /* фиксира логото на екрана */
    top: 10px;         /* веднага под хедъра (ако хедърът е 60px + малко разстояние) */
    left: 20px;        /* отстояние от лявата страна */
    height: 60px;      /* нормален размер */
    z-index: 1000;     /* над съдържанието, но под модалите */
}
#logoFixed {
    position: fixed;   /* остава на място при скрол */
    top: 10px;         /* отстояние от горния край на страницата */
    left: 20px;        /* отстояние от лявата страна */
    height: 120px;     /* увеличен размер на логото */
    z-index: 1000;     /* над другото съдържание */
}
.login-box {
    display: none;             
    position: fixed;           
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    color: black;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    width: 300px;
    z-index: 1000;
}
#logoUnderHeader {
    position: relative;
}

#logoUnderHeader img {
    height: auto !important;
    margin: 0 !important;
    display: block;
}
#logoUnderHeader #mainLogo {
    height: 80px !important;  /* новият размер */
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.hero-text h1 {
    color: #004B4B; /* петролно зелено */
}
#requestButton {
    background-color: #d32f2f; /* наситено червено */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

#requestButton:hover {
    background-color: #b71c1c; /* по-тъмно червено при hover */
}
/* Над overlay-а, за да може текстът и бутоните да се кликаят */
header,
.hero,
#homeContent,
#goalContent,
#benefitsContent,
#contactContent {
    position: relative;
    z-index: 50;
}
/* Модал за заявка */
#requestModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* отгоре */
    z-index: 1000;
}

#requestModal .modal-content {
    margin-top: 150px; /* премества модала надолу */
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#requestModal input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#requestModal button {
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 5px;
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

#requestModal button:hover {
    background-color: #b71c1c;
}
#requestButtonContainer {
    position: fixed;
    bottom: 20px;           /* по подразбиране е долу */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center; /* центрира хоризонтално */
    z-index: 2000;
}

#requestButtonContainer.top-center {
    top: 80px;              /* бутонът се мести нагоре */
    bottom: auto;
}
#pdfButtonsContainer {
    position: fixed;
    bottom: 20px;   /* разстояние от долния край */
    left: 20px;     /* разстояние от лявата страна */
    display: flex;
    flex-direction: column; /* вертикално подреждане */
    gap: 10px;      /* разстояние между бутоните */
    z-index: 3000;  /* над всичко останало */
}

.fixed-pdf-btn {
    background-color: #00332b;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.fixed-pdf-btn:hover {
    background-color: #004b3b;
}
.checkbox-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* позволява пренасяне, ако няма място */
    gap: 5px;        /* разстояние между елементите */
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;  /* не се свива */
    width: 18px;
    height: 18px;
    margin-right: 8px; /* отделя чекбокса от текста */
}

.checkbox-label a {
    color: #007BFF;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.checkbox-label .required {
    color: red;
    margin-left: 2px;
}
</style>
