:root {
    --primary-color: #00796b;
    --primary-color-light: #b2dfdb;
    --primary-color-dark: #004d40;
    --accent-color: #ffc107;
    --text-color-dark: #212121;
    --text-color-light: #757575;
    --background-color: #f7f9fc;
    --surface-color: #ffffff;
    --border-color: #e0e0e0;
    --error-color: #d32f2f;
    --nav-btn-color: #e9e9e9;
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Roboto', sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    background: var(--background-color);
    color: var(--text-color-dark);
    font-family: var(--font-family-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-family: var(--font-family-headings);
    font-weight: 600;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 460px) {
    .wizard-content-1 .steps {
        border-radius: 0px;
    }

    .wizard-content-1 {
        padding: 0px;
    }

    .wrapper {
        padding: 0px;
    }

    .step-inner-content {
        border-radius: 0px;
    }
}

@media screen and (max-width: 1300px) {
    .wizard-content-1 .steps {
        position: static;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin-bottom: 30px;
    }
}
.wizard-content-1 .steps {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/*текст заголовка*/

@media screen and (max-width: 580px) {
    .js-active .step-btn-icon-text .step-btn-text h2 {
        color: var(--primary-color);
    }
}
.wizard-content-1 .steps li.js-active.current .step-btn-icon-text .step-btn-text h2 {
    color: var(--primary-color);
}
@media screen and (max-width: 1300px) {
    .step-btn-icon-text .step-btn-text h2 {
        font-size: 16px;
    }
}
.step-btn-icon-text .step-btn-text h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color-dark);
    line-height: 1.2;
    text-transform: none;
}
.step-btn-icon-text:after {
    background-color: var(--primary-color-dark);
}

/* прогресс бар */

.step__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}
@media screen and (max-width: 1300px) {
    .step__container {
        flex-direction: column;
        gap: 15px;
    }
}
.wizard-progress__mobile {
    display: none;
}
.wizard-progress {
    flex-grow: 1;
    max-width: 300px;
}
@media screen and (max-width: 1300px) {
    .wizard-progress__mobile {
        display: block;
        max-width: 100%;
        position: static !important;
        border: none !important;
        padding: 0 !important;
    }
}
.wizard-progress span {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color-light);
}
.wizard-progress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--border-color);
}
.wizard-progress .progress .progress-bar {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/*текст*/
.step-no {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-light);
}
.wizard-inner-box .inner-title {
    text-align: left;
    margin-bottom: 40px;
}
@media screen and (max-width: 768px) {
    .wizard-inner-box .inner-title h2 {
        font-size: 28px;
    }
}
@media (max-width: 460px) {
    .wizard-inner-box .inner-title h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .wizard-inner-box .inner-title h2 {
        font-size: 18px !important;
        font-weight: 500 !important;
        font-style: normal;
        font-stretch: normal;
        font-family: var(--font-family-headings);
        line-height: 1.33;
        letter-spacing: normal;
        text-align: left;
        color: var(--text-color-dark);
    }
}

/* картинка */
.wizard-inner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wizard-inner-box .need-job-slide {
    padding: 0;
    margin: 0;
}
@media screen and (max-width: 768px) {
    .owl-carousel .owl-stage {
        justify-content: center;
    }
}
.owl-carousel .owl-stage {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}
.owl-carousel .owl-item {
    width: auto !important;
    flex-shrink: 0;
}
.wizard-inner-box .need-job-icon-text .j-checkbox {
    display: none;
}
.wizard-inner-box .j-checkbox:checked ~ .need-job-text-inner {
    border-color: var(--primary-color);
    background-color: #f0faf9;
    box-shadow: var(--shadow-md);
}
.wizard-inner-box .need-job-icon-text .need-job-text-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.wizard-inner-box .need-job-icon-text .need-job-text-inner .checkbox-circle-mark {
    position: absolute;
    top: 15px;
    right: 15px;
}
.wizard-inner-box .j-checkbox:checked ~ .need-job-text-inner .checkbox-circle-mark::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.wizard-inner-box .need-job-icon-text .need-job-text-inner .checkbox-circle-mark::before {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--surface-color);
    display: none;
    transition: var(--transition-speed);
}
.wizard-inner-box .j-checkbox:checked ~ .need-job-text-inner .checkbox-circle-mark::after {
    transform: translate(-50%, -50%) scale(1);
}
.wizard-inner-box .need-job-icon-text .need-job-text-inner .checkbox-circle-mark::after {
    content: '✔';
    font-size: 16px;
    color: var(--surface-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-speed);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.wizard-inner-box .need-job-icon-text .need-job-text-inner .need-job-icon {
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
}
.wizard-inner-box .j-checkbox:checked ~ .need-job-text-inner .need-job-icon img {
    filter: grayscale(0%) opacity(100%);
}
.wizard-inner-box .need-job-icon-text .need-job-text-inner .need-job-icon img {
    filter: grayscale(50%) opacity(70%);
    transition: var(--transition-speed);
}
.wizard-inner-box .j-checkbox:checked ~ .need-job-text-inner .need-job-text .need-job-title {
    color: var(--primary-color-dark);
}
.wizard-inner-box .need-job-icon-text .need-job-text-inner .need-job-text .need-job-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color-dark);
    line-height: 1.4;
    text-transform: none;
}
@media screen and (max-width: 580px) {
    .owl-carousel .owl-stage {
        display: flex;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .wizard-inner-box .need-job-icon-text .need-job-text-inner {
        height: 150px;
        width: 150px;
    }
    .wizard-inner-box .need-job-icon-text .need-job-text-inner .need-job-icon {
        margin: 0px 0px 15px 0px;
        width: 70px;
        height: 70px;
    }
}
@media (min-width: 580px) and (max-width: 746px) {
    .owl-carousel .owl-stage {
        display: flex;
        gap: 15px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .wizard-inner-box .need-job-icon-text .need-job-text-inner {
        height: 180px;
        width: 180px;
    }
    .wizard-inner-box .need-job-icon-text .need-job-text-inner .need-job-icon {
        margin: 0px 0px 15px 0px;
        width: 80px;
        height: 80px;
    }
}
@media screen and (min-width: 747px) {
    .owl-carousel .owl-stage {
        display: flex;
        gap: 20px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .wizard-inner-box .need-job-icon-text .need-job-text-inner {
        height: 280px;
        width: 280px;
    }
    .wizard-inner-box .need-job-icon-text .need-job-text-inner .need-job-icon {
        margin: 0 auto 25px;
        width: 153px;
        height: 153px;
    }
}

/*стрелки пагинации*/
.wizard-inner-box .need-job-slide .owl-nav .owl-next,
.wizard-inner-box .need-job-slide .owl-nav .owl-prev {
    position: static;
    display: inline-block;
    height: 40px;
    width: 40px;
    line-height: 40px;
    transform: translateY(0);
}
@media screen and (max-width: 480px) {
    .owl-nav {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

.owl-prev,
.owl-next {
    background-color: var(--nav-btn-color);
}
.owl-prev.is-active-touch,
.owl-next.is-active-touch,
.owl-prev.is-active-mouse,
.owl-next.is-active-mouse {
    background-color: var(--primary-color-dark);
    color: var(--surface-color);
}

/*кнопка*/

@media screen and (max-width: 768px) {
    .actions_container {
        flex-direction: column;
        gap: 15px;
    }
}
.actions_container {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.actions {
    margin-right: 0;
    float: none;
}
@media screen and (max-width: 768px) {
    .actions ul {
        width: 100%;
        flex-direction: column-reverse;
    }
}
.actions ul {
    display: flex;
    gap: 15px;
    flex-direction: row;
    flex-wrap: nowrap;
}
@media screen and (max-width: 768px) {
    .actions li {
        width: 100%;
        box-sizing: border-box;
    }
}
.actions li {
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    height: 50px;
    line-height: 50px;
    text-align: center;
    transition: var(--transition-speed);
    text-transform: none;
    background-color: var(--primary-color);
}
.actions li span,
.actions li button {
    color: inherit !important;
    background-color: transparent;
    border: none;
    display: block;
    width: 100%;
}
.js-btn-next, .js-btn-prev, .js-btn-submit {
    padding: 0 30px !important;
}

/*поля формы*/
.details-form-area .has-float-label .form-control:focus {
    border: 2px solid var(--primary-color-dark);
}
.details-form-area .has-float-label label {
    background: var(--primary-color);
}

@media (min-width: 526px) and (max-width: 1300px) {
    .step-inner-content {
        background: var(--surface-color);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        margin-left: 0;
        margin-top: 0;
    }
    .step-no {
        margin-top: 10px;
    }
}

@media (max-width: 580px) {
    .step-inner-content {
        flex: 1;
        background: var(--surface-color);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        margin-left: 0;
        width: auto;
        margin-top: 0;
    }
}

/* ==========================================================================
Typographic Helper Classes
========================================================================== */
.wizard-inner-box .inner-title h1 {
    font-size: 30px;
}

.wizard-inner-box .inner-title h2 {
    font-size: 30px;
}
.question-text {
    display: block;
    margin-top: 20px;
    font-size: 25px;
    line-height: 1.5;
}
.instruction-heading {
    display: block;
    margin-top: 25px;
    font-size: 18px; /* Базовий розмір */
    line-height: 1.4;
}
.text-note {
    display: block;
    margin-top: 8px;
    font-size: 20px; /* Базовий розмір */
    line-height: 1.6;
}

/* ==========================================================================
Responsive Typography Example
========================================================================== */
@media (min-width: 581px) and (max-width: 1300px) {
    .wizard-inner-box .inner-title h1 {
        font-size: 30px;
    }

    .wizard-inner-box .inner-title h2 {
        font-size: 25px;
    }

    .question-text {
        font-size: 30px;
    }

    .instruction-heading {
        font-size: 17px;
    }

    .text-note {
        font-size: 18px;
    }
}
@media (max-width: 580px) {
    .wizard-inner-box .inner-title h1 {
        font-size: 20px;
    }

    .wizard-inner-box .inner-title h2 {
        font-size: 18px;
    }

    .question-text {
        font-size: 20px;
    }

    .instruction-heading {
        font-size: 17px;
    }

    .text-note {
        font-size: 17px;
    }
}

@media screen and (min-width: 1301px) {
    .step-inner-content {
        padding: 20px 60px 60px 60px;
    }
}

.step-inner-content {
    border-radius: var(--border-radius);
}

.step-inner-content .bg-shape {
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
}

.wizard-content-1 .steps .bg-shape {
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
}

@media screen and (min-width: 481px) {
    .owl-nav {
        display: flex;
        justify-content: center;
        gap: 50px;
        padding-top: 30px;
    }
}

#preferred-hours-slide .owl-stage-outer .owl-stage {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
}

.wizard-content-1 .steps li.js-active.current .step-btn-icon-text .step-btn-icon:after {
    border: 5px solid var(--primary-color);
    display: block;
}

@media screen and (min-width: 1301px) {
    .wizard-inner-box .need-job-icon-text .need-job-text-inner .need-job-text .need-job-title {
        font-size: 18px;
    }
    .wizard-progress {
        max-width: none;
    }
    .wizard-progress span {
        font-size: 16px;
    }
}

/* ==========================================================================
Custom Popup
========================================================================== */
.custom-popup-content button {
    background-color: var(--primary-color) !important;
}
.thank-content .thank-text p span {
    color: var(--primary-color) !important;
}

/* Стили для адаптивного видео */
.video-container {
    position: relative;
    width: 100%;
    /* Высота видео 848, ширина 464. Соотношение сторон: 848 / 464 ≈ 1.827.
       Для адаптивности, используем padding-bottom.
       (Высота / Ширина) * 100% = (848 / 464) * 100% = 182.7%
    */
    padding-bottom: 182.7%; /* Сохраняет соотношение сторон 464x848 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px; /* Отступ от квиза */
    border-radius: var(--border-radius); /* Используем ваш borderRadius */
    box-shadow: var(--shadow-md); /* Используем вашу тень */
}

.responsive-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Это гарантирует, что видео покроет весь контейнер, обрезая лишнее */
    border-radius: var(--border-radius);
}

/* Скрываем видео на ПК и показываем только на мобильных, если это необходимо */
/* Предполагаем, что для ПК вы его не хотите показывать или хотите меньшего размера */
@media screen and (min-width: 581px) { /* Или другой брейкпоинт для ПК */
    .video-container {
        display: none; /* Скрываем видео на больших экранах */
    }
}

/* Показываем видео на мобильных устройствах */
@media screen and (max-width: 580px) { /* Или другой брейкпоинт для мобильных */
    .video-container {
        display: block; /* Показываем видео на мобильных */
        /* Возможно, потребуется центрирование, если родительский контейнер позволяет */
        margin-left: auto;
        margin-right: auto;
        /* Ограничим максимальную ширину на планшетах, если 464px все еще слишком много */
        max-width: 464px; 
    }
}

@media (max-width: 580px) {
    .mobile-header {
        display: none !important;
    }
}
