/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/*  ----------------ОБЩЕЕ-----------------*/
p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
.post-content p, .brxe-text p {
    margin-bottom: 1em;
}
/* Иконки-ссылки: убираем строчный зазор обёртки, выравниваем как кнопки */
.bricks-link-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/*  ----------------ФОРМЫ Чекбокс -----------------*/
.form-group:has(.privacy-consent) {
    margin-top: 8px;
}
.form-group:has(.privacy-consent) ul.options-wrapper li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.form-group:has(.privacy-consent) input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #16a34a;
}
.privacy-consent {
    display: block;
    font-size: clamp(12px, 10.96px + 0.29vw, 16px);
    line-height: 1.2em;
    margin-top: 4px;
}
.privacy-consent a {
    color: var(--color-accent);
    text-decoration: underline;
}
.brxe-form .success,.form-group-error-message{
    margin-top: 16px;
    }
.brxe-form {
    display: flex;
    flex-direction: column;
}
.brxe-form .form-group { order: 1; }
.brxe-form .submit-button-wrapper { order: 2; }
.brxe-form .form-group:has([name="privacy_consent[]"]) {
    order: 3;
}
.brxe-form .message {
    order: 999;
    margin-top: 16px;
}
form.brxe-form .submit-button-wrapper {
    padding-top: var(--fs-small)  !important;
}

/* === Стили для хлебных крошек Yoast SEO === */
.wpseo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-small); /* 13-15px, адаптивно */
    line-height: 1.4;
    color: var(--color-middle-40); /* #69738c - нейтральный серый */
}
.wpseo-breadcrumb a {
    color: var(--color-middle-40);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.wpseo-breadcrumb a:hover {
    color: var(--color-accent);
}
.wpseo-breadcrumb span:not(:has(a)):not(.breadcrumb_last) {
    color: var(--color-border);
    user-select: none;
    margin: 0 3px;
}
.wpseo-breadcrumb .breadcrumb_last {
    color: var(--color-dark);
    font-weight: 600;
    cursor: default;
}
.wpseo-breadcrumb .breadcrumb_last strong {
    font-weight: inherit;
}

/*  ----------------ФОРМЫ Радиокнопки -----------------*/
.brxe-form input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.brxe-form .form-group ul.options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.brxe-form input[type="radio"] + label {
    display: block;
    padding: 0.4em 0.7em;
    border: 1px solid #e0e0e0;
    border-radius: 0.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    font-size: clamp(12px, 10.96px + 0.29vw, 16px);
}
.brxe-form input[type="radio"]:checked + label {
    border-color: #ff6600;
    background: #fff5eb;
    color: #ff6600;
}
.brxe-form input[type="radio"]:hover + label {
    border-color: #ff8533;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.15);
}
form.brxe-form .options-wrapper > li {
    position: relative;
}
form.brxe-form .options-wrapper > li > input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
form.brxe-form input[type="radio"]:focus-visible + label {
    outline: 2px solid #ff6600;
    outline-offset: 3px;
}
.brxe-form .consent-checkbox label,
.brxe-form .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    line-height: 1.5;
}
.brxe-form .consent-checkbox input[type="checkbox"],
.brxe-form .consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff6600;
}
.brxe-form .consent-checkbox a,
.brxe-form .consent-label a {
    color: #ff6600;
    text-decoration: underline;
}
.brxe-form .consent-checkbox a:hover,
.brxe-form .consent-label a:hover {
    text-decoration: none;
}

/*  ----------------ФОРМЫ Мультиформа пошаговая -----------------*/
form.brxe-form .quiz-progress {
    display: block;
    width: 100%;
    height: 6px;
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 999px;
    background-color: #F2F2F5;
}
form.brxe-form .quiz-progress-fill {
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background-color: #ff5500;
    transition: width 0.3s ease;
}
form.brxe-form .quiz-step-panel[hidden] {
    display: none !important;
}
form.brxe-form .quiz-step-panel {
    box-sizing: border-box;
}
form.brxe-form .form-group[hidden],
form.brxe-form .submit-button-wrapper[hidden],
form.brxe-form .quiz-navigation [hidden] {
    display: none !important;
}
form.brxe-form .quiz-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}
form.brxe-form .quiz-button {
    cursor: pointer;
    padding-top: 1em;
    padding-right: 1.2em;
    padding-bottom: 1em;
    padding-left: 1.2em;
    border: 0;
    border-radius: var(--radius-btn);
    font: inherit;
    line-height: 1.2;
}
form.brxe-form .quiz-button-next {
    background-color: #ff5500;
    color: #fff;
}
form.brxe-form .quiz-button-back {
    background-color: #F2F2F5;
    color: #222;
}
form.brxe-form {
    display: flex;
    flex-direction: column;
}
form.brxe-form .quiz-step-panel {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}
form.brxe-form .quiz-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    box-sizing: border-box;
}
form.brxe-form .quiz-progress {
    flex-shrink: 0;
}
form.brxe-form .quiz-navigation .quiz-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    box-sizing: border-box;
    margin: 0;
    white-space: nowrap;
}
form.brxe-form .submit-button-wrapper {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    box-sizing: border-box;
}
form.brxe-form .quiz-navigation [hidden],
form.brxe-form .submit-button-wrapper[hidden],
form.brxe-form .quiz-step-panel[hidden] {
    display: none !important;
}
form.brxe-form .quiz-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    box-sizing: border-box;
}
form.brxe-form .quiz-navigation .quiz-button-back {
    margin-right: auto;
}
form.brxe-form .quiz-navigation .submit-button-wrapper {
    display: flex;
    justify-content: flex-end;
    width: auto;
    margin: 0;
    padding: 0;
}
form.brxe-form .quiz-navigation .quiz-button,
form.brxe-form .quiz-navigation .submit-button-wrapper button {
    flex-shrink: 0;
    min-height: 48px;
    margin-top: 0;
    margin-bottom: 0;
}
form.brxe-form .quiz-navigation [hidden],
form.brxe-form .quiz-navigation .submit-button-wrapper[hidden] {
    display: none !important;
}

/*  ----------------Убираем outline только при клике мышью -----------------*/
#brx-header svg:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}
#brx-header svg:focus-visible {
    outline: 2px solid var(--color-border);
    outline-offset: 2px;
}
.brxe-form input:focus,
.brxe-form input:focus-visible,
.brxe-form textarea:focus,
.brxe-form textarea:focus-visible,
.brxe-form select:focus,
.brxe-form select:focus-visible {
     outline: 2px solid var(--color-border) !important;
     transition: all 0.2s ease;
}

/* ==========================================
    СТИЛИ ТОЛЬКО ДЛЯ СТАТЕЙ БЛОГА (Добавить класс post-content для блока вывода контента)
    ========================================== */
.post-content img {
    margin-top: 1.5em;
    margin-bottom:  1.5em;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-block);
    border: 4px solid #fff !important;
}
.post-content h2 {
    margin-top: 0;
    margin-bottom: 1em;
}
.post-content h3 {
    margin-top: 2em;
    margin-bottom: 0.7em;
}
.post-content h4 {
    margin-top: 2em;
    margin-bottom: 0.7em;
}
.post-content ul,
.post-content ol {
    margin-top: 1em;
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.post-content blockquote {
    margin: 0.25em 0;
    padding: 0.25em 40px;
    border-left: 5px solid #ff5500;
    background: #fff;
    border-radius: 10px;
}
.post-content blockquote ul,
.post-content blockquote h3 {
    color: #ff5500 !important;
}
.post-content .a {
    color: #ff5500 !important;
    text-decoration: none !important;
}
.post-content a:hover {
    border-bottom: 1px dashed #ff5500;
}

/*------------------блик на кнопке------------*/
.bricks-button {
    position: relative;
    overflow-x: hidden;
}
.bricks-button .flare {
    position: absolute;
    top: 0;
    height: 100%;
    width: 45px;
    transform: skewX(-45deg); // Наклон
    animation: flareAnimation;
    left: -150%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.4)
    );
    animation: flareAnimation 3s infinite linear;
}
@keyframes flareAnimation {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}
 /*------------------Аккардион с вопросами------------*/
.accordion-content-wrapper p{
    margin-bottom: 0.6em;
}
.accordion-item {
    background-color: var(--color-white);
    border-radius: var(--radius-base) var(--radius-base) var(--radius-base) 0px;
    margin-top: var(--pad-large);
    margin-bottom: 0;
}
.accordion-item::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 45px;
    background-image: url(https://smollteam.ru/Vector.png);
    background-size: cover;
    position: absolute;
    left: -24px;
    bottom: 0px;
}
.accordion-item {
    position: relative;
}
.brx-open .accordion-title-wrapper {
    padding-bottom: var(--pad-small)  !important;
}

/*------------------радиокнопки старые-------------*/
.new_quize .elementor-field-option {
    margin-bottom: 20px;
}
.new_quize .elementor-field-subgroup span {
    align-items: center !important;
    cursor: pointer;
    display: flex !important;
}
.new_quize .elementor-field-option label {
    cursor: pointer;
}
.new_quize .elementor-field-option input[type="radio"] {
    align-items: center;
    -webkit-appearance: none;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    box-shadow: none !important;
    cursor: pointer;
    display: flex !important;
    justify-content: center;
    margin-right: 7px;
    margin-top: 0;
    max-height: 20px;
    max-width: 20px;
    min-height: 20px;
    min-width: 20px;
    outline: none;
    outline: none !important;
    position: relative;
}
.new_quize .elementor-field-option input[type="radio"]:checked {
    border-color: #ff5500 !important;
    background: #ff5500 !important;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.new_quize .elementor-field-option input[type="radio"]:before {
    border-radius: 50%;
    content: "";
    display: block;
    height: 10px;
    width: 10px;
    background: #fff !important;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

@media screen and (max-width: 767px) {
    .accordion-item::before {
        width: 16px;
        height: 29px;
        left: -15px;
    }
.list-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 16px; 16px;
    row-gap: 0px;
    padding: 0;
}

}