@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&display=swap');

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    background-color: #fff;
}

#language-selector {
    position: fixed;
    top: 0;
    right: 40px;
    z-index: 1000;
    font-family: 'Manrope', sans-serif;
}

#current-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(-10%);
}

#language-selector:hover #current-lang {
    transform: translateY(0);
}

#current-lang .lang-code {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

#current-lang .arrow-down {
    width: 18px;
    height: 18px;
    color: #555;
    transition: transform 0.3s ease;
}

#language-selector.open #current-lang .arrow-down {
    transform: rotate(180deg);
}

#lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    overflow: hidden;
    opacity: 1; /* Опции должны быть видимы, когда родитель открыт */
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

#language-selector.open #lang-options {
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-option.selected {
    font-weight: 700;
    color: #007aff;
    background-color: rgba(0, 122, 255, 0.1);
}

main.form-section {
    display: flex;
    justify-content: center;
    padding: 80px 20px 40px;
}

.levitating-form-container {
    width: 100%;
    max-width: 550px;
}

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

.levitating-card {
    width: 100%;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-appearance: none;
}

.levitating-card:focus {
    outline: none;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07), 0 20px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

textarea.levitating-card {
    resize: none;
    min-height: 110px;
}

::placeholder {
    color: #999;
    font-weight: 300;
}

.glass-button {
    width: 100%;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: dodgerblue;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background-color: rgba(135, 206, 250, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(135, 206, 250, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-appearance: none;
}

.glass-button:hover {
    background-color: rgba(135, 206, 250, 0.3);
    border-color: rgba(135, 206, 250, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.glass-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: translateY(0);
}

.footer-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/footer/ladonatag.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    padding: 40px 20px;
}

.glass-footer {
    width: 80%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-title {
    font-size: 21px;
    font-weight: 500;
    color: #333;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.footer-credit {
    font-size: 12px;
    color: #555;
    text-align: center;
}

@media (max-width: 768px) {
    #language-selector {
        right: 20px;
    }
    #current-lang {
        padding: 6px 12px;
        border-radius: 0 0 14px 14px;
    }
    #current-lang .lang-code {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    main.form-section {
        padding-top: 80px;
    }
    .levitating-form-container {
        padding: 0 15px;
    }
    .levitating-card {
        padding: 16px 20px;
        font-size: 16px;
    }
    .levitating-card:focus {
        transform: none;
    }
    .glass-button {
        padding: 16px 20px;
        font-size: 15px;
    }
    .footer-section {
        padding: 40px 15px;
    }
    .glass-footer {
        width: 100%;
    }
    .social-icons a {
        width: 44px;
        height: 44px;
    }
    .social-icons svg {
        width: 22px;
        height: 22px;
    }
    .footer-credit {
        font-size: 10px;
    }
}

/* === НАЧАЛО СТИЛЕЙ ДЛЯ ПОЛНОЭКРАННОГО УВЕДОМЛЕНИЯ === */

/* 1. Главный контейнер-оверлей */
#takeover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow: hidden; /* Важно, чтобы скрыть выезжающие элементы */
    pointer-events: none; /* Неактивен по умолчанию */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#takeover-overlay.active {
    pointer-events: all;
    opacity: 1;
}

/* 2. Выезжающее изображение */
#takeover-image-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* Фон на случай медленной загрузки фото */
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15); /* Тень */
    transform: translateY(100%); /* Начальное положение - скрыто внизу */
    transition: transform 5s cubic-bezier(0.4, 0, 0.2, 1); /* Очень медленная анимация */
}

#takeover-overlay.active #takeover-image-wrapper {
    transform: translateY(0);
    transition-delay: 0.7s; /* Появляется после плашки */
}

#takeover-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

/* 3. Текстовая плашка */
#takeover-plaque {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    z-index: 2010; /* Выше, чем изображение */

    /* Стили, как у переключателя языков */
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

    /* Текст */
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 90%;

    /* Анимация появления */
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#takeover-overlay.active #takeover-plaque {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.2s; /* Появляется первой */
}

/* Анимация "выталкивания" плашки */
#takeover-overlay.active #takeover-image-wrapper {
    /* Эта анимация выталкивания происходит за счет того, что
       изображение находится под плашкой и просто выезжает,
       а плашка остается на месте относительно viewport.
       Для пользователя это выглядит как выталкивание. */
}

#takeover-plaque a {
    color: #007aff;
    font-weight: 600;
    text-decoration: none;
}
/* === КОНЕЦ СТИЛЕЙ === */
.simple-footer {
    text-align: center; /* Центрирует текст */
    padding: 15px 0; /* Добавляет отступ сверху и снизу */
    background-color: #fff; /* Можете изменить цвет фона */
}

.simple-footer a {
    color: #333; /* Цвет ссылки */
    text-decoration: none; /* Убирает подчеркивание */
}

.simple-footer a:hover {
    text-decoration: underline; /* Добавляет подчеркивание при наведении */
}