:root {
            --color-bg: #F8F9FB;
            --color-blue: #4A90E2;
            --color-blue-dark: #357ABD;
            --color-pink: #FFB7D5;
            --color-text-main: #555555;
            --color-text-dark: #222222;
            --color-white: #FFFFFF;
            --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
            --shadow-hover: 0 20px 50px rgba(74, 144, 226, 0.2);
            --gradient-main: linear-gradient(135deg, var(--color-blue), var(--color-pink));
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }

        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--color-bg);
            color: var(--color-text-main);
            line-height: 1.5;
            overflow-x: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* --- ABSTRACT SHAPES --- */
        abstract-shape {
            position: absolute;
            background-image: url('images/flower.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            pointer-events: none;
        }

        .shape-hero-bottom-center {
            width: 850px; height: 850px;
            top: 78px; left: 65%;
            transform: translateX(-30%) rotate(90deg); 
            opacity: 0.8; z-index: 5;
        }
        
        .cta-shape {
             width: 100%; height: 100%; top:0; left:0; opacity: 0.2; filter: blur(10px); z-index: 1;
        }

        .content-layer { position: relative; z-index: 2; }

        /* --- HEADER --- */
        header {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            padding: 1rem 5%;
            display: flex; justify-content: space-between; align-items: center;
            position: sticky; top: 0; z-index: 1000;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        .logo { font-size: 1.6rem; font-weight: 800; color: var(--color-blue); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
        .logo span { color: var(--color-pink); }
        nav ul { display: flex; gap: 30px; list-style: none; }
        nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--color-text-dark); transition: 0.3s; }
        nav a:hover { color: var(--color-blue); }
        .auth-buttons { display: flex; gap: 15px; }
        .btn { padding: 12px 28px; border-radius: 50px; border: none; cursor: pointer; font-family: 'Roboto', sans-serif; font-size: 0.95rem; font-weight: 600; transition: all 0.3s ease; }
        .btn-outline { background: transparent; border: 2px solid var(--color-blue); color: var(--color-blue); }
        .btn-outline:hover { background: var(--color-blue); color: white; }
        .btn-primary { background: var(--color-blue); color: white; box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3); }
        .btn-primary:active { transform: translateY(2px); }

        /* --- ПРОФИЛЬ В ШАПКЕ --- */
        .auth-wrapper { display: flex; align-items: center; }
        .user-header-profile { display: none; align-items: center; gap: 15px; cursor: pointer; text-decoration: none; }
        .user-avatar { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, #a3b9d6, #e8a5c9); display: flex; align-items: center; justify-content: center; color: white; }
        .user-avatar svg { width: 24px; height: 24px; fill: white; }
        .user-name { font-weight: 500; color: var(--color-text-dark); font-size: 0.95rem; }

        /* --- УНИКАЛЬНЫЙ HERO SECTION (ПРЕМИУМ ДИЗАЙН) --- */
        #hero-new {
            padding: 2rem 5% 2rem;
            position: relative;
            z-index: 2;
            max-width: 1400px;
            margin: 0 auto;
        }

        .hero-main-box {
            background: linear-gradient(135deg, #122239 0%, #357ABD 100%); 
            border-radius: 30px;
            position: relative;
            padding: 6rem 5rem;
            min-height: 550px;
            overflow: hidden;
            display: flex;
            align-items: center;
            box-shadow: 0 30px 60px rgba(18, 34, 57, 0.15);
        }

        .hero-main-box::after {
            content: ''; position: absolute; width: 800px; height: 800px;
            background: radial-gradient(circle, rgba(255, 183, 213, 0.15) 0%, transparent 60%);
            top: -20%; right: -10%; pointer-events: none;
        }

        .hero-content-top {
            position: relative; z-index: 3; max-width: 650px;
        }

        .hero-content-top h1 {
            font-size: 5rem; color: white; line-height: 1.1;
            margin-bottom: 1.5rem; font-weight: 800;
        }
        .hero-content-top h1 span { color: var(--color-pink); }

        .hero-content-top p {
            font-size: 1.25rem; color: rgba(255, 255, 255, 0.85);
            margin-bottom: 2.5rem; line-height: 1.6; font-weight: 300;
        }

        .hero-action-block { display: flex; align-items: center; gap: 20px; }
        .hero-action-block .btn { padding: 18px 45px; font-size: 1.1rem; box-shadow: 0 10px 25px rgba(255, 183, 213, 0.3); }
        .hero-guarantee { color: white; font-size: 0.95rem; opacity: 0.8; display: flex; align-items: center; gap: 8px; }

        .hero-bg-image {
            position: absolute;
            top: 5%; /* Сдвигаем сверху */
            right: -2%; /* Немного выводим за правый край экрана */
            width: 700px; /* Размер картинки (можете менять эту цифру, чтобы сделать больше/меньше) */
            height: auto;
            z-index: 5; /* Важно: НАД синим блоком, но ПОД белыми карточками (у них 10) */
            pointer-events: none; /* Чтобы картинка не мешала нажимать на кнопки под ней */
            filter: drop-shadow(-15px 20px 40px rgba(0,0,0,0.15)); /* Добавляем красивую тень */
        }

        .hero-bottom-grid {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
            margin-top: -80px; position: relative; z-index: 10; padding: 0 40px;
        }

        .hero-b-card {
            background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 20px;
            padding: 35px 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.06);
            position: relative; overflow: hidden; transition: 0.4s ease;
            display: flex; flex-direction: column;
        }

        .hero-b-card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
            background: var(--gradient-main); opacity: 0; transition: 0.4s;
        }
        .hero-b-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(74, 144, 226, 0.12); border-color: transparent; }
        .hero-b-card:hover::before { opacity: 1; }

        .hero-b-card h3 { font-size: 1.4rem; color: var(--color-blue-dark); margin-bottom: 12px; line-height: 1.3;}
        .hero-b-card p { color: #666; font-size: 1.05rem; margin-bottom: 25px; flex-grow: 1;}
        
        .hero-card-link {
            color: var(--color-pink); font-weight: 700; text-decoration: none;
            display: flex; align-items: center; gap: 5px; font-size: 1rem; transition: 0.3s;
        }
        .hero-card-link:hover { color: var(--color-blue); gap: 10px; }

        @media (max-width: 1000px) {
            .hero-main-box { padding: 4rem 2rem; min-height: 450px; }
            .hero-content-top h1 { font-size: 2.8rem; }
            .hero-doctor-img { opacity: 0.2; right: -30%; } 
            .hero-bottom-grid { grid-template-columns: 1fr; margin-top: -30px; padding: 0 15px;}
            .hero-action-block { flex-direction: column; align-items: flex-start; }
        }

        /* --- SERVICES SECTION --- */
        #services { padding: 8rem 5%; background-color: var(--color-bg); position: relative; z-index: 1; }
        .section-header { text-align: center; margin-bottom: 5rem; }
        .section-title { font-size: 2.5rem; color: var(--color-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; display: inline-block; position: relative; }
        .section-title::after { content: ''; display: block; width: 100%; height: 4px; background: var(--color-pink); margin: 8px auto 0; border-radius: 2px; }
        .services-layout { display: flex; align-items: flex-start; gap: 6rem; position: relative; z-index: 2;}
        .services-left { flex: 1.3; }
        .services-right { flex: 1; padding-top: 2rem; }
        .services-right h3 { font-size: 2.2rem; color: var(--color-text-dark); margin-bottom: 1.5rem; line-height: 1.3; }
        .services-right p { font-size: 1.15rem; color: #666; margin-bottom: 2rem; line-height: 1.6; }

        /* Accordion */
        .accordion-item { background: white; border-radius: 20px; margin-bottom: 20px; box-shadow: var(--shadow-soft); overflow: hidden; transition: 0.3s; border: 1px solid transparent; }
        .accordion-item:hover { transform: translateX(10px); box-shadow: var(--shadow-hover); }
        .accordion-item.active { border-color: var(--color-pink); }
        .accordion-header { padding: 25px 35px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.2rem; color: var(--color-text-dark); }
        .accordion-icon { width: 35px; height: 35px; border-radius: 50%; background: #F0F4F8; color: var(--color-blue); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: 0.3s; }
        .accordion-item.active .accordion-icon { background: var(--color-blue); color: white; transform: rotate(45deg); }
        .accordion-item.active .accordion-header { color: var(--color-blue); }
        .accordion-body { max-height: 0; overflow: hidden; transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); background: #fff; }
        .accordion-body p { padding: 0 35px 30px; color: #666; font-size: 1.05rem; line-height: 1.6; }

        /* --- TARIFFS SECTION --- */
        #tariffs { 
            padding: 3rem 3%; background-image: url('images/background.png'); 
            background-size: cover; background-position: center; background-repeat: no-repeat; 
            position: relative; z-index: 1; }
        .tariffs-table { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
        .tariff { background: white; padding: 3.5rem 2.5rem; border-radius: 30px; width: 380px; min-height: 650px; display: flex; flex-direction: column; box-shadow: 0 15px 35px rgba(0,0,0,0.03); border: 1px solid #eee; transition: 0.4s; }
        .tariff:hover { transform: translateY(-20px); box-shadow: var(--shadow-hover); border-color: var(--color-blue); }
        .tariff h3 { color: var(--color-text-dark); margin-bottom: 0.5rem; font-size: 2rem; font-weight: 600; text-align: center; }
        .tariff-price { text-align: center; color: var(--color-blue); font-size: 1.1rem; font-weight: 800; margin-bottom: 2.5rem; text-transform: uppercase; letter-spacing: 1px; }
        .tariff ul { text-align: left; margin-bottom: 2rem; list-style: none; flex-grow: 1; }
        .tariff li { margin-bottom: 20px; display: flex; align-items: start; font-size: 1.1rem; color: #555; line-height: 1.5; }
        .tariff li::before { content: '✔'; color: var(--color-pink); margin-right: 15px; font-weight: 900; flex-shrink: 0; }
        .tariff .btn { margin-top: auto; width: 100%; text-align: center; padding: 15px; font-size: 1.1rem; }
        .tariff.premium { border: 2px solid var(--color-blue); background: #F8FBFF; transform: scale(1.02); }
        .tariff.premium:hover { transform: scale(1.05) translateY(-20px); }

        /* --- DOCTORS SECTION --- */
        #doctors { padding: 8rem 5% 5rem 5%; background: var(--color-bg); overflow: hidden; position: relative; z-index: 5; }
        .doctors-header-expanded { display: flex; align-items: flex-start; gap: 60px; margin-bottom: 5rem; max-width: 1200px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
        .doctors-count-big { font-size: 8rem; font-weight: 900; color: var(--color-blue); line-height: 0.8; flex-shrink: 0; }
        .doctors-text-details { flex: 1; }
        .doctors-main-title { font-size: 2.5rem; font-weight: 800; color: var(--color-text-dark); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; }
        .doctor-feature { margin-bottom: 25px; }
        .doctor-feature h4 { font-size: 1.3rem; color: var(--color-blue-dark); margin-bottom: 10px; font-weight: 700; }
        .doctor-feature p { font-size: 1.05rem; color: #666; }
        .doctors-bg-flower {
            position: absolute;
            top: 200px; /* Немного поднимаем наверх */
            left: -10%; /* Сдвигаем влево, чтобы он выглядывал из-за края экрана */
            width: 600px; /* Размер цветка */
            transform: rotate(45deg);
            height: auto;
            z-index: 1; /* Прячем ПОД текстом и карточками (у них z-index: 2) */
            opacity: 1; /* Делаем полупрозрачным (от 0.1 до 1), чтобы текст легко читался */
            pointer-events: none; /* Чтобы картинка не перекрывала мышку */
          
        }
        @media (max-width: 1000px) {
            .doctors-bg-flower { 
                width: 400px; 
                opacity: 0.15; 
                left: -30%; 
            }
        }

        .doctors-scroll-container { display: flex; gap: 30px; overflow-x: auto; padding: 30px 20px 60px 20px; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; user-select: none; position: relative; z-index: 2; }
        .doctors-scroll-container::-webkit-scrollbar { display: none; }
        .doctors-scroll-container.active { cursor: grabbing; }

        .doctor-card { min-width: 340px; height: 600px; background: white; border-radius: 24px; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.05); }
        .doctor-card:hover { box-shadow: var(--shadow-hover); border-color: var(--color-blue); }
        .doctor-photo-area { height: 55%; background: #E8EFF7; position: relative; overflow: hidden; }
        .doctor-photo-area img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
        .doctor-info-area { height: 45%; padding: 25px; background: white; display: flex; flex-direction: column; justify-content: space-between; }
        .doctor-name { font-size: 1.5rem; font-weight: 800; color: var(--color-text-dark); margin-bottom: 5px; }
        .doctor-spec-main { color: var(--color-blue); font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
        .doctor-spec-sub { color: #888; font-size: 0.95rem; margin-bottom: 15px; font-weight: 400; }
        .doctor-rating-block { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; color: #666; font-weight: 500; padding-top: 15px; border-top: 1px solid #eee; }
        .star { color: #FFC107; margin-right: 5px; }
        .rating-num { font-weight: 700; color: var(--color-text-dark); margin-right: 5px; }

        /* --- HOTELS SECTION --- */
        #hotels { padding: 5rem 5% 8rem; background: var(--color-white); position: relative; z-index: 5; }
        
        /* Плашки клиник (Ссылки) */
        .clinic-highlight {
            display: inline-block; background: rgba(74, 144, 226, 0.1); color: var(--color-blue-dark);
            padding: 4px 14px; border-radius: 50px; font-weight: 500; font-size: 0.95rem;
            margin: 5px 4px 0 4px; border: 1px solid rgba(74, 144, 226, 0.2);
            text-decoration: none; transition: all 0.3s ease; 
        }
        .clinic-highlight:hover { background: var(--color-blue); color: var(--color-white); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3); }
        
        .hotels-intro-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; max-width: 1200px; margin: 0 auto 4rem auto; }
        .hotel-intro-card { background: white; border-radius: 20px; padding: 30px; border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
        .hotel-intro-card.primary { background: rgba(74, 144, 226, 0.05); border: 1px solid rgba(74, 144, 226, 0.2); }
        .hotel-intro-card h3 { font-size: 1.6rem; color: var(--color-text-dark); margin-bottom: 10px; line-height: 1.3;}
        .hotel-intro-card h4 { font-size: 1.2rem; color: var(--color-blue); margin-bottom: 10px;}
        .hotel-intro-card p { color: #666; font-size: 1.05rem; }

        .hotels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
        .hotel-card { background: var(--color-bg); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03); transition: 0.4s; display: flex; flex-direction: column; }
        .hotel-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-hover); border-color: var(--color-blue); }
        .hotel-image { height: 240px; background: #E8EFF7; position: relative; }
        .hotel-image img { width: 100%; height: 100%; object-fit: cover; }
        .hotel-info { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
        .hotel-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
        .hotel-name { font-size: 1.5rem; font-weight: 800; color: var(--color-text-dark); line-height: 1.2; }
        .hotel-stars { color: #FFC107; font-size: 1.2rem; letter-spacing: 2px; }
        
        .hotel-location { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.95rem; color: #666; background: white; padding: 10px 15px; border-radius: 12px; border: 1px solid #eee; }
        .hotel-distance { display: flex; align-items: center; gap: 5px; font-weight: 500;}
        .map-link { color: var(--color-blue); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 5px; transition: 0.3s; }
        .map-link:hover { color: var(--color-pink); }
        .map-link svg { width: 16px; height: 16px; fill: currentColor; }
        
        .hotel-desc { color: #555; font-size: 1.05rem; line-height: 1.5; margin-bottom: 25px; flex-grow: 1; }
        .hotel-btn { width: 100%; padding: 14px; font-size: 1.1rem; }

        @media (max-width: 1000px) { .hotels-intro-grid { grid-template-columns: 1fr; } }

        /* --- CTA --- */
        .cta-section { background: var(--gradient-main); color: white; text-align: center; border-radius: 40px; margin: 2rem 5% 6rem 5%; padding: 5rem 3rem; position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(74, 144, 226, 0.4); z-index: 10; }
        .cta-section h2 { color: white; margin-bottom: 1.5rem; position: relative; z-index: 2; font-size: 2.5rem; font-weight: 800; }
        .cta-section p { position: relative; z-index: 2; font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
        .simple-form { position: relative; z-index: 2; margin-top: 30px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
        .simple-form input { padding: 18px 30px; border-radius: 50px; border: none; width: 300px; font-size: 1rem; outline: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
        .simple-form .btn-submit { background: white; color: var(--color-blue); border: none; padding: 18px 50px; font-size: 1.1rem; font-weight: 700; box-shadow: 0 10px 20px rgba(0,0,0,0.1); cursor: pointer; transition: 0.3s; }
        .simple-form .btn-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

        /* --- FAQ SECTION --- */
        #faq { padding: 4rem 5% 8rem; background: var(--color-bg); position: relative; z-index: 5; }

        /* --- FOOTER --- */
        footer { background: #1A1A1A; color: #aaa; padding: 5rem 5%; text-align: center; font-size: 1rem; position: relative; z-index: 10; width: 100%; margin-top: auto; }
        .footer-links { margin-bottom: 2rem; }
        .footer-links a { margin: 0 20px; color: #fff; font-weight: 500; transition: 0.3s; text-decoration: none; }
        .footer-links a:hover { color: var(--color-pink); }

        /* --- МОДАЛЬНЫЕ ОКНА --- */
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 2000; justify-content: center; align-items: center; }
        .login-card { background: white; padding: 60px 50px; border-radius: 32px; width: 500px; max-width: 95%; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
        .login-card h2 { font-size: 2rem; color: #333; margin-bottom: 3rem; font-weight: 500; line-height: 1.2; }
        .close-modal { position: absolute; top: 20px; right: 25px; font-size: 32px; cursor: pointer; color: #aaa; transition: 0.3s; }
        .close-modal:hover { color: #555; }
        .modal-form { display: flex; flex-direction: column; gap: 15px; }
        
        .input-group { position: relative; height: 65px; }
        .custom-input { width: 100%; height: 65px; padding: 0 25px; font-family: 'Roboto', sans-serif; font-size: 1.2rem; border: 2px solid #4A90E2; border-radius: 16px; background: #4A90E2; color: transparent; outline: none; transition: all 0.3s ease; cursor: pointer; }
        .custom-label { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); color: white; pointer-events: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); font-size: 1.2rem; font-weight: 400; }
        .custom-input:focus, .custom-input.filled { background: white; border-color: #4A90E2; color: var(--color-text-dark); cursor: text; }
        .custom-input:focus ~ .custom-label, .custom-input.filled ~ .custom-label { top: 0; transform: translateY(-50%); background: white; color: #4A90E2; font-size: 1rem; padding: 0 10px; left: 15px; }
        .login-btn { width: 100%; height: 65px; border-radius: 12px; background: linear-gradient(90deg, #4c66b8, #e8a5c9); color: white; font-size: 1.2rem; font-weight: 500; border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(76, 102, 184, 0.3); margin-top: 10px; }
        .login-btn:hover { opacity: 0.85; }
        .hidden { display: none; opacity: 0; }
        .fade-in { animation: fadeIn 0.4s ease forwards; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        /* --- СТИЛИ ДЛЯ ВАЛИДАЦИИ И ОШИБОК --- */
/* Красная обводка при ошибке */
.input-error {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.2);
}

/* Текст ошибки под полем */
.error-text {
    color: #ff4d4d;
    font-size: 0.8rem;
    position: absolute;
    display: none; /* Скрыт по умолчанию */
    text-align: left;
    pointer-events: none;
}

/* Позиционирование ошибки в CTA форме (на главной странице) */
.simple-form .input-wrapper {
    position: relative;
    display: inline-block;
}
.simple-form .error-text {
    bottom: -22px;
    left: 20px;
    width: 100%;
}

/* Позиционирование ошибки в модальных окнах */
.modal-form .input-group {
    margin-bottom: 15px; /* Добавляем немного места снизу для текста ошибки */
}
.modal-form .error-text {
    bottom: -20px;
    left: 25px;
}

/* Настройка полупрозрачного плейсхолдера в модальных окнах */
.custom-input::placeholder {
    color: transparent; /* Скрыт, пока поле не активно */
    transition: color 0.3s ease;
}
.custom-input:focus::placeholder {
    color: rgba(0, 0, 0, 0.3); /* Появляется полупрозрачным при клике */
}
.success-icon svg {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- СТИЛИ ДЛЯ НОВОЙ ФОРМЫ БРОНИРОВАНИЯ ОТЕЛЯ --- */
.new-booking-form { 
    display: flex; 
    flex-direction: column; 
    gap: 25px; /* Увеличили отступ, чтобы лейблы не перекрывали друг друга */
    text-align: left; 
    margin-top: 15px;
}

.outline-input-wrapper { 
    position: relative; 
    width: 100%; 
    height: 60px; /* Фиксированная высота обязательна */
}

.dates-row {
    display: flex;
    gap: 15px;
}

.outline-input {
    width: 100%;
    padding: 16px 15px;
    font-family: 'Roboto', sans-serif; /* Жестко задаем шрифт */
    font-size: 1.1rem;
    color: #333;
    background-color: transparent;
    border: 2px solid #3898D4; /* Голубая обводка по умолчанию */
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

textarea.outline-input {
    resize: vertical;
    min-height: 80px;
}

.outline-input::placeholder {
    color: transparent;
}

/* Плавающий текст */
.outline-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white; /* Важно: белый фон, чтобы перекрывать рамку */
    padding: 0 6px;
    color: #7A8C99;
    font-family: 'Roboto', sans-serif; /* Жестко задаем шрифт для лейбла */
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease-out;
    border-radius: 4px;
}

/* Для textarea позиционируем лейбл по-другому */
.textarea-wrapper .outline-label {
    top: 24px; 
}

/* АНИМАЦИЯ: Поле в фокусе, заполнено или это дата (type="date") */
.outline-input:focus, .outline-input:not(:placeholder-shown),
.outline-input[type="date"], select.outline-input {
    border-color: #3898D4;
    border-width: 2px;
    padding: 15px 14px; /* Компенсация толщины border */
}

/* АНИМАЦИЯ: срабатывает при фокусе, вводе ИЛИ выборе из селекта (через :valid) */
.outline-input:focus, 
.outline-input:not(:placeholder-shown),
.outline-input[type="date"], 
select.outline-input:focus, 
select.outline-input:valid {
    border-color: #4da1e8; /* Синий цвет при фокусе/заполнении */
    box-shadow: 0 0 0 3px rgba(77, 161, 232, 0.1); /* Легкое свечение */
}

/* Поднимаем плавающий лейбл */
.outline-input:focus ~ .outline-label,
.outline-input:not(:placeholder-shown) ~ .outline-label,
.outline-input[type="date"] ~ .outline-label, 
select.outline-input:focus ~ .outline-label, 
select.outline-input:valid ~ .outline-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #4da1e8;
    background: linear-gradient(180deg, #eaf4fb 50%, #ffffff 50%);
}

/* Поднимаем лейбл */
.outline-input:focus ~ .outline-label,
.outline-input:not(:placeholder-shown) ~ .outline-label,
.outline-input[type="date"] ~ .outline-label, select.outline-input ~ .outline-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #3898D4;
}

.textarea-wrapper .outline-input:focus ~ .outline-label,
.textarea-wrapper .outline-input:not(:placeholder-shown) ~ .outline-label {
    top: 0;
    background: linear-gradient(180deg, #eaf4fb 50%, #ffffff 50%);
}

/* Иконки календаря */
.date-input {
    padding-right: 40px;
}
.calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    fill: #9CA8B4;
    pointer-events: none;
    transition: 0.3s;
}
.outline-input:focus ~ .calendar-icon {
    fill: #3898D4;
}

/* Обновим шрифт и на кнопке для идеального совпадения */
.btn-submit-hotel {
    margin-top: 35px;
    width: 100%;
    padding: 16px;
    background: var(--gradient-main); 
    color: white;
    font-family: 'Roboto', sans-serif; /* Фирменный шрифт */
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: 16px; 
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(42, 122, 195, 0.3);
    transition: 0.2s ease;
}

.btn-submit-hotel:hover {
    transform: translateY(-2px); /* Кнопка слегка приподнимается при наведении */
    box-shadow: 0 12px 25px rgba(74, 144, 226, 0.35);
}

.form-footer {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #888;
}

.form-footer a {
    color: #888;
    text-decoration: underline;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: #3898D4;
}
