.fade-out {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease-in-out;
}
.hidden {
    display: none;
}
.progress-container {
    position: relative;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    /* background: linear-gradient(90deg, #f59e0b, #10b981); */
    border-radius: 15px;
    transition: width 0.5s ease-in-out;
}
.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}
.card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.card.selected {
    border-color: #3b82f6;
    background-color: #f0f4ff;
}

/* Smooth transitions for layout changes */
#text-content, #survey, #new-section {
    transition: all 0.5s ease-in-out;
}

/* Center the text-content and survey when the first option is selected */
.centered-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Hide the new-section with a smooth fade-out */
.hidden-section {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Add this to your CSS */
#survey-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
}

#grid-container {
    position: relative;
    transition: all 0.5s ease;
}

#text-content {
    transition: all 0.5s ease;
    width: 100%;
    text-align: center;
}

#survey {
    transition: all 0.5s ease;
}

/* New class to move text-content on top of survey */
.text-content-on-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.text-left-img {
    font-size: 1.8em;
    line-height: 2.5rem;
    color: black !important;
}

/* New class to add margin to survey */
/*.survey-with-margin {
    margin-top: 120px; 
}*/

.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.center_element{
    width: 65%;
    /* display: block; */
    margin-left: auto;
    margin-right: auto;
}

.bg-gray-100 {
    background-color: rgb(255 255 255) !important;
    padding: 2rem 0;
}

#submit-spinner {
    margin-left: 8px;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.hidden-section {
    opacity: 0;
    display:none !important;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.5s ease;
}

.text-content-on-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    transition: all 0.5s ease;
}

/*.survey-with-margin {
    margin-top: 200px;
    transition: all 0.5s ease;
}*/

.visible-section{
    opacity: 1;
}
.img_header{
    width: 6%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0;
}
#text-content-top-of-servey{
    padding:20px 0;
}

.btn-return{
    position: absolute;
    top: 35px;
    background-color: transparent !important;
    color: black !important;
    padding: 0 !important;
}

.contu-btn{
    width: 100%;
    border-radius: 5px !important;
    background-color: #07862e !important;
}
.fa-arrow-left {
    font-size: 14px;
}

.max-w-6xl {
    max-width: 66rem;
}

@media (max-width: 479px) {
    .max-w-6xl {
        max-width: 72rem;
    }
    .center_element{
        width: 100%;
        /* display: block; */
        margin-left: auto;
        margin-right: auto;
    }
    .img_header {
        width: 10% !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 0;
    }

    .header-para{
        text-align: center;
        font-size: 16px !important;
    }

    .btn-return {
        position: absolute;
        top: 30px;
        background-color: transparent !important;
        color: black !important;
        padding: 0 !important;
    }

    #survey-section {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .bg-gray-100 {
        background-color: rgb(255 255 255) !important;
        padding: 0rem 0;
    }
}

#status-message {
    transition: all 0.3s ease;
}

#status-message.success {
    color: #065f46;
    padding-bottom: 15px;
}

.success {
    /* background-color: #d1fae5; */
    color: #065f46;
    padding-bottom: 15px;
    /* border: 1px solid #34d399; */
}

#status-message.error {
    color: #b91c1c;
    padding-bottom: 15px;
}

.hidden {
    display: none;
}

.pad-top{
    padding-top: 4rem;
    
}

/* Ensure only one step2 version shows at a time */
.step2-version {
    display: none;
}
.step2-version.active {
    display: block;
}

        .progress-container {
            height: 25px; /* Adjust height as needed */
            background-color: #e2e8f0; /* Light gray background for the container */
            border-radius: 9999px; /* Fully rounded corners */
            overflow: hidden; /* Ensure the inner bar doesn't overflow */
            position: relative; /* For positioning the text */
        }

        .progress-bar {
            height: 100%;
            background-color: #07862e; /* Blue color for the filled part */
            border-radius: 9999px; /* Fully rounded corners */
            transition: width 0.3s ease; /* Smooth transition for width changes */
            position: relative; /* For positioning the text */
        }

        #progress-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white; /* White text color */
            font-size: 12px; /* Adjust font size as needed */
            z-index: 1; /* Ensure the text is above the progress bar */
        }