/* Глобално задаване на box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Дефиниране на CSS променливи за цветовете */
:root {
    --primary-color: #2c3e50; /* Тъмно син */
    --secondary-color: #2980b9; /* Син */
    --button-color: #1abc9c; /* Морска зелена */
    --button-hover-color: #16a085; /* По-тъмно морска зелена */
    --file-button-color: #1abc9c; /* Променена променлива за файловия бутон */
    --file-button-hover-color: #16a085; /* По-тъмно морска зелена за файловия бутон */
    --bonus-color: #e74c3c; /* Червен */
    --text-color: #555; /* Средно тъмно сиво */
    --question-bg-color: rgba(236, 240, 241, 0.8); /* Полупрозрачен фон за въпросите */
    --background-gradient-start: rgba(230, 215, 207, 1);
    --background-gradient-end: rgba(148, 187, 233, 1);
    --questions-background-start: rgba(224, 234, 252, 0.8);
    --questions-background-end: rgba(207, 222, 243, 0.8);
    --container-background-start: rgba(230, 215, 207, 0.8);
    --container-background-end: rgba(148, 187, 233, 0.8);
    --footer-background-color: #2c3e50; /* Тъмно син за футъра */
}

/* Анимации */
@keyframes animateGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes clickEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(0.95);
        box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 20px rgba(0,0,0,0.35);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    }
}

/* Основни стилове */
body {
    font-family: 'Roboto', Arial, sans-serif;
    text-align: center;
    padding: 20px;
    /* Радиялен градиент за фона */
    background: radial-gradient(circle, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
    background-size: 150% 150%; /* Увеличаваме размера на градиента */
    animation: animateGradient 5s ease infinite; /* Плавна анимация */
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    /* Прозрачен фон, за да се вижда градиента от тялото */
    background: radial-gradient(circle, var(--container-background-start) 0%, var(--container-background-end) 100%);
    background-size: 150% 150%;
    animation: animateGradient 5s ease infinite;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 800px;
    width: 100%;
    margin: 0px auto;
}

/* Хедър */
.header h1 {
    color: var(--primary-color); /* Тъмно син цвят за заглавието */
    margin-bottom: 20px;
    font-size: 2em;
}

.header p.intro {
    color: var(--text-color); /* Средно тъмно сиво за въведението */
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Видео секция */
.video-section {
    position: relative;
    margin: 20px 0;
}

.video-section video {
    width: 100%;
    max-width: 500px; /* Регулирайте според нуждите */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Бутон за включване на звука */
.unmute-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 188, 156, 0.8);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.unmute-button:hover {
    background-color: var(--button-hover-color);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Въпроси секция */
.questions {
    text-align: left;
    margin: 30px 0;
    background: radial-gradient(circle, var(--questions-background-start) 0%, var(--questions-background-end) 100%);
    background-size: 150% 150%;
    animation: animateGradient 5s ease infinite;
    padding: 5px;
    border-radius: 10px;
}

.questions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.questions li {
    background: var(--question-bg-color); /* Светло сиво с прозрачност за всеки въпрос */
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
}

.questions li h3 {
    margin: 0 0 10px 0;
    color: var(--secondary-color); /* Син цвят за заглавията на въпросите */
    font-size: 1.2em;
}

.questions li p {
    margin: 0;
    color: #666; /* Сиво за текстовете */
    font-size: 1em;
}

/* Секция за регистрация */
.signup-section {
    margin-top: 30px;
}

/* Бутон за отваряне на модала */
.signup-button {
    display: inline-block;
    padding: 15px 30px; /* Оптимизиран падинг */
    font-size: 1.2em; /* По-голям шрифт */
    color: #fff;
    background-color: var(--button-color); /* Морска зелена */
    text-decoration: none;
    border-radius: 50px; /* По-закръглен */
    box-shadow: 0 8px 15px rgba(0,0,0,0.3); /* Сянка за дълбочина */
    transition: all 0.3s ease; /* Плавен преход */
    cursor: pointer; /* Променяме курсора за по-добро усещане */
    animation: pulse 2s infinite; /* Постоянен пулсиращ ефект */
    max-width: 300px;
    margin: 0 auto;
}

.signup-button:hover {
    background-color: var(--button-hover-color); /* По-тъмно морска зелена при ховър */
    box-shadow: 0 15px 20px rgba(0,0,0,0.4); /* По-голяма сянка при ховър */
    transform: scale(1.05); /* Леко увеличение при ховър */
    /* Премахваме пулсацията при ховър, за да не се припокрива с постоянната анимация */
}

.signup-button:active {
    animation: clickEffect 0.3s; /* Клик анимация */
}

.bonus {
    margin-top: 20px;
    color: var(--bonus-color); /* Червен за бонус текста */
    font-weight: bold;
    font-size: 1em;
    text-align: center;
}

/* Модален Прозорец */
.modal {
    display: none; /* Скриване на модала по подразбиране */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Съдържание на модала */
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Уверете се, че няма pointer-events: none; */
    pointer-events: auto;
}

/* Бутон за затваряне на модала */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Стилове за формата в модала */
.signup-form {
    text-align: left;
}

.signup-form h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.signup-form input,
.signup-form textarea {
    width: 90%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.signup-form input::placeholder,
.signup-form textarea::placeholder {
    color: #999; /* Настройте цвета на placeholder текста */
    font-style: italic; /* Курсив */
}

.signup-form input:focus,
.signup-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    color: #fff;
    background-color: var(--button-color); /* Морска зелена */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: var(--button-hover-color); /* По-тъмно морска зелена при ховър */
    box-shadow: 0 15px 20px rgba(0,0,0,0.4);
    transform: scale(1.05);
}

/* Скрити файлови полета */
.file-input {
    display: none;
}

/* Персонализиран бутон за качване на файл */
.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--file-button-color); /* Използване на новата променлива */
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    font-size: 1em;
    margin-top: 10px;
}

.custom-file-upload:hover {
    background-color: var(--file-button-hover-color); /* Използване на новата променлива за ховър */
    box-shadow: 0 15px 20px rgba(0,0,0,0.4);
    transform: scale(1.05);
}

.custom-file-upload:active {
    animation: clickEffect 0.3s;
}

/* Стилизация на текста за избран файл */
.file-selected {
    margin-left: 10px;
    font-size: 0.9em;
    color: var(--text-color);
    display: inline-block;
    vertical-align: middle;
}

/* Футър */
.footer {
    background-color: var(--footer-background-color);
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    border-radius: 0 0 10px 10px;
    margin-top: 40px;
    font-size: 0.9em;
}

/* Съобщение за успех в модала */
.modal-success-message {
    display: none; /* Скрито по подразбиране */
    background-color: #4CAF50; /* Зелен фон */
    color: white; /* Бял текст */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    width: 100%; /* За да заема цялата ширина на модала */
    box-sizing: border-box; /* Включва падинг и бордър в ширината */
    line-height: 1.5;
}

/* Отзивчив дизайн */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p.intro {
        font-size: 1em;
    }

    .questions li h3 {
        font-size: 1.1em;
    }

    .questions li p {
        font-size: 0.95em;
    }

    .signup-button {
        font-size: 1em;
        padding: 12px 25px;
    }

    .unmute-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

/* Съдържание на модала */
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px; /* Намалена максимална ширина за по-добро преглеждане */
    border-radius: 10px;
    position: relative;
    box-sizing: border-box; /* Включва падинг и бордъра в общата ширина и височина */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column; /* Подреждане на съдържанието вертикално */
    align-items: center; /* Центриране на съдържанието хоризонтално */
    /* overflow: hidden; */ /* Премахнете или коментирайте тази линия */
}

    .signup-form h2 {
        font-size: 1.5em;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95em;
    }

    .submit-button {
        font-size: 1em;
        padding: 12px;
    }

    /* Стилизация на файловите полета за по-малки екрани */
    .signup-form input[type="file"] {
        padding: 5px 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .header p.intro {
        font-size: 0.9em;
    }

    .questions li h3 {
        font-size: 1em;
    }

    .questions li p {
        font-size: 0.85em;
    }

    .signup-form h2 {
        font-size: 1.3em;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9em;
    }

    .submit-button {
        font-size: 0.9em;
        padding: 10px;
    }

    .unmute-button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}
/* Стилове за формата в модала */
.signup-form {
    width: 100%; /* За да заема цялата ширина на модала */
    text-align: left;
}

.signup-form h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.signup-form input,
.signup-form textarea {
    width: 100%; /* Използвайте 100% вместо 90%, ако е необходимо */
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.signup-form input::placeholder,
.signup-form textarea::placeholder {
    color: #999; /* Настройте цвета на placeholder текста */
    font-style: italic; /* Курсив */
}

.signup-form input:focus,
.signup-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}
.signup-form select {
    width: 100%; /* Заема цялата ширина на контейнера, както другите input полета */
    padding: 10px 15px; /* Същият падинг като input полетата */
    border: 1px solid var(--secondary-color); /* Същият бордър като другите полета */
    border-radius: 5px; /* Закръглени ъгли, за да е консистентно */
    font-size: 1em; /* Унифицирана големина на текста */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Лека сянка, за да се съчетае с другите полета */
    background-color: #fff; /* Бял фон */
    transition: border-color 0.3s ease; /* Плавен преход при ховър и фокус */
}

/* При ховър и фокус, същите ефекти като при input полетата */
.signup-form select:focus,
.signup-form select:hover {
    border-color: var(--primary-color); /* Променя се бордър цветът при фокус/ховър */
}
.signup-form input,
.signup-form select,
.signup-form textarea,
.signup-form button {
    font-family: 'Roboto', Arial, sans-serif; /* Унифициран шрифт */
    color: var(--text-color); /* Унифициран текстов цвят */
}
/* Локация секция */
.location-section {
    text-align: center; /* Центриране на съдържанието */
    max-width: 800px; /* Ограничаване на ширината */
    margin: 0 auto; /* Центриране на цялата секция */
    padding: 20px; /* Разстояние около секцията */
}

/* Заглавие */
.location-section h2 {
    color: var(--primary-color); /* Основен цвят */
    font-size: 1.8em; /* Голям шрифт */
    margin-bottom: 20px; /* Разстояние от картата */
}

/* Карта стилове */
.map-container {
    margin: 20px 0; /* Разстояние от другите елементи */
    display: flex;
    justify-content: center; /* Центриране на картата */
}

.map-container iframe {
    border-radius: 10px; /* Закръглени ъгли на картата */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Лека сянка за визуално отделяне */
    margin-bottom: 20px; /* Разстояние от другите елементи */
}

/* Икони за навигация */
.navigation-icons {
    display: flex; /* Подредба на иконите в редица */
    justify-content: center; /* Центриране на иконите */
    gap: 20px; /* Разстояние между иконите */
    margin-top: 20px; /* Разстояние от картата */
}

.icon-link img {
    width: 50px; /* Размер на иконите */
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Анимация при ховър */
}

.icon-link img:hover {
    transform: scale(1.1); /* Увеличение при ховър */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Сянка при ховър */
}

/* Отзивчив дизайн */
@media (max-width: 768px) {
    .map-container iframe {
        width: 100%; /* Карта заема цялата ширина */
        height: 200px; /* По-малка височина на картата за мобилни устройства */
    }

    .navigation-icons {
        flex-wrap: wrap; /* Подрежда иконите на два реда, ако няма място */
        gap: 15px; /* По-малко разстояние между иконите */
    }

    .icon-link img {
        width: 40px; /* По-малки икони за мобилни устройства */
        height: 40px;
    }
}

/* Допълнителни глобални стилове */
body {
    font-family: 'Roboto', Arial, sans-serif; /* Унифициран шрифт */
    text-align: center;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, #f5f5f5, #eaeaea); /* Лек градиент за фон */
}

h2 {
    font-weight: 700;
}

/* Карта и икони - междинно отстояние */
.location-section {
    display: flex;
    flex-direction: column; /* Вертикално подравняване */
    align-items: center; /* Центриране на всички елементи вътре */
}

.navigation-icons {
    padding: 10px 0; /* Допълнително отстояние около иконите */
}

.icon-link {
    display: flex;
    align-items: center; /* Подравняване по вертикалата */
    justify-content: center; /* Центриране на линковете */
    width: 60px;
    height: 60px;
    background: #ffffff; /* Бял фон за иконите */
    border-radius: 50%; /* Прави иконите в кръгове */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Лека сянка за ефект */
    transition: all 0.3s ease;
}

.icon-link:hover {
    background: var(--button-hover-color); /* Смяна на фона при ховър */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* По-голяма сянка при ховър */
}
/* Секция за обучението */
.training-info {

    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: center;
}

.training-info h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 10px;
}

.training-list, .target-group, .benefits {
    list-style: none;
    padding: 0;
}

.training-list li, .target-group li, .benefits li {
    font-size: 18px;
    padding: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 8px;
    text-align: left;
    background: #e5e5e5;
    border-radius: 4px;
    padding-left: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin-top: 15px;
}

.highlight {
    font-size: 18px;
    font-style: italic;
    color: #8e44ad;
    margin-top: 10px;
}
/* Стил за контейнера на IBAN */
.iban-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
}

/* Стил за бутона "Копирай" */
.copy-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.copy-button:hover {
    background: #2980b9;
}

/* Стил за бутона за качване на файл */
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    width: fit-content;
}

.custom-file-upload::before {
    content: "📁";
    font-size: 20px;
}

.file-input {
    display: none;
}

/* Скриване на стандартния input за файлове */
.file-input {
    display: none;
}

/* Стилен бутон за качване на файл */
.custom-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-file-upload:hover {
    background: #2980b9;
}

/* Стил за показване на избрания файл */
.file-status {
    font-size: 14px;
    margin-top: 5px;
    color: #e74c3c;
    font-weight: bold;
}
/* Скриване на модала по подразбиране */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/

/* Close бутонът – позициониран в горния десен ъгъл */
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

/* Уверете се, че съдържанието започва достатъчно надолу, за да не бъде покрито от close бутона */

/* Стилове за копиращия бутон */
.copy-button {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin: 0;
}

/* Hover ефект за копиращия бутон */
.copy-button:hover {
  background-color: #2980b9;
}

/* Flex контейнер за IBAN – гарантира подравняване на текста и бутона */
.iban-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Отстояния и по-малки шрифтове за мобилни устройства */
@media screen and (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 20px 15px;
    margin-top: 40px;  /* Задаваме достатъчно разстояние от горе */
    max-height: 90vh;  /* Ограничаваме височината на модала до 90% от височината на екрана */
    overflow-y: auto;  /* Позволяваме вертикално превъртане, ако съдържанието е твърде високо */
  }
  
  .close-button {
    top: 10px;       /* Може да се коригира, за да не покрива съдържанието */
    right: 10px;
    font-size: 20px; /* Подходящ размер за малък екран */
  }
}

/* Стилове за спинера */
.spinner {
    display: none;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.spinner p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

/* Анимация за спинера */
.spinner::after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    animation: spin 1s linear infinite;
}

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

/* Стилове за модалното съдържание */
#modalContent {
    display: block;
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

#modalMainContent {
    width: 100%;
}
