﻿section .cbf-barriers-to-education {
    /* display:flex; flex-direction:column; padding:32px 16px; gap:32px; */
}

.cbf-barriers-to-education p,
.cbf-barriers-to-education h1,
.cbf-barriers-to-education h2,
.cbf-barriers-to-education h4,
.cbf-barriers-to-education h6 {
    margin-bottom: 0;
    margin-top: 0;
    margin-block: 0 !important;
}

.hero-conent-box {
    left: auto;
    margin: 0 auto;
}

/* Step navigation dots */
.cbf-barriers-to-education .commrise-step-nav {
    position: fixed;
    left: 32px;
    top: 40%; /* slightly above middle */
    transform: translateY(-40%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 50;
}

.cbf-barriers-to-education .commrise-step-nav .dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #7d7d7d;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: border-color .25s, background .25s;
}

.cbf-barriers-to-education .commrise-step-nav .dot:hover {
    border-color: #ffa425;
}

.cbf-barriers-to-education .commrise-step-nav .dot.active {
    border-color: #2fbd6a;
    background: transparent;
}

.cbf-barriers-to-education .commrise-step-nav .dot.active:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #2fbd6a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cbf-barriers-to-education input[required=required]::before {
    content: '*';
}

.cbf-barriers-to-education input[required=required].has-error,
.cbf-barriers-to-education .has-error {
    border: 1px solid red !important;
}

.cbf-barriers-to-education .txt-error {
    margin: 0 !important;
    color: #F00;
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color: red;
}

@media (max-width: 1024px) {
    .cbf-barriers-to-education .commrise-step-nav {
        left: 12px;
    }
}

@media (max-width: 820px) {
    .cbf-barriers-to-education .commrise-step-nav {
        display: none;
    }
}

.CommriseSteps-Container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.Title {
    text-align: center;
    margin-bottom: 16px !important;
}

.step1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 32px;
    padding: 32px 16px;
    background: linear-gradient(0deg, rgba(105, 72, 51, 0.10) 0%, rgba(105, 72, 51, 0.10) 100%), #FFF;
}

.TitleDescription {
    color: #000;
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    max-width: 800px;
    margin: auto;
}

.step_title {
    gap: 28px;
    display: flex;
    align-items: center;
    width: 1000px;
    margin: auto;
    max-width: 1000px;
    width: 100%;
}

.step_title span {
    border-radius: 20px;
    background: #9844BA;
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.step_title h4 {
    line-height: 30px;
}

.barrier-card {
    display: flex;
    min-width: 230px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    background-color: #fff;
    border-radius: 20px;
    border: 4px solid #FFF;
    position: relative;
    max-width: 238px;
}

.barrier-card.selected {
    border-color: #31b081;
}

.barrier-card img.selector {
    position: absolute;
    right: 30px;
    top: 30px;
    height: 36px;
    width: 36px;
}

.barrier-title {
    font-size: 16px;
    font-family: Roboto;
    font-weight: 700;
}

.barrier-image {
    height: 168px;
    flex-shrink: 0;
    align-self: stretch;
    border-radius: 8px;
}

.barrierslist {
    display: flex;
    gap: 16px;
    max-width: 1000px;
    flex-wrap: wrap;
    justify-content: center;
}

.step2 {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 16px;
}

.Step2Contents {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
    margin: auto;
}

#donation-slider-container {
    border-radius: 20px;
    background: var(--Hover, #F5F0F8);
    display: flex;
    max-width: 513px;
    width: 100%;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.donation-image {
    flex: none; /* don’t let flex shrink it */
    width: 100%;
    max-width: 464px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
}

.step3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 32px;
    padding: 32px 16px;
    background: linear-gradient(0deg, rgba(105, 72, 51, 0.10) 0%, rgba(105, 72, 51, 0.10) 100%), #FFF;
}

.caption-Content {
    padding: 32px 16px !important;
    border-radius: 20px;
    background: var(--Hover, #F5F0F8);
    padding: 32px 0px;
    max-width: 1000px;
    margin: auto;
    width:100%;
}

.caption-Content-Title {
    text-align: center;
    font-family: Kalam;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
}

#btnSubmit {
    border-radius: 10px;
    background: #9844BA;
    color: white;
    margin-top: 32px;
    border: none !important;
    padding: 16px !important;
    margin-top: 0 !important;
    font-size: 18px !important;
}

.loginDetails {
    max-width: 500px;
    width: 100%;
}

.loginDetails input {
    line-height: 30px;
    font-size: 16px;
    border-radius: 10px;
    padding: 8px;
    font-weight: 400;
    height:unset;
}

.cbf-barriers-to-education .actions {
    text-align: center;
    margin-top: 32px;
}

#donationSlider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #D9D9D9;
    outline: none;
}

#donationSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7A3695;
    cursor: pointer;
    margin-top: -3px;
}

#donationSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7A3695;
    cursor: pointer;
}

#donationSlider::-moz-range-track {
    height: 8px;
    border-radius: 5px;
    background: #D9D9D9;
}

#priceImage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

#priceImage .image-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

#priceImage .image-layer.active {
    opacity: 1;
}
.caption-Content em {
    font-size: 30px !important;
    font-family: kalam !important;
    color: var(--cbf-purple-1200);
    font-style: normal;
}
.donation-image .donation-logo {
    position: absolute;
    top: 20px; 
    left: 20px; 
    z-index: 3; 
    width: 150px;
    height: auto;
}

    .donation-image .donation-logo svg {
        width: 100%;
        height: auto;
    }
@media (min-width: 600px) and (max-width: 768px) {
    #donation-slider-container,
    .donation-image {
        max-width: unset;
        width: unset;
    }
}

@media (max-width: 768px) {
    nav.commrise-step-nav {
        display: none;
    }
    .Step2Contents {
        flex-direction: column;
    }
    .caption-Content {
        padding: 16px !important;
    }
    .barrier-card {
        width: calc(50% - 16px); /* two per row */
        min-width: 157px;
        max-width: 208px;
        padding: 8px;
    }
    .barrier-image {
        width: 100%;
        object-fit: cover;
        height: 141px;
        max-width: calc(50% - 28px);
    }
    .barrier-description {
        display: none;
    }
    .step2 {
        padding: 24px 16px;
    }
    .CommriseSteps-Container {
        gap:0px;
    }

    .step_title span 
    {
        font-size:14px !important;

    }
    .step_title h4 {
        font-size: 18px !important;
        line-height:110% !important;
    }
    #donation-slider-container
    {
        padding:16px !important;
    }
    .donation-image {
        height: 200px !important;
    }

}