/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


/* ============================================
   КАТЕГОРІЇ ПОСТІВ - Загальні стилі
   ============================================ */

ul.post-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

ul.post-categories li a {
    border-radius: 30px;
    padding: 22px 35px;
    background-color: transparent;
    border: 1.5px solid #003371;
    line-height: 1;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #0F0F0F;
    display: block;
    text-align: center;
    transition: all 0.5s ease-in-out;
}

ul.post-categories li a:hover,
ul.post-categories li.active a {
    background-color: #003371;
    color: #fff;
}


/* ============================================
   КАТЕГОРІЇ ПОСТІВ - Головна сторінка
   ============================================ */

.home ul.post-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.home ul.post-categories li {
    width: calc(33% - 2px);
}

.home ul.post-categories li a {
    border-radius: 30px;
    padding: 30px 35px;
    background-color: var(--e-global-color-accent);
    line-height: 1;
    font-size: 24px;
    font-weight: 500;
    text-transform: none;
    color: #fff;
    display: block;
    text-align: center;
}


/* ============================================
   ФОРМА ПОВІДОМЛЕННЯ ПРО ПОМИЛКУ
   ============================================ */

.pomylka-form {
    color: #fff;
}

/* Повідомлення валідації Contact Form 7 */
.wpcf7 form .wpcf7-response-output {
    border: none;
    color: #fff;
    padding: 0;
    margin: 0;
}

/* Кнопка відправки */
.pomylka-form input[type="submit"] {
    background-color: var(--e-global-color-primary);
    color: #FFF;
    min-width: 250px;
    border-color: #fff;
    border-width: 1px;
}

.pomylka-form input[type="submit"]:hover {
    background-color: #fff;
    color: var(--e-global-color-primary);
}

.pomylka-form input[type="submit"]:before {
    content: '';
    background: url(https://web.archive.org/web/20250715050756im_/https://medpomylka.org/wp-content/uploads/2024/10/arrow-up-right-white.svg);
}

/* Контейнер кнопки відправки */
.pomylka-form-submit {
    margin-top: 40px;
}

/* Останній крок форми */
.pomylka-form .pomylka-form__content.last-step input[type="submit"] {
    background-color: #fff;
    color: var(--e-global-color-primary);
}

.pomylka-form-submit p {
    display: flex;
    gap: 4px;
}

/* Анімація іконки при ховері */
.pomylka-form-submit .pomylka-form-submit__img {
    transition: all 0.5s ease-in-out;
}

.pomylka-form-submit:hover .pomylka-form-submit__img {
    transform: rotate(45deg);
}

/* Текстові елементи форми */
.pomylka-form__step-subtitle {
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.pomylka-form h3 {
    color: #fff;
}

.steps-reviews p {
    opacity: 0.8;
    margin-bottom: 50px;
}

.pomylka-form__step-subtitle span {
    color: #718DAF;
}

.pomylka-form__step-title {
    margin: 30px 0;
}

/* Структура контенту форми */
.pomylka-form__content {
    display: flex;
    gap: 100px;
    justify-content: space-between;
    align-items: flex-end;
}

.pomylka-form__content-left {
    max-width: 550px;
    margin-bottom: 40px;
    width: 55%;
}

.pomylka-form__content-right {
    max-width: 550px;
    width: 45%;
    max-height: 430px;
}

.pomylka-form__bottom-img {
    display: none;
    width: 100%;
    margin-bottom: -55px;
    max-width: 60vw !important;
    margin: 30px auto -55px;
}

/* Поля для даних (файл, посилання) */
.pomylka-form__data {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pomylka-form__data-file,
.pomylka-form__data-link {
    width: 100%;
}

.pomylka-form__data .pomylka-form__data-file input[type="file"] {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    width: 100%;
    height: 90px;
    max-height: 15vh;
    color: #fff;
}

.pomylka-form__data .pomylka-form__data-link textarea {
    height: 90px;
    max-height: 15vh;
}

/* Останній крок форми */
.pomylka-form__content.last-step {
    gap: 50px;
    align-items: flex-start;
}

.pomylka-form__content.last-step a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.8;
    display: block;
    margin: 20px 0 0;
}


/* ============================================
   АДАПТИВНІСТЬ
   ============================================ */

/* Великі екрани */
@media (max-width: 1366px) {
    .home ul.post-categories li a {
        font-size: 18px;
    }
}

/* Середні екрани */
@media (max-width: 1200px) {
    .home ul.post-categories li a {
        font-size: 16px;
        padding: 16px 5px;
    }
}

/* Планшети */
@media (max-width: 880px) {
    .home ul.post-categories li {
        width: calc(50% - 2px);
    }
    
    ul.post-categories li {
        width: calc(50% - 2px);
    }
    
    .home ul.post-categories li a {
        font-size: 14px;
        border-radius: 10px;
    }
}

/* Мобільні пристрої */
@media (max-width: 767px) {
    .pomylka-form__content {
        flex-direction: column;
        gap: 20px;
    }
    
    .pomylka-form__content-left {
        max-width: 100%;
        width: 100%;
    }
    
    ul.post-categories li a {
        padding: 16px 25px;
        font-size: 13px;
    }
    
    .pomylka-form__content-right {
        display: none;
    }
	
	.pomylka-form__content.last-step {
    	gap: 0px;
	}
	
	.pomylka-form__content.last-step .pomylka-form__content-right {
        width: 100%;
        display: block;
        max-height: unset;
        max-width: unset;
    }

	.pomylka-form__content.last-step .pomylka-form__content-left {
        margin-bottom: 0;
	}
	
	.pomylka-form__content.last-step .pomylka-form__data .pomylka-form__data-file input[type="file"] {
    	height: auto;
	}
	

	
    .pomylka-form__bottom-img {
        display: block;
    }
}