﻿


#wizard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    font-family: Arial, sans-serif;
}
#questiontext-container, #email-container {
    min-height: 120px; /* Ensures a stable height for consistency */
    display: flex;
    align-items: center; /* Centers text vertically */
    justify-content: center; /* Centers text horizontally */
    text-align: center;
    width: 100%;
    max-width: 600px; /* Prevents it from becoming too wide on larger screens */
    margin: auto;
position: relative;


}

/* Adjust height for smaller screens */
@media (max-width: 768px) {
    #questiontext-container {
        min-height: 170px; /* Increase height for mobile to prevent too much wrapping */
        max-width: 100%; /* Ensures better spacing on small screens */
    padding-bottom: 0px;
        }
}

#question-text {
    font-size: 1.5em;
    line-height: 1.4; /* Improves readability */
    padding: 10px;
    width: 100%;
    padding-bottom: 0px;
    margin-block-end: 0px;
}


#answer-input, #email {
    width: 100%;
    padding: 10px;
    font-size: 1em;
}

#navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#back-button, #next-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

#back-button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
}



/* Wrap for spacing control */
.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

@media (min-width: 992px) { /* Bootstrap's lg breakpoint */
    .form-check {
        max-width: 70%;
    }
}


/* Hide only radio inputs, not checkboxes */
input[type="radio"].form-check-input {
    position: absolute; /* take it out of flow */
    opacity: 0; /* invisible but still there */
    width: 1px; /* tiny footprint */
    height: 1px;
    margin: 0; /* no extra spacing */
    padding: 0;
}


/* Custom radio circle */
.form-check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #4d4d4d; /* Medium Gray */
    background-color: white;
    display: inline-block;
    position: relative;
}

/* When the radio button is checked, fill the circle */
/*input:checked + label .form-check-circle {
    background-color: #4d4d4d;*/ /* Medium Gray */
/*}*/

/* Styling the label to look like a button */
.form-check-label {
    border: 2px solid #4d4d4d; /* Medium Gray */
    border-radius: 12px; /* Rounded Corners */
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
    color: #132849; /* Dark Gray Text */
    font-weight: 500;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle Shadow */
    width: 100%; /* Full width on mobile */
    /* NEW: limit button width on larger screens */
    @@media (min-width: 768px) {
        .form-check-label {
            max-width: 400px; /* or 300px depending on spacing */
            margin-left: auto;
            margin-right: auto;
        }
    }






    text-align: center; /* Centers text */
}
/* On wider screens (large and above), reduce width to 70% */
/*@media (min-width: 1000px) {*/ /* lg and above */
    /*.form-check-label {
        max-width: 70%;*/ /* Restricts width on large screens */
        /*margin: 0 auto;*/ /* Centers the buttons */
    /*}
}*/
    /* Hover effect for better UI feedback */
    .form-check-label:hover {
        background-color: #9fd6ce; /* Light Gray */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Slightly Larger Shadow on Hover */
    }







/* Checked state for the label */
/*input:checked + label {
    background-color: #e0e0e0;*/ /* Soft Gray */
    /*border-color: #9fd6ce;*/ /* Medium Gray */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/ /* More Prominent Shadow on Select */
/*}*/







#wizard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
    font-family: Arial, sans-serif;
}

#questiontext-container, #email-container {
    min-height: 120px; /* Ensures a stable height for consistency */
    display: flex;
    align-items: center; /* Centers text vertically */
    justify-content: center; /* Centers text horizontally */
    text-align: center;
    width: 100%;
    max-width: 600px; /* Prevents it from becoming too wide on larger screens */
    margin: auto;
    position: relative;
}

/* Adjust height for smaller screens */
@media (max-width: 768px) {
    #questiontext-container {
        min-height: 170px; /* Increase height for mobile to prevent too much wrapping */
        max-width: 100%; /* Ensures better spacing on small screens */
        padding-bottom: 0px;
    }
}

#question-text {
    font-size: 1.5em;
    line-height: 1.4; /* Improves readability */
    padding: 10px;
    width: 100%;
    padding-bottom: 0px;
    margin-block-end: 0px;
}


#answer-input, #email {
    width: 100%;
    padding: 10px;
    font-size: 1em;
}

#navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#back-button, #next-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

    #back-button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }



/* Wrap for spacing control */
.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

@media (min-width: 992px) { /* Bootstrap's lg breakpoint */
    .form-check {
        max-width: 70%;
    }
}


/* Hide only radio inputs, not checkboxes */
input[type="radio"].form-check-input {
    position: absolute; /* take it out of flow */
    opacity: 0; /* invisible but still there */
    width: 1px; /* tiny footprint */
    height: 1px;
    margin: 0; /* no extra spacing */
    padding: 0;
}


/* Custom radio circle */
.form-check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #4d4d4d; /* Medium Gray */
    background-color: white;
    display: inline-block;
    position: relative;
}

/* When the radio button is checked, fill the circle */
/*input:checked + label .form-check-circle {*/
   /* background-color: #4d4d4d;*/ /* Medium Gray */
/*}*/

/* Styling the label to look like a button */
.form-check-label {
    border: 2px solid #4d4d4d; /* Medium Gray */
    border-radius: 12px; /* Rounded Corners */
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
    color: #132849; /* Dark Gray Text */
    font-weight: 500;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle Shadow */
    width: 100%; /* Full width on mobile */
    /* NEW: limit button width on larger screens */
    @@media (min-width: 768px) {
        .form-check-label {
            max-width: 400px; /* or 300px depending on spacing */
            margin-left: auto;
            margin-right: auto;
        }
    }

    text-align: center; /* Centers text */
}
    /* On wider screens (large and above), reduce width to 70% */
    /*@media (min-width: 1000px) {*/ /* lg and above */
    /*.form-check-label {
        max-width: 70%;*/ /* Restricts width on large screens */
    /*margin: 0 auto;*/ /* Centers the buttons */
    /*}
}*/
    /* Hover effect for better UI feedback */
    .form-check-label:hover {
        /*background-color: #9fd6ce;*/ /* Light Gray */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Slightly Larger Shadow on Hover */
    }





/* Checked state for the label */
/*input:checked + label {*/
    /*background-color: #e0e0e0;*/ /* Soft Gray */
    /*border-color: #9fd6ce;*/ /* Medium Gray */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/ /* More Prominent Shadow on Select */
/*}*/



/* ————————————————
   Selected state: thick black border instead of fill
   ———————————————— */
input[type="radio"].form-check-input:checked + .form-check-label {
  background-color: lightgrey;   /* remove gray fill */
  border: 3px solid #132849 !important;       /* thick brand-black border */
  box-shadow: none !important;                /* remove any shadow */
  font-weight : bold;
}

/* keep the inner circle white (not gray) on selection */
input[type="radio"].form-check-input:checked 
  + .form-check-label .form-check-circle {
  background-color: white !important;
  border-color: #132849 !important;
}

/* optional: subtle hover tint so it still “feels” clickable */
.form-check-label:hover {
  background-color: #f0f8ff; /* very pale blue */
}




.progress {
    position: relative; /* Ensures child absolute positioning is within this */
    border-radius: 10px;
    overflow: visible;
    background-color: #9FD6CE;
}

.progress-bar {
    height: 100%;
    transition: width 0.2s ease-in-out;
    border-radius: 5px;
    background-color: #F9A2DB; /* Default Bootstrap Primary Color */
}

.progress-circle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translateY(-50%);
    background-color: #F9A2DB; /* Default to match progress bar */
    border: 2px solid #F9A2DB; /* Default to match progress bar */
}


/* Full-size spinner */
/*#spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);*/ /* Light overlay effect */
/*display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;*/ /* Match question box styling */
/*}*/

/* Fade-in effect for new questions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out effect when switching questions */
.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Ensure question container is positioned for relative positioning */
#questiontext-container {
    position: relative; /* Allows absolute positioning for children */

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-img {
    height: 40px; /* Adjust as needed */
    width: auto;
    max-height: 100%;
}



.upgrade-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upgrade-option {
    display: flex;
    align-items: flex-start;
    background-color: #f7fdf9;
    border: 2px solid #cfece7;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    gap: 1rem;
}

    .upgrade-option:hover {
        background-color: #eafaf7;
        border-color: #9fd6ce;
    }

    .upgrade-option input.custom-checkbox {
        appearance: none;
        width: 24px;
        height: 24px;
        min-width: 24px;
        border: 2px solid #4CAF50;
        border-radius: 4px;
        margin-top: 3px;
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
        background-color: white;
    }

        .upgrade-option input.custom-checkbox:checked {
            background-color: #4CAF50;
            border-color: #4CAF50;
        }

            .upgrade-option input.custom-checkbox:checked::after {
                content: "✔";
                color: white;
                font-size: 16px;
                position: absolute;
                top: 0;
                left: 5px;
                font-weight: bold;
            }

.option-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

small {
    font-size: 0.875rem;
    color: #666;
}


.basic-results-box {
    border-left: 6px solid #17a2b8;
    background-color: #f8fcfd;
}

.badge-style-result {
    max-width: 500px;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #ffffff;
}

@media (max-width: 600px) {
    .basic-results-box {
        padding: 1.5rem 1rem;
    }
}
/* Main upgrade option styling remains the same as before */

.nested-addon {
    margin-top: 1rem;
    padding-left: 0.5rem;
}

.addon-label input.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    background: #fff;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

    .addon-label input.custom-checkbox:checked {
        background-color: #4CAF50;
        border-color: #4CAF50;
    }

        .addon-label input.custom-checkbox:checked::after {
            content: "✔";
            color: #fff;
            font-size: 14px;
            font-weight: bold;
            position: absolute;
            top: 0;
            left: 4px;
        }

/* remove the grey/blue “held” state on buttons in iOS Safari (incl. Mail.app) */
button,
.btn {
    -webkit-tap-highlight-color: transparent; /* no highlight on tap */
    outline: none !important; /* no focus outline */
    box-shadow: none !important; /* no focus ring */
}

/* if you’re seeing radio‐button bubbles persist in a “filled” style,
   force them to relinquish focus after selection */
.form-check-input:focus + .form-check-label .form-check-circle {
    box-shadow: none !important;
}






.progress {
    position: relative; /* Ensures child absolute positioning is within this */
    border-radius: 10px;
    overflow: visible;
    background-color: #9FD6CE;
}

.progress-bar {
    height: 100%;
    transition: width 0.2s ease-in-out;
    border-radius: 5px;
    background-color: #F9A2DB; /* Default Bootstrap Primary Color */
}

.progress-circle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translateY(-50%);
    background-color: #F9A2DB; /* Default to match progress bar */
    border: 2px solid #F9A2DB; /* Default to match progress bar */
}


/* Full-size spinner */
/*#spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);*/ /* Light overlay effect */
    /*display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;*/ /* Match question box styling */
/*}*/

/* Fade-in effect for new questions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out effect when switching questions */
.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

/* Ensure question container is positioned for relative positioning */
#questiontext-container {
    position: relative; /* Allows absolute positioning for children */
   
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.logo-img {
    height: 40px; /* Adjust as needed */
    width: auto;
    max-height: 100%;
}



.upgrade-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upgrade-option {
    display: flex;
    align-items: flex-start;
    background-color: #f7fdf9;
    border: 2px solid #cfece7;
    border-radius: 12px;
    padding: 18px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    gap: 1rem;
}

    .upgrade-option:hover {
        background-color: #eafaf7;
        border-color: #9fd6ce;
    }

    .upgrade-option input.custom-checkbox {
        appearance: none;
        width: 24px;
        height: 24px;
        min-width: 24px;
        border: 2px solid #4CAF50;
        border-radius: 4px;
        margin-top: 3px;
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
        background-color: white;
    }

        .upgrade-option input.custom-checkbox:checked {
            background-color: #4CAF50;
            border-color: #4CAF50;
        }

            .upgrade-option input.custom-checkbox:checked::after {
                content: "✔";
                color: white;
                font-size: 16px;
                position: absolute;
                top: 0;
                left: 5px;
                font-weight: bold;
            }

.option-content {
    display: flex;
    flex-direction: column;
}

.option-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

small {
    font-size: 0.875rem;
    color: #666;
}


.basic-results-box {
    border-left: 6px solid #17a2b8;
    background-color: #f8fcfd;
}

.badge-style-result {
    max-width: 500px;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #ffffff;
}

@media (max-width: 600px) {
    .basic-results-box {
        padding: 1.5rem 1rem;
    }
}
/* Main upgrade option styling remains the same as before */

.nested-addon {
    margin-top: 1rem;
    padding-left: 0.5rem;
}

.addon-label input.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    background: #fff;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

    .addon-label input.custom-checkbox:checked {
        background-color: #4CAF50;
        border-color: #4CAF50;
    }

        .addon-label input.custom-checkbox:checked::after {
            content: "✔";
            color: #fff;
            font-size: 14px;
            font-weight: bold;
            position: absolute;
            top: 0;
            left: 4px;
        }

/* remove the grey/blue “held” state on buttons in iOS Safari (incl. Mail.app) */
button,
.btn {
    -webkit-tap-highlight-color: transparent; /* no highlight on tap */
    outline: none !important; /* no focus outline */
    box-shadow: none !important; /* no focus ring */
}

/* if you’re seeing radio‐button bubbles persist in a “filled” style,
   force them to relinquish focus after selection */
.form-check-input:focus + .form-check-label .form-check-circle {
    box-shadow: none !important;
}

/* Button press feedback for answer choices */
.form-check-label:active {
    transform: scale(0.97); /* Slight shrink to simulate press */
    transition: transform 0.1s ease;
}
#spinner.questionnaire-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* light overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px; /* Match question box if needed */
}