﻿.graphic-process {
    background: #D8D5D0;
    overflow-x: scroll;
    overflow-y: hidden;
    position: relative;
    scrollbar-width: none;
    width: 100%;
}

.graphic-process::-webkit-scrollbar {
    display: none;
}

.graphic-process__controls {
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.graphic-process__controls-wrapper {
    position: absolute;
    top: -62px;
    left: 40px;
}

.graphic-process__controls-button {
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s;
}

.graphic-process__controls-button:focus {
    outline: none;
}

.graphic-process__controls-button:not(.graphic-process__controls-button--disabled):hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}

.graphic-process__controls-button--disabled {
    cursor: not-allowed;
    opacity: 0.2;
}

.graphic-process__controls-button--prev {
    margin-right: 5px;
}

.graphic-process__controls-button--next {
    margin-left: 5px;
}

.graphic-process__wrapper {
    height: 100%;
    padding-top: 54px;
    position: relative;
    width: 2493px;
}

.graphic-process__content {
    margin-left: 50px;
    margin-top: 116px;
    position: absolute;
    z-index: 1;
}

.graphic-process__cta {
    background-color: #F6F6F6 !important;
    font-family: Roboto, Sans-serif, serif;
    font-size: 1rem !important;
    font-weight: 400;
    text-transform: uppercase;
    border-radius: 0;
    color: #CE7D3A !important;
    border-left: 3px solid #CE7D3A;
    background-image: linear-gradient(90deg, #EEEEEE 51%, #FFFFFF00 0%);
}

/*hover*/
.graphic-process__cta:hover {
    background-color: #863F05 !important;
    background-image: none;
    color: #FFFFFF !important;
}

.graphic-process__cta-wrapper {
    gap: 10px;
}

.graphic-process__map {
    margin-left: 240px;
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    min-height: 614px; /* Prevents the 1x1 issue */
}

.graphic-process__clouds {
    position: absolute;
    right: 0;
    top: 60px;
    transform: translateX(0);
    transition: transform 0.1s ease-out;
    width: 1284px;
    z-index: 0;
}

.graphic-process__step {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 260px;
    position: absolute;
    cursor: pointer;
    z-index: 1;
}

.graphic-process__step--active {
    /*z-index: 2;*/
}

.graphic-process__step--active > .graphic-process__step-title {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.graphic-process__step-number {
    transform: scale(1);
    transition: transform 0.3s;
}

.graphic-process__step-title,
.graphic-process__description-title {
    color: #FFFFFF;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-top: 5px;
    min-width: 77px;
    max-width: 160px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.40);
}

.graphic-process__open-description {
    background: #FFFFFF;
    bottom: 0;
    left: 0;
    z-index: 1;
    position: absolute;
    min-width: 260px;
    max-width: 260px;
    transition: opacity 0.15s ease, transform 0.3s ease;
    opacity: 0; /* Start hidden */
}

.graphic-process__description-number {
    position: absolute;
    top: -25px;
}

.graphic-process__description {
    align-items: center;
    display: none;
    text-align: center;
    padding: 0 10px 30px 10px;
    position: relative;
    flex-direction: column;
}

.graphic-process__description-title {
    color: #71624E;
    text-shadow: none;
    margin-top: 30px;
    margin-bottom: 10px;
}

.graphic-process__description-link {
    margin-top: 10px;
    color: #CE7D3A !important;
    text-align: center;
    text-decoration: underline !important;
}

.graphic-process__description-link:hover {
    color: #863F05 !important;
}

.graphic-process__step:hover .graphic-process__step-number {
    transform: scale(1.1);
    transition: transform 0.3s;
}

.graphic-process__step--active .graphic-process__step-number {
    transform: scale(1.1);
    transition: transform 0.3s;
}

/*media query for max width 767*/
@media only screen and (max-width: 767px) {
    .graphic-process__content {
        /*margin-top: 6px;*/
        margin-left: 30px;
    }

    .graphic-process__wrapper {
        width: 2383px;
    }

    .graphic-process__map {
        margin-left: 130px;
    }

    .graphic-process__controls-wrapper {
        position: unset;
        padding: 20px;
        background: #71624E;
    }
}