body {
    margin: 0 auto;
    max-width: 1920px;
    font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100, "YTLC" 500;
    color: #6F6F6F;
    line-height: 1.66;

    a {
        color: #3d3d3d;
    }
}

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

.btn,
button,
.button {
    background-color: #b8df12;
    color: #3d3d3d;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    display: inline-block;
    font-weight: 700;
    padding: 1em 1.8em;
    transition: .2s ease;
    text-transform: uppercase;
    font-size: inherit;
    line-height: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;

    &::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -75%;
        width: 50%;
        background: linear-gradient(to right, #FFFFFF00 0%, #FFFFFF4C 100%);
        transform: skewX(-20deg);
    }

    &:hover {
        background: #000;
        color: #b8df12;

        &::after {
            animation: left-in .4s .3s linear;
        }
    }

    &[disabled] {
        background: #000;
        color: #b8df12;
        cursor: not-allowed;
        opacity: .5;
    }

    &.btn-danger {
        background: #dc3545;
        color: white;
    }

    &.btn-secondary {

    }
}

@keyframes left-in {
    from {
        left: -75%;
    }
    to {
        left: 125%;
    }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: .5rem;
}

.h1,
h1 {
    font-size: clamp(2.25rem, 2.25rem + ((1vw - 0.25rem) * 2.609), 3.75rem);
}

.h2,
h2 {
    font-size: clamp(1.5rem, 1.5rem + ((1vw - 0.25rem) * 1.304), 2.25rem);
}

.h3,
h3 {
    font-size: clamp(1.4rem, 1.4rem + ((1vw - 0.25rem) * 1.043), 2rem);
}

.h4,
h4 {
    font-size: clamp(1.125rem, 1.125rem + ((1vw - 0.25rem) * 0.652), 1.5rem);
}

.h5,
h5 {
    font-size: clamp(1.0625rem, 1.063rem + ((1vw - 0.25rem) * 0.325), 1.25rem);
}

.h6,
h6 {
    font-size: clamp(1rem, 1rem + ((1vw - 0.25rem) * 0.217), 1.125rem);
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 1530px;

    @media (max-width: 1639px) {
        max-width: 1240px;
    }

    @media (max-width: 1259px) {
        max-width: 960px;
    }

    @media (max-width: 991px) {
        max-width: 720px;
    }

    @media (max-width: 767px) {
        max-width: 540px;
    }

    @media (max-width: 575px) {
        max-width: 100%;
    }
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 6rem;
    box-shadow: 0 0 15px 0 rgb(29 29 29 / 10%);
    display: flex;
    align-items: center;
    background: #fff;
    z-index: 1;

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        transition: .2s;
    }

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .menu {
            margin: 0;
            padding: 0;
            column-gap: 1.5625rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            list-style: none;
            row-gap: .9375rem;
            text-transform: none;

            .menu-link {
                color: #6f6f6f;
                text-decoration: none;
                transition: .2s;

                &:hover,
                &.menu-link-current {
                    color: #b8df12;
                }
            }

            .menu-item {
                padding: 0;
                font-size: 1rem;
                position: relative;

                &:hover {
                    .menu-submenu-container {
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }

            &.menu-level-1 > .menu-item {
                padding: .3125rem 0;

                &.menu-item-has-children {
                    position: relative;

                    &::after {
                        background-image: url("../img/caret-m5JVOlT.svg");
                        background-position: 50% 50%;
                        background-repeat: no-repeat;
                        content: "";
                        display: inline-block;
                        height: .625rem;
                        margin-left: .25rem;
                        margin-top: -2px;
                        vertical-align: middle;
                        width: .625rem
                    }
                }

                > .menu-link {
                    font-weight: 700;
                    padding: .3125rem 0;
                    text-transform: uppercase
                }
            }

            &.menu-level-2 {
                background: #fff;
                flex-direction: column;
                font-weight: 500;
                min-width: 200px;
                padding: .625rem;
                white-space: nowrap;
            }

            .menu-submenu-container {
                align-items: center;
                background: #fff;
                box-shadow: 0 0.25rem 0.25rem -0.0625rem #0c0c0d1a,
                0 0.25rem 0.25rem -0.0625rem #0c0c0d0d;
                display: inline-flex;
                flex-direction: column;
                gap: 10px;
                justify-content: center;
                left: calc(-2rem - 8px);
                opacity: 0;
                padding: 1.5rem 2rem;
                position: absolute;
                top: 40px;
                visibility: hidden;
                z-index: 1000
            }
        }
    }

    .hamburger {
        padding: 1rem;
        display: inline-block;
        cursor: pointer;
        transition-property: opacity, filter;
        transition-duration: 0.15s;
        transition-timing-function: linear;
        font: inherit;
        color: inherit;
        text-transform: none;
        background-color: transparent;
        border: 0;
        margin: 0;
        overflow: visible;

        .hamburger-box {
            width: 40px;
            height: 24px;
            display: inline-block;
            position: relative;
        }

        .hamburger-inner {
            display: block;
            top: 2px;
            margin-top: -2px;

            &::before,
            &::after {
                content: "";
                display: block;
            }

            &::before {
                top: 10px;
                transition-property: transform, opacity;
                transition-timing-function: ease;
                transition-duration: 0.15s;
            }

            &::after {
                top: 20px;
                bottom: -10px;
            }
        }

        .hamburger-inner,
        .hamburger-inner::before,
        .hamburger-inner::after {
            width: 40px;
            height: 4px;
            background-color: #000;
            border-radius: 4px;
            position: absolute;
            transition-property: transform;
            transition-duration: 0.15s;
            transition-timing-function: ease;
        }
    }

    @media (min-width: 1260px) {
        .hamburger {
            display: none;
        }
    }

    @media (max-width: 1259px) {
        height: 4.375rem;

        nav {
            display: none;
        }

        &.is-open {
            &::after {
                background-color: rgb(0 0 0 / 40%);
            }

            .hamburger {
                .hamburger-inner {
                    transform: translate3d(0, 10px, 0) rotate(45deg);

                    &::before {
                        transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
                        opacity: 0;
                    }

                    &::after {
                        transform: translate3d(0, -20px, 0) rotate(-90deg);
                    }
                }
            }
        }
    }

    @media (max-width: 575px) {
        .socials .search,
        .socials .social {
            display: none;
        }
    }
}

#mobile-menu {
    display: none;
    position: absolute;
    inset: 4.375rem 0 0 0;
    background-color: #fff;
    z-index: 1;
    translate: 0 100%;
    opacity: 0;
    transition: .3s ease-in-out;
    overflow-x: hidden;
    visibility: hidden;

    .mobile-menu-container {
        width: 200%;
        display: flex;
        transition: .5s ease-in-out;
    }

    &.is-sub-menu-open .mobile-menu-container {
        translate: -50% 0;
    }

    .menu,
    .menu-submenu {
        width: 50%;
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(0 0 0 / 15%);

        .menu-title,
        .menu-item {
            button {
                width: 50px;
                border-radius: 0;
                border: 1px solid rgba(0 0 0 / 15%);
                background-color: transparent;
                cursor: pointer;
            }
        }

        .menu-title {
            color: rgb(0 0 0 / 40%);
            display: flex;
            min-height: 50px;

            span {
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                border-bottom: 1px solid rgba(0 0 0 / 15%);
            }

            button {
                border-width: 0 1px 1px 0;
            }
        }

        .menu-item {
            display: flex;

            a {
                padding: 14px 20px;
                flex: 1;
                border-bottom: 1px solid rgba(0 0 0 / 15%);
                text-decoration: none;
                color: rgb(0 0 0 / 80%);
            }

            button {
                border-width: 0 0 1px 1px;
            }
        }
    }

    .menu-submenu {
        &:not(.is-sub-menu-open) {
            animation: display-hidden .4s forwards;
        }
    }

    @media (max-width: 1259px) {
        display: block;
    }
}

@keyframes display-hidden {
    100% {
        display: none;
    }
}

header.is-open + #mobile-menu {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
}

.socials {
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;

    .search {
        border: 0;
        border-radius: .5rem;
        color: #6f6f6f;
        display: inline-block;
        font-weight: 700;
        padding: 1em 1.8em;
        text-decoration: none;
        background-color: transparent;
        margin-right: -1rem;
    }

    .social {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        background-color: #b8df12;
        text-decoration: unset;
        margin: 0;
        padding: 6px;
        border-radius: 50%;
        transition: .1s ease;

        &:hover {
            transform: scale(1.1);
        }
    }
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 1rem;
    padding-bottom: 1rem;

    @media (max-width: 1259px) {
        display: none;
    }

    .crumb {
        display: flex;
        gap: 10px;

        a,
        span {
            font-size: 0.875rem;
            color: #6f6f6f;
            display: inline-block;
            max-width: 300px;
            overflow: hidden;
            text-decoration: none;
            text-overflow: ellipsis;
            transition: .2s ease;
            white-space: nowrap;

            &:hover {
                text-decoration: underline;
            }
        }

        &:not(:last-child)::after {
            content: '>';
            display: inline-block;
            font-size: 0.875rem;
            color: #6f6f6f;
        }
    }
}

.banner {
    align-items: center;
    background-image: url("../img/header-bg-pattern-Kc1ZGog.webp");
    background-position: 130% 50%;
    background-repeat: no-repeat;
    background-size: 65% auto;
    color: #fff;
    display: flex;
    min-height: 18.75rem;
    padding: 3rem 0;
    background-color: #b8df12;

    h1 {
        margin: 0;
    }
}

.trainings {
    background-color: #F6F6F6;
    padding: 2rem 0;

    .filters {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        gap: 2rem;

        @media (max-width: 1259px) {
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
        }

        .section {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            width: max-content;

            @media (max-width: 1259px) {
                display: grid;
                grid-template-columns: repeat(2, auto);
            }

            @media (max-width: 450px) {
                display: grid;
                grid-template-columns: auto;
            }

            label {
                white-space: nowrap;
            }

            select {
                padding: 15px 35px 15px 20px;
                background-color: #fff;
                color: #6f6f6f;
                line-height: 1.25rem;
                transition: all .3s ease;
                width: 100%;
                background-size: 15px 14px;
                background-image: url("../img/caret-m5JVOlT.svg");
                background-position: right 12px top 50%;
                background-repeat: no-repeat;
                border: 1px solid #f6f6f6;
                border-radius: .5rem;
                font-size: 1rem;
                font-style: normal;
                font-weight: 500;
                min-width: 16rem;
                -webkit-appearance: none;
                appearance: none
            }
        }
    }

    .training {
        display: flex;
        flex-direction: column;
        border: 1px solid #d2d2d2;
        padding: 2rem;
        background-color: #fff;
        transition: .2s ease;
        gap: 1.5rem;
        color: #6f6f6f;
        text-decoration: none;
        align-self: stretch;
        height: 100%;

        &:hover {
            border-color: #b8df12;
            box-shadow: 0 1rem 2rem -0.25rem #0c0c0d1a,
            0 0.25rem 0.25rem -0.25rem #0c0c0d0d;

            .training-footer button {
                background: #000;
                color: #b8df12;
            }
        }

        .h6 {
            text-transform: uppercase;
        }

        .training-image {
            aspect-ratio: 1/1;
            object-fit: cover;
        }

        .training-title {
            flex: 1;
            height: 100%;
        }

        .training-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }
    }
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgb(0 0 0 / 10%);
    width: 100%;
}

.training-params {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .with-icon {
        display: flex;
        align-items: flex-start;
        gap: 6px;

        .icon {
            flex: 0 0 24px;
            vertical-align: middle;
            display: inline-block;
        }

        a,
        span {
            font-weight: 500;
            line-height: 166%;
        }
    }
}

.shop-training {
    .container {
        max-width: 1100px;
    }

    .product-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .price {
        display: flex;
        gap: 10px;
        align-items: center;

        small {
            opacity: .75;
            margin-bottom: 0;
        }
    }

    .product-details {
        background-color: #fbfbfb;
        padding: 25px 30px;
        display: flex;
        flex-direction: column;
    }
}

.company-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    p {
        margin: 0;
    }

    .form-group:not(.form-check) {
        display: flex;
        flex-direction: column;
        gap: 9px;

        label.required::after {
            content: ' *';
            color: #dc3545;
        }

        input {
            background: #F1F1F1;
            border: none;
            width: 100%;
            height: 3.125rem;
            resize: none;
            padding: 0.625rem;

            &:focus {
                background-color: #fff;
                outline: #2FB5D2 solid 0.1875rem;
            }
        }
    }

    .form-widget {
        display: flex;
        align-items: center;

        input {
            flex: 1;
        }

        button {
            padding-top: 0;
            padding-bottom: 0;
            height: 50px;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            white-space: nowrap;
        }
    }

    .form-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
    }

    .form-errors {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            color: #dc3545;
        }
    }
}

footer {
    padding-top: 4rem;
    background-color: #6f6f6f;
    color: #ffffff;

    a {
        color: #ffffff;
        text-decoration: unset;
        transition: .2s ease;

        &:hover {
            color: #b8df12;
        }
    }

    .footer-grid {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(4, 1fr);

        @media (max-width: 991px) {
            grid-template:
                    "a a"
                    "b c"
                    "d d";

            .footer-identity {
                grid-area: a;
            }
        }

        @media (max-width: 575px) {
            grid-template:
                    "a"
                    "b"
                    "c"
                    "d";

            .footer-identity {
                grid-area: a;
            }
        }

        .footer-identity {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 20px;
            height: 100%;
        }
    }

    .footer-menu {
        display: flex;
        gap: 20px;
        flex-direction: column;

        > span,
        > a {
            text-transform: uppercase;
        }

        ul {
            padding: 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        section {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
    }

    .footer-bottom {
        margin-top: 2rem;
        padding: 2rem 0;
        border-top: 1px solid #a4a4a4;
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: space-between;

        .links {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .copyright {
            font-size: 1rem;
            color: #ffffff;
        }
    }
}

section.cart {
    .container {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .participant-list {
        .participant-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            background: #f9f9f9;
        }

        .participant-info {
            flex: 1;
        }

        .participant-name {
            font-weight: 600;
        }

        .participant-email,
        .participant-phone {
            color: #666;
            font-size: 0.9rem;
        }
    }

    .cart-summary,
    .add-participant-form {
        background-color: #fbfbfb;
        padding: 25px 30px;
        display: flex;
        flex-direction: column;
    }

    .cart-summary-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .cart-summary-total {
        font-size: 1.25rem;
        font-weight: bold;
        border-top: 2px solid #ddd;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    .empty-cart {
        text-align: center;
        padding: 3rem;
        color: #666;
    }
}

section.checkout {
    .container {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .checkout-layout {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
    }

    @media (max-width: 768px) {
        .checkout-layout {
            grid-template-columns: 1fr;
        }
    }

    .step-indicator {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .step {
        padding: 0.5rem 1rem;
        border-radius: 4px;
        background: #e9ecef;
        color: #666;
    }

    .step.active {
        background: #b8df12;
        color: #6f6f6f;
    }

    .card {
        background-color: #fbfbfb;
        padding: 25px 30px;
        display: flex;
        flex-direction: column;
    }

    .gus-error {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }

    .order-summary {
        background: #f5f5f5;
        padding: 1.5rem;
        border-radius: 8px;
        position: sticky;
        top: 1rem;
    }

    .order-summary h3 {
        margin-bottom: 1rem;
    }

    .order-summary-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #ddd;
    }

    .order-summary-row:last-of-type {
        border-bottom: none;
    }

    .order-summary-total {
        font-size: 1.25rem;
        font-weight: bold;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid #ddd;
    }

    .participant-mini {
        font-size: 0.9rem;
        color: #666;
    }

    .confirm-section {
        background: #fff;
        padding: 1.5rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }

    .confirm-section h3 {
        margin-bottom: 1rem;
        color: #333;
    }

    .confirm-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

    .confirm-row:last-child {
        border-bottom: none;
    }

    .confirm-label {
        color: #666;
    }

    .participant-list-confirm {
        margin-top: 1rem;
    }

    .participant-confirm {
        padding: 0.75rem;
        background: white;
        border-radius: 4px;
        margin-bottom: 0.5rem;
        border: 1px solid #ddd;
    }

    .confirm-total {
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
        padding: 1.5rem;
        background: #b8df12;
        color: #3d3d3d;
        border-radius: 8px;
        margin: 1.5rem 0;
    }
}

/* Collapsible component */
.collapsible-hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.collapsible-visible {
    max-height: 1000px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.add-participant-trigger {
    background-color: #b8df12;
    color: #3d3d3d;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    display: inline-block;
    font-weight: 700;
    padding: 1em 1.8em;
    transition: .2s ease;
    text-transform: uppercase;
    font-size: inherit;
    line-height: inherit;
    text-align: center;
    margin-bottom: 1rem;

    &:hover {
        background: #000;
        color: #b8df12;
    }
}
