/* Product Finder Button */
.product-finder-button {
    background: #fff !important;
    color: #181716 !important;
    cursor: pointer;
    font-weight: 400 !important;
    transition: background 0.3s ease;
    font-size: 14px !important;
    line-height: 1.5;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 8.5px 15px !important;
    border: 1px solid rgba(24, 23, 22, 1);
    width: 100%;
    white-space: normal;
}

.product-finder-button:hover {
    background-color: #181716 !important;
    color: #ffffff !important;
}

/* Mobile/Desktop visibility controls */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (min-width: 767px) {}

@media (max-width: 767px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

.hidden {
    display: none;
}

.step-container {
    display: flex;
    /*flex-wrap: wrap;*/
    justify-content: space-between;
    width: 100%;
    column-gap: 56px;
    flex: auto;
    /*overflow-y: auto;*/
    /* max-height: calc(100vh - 450px); */
    /*scrollbar-gutter: stable both-edges;*/
}

/* Scrollbar styles for WebKit-based browsers (Chrome, Safari, Edge) */
/*.step-container::-webkit-scrollbar {*/
/*    width: 10px; !* Total width of the scrollbar area *!*/
/*}*/

/*.step-container::-webkit-scrollbar-track {*/
/*    background: transparent; !* No background on the scrollbar track *!*/
/*}*/

/*.step-container::-webkit-scrollbar-thumb {*/
/*    background-color: #181716; !* Scrollbar color *!*/
/*    !* Fake padding between content and scrollbar using transparent border *!*/
/*    border-left: 7px solid transparent;*/
/*    !* Ensures background does not cover the border area *!*/
/*    background-clip: padding-box;*/
/*    border-radius: 0; !* Rounded scrollbar edges *!*/
/*}*/

.step-navigation,
.step-header {
    width: 100%;
}

.step-header {}

.modal-body .step-header h4 {
    font-family: "Merriweather", Sans-serif;
    margin-bottom: 30px;
    margin-top: 8px;
}

.product-finder-modal .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* height: 100%; */
}

.step-content-section,
.step-image-section {
    /*width: calc(50% - 28px);*/
    width: 100%;
}

.step-image-section img {
    width: 100%;
    display: block;
}

.product-finder-button:hover {
    /*background: #333;*/
}

/* Full Screen Modal - Matching your design */
.product-finder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* height: 100vh; */
    bottom: 0;
    z-index: 9999;
    background: #e8e8e8;
}

.product-finder-modal.hidden {
    display: none;
}

.product-finder-modal .modal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.modal-backdrop {
    display: none;
    /* No backdrop needed for full screen */
}

.modal-content {
    background: #F8F8F8;
    width: 100vw;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    bottom: 0;
}

/* Header matching your design */
.modal-top-nav {
    background: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 64px;
}

.modal-top-nav .top-nav-btn {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 12px 15px;
    border: 1px solid rgba(24, 23, 22, 1);
    position: absolute;
    top: 50%;
    right: 56px;
    transform: translateY(-50%);
    background: transparent;
}

.modal-top-nav .top-nav-btn.btn-back {
    right: inherit;
    left: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Nakamoto Forestry Logo */
.modal-title-container h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-container h3::before {
    content: "●";
    color: #333;
    font-size: 12px;
}

/* Progress indicator */
.step-indicator {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Top navigation buttons */
.top-nav-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.top-nav-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.top-nav-btn.hidden {
    visibility: hidden;
}

/* Progress Bar */
.progress-container {
    /*background: white;*/
    padding: 0 0 20px;
    position: relative;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    /*background: #e0e0e0;*/
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.progress-fill {
    height: 100%;
    background: #999999;
    background: linear-gradient(90deg, #999999 0%, #231F20 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.progress-fill>span {
    position: absolute;
    left: 100%;
    top: 100%;
    transform: translateX(-50%);
    padding-top: 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.progress-fill.full-width>span {
    transform: translateX(-100%);
}

.progress-text {
    position: absolute;
    right: 40px;
    top: -25px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    display: none;
}

/* Caption */
.captions-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 22px;
}

.captions-list .caption-item {
    padding: 4px 16px;
    border: 0.5px solid rgba(123, 123, 123, 0.35);
    background-color: #FCFBF5;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 1.8%;
    text-align: center;
    text-transform: uppercase;
}

.title-step-4 {
    font-family: "Merriweather", Sans-serif;
    font-weight: 300;
    font-style: Light;
    font-size: 32px;
    line-height: 1.5;
    letter-spacing: 0%;
    text-align: center;
    text-transform: capitalize;
}

.modal-body .step-header .header-step-4 p:last-child {
    margin-bottom: 0;
}

.modal-body .step-header .header-step-4 {
    text-align: center;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    margin-bottom: 22px;
}

.modal-body .step-header .header-step-4 h4 {
    font-family: "Merriweather", Sans-serif;
    font-weight: 300;
    font-size: 32px;
    line-height: 1.5;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    .modal-body .step-header .header-step-4 {
        display: none;
    }

    .step-content .header-step-4 {
        text-align: center;
        font-weight: 300;
        font-size: 16px;
        line-height: 1.5;
        text-align: center;
        vertical-align: middle;
        margin-bottom: 22px;
        display: block;
    }

    .step-content .header-step-4 h4 {
        font-family: "Merriweather", Sans-serif;
        font-weight: 300;
        font-size: 32px;
        line-height: 1.5;
        text-align: center;
        margin-top: 0;
        margin-bottom: 10px;
    }
}

/* Main Content Area */
.modal-body {
    flex: 1;
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    padding-left: 16px;
    padding-right: 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top: 40px;
    /*overflow: hidden;*/
    /*justify-content: space-between;*/
}

.step-container {
    /*height: calc(100vh - );*/
}


/* Step content positioning */
.step-content {
    /*position: absolute;*/
    /*top: 0;*/
    /*left: 0;*/
    width: 100%;
    height: 100%;
    /*padding: 60px 50px;*/
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Scrollbar styles for WebKit-based browsers (Chrome, Safari, Edge) */
.step-content::-webkit-scrollbar {
    width: 10px;
    /* Total width of the scrollbar area */
}

.step-content::-webkit-scrollbar-track {
    background: transparent;
    /* No background on the scrollbar track */
}

.step-content::-webkit-scrollbar-thumb {
    background-color: #181716;
    /* Scrollbar color */
    /* Fake padding between content and scrollbar using transparent border */
    border-left: 7px solid transparent;
    /* Ensures background does not cover the border area */
    background-clip: padding-box;
    border-radius: 0;
    /* Rounded scrollbar edges */
}

.step-content.hidden {
    display: none;
}

/* Left Image Section */
.step-image-section {
    flex: 0 0 45%;
    background: url('https://nakamoto2025.local/wp-content/uploads/your-wood-image.jpg') center/cover;
    position: relative;
}

/* Right Content Section */
.step-content-right {
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .step-container:not(.active-step-4) .step-content-right .step-content-section {
        position: initial;
    }
}

.step-container.active-step-4 {}

.step-content-section {
    position: relative;
    max-height: 100%;
    flex: auto;
}

.step-content h4 {
    font-size: 24px;
    color: #333;
    /*margin-bottom: 40px;*/
    font-weight: 400;
    line-height: 1.3;
}

/* Options List - matching your radio button design */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid transparent;
    /*border-radius: 8px;*/
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    min-height: 95px;
}

.option-item:hover {
    background: #FFF;
    border-color: #181716;
}

.option-item.selected {
    background: #FFF;
    border-color: #181716;
}

.option-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.option-item.selected .option-radio {
    border-color: #333;
    background: #333;
}

.option-item.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.option-content {
    flex: 1;
}

.option-title {
    font-family: "Merriweather", Sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.5;
}

.option-content-step-1 {
    font-size: 18px;
    line-height: 1.5;
}

.option-subtitle {
    font-size: 16px;
    line-height: 1.5;
}

/* Wood type specific styling */
.wood-option-item .option-radio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.wood-option-item {
    align-items: center;
    padding: 12px;
}

.wood-option-content {
    display: flex;
    align-items: center;
    width: 100%;
    column-gap: 24px;
}

.wood-sample {
    width: 100px;
    border-radius: 6px;
    /* margin-left: 15px; */
    aspect-ratio: 1 / 1;
}

.wood-details {
    flex: 1;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}

.wood-title {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    text-transform: uppercase;
}

.wood-title .wood-icon {
    width: 35px;
    aspect-ratio: 1 / 1;
}

/* Step Navigation */
.step-navigation {
    margin-top: auto;
    text-align: center;
    padding: 16px 0;
    margin-bottom: 0;
    background: #FFF;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    height: 82px;
}

.step-navigation .next-question-btn {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 13.5px 16px;
    border: 1px solid rgba(24, 23, 22, 1);
    background: transparent;
}

.step-navigation .next-question-btn.step-4 {
    background: #CFB58F;
    border-color: #CFB58F;
    color: #181716;
}

.step-navigation .next-question-btn.step-4:hover {
    background-color: rgba(24, 23, 22, 1);
    border: 1px solid rgba(24, 23, 22, 1);
    color: #FFF;
}

.next-question-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0 !important;
    color: #999 !important;
    border-color: #ddd !important;
    pointer-events: none;
}

.next-question-btn.step-4:disabled {
    background: #e6e6e6 !important;
    border-color: #ccc !important;
    color: #999 !important;
}

/* Results specific styling */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    max-width: 1050px;
    margin: 0;
    padding-bottom: 40px;
}

.result-card {
    /*padding: 20px;*/
    text-align: center;
    position: relative;
    padding: 10px;
    border: 1px solid transparent;
    background-color: #FFF;
}


.result-card.active,
.result-card:hover {
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
    /*transform: translateY(-2px);*/
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    border-color: rgba(24, 23, 22, 1);
    cursor: pointer;
}

.result-card .result-img {
    transition: all 0.3s ease;
    display: block;
    position: relative;
    /* border: 1px solid transparent; */
}

/* @media (min-width: 1024px) { */
.result-card .result-img:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
}

.result-card .result-img:hover .quick-view-button {
    opacity: 1;
    visibility: visible;
}

.result-card .result-img .quick-view-button {
    opacity: 0;
    visibility: hidden;
}

/* } */


@media (max-width: 768px) {
    .result-card .result-img .quick-view-button {
        display: none;
    }

    .result-card .result-img:hover::before {
        display: none;
    }
}

.result-card .result-img .quick-view-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.result-card .result-img>div {
    transition: all 0.3s ease;
    /* border: 10px solid transparent; */
}

.result-card:hover .result-img>div {
    /* border-color: #FFF; */
}

.result-card:hover .result-img {
    background: #fff;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    /* border-color: rgba(24, 23, 22, 1); */
}

.result-title {
    font-family: "Merriweather", Sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-left: 10px;
}

.result-title span {
    text-align: left;
    width: calc(100% - 25px);
}

.result-subtitle {
    font-size: 12px;
    margin-bottom: 15px;
}

.result-add-btn {
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    background: #CFB58F;
    cursor: pointer;
    /*position: absolute;*/
    /*bottom: 15px;*/
    /*left: 50%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* .result-add-btn:hover {
    background: #c19b26;
    transform: scale(1.1);
} */

.result-add-btn.added {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* REVIEW MY QUOTE button for results */
.get-quote-btn,
.review-quote-btn {
    background: #d4af37;
    color: #333;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin: 30px auto 0;
    display: block;
    width: fit-content;
}

.get-quote-btn:hover,
.review-quote-btn:hover {
    background: #c19b26;
}

/* Mobile Responsive */
@media (min-width: 1024px) {}

.step-container .step-content-section {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.product-finder-popup .btn-popup-lumber {
    display: none !important;
}

@media (max-width: 768px) {
    .modal-title-container {
        padding: 24px 16px
    }

    .modal-top-nav .top-nav-btn {
        right: 16px
    }

    .modal-top-nav .top-nav-btn.btn-back {
        left: 16px;
    }

    .modal-title-container .product-finder-logo {
        max-width: 149px;
    }

    .modal-top-nav {
        padding: 0;
    }

    .progress-container {
        padding: 0 0 40px;
    }

    .modal-body {
        /* flex-direction: column;
        margin: 40px 0;
        height: calc(100% - 234px); */
    }

    .step-image-section {
        flex: 0 0 200px;
    }

    .step-content-section {
        padding: 0;
    }

    .step-image-section {
        margin-bottom: 0px;
    }

    .modal-top-nav .top-nav-btn.btn-back {
        gap: 0;
    }

    .modal-top-nav .top-nav-btn {
        padding: 9px 15px;
    }

    .modal-body .step-header h4 {
        font-family: "Merriweather", Sans-serif;
        font-weight: 300;
        font-size: 24px;
        line-height: 1.5;
        margin-top: 11px;
        margin-bottom: 30px;
    }

    .modal-content {
        display: block;
    }

    .step-container {
        flex-wrap: wrap;
        width: 100%;
        /* max-height: calc(100% - 130px); */
        overflow-y: auto;
        height: 380px;
        padding-bottom: 40px;
    }

    .product-finder-modal .modal-body {
        margin: 0;
        padding-top: 40px;
    }


    /* Scrollbar styles for WebKit-based browsers (Chrome, Safari, Edge) */
    .step-container::-webkit-scrollbar {
        width: 10px;
        /* Total width of the scrollbar area */
    }

    .step-container::-webkit-scrollbar-track {
        background: transparent;
        /* No background on the scrollbar track */
    }

    .step-container::-webkit-scrollbar-thumb {
        background-color: #181716;
        /* Scrollbar color */
        /* Fake padding between content and scrollbar using transparent border */
        border-left: 7px solid transparent;
        /* Ensures background does not cover the border area */
        background-clip: padding-box;
        border-radius: 0;
        /* Rounded scrollbar edges */
    }

    .step-navigation {
        padding: 9px 24px
    }

    .options-list {
        margin-bottom: 0;
    }

    .step-image-section {
        flex: auto;
    }

    .step-image-section {
        display: none !important;
    }

    .step-content h4 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .option-item {
        padding: 12px 15px;
    }

    .wood-option-item {
        padding: 15px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-finder-button {
        background-color: #181716 !important;
        color: #ffffff !important;
    }
}

/* Mobile Responsive */
@media (max-width: 1280px) {
    .modal-body {
        max-width: 1000px;
    }
}

/* Mobile Responsive */
@media (max-width: 1366px) {
    .modal-body {
        max-width: 1000px;
    }
}

@media (max-width: 450px) {
    .results-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-finder-button {
        background-color: #181716 !important;
        color: #ffffff !important;
    }
}

/* Mobile Responsive */
@media (min-width: 769px) and (max-width: 1025px) {
    .modal-title-container .product-finder-logo {
        max-width: 149px;
    }

    .modal-body {
        margin-top: 20px;
        margin-bottom: 20px;
        /* max-height: calc(100% - 184px);
        overflow-y: auto;
        overflow-x: hidden; */
        max-width: 950px;
    }

    .modal-content {
        height: auto;
    }

    /* .step-container {
        max-height: inherit;
    }

    .step-content {
        overflow-y: inherit;
        max-height: inherit;
    } */

    .product-finder-button {
        background-color: #181716 !important;
        color: #ffffff !important;
    }

    .collections-left .product-finder-button {
        color: #181716 !important;
    }
}