/* Глобални стилове */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7f6; /* Лек фон за контраст */
}

/* Секция hero */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
}

/* Карта за формата */
.card {
    background: rgba(25, 135, 84, 0.08); /* Стъклен ефект */
    border: 3px solid rgb(75, 159, 62); /* Зелен контур */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 36px rgba(25, 135, 84, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.card:hover,
.card:focus-within {
    box-shadow: 0 12px 40px rgba(25, 135, 84, 0.3);
    transform: translateY(-2px);
}

/* Заглавие на картата */
.card-title {
    color: #d7d9d8;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

/* Полета */
.form-control {
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(159, 173, 167, 0.3);
    background-color: rgba(255, 255, 255, 0.7);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    color: #198754;
}

.form-control:focus {
    border-color: #c4cbc8;
    box-shadow: 0 0 0 0.2rem rgba(71, 183, 124, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    color: #015231;
}

/* Стилизиране на textarea */
textarea.form-control {
    resize: vertical; /* Позволява само вертикално преоразмеряване */
    min-height: 100px;
}

/* Етикети */
.form-label {
    font-weight: 600;
    color: #e0e3e1;
    font-size: 1.05rem;
}

/* Бутон */
.btn-success {
    background: linear-gradient(to right, #3b9656, #1e7868);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
}

.btn-success:hover {
    background: linear-gradient(to right, #2e7d44, #156255);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.5);
}

/* Линк */
.small {
    color: #fcfcfc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.small:hover {
    color: #b0b0b0;
    text-decoration: underline;
}

/* Съобщения за грешка и успех */
.error-message {
    background-color: #ffe5e5;
    color: #a94442;
    border: 1px solid #f5c2c2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.05);
    animation: fadeInSlide 0.4s ease-out;
    text-align: center;
}

.success-message {
    background-color: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.05);
    animation: fadeInSlide 0.4s ease-out;
    text-align: center;
}

/* Анимация за съобщения */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Разстояния */
.mb-3 {
    margin-bottom: 1rem;
}

.text-center {
    margin-top: 15px;
}

/* Контейнер */
.container {
    max-width: 1200px;
}

/* Адаптивност */
@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
        max-width: 90%;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 80px;
    }
}