/* Reliasoft AI Learner - Frontend Styles */
.ral-questionnaire-container {
    border-radius: 8px;
    margin: 20px auto 60px auto;
    text-align: center;
    overflow: hidden;
}

.ral-question-step {
    display: none;
}

.ral-question-step.active-step {
    display: block;
    padding: 0px;
    max-width: 700px;
    margin: auto;
}
.ral-layout-funnel_sales_page_screen {
    max-width: 100% !important;
}
.ral-layout-gender_selection_fullscreen.active-step,
.ral-layout-age_selection_fullscreen.active-step {
    padding: 0px;
}
.ral-layout-gender_selection_fullscreen .ral-navigation-buttons {
    display: none;
}
.ral-layout-age_selection_fullscreen .start-page-subheading {
    display: none;
}
/* --- Welcome Screen Styles --- */
.ral-layout-welcome_screen_layout.active-step {
    max-width: 500px;
    padding: 10px;
}
.ral-welcome-screen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ral-welcome-top-boxes {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    line-height: normal;
}
.ral-welcome-box {
    border-radius: 4px;
    padding: 10px 10px;
    font-weight: 600;
    font-size: 14px;
    color: #603f97;
    background: #e7e3f9;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d0c6e1;
}
.ral-welcome-box i {
    color: #603f97;
}
.ral-welcome-headline {
    font-size: clamp(28px, 5vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color:#000000;
}
.ral-welcome-byline {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    max-width: 450px;
    margin-bottom: 25px;
}
.ral-welcome-image {
    margin-bottom: 20px;
    max-width: 400px;
    width: 100%;
}
.ral-welcome-sub-headline {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.ral-welcome-features {
    list-style: none;
    padding: 0;
    font-size: 18px;
    text-align: center;
}
.ral-welcome-features li {
    margin-bottom: 8px;
    color: #444;
}
.ral-welcome-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.ral-button-welcome-choice {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
}

.ral-button-no {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

.ral-goodbye-message {
    animation: fadeIn 0.5s ease-in-out;
}


/* Styles for the original Social Proof Interstitial Screen */
.ral-layout-social_proof_fullscreen.active-step {
    padding: 0px;
    border-radius: 8px;
    max-width: 450px;
    margin: auto;
}

.ral-social-proof-content {
    background-color: #f9f7ff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.ral-social-proof-quote .quote-img {
    max-width: 100px;
    margin-top: 30px;

}
.ral-social-proof-main-stat h1 {
    font-size: 42px;
    font-weight: 700;
    color: #603f97;
    margin-top: 0;
    margin-bottom: 0px;
}

.ral-social-proof-main-stat p {
    font-size: 16px;
    color: #555;
    max-width: 300px;
    margin: auto;
    font-weight: 500;
    line-height: normal;
}

.ral-social-proof-quote {
    margin: 30px auto;
    padding: 20px;
    max-width: 450px;
    background: #fff;
}

.ral-social-proof-quote blockquote {
    margin: 0;
    padding: 0;
}

.ral-social-proof-quote p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 10px;
    font-weight: 500;
}

.ral-social-proof-quote footer {
    font-size: 14px;
    color: #777;
    text-align: right;
    font-style: normal;
    font-weight: 600;
}
.ral-social-proof-quote footer::before{
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 3px;
}

.ral-social-proof-logos-heading {
    font-size: 16px;
    color: #555;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: normal;
}

.ral-social-proof-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px 30px;
    margin-top: 10px;
}

.ral-social-proof-logo {
    max-height: 40px;
    width: auto;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.ral-social-proof-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Styles for the new Testimonial Social Proof Screen */
.ral-layout-social_proof_testimonial_fullscreen.active-step {
    padding: 0px;
    background-color: #ffffff;
    border-radius: 8px;
}
.ral-social-proof-testimonial-content {
    max-width: 800px;
    margin: 0 auto 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 20px;
}
.ral-testimonial-heading {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}
.ral-testimonial-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    text-align: center;
    max-width: 600px;
    margin-bottom: 20px;
}
.ral-testimonial-image-area {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}
.ral-testimonial-image-area img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}
.ral-testimonial-custom-content-area {
    width: 100%;
    padding: 0;
    text-align: center;
    color: #777;
    font-style: italic;
}


.ral-button-interstitial-continue {
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 20px;

}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ral-overall-page-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 500px;
    margin: 20px auto 0px auto;
}
.start-page-subheading {
    margin-top: 20px;
    padding: 0px 30px;
    line-height: normal;
}
#ral-question-step-1 .ral-progress-indicator, #ral-question-step-2 .ral-progress-indicator, #ral-question-step-3 .ral-progress-indicator {
    display: none;

}
.ral-progress-indicator {
    font-size: 12px;
    color: #603e97;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ral-custom-heading-main {
    font-size: 20px;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top:20px;
}

.ral-custom-heading-sub {
    font-size: 14px;
    color: #000;
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ral-question-text {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.ral-options {
    margin-top: 20px;
}

.ral-options .ral-option-label {
    display: block;
    background-color: #fff;
    margin: 0 auto 12px auto;
    max-width: 450px;
    padding: 0px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    font-size: 17px;
    text-align: left;
}

.ral-options .ral-option-label:hover {
    background-color: #e0f3f3;
    border-color: #7cd1cb;
    transform: translateY(-2px);
}

.ral-options .ral-option-label input[type="radio"],
.ral-options .ral-option-label input[type="checkbox"] {
    margin-right: 12px;
    vertical-align: middle;
    transform: scale(1.1);
}

.ral-layout-image_options_standard_title .ral-options.ral-image-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ral-image-option-item {
    display: flex !important;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 15px !important;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.ral-image-option-item:hover {
    background-color: #e9f5ff;
    border-color: #a3d3ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.ral-image-option-item.selected-option {
    background-color: #d4edff;
    border-color: #74c0fc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ral-option-image {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.ral-option-image-label-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: normal;
}

.ral-layout-image_checkbox_options_standard_title .ral-options.ral-image-checkbox-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ral-image-checkbox-option-item {
    display: flex !important;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 15px !important;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.ral-image-checkbox-option-item:hover {
    background-color: #e9f5ff;
    border-color: #a3d3ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.ral-image-checkbox-option-item.selected-option {
    background-color: #d1e7dd;
    border-color: #a3cfbb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ral-image-checkbox-option-item.selected-option::after {
    content: '\2713';
    font-size: 18px;
    color: #198754;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}


.ral-option-checkbox-image {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.ral-option-checkbox-label-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}


.ral-checkbox-hint {
    display: block;
    font-size: 0.9em;
    margin-top: 8px;
    text-align: center;
    color: #555;
}

.ral-gender-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0px auto;
    max-width: 350px;
    flex-wrap: nowrap;
}

.ral-gender-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 3px solid transparent;
    padding: 0;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    width: clamp(180px, 25vw, 220px);
}
.ral-gender-option:hover {
    border-color: #7cd1cb;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.ral-visually-hidden {
    border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute; width: 1px;
    white-space: nowrap;
}

.ral-gender-image {
    width: 100%;
    height: auto;
    display: block;
}

.ral-gender-label-text {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #603f97;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}
.ral-gender-option:hover .ral-gender-label-text {
    background-color: #4c2f7c;
}

.ral-gender-option.selected-option {
    border-color: #603f97;
    box-shadow: 0 0 0 4px rgba(96, 63, 151, 0.4);
}
.ral-gender-option.selected-option .ral-gender-label-text {
    background-color: #3fbeb6;
    color: #fff;
}

.ral-age-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.ral-age-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 3px solid transparent;
    padding: 0;
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    width: clamp(140px, 20vw, 180px);
}
.ral-age-option:hover {
    border-color: #7cd1cb;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.ral-age-image {
    width: 100%;
    height: auto;
    display: block;
}

.ral-age-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: block;
    text-align: center;
    background-color: #603f97;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}
.ral-age-option:hover .ral-age-label-text {
    background-color: #4c2f7c;
}

.ral-age-option.selected-option {
    border-color: #603f97;
    box-shadow: 0 0 0 4px rgba(96, 63, 151, 0.4);
}
.ral-age-option.selected-option .ral-age-label-text {
    background-color: #3fbeb6;
    color: #fff;
}

.ral-disclaimer-text {
    font-size: 12px;
    color: #666;
    margin-top: 40px;
    line-height: 1.5;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}
.ral-disclaimer-text a {
    color: #603f97;
    text-decoration: underline;
}
.ral-disclaimer-text a:hover {
    text-decoration: none;
}

.ral-navigation-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}
.ral-navigation-buttons .ral-button:only-child {
    margin-left: auto;
    margin-right: auto;
}
.ral-navigation-buttons .ral-button-prev:not(:only-child) {
    margin-right: auto;
}


.ral-layout-gender_selection_fullscreen .ral-navigation-buttons,
.ral-layout-age_selection_fullscreen .ral-navigation-buttons,
.ral-layout-image_options_standard_title .ral-navigation-buttons,
.ral-layout-image_checkbox_options_standard_title .ral-navigation-buttons {
    min-height: 50px;
}


.ral-button, #ral-start-button, #ral-start-challenge-button {
    color: white; border: none; padding: 14px 30px; text-align: center;
    text-decoration: none; display: inline-block; font-size: 18px;
    font-weight: 600; border-radius: 8px; cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); background-color: #603f97;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.ral-button:hover, #ral-start-button:hover, #ral-start-challenge-button:hover {
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    background-color: #4c2f7c;
    transform: translateY(-2px);
}

.ral-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}
.ral-button-prev {
    background-color: #fff;
    color: #000;
    font-size: 12px;
    box-shadow: none;
    width: 100%;
}
.ral-button-prev:hover {
    color:#603F97;
    background-color: #fff;
    box-shadow: none;
}

/* Funnel Screen Styles */
.ral-funnel-screen {
    padding: 20px;
    text-align: center;
}
.ral-layout-funnel_sales_page_screen.active-step,
.ral-layout-funnel_readiness_level_screen.active-step { /* Apply to readiness level too */
    padding: 0; /* Remove default padding for full-width templates */
}

.ral-funnel-screen h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}
.ral-funnel-content-area {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ral-funnel-content-area i {
    color: #777;
    font-size: 16px;
}
.ral-funnel-subtext { /* Used by original readiness level, might be overridden by specific styles */
    font-size: 18px;
    color: #333;
    margin-top: -10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.ral-funnel-generation {}
#ral-ai-generation-visual-indicator {}
#ral-ai-generation-message-text {
    margin-top: 15px;
    font-size: 16px;
    color: #555;
}
.ral-email-notice {
    font-size: 16px;
    line-height: normal;
    margin-bottom: 20px;
    margin-top: 20px;
    color: #666;
}
.ral-email-free-ebook {
    display:flex;
    justify-content: center;
}
.ral-email-free-ebook img {
    max-width: 250px;
    margin-right: 20px;
}
.ral-funnel-email-capture h2 {
    max-width: 500px;
    margin: 0px auto 20px auto;
}

.ral-funnel-email-capture #ral-final-email-capture-fields {
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}
.ral-funnel-email-capture .ral-form-field {
    margin-bottom: 15px;
}
.ral-funnel-email-capture .ral-form-field label:not(.ral-visually-hidden) {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
}
.ral-funnel-email-capture .ral-form-field input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}
.ral-funnel-email-capture .ral-checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}
.ral-funnel-email-capture .ral-checkbox-field input[type="checkbox"] {
    margin-top: 8px;
    transform: scale(1.5);
    min-width: 12px;
    min-height: 12px;
}
.ral-funnel-email-capture .ral-checkbox-field label a {
    color: #603f97;
    text-decoration: underline;
}
.ral-funnel-email-capture .ral-button-funnel-submit-email {
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 20px;
}

.ral-button-funnel-continue {
    padding: 15px 40px;
}

/* New Styles for Funnel Generation Spinner & Text */
.ral-funnel-generation { /* The main container for this step */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 300px; /* Ensure it has some height */
}

#ral-ai-generation-visual-indicator.ral-ai-generation-visual-indicator-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ral-progress-circle-container {
    position: relative;
    width: 150px; /* Increased size */
    height: 150px; /* Increased size */
    margin-bottom: 25px; /* Space between spinner and text */
}

.ral-progress-ring {
    transform: rotate(-90deg); /* Start the progress from the top */
}

.ral-progress-ring-track,
.ral-progress-ring-fill {
    fill: transparent;
    stroke-linecap: round; /* Makes the ends of the stroke rounded */
}

.ral-progress-ring-track {
    stroke: #E6E6E6; /* Light grey track color from spinner.png */
}

.ral-progress-ring-fill {
    stroke: #6A44A3; /* Purple fill color from spinner.png */
    stroke-dasharray: 396; /* Circumference: 2 * PI * radius (2 * 3.14159 * 63) approx 395.84 */
    stroke-dashoffset: 396; /* Initially hide the fill */
    transition: stroke-dashoffset 0.25s linear; /* Smooth transition for updates */
}

.ral-progress-percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px; /* Larger percentage text */
    font-weight: 600;
    color: #1E0E62; /* Dark purple text color */
}

#ral-ai-generation-message-text.ral-generation-message-v2 {
    margin-top: 0; /* Reset margin if any from old styles */
    font-size: 18px; /* Larger loading message text */
    color: #333; /* Standard text color */
    font-weight: 500;
}

.ral-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 15px;
}
.ral-message.ral-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.ral-message.ral-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


@media screen and (max-width: 768px) {
    .ral-questionnaire-container { max-width: 95%; margin-bottom: 20px;margin-top:10px;}
    .ral-social-proof-quote p { font-size: 17px; }
    .ral-social-proof-logos { gap: 15px 20px; }
    .ral-social-proof-logo { max-height: 25px; }
    .ral-image-option-item, .ral-image-checkbox-option-item { padding: 10px !important; }
    .ral-option-image, .ral-option-checkbox-image { width: 80px; height: 40px; margin-right: 10px; }
    .ral-option-image-label-text, .ral-option-checkbox-label-text { font-size: 15px; }
    .ral-testimonial-heading { font-size: 24px; }
    .ral-testimonial-text { font-size: 15px; }
    .ral-testimonial-image-area img {
        max-width: 200px;
    }
}


@media screen and (max-width: 550px) {
    .ral-overall-page-title { font-size: 24px; margin-bottom: 10px; }
    .ral-custom-heading-main { font-size: 18px; }
    .ral-custom-heading-sub { font-size: 13px; margin-bottom: 25px; }
    .ral-gender-option { width: clamp(160px, 40vw, 200px);  }
    .ral-age-option { width: clamp(120px, 35vw, 150px);  }
    .ral-disclaimer-text { margin-top: 15px; font-size: 11px; }
    .ral-question-text { font-size: 20px; margin-bottom: 25px; }
    .ral-plan-week-title { font-size:18px; margin: 40px 0px 15px 0px; }
    .ral-plan-section-title { font-size: 17px; }
    #ral-results-container { padding:20px 15px; }
    .ral-results-title { font-size:24px; }
    .ral-lead-capture h3 { font-size:20px; }
    .ral-social-proof-main-stat h1 { font-size: 36px; }
    .ral-social-proof-main-stat p { font-size: 15px; }
    .ral-social-proof-quote p { font-size: 16px; }
    .ral-social-proof-logos-heading { font-size: 15px; }
    .ral-social-proof-logos { gap: 10px 15px; }
    .ral-social-proof-logo { max-height: 22px; }
    .ral-button-interstitial-continue { padding: 12px 30px; font-size: 17px; }
    .ral-layout-image_options_standard_title .ral-options.ral-image-options-list,
    .ral-layout-image_checkbox_options_standard_title .ral-options.ral-image-checkbox-options-list { max-width: 100%; }
    .ral-image-option-item, .ral-image-checkbox-option-item { padding: 8px 10px !important; }
    .ral-option-image, .ral-option-checkbox-image { width: 65px; height: 45px; min-width: 65px;}
    .ral-option-image-label-text, .ral-option-checkbox-label-text { font-size: 14px; }
    .ral-testimonial-heading { font-size: 22px;padding:20px 20px 0px 20px; margin-top:0px;}
    .ral-testimonial-text { font-size: 14px; }
    .ral-funnel-screen h2 { font-size: 22px;margin-bottom: 10px; }
    .ral-funnel-subtext { font-size: 16px; }
    .ral-age-options {flex-wrap: wrap;}
    .ral-funnel-summary {padding:0px 20px 20px 20px;}
    .ral-email-free-ebook img {
        max-width: 120px;
    }
}

/* --- Readiness Level Screen Styles --- */
.ral-funnel-readiness-level { /* This is the .ral-funnel-screen div */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    padding-bottom: 30px;
}

.ral-readiness-logo-container {
    margin-bottom: 30px;
}
.ral-readiness-logo {
    max-width: 150px; /* Adjust as needed */
    height: auto;
}
.ral-readiness-title {
    font-size: 26px; /* From image: "Your readiness level" */
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
}
.ral-readiness-chart-container {
    margin-bottom: 20px;
    max-width: 500px; /* Adjust as needed */
    width: 100%;
}
.ral-readiness-chart-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.ral-readiness-chart-note {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    text-align: center;
}
.ral-readiness-subtext {
    font-size: 24px; /* From image: "Your 4-week..." */
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.4;
}
.ral-readiness-continue-button { /* Extends .ral-button, .ral-button-funnel-continue */
    padding: 18px 50px;
    font-size: 20px;
    width: auto; /* Auto width based on content, or set max-width */
    max-width: 300px;
}

@media screen and (max-width: 550px) {
    .ral-readiness-title { font-size: 22px; }
    .ral-readiness-subtext { font-size: 18px; }
    .ral-readiness-continue-button { font-size: 16px; padding: 14px 35px; }
    .ral-readiness-level-image { max-width: 90%; } /* Adjust for smaller screens if 350px is too large */
}
/* Funnel Summary Screen Enhancements */

.ral-layout-funnel_summary_screen {
    max-width: 450px;
    margin: auto;

}

.ral-funnel-summary .ral-funnel-content-area {
    background-color: #fff;
    padding: 0px;
    width: 100%;
    border-radius: 8px;
    text-align: center;
    max-width: 600px; /* Max width for content area */
    margin-left: auto;
    margin-right: auto;
}

.ral-summary-intro-text {
    font-size: 17px; /* Slightly larger from image */
    color: #5f6c7b; /* Dark greyish blue */
    margin-bottom: 5px; /* Reduced margin */
    font-weight: 500; /* normal to semi-bold */
    line-height: 1.4;
}

.ral-summary-mastery-text {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-decoration: underline;
}

.ral-summary-user-goal {
    font-size: 15px;
    color: #333;
    background-color: #f0f0f0; /* Light grey background pill */
    border-radius: 8px; /* Pill shape */
    padding: 6px 18px; /* Adjusted padding for pill */
    display: inline-block;
    margin-bottom: 35px; /* Increased space before chart */
    font-weight: 500;
}
#ral-summary-goal-value {
    font-weight: 600; /* Bolder goal value */
    color: #000; /* Purple to match mastery text */
}


.ral-summary-chart-container {
    display: flex; /* Use flexbox for y-axis and chart alignment */
    max-width: 450px; /* Max width of the chart itself */
    width: 100%;
    margin: 0 auto; /* Center the chart */
    background-color: #fff;
    border: 1px solid #e9e9e9; /* Lighter border */
    border-radius: 8px;
    padding: 25px 15px 15px 5px; /* t r b l - More top padding */
    position: relative; /* For label positioning */
}

.ral-summary-chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa; /* Lighter grey for y-axis labels */
    padding-right: 8px; /* Space between y-axis text and chart bars */
    height: 160px; /* Match chart height */
    text-align: right;
    position: relative; /* Ensure it's part of the flow for height */
}
.ral-summary-chart-y-axis span {
    display: block;
}
/* Dashed lines for y-axis - pseudo elements on y-axis labels */

.ral-summary-chart-y-axis span:first-child::after { /* 100% line */
    bottom: calc(100% - 1px); /* Align with top of chart */
}
.ral-summary-chart-y-axis span:nth-child(2)::after { /* 50% line */
    bottom: 50%;
}
/* No line for 0% */


.ral-summary-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end; /* Bars grow upwards */
    width: 100%;
    height: 160px; /* Main chart height */
    /* border-left: 1px solid #e0e0e0; */ /* Removed, using y-axis labels area */
    border-bottom: 2px solid #d0d0d0; /* Thicker X-axis line */
    padding-left: 10px;
    position: relative;
    z-index: 1; /* Keep bars above dashed lines */
}

.ral-summary-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22%; /* Adjusted for spacing */
    position: relative; /* For labels */
    height: 100%; /* Group takes full chart height */
    justify-content: flex-end; /* Align bar to bottom */
}

.ral-summary-bar {
    width: 30px; /* Bar width from image */
    border-radius: 5px 5px 0 0; /* Rounded top corners */
    transition: height 0.5s ease-out;
    position: relative; /* For z-index if needed */
    z-index: 2; /* Ensure bars are above dashed lines */
}

/* Bar Heights (percentages of chart height - 160px) */
.ral-summary-bar-1 { background-color: #d8514e; height: 22%; } /* Reddish - Month 1 (Jun in image) */
.ral-summary-bar-2 { background-color: #efae4e; height: 58%; } /* Orange - Month 2 (Jul in image) */
.ral-summary-bar-3 { background-color: #92c590; height: 77%; } /* Light Green - Month 3 (Aug in image) */
.ral-summary-bar-4 { background-color: #5cb85c; height: 97%; } /* Dark Green - Month 4 (Sep in image) */

.ral-summary-bar-month {
    margin-top: 10px; /* Space above month label */
    font-size: 13px;
    color: #5f6c7b; /* Dark greyish blue for month labels */
    font-weight: 500;
}

.ral-summary-bar-label-top {
    position: absolute;
    /* bottom calculation will be slightly different due to bar heights being percentages of container */
    left: 50%;
    transform: translateX(-50%);
    background-color: #495057; /* Dark grey from image */
    color: #fff;
    padding: 6px 10px; /* Adjusted padding */
    border-radius: 4px;
    font-size: 12px; /* As per image */
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 6px; /* Space between label and bar top */
    z-index: 3; /* Above bars */
}

.ral-summary-bar-label-top::after { /* Triangle pointer */
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #495057 transparent transparent transparent;
}

/* Positioning specific labels based on their associated bar */
/* Beginner label on first bar */
.ral-summary-bar-group:nth-child(1) .ral-summary-bar-label-beginner {
    bottom: calc(35% + 6px); /* height of bar-1 + margin-bottom */
}

/* AI Master label on third bar */
.ral-summary-bar-group:nth-child(3) .ral-summary-bar-label-master {
    bottom: calc(77% + 6px); /* height of bar-3 + margin-bottom */
}

/* Specific adjustments for funnel summary button if needed */
.ral-funnel-summary .ral-button-funnel-continue {
    margin-top: 30px; /* More space above continue button */
}

@media screen and (max-width: 480px) {
    .ral-summary-intro-text { font-size: 15px; }
    .ral-summary-mastery-text { font-size: 18px; }
    .ral-summary-user-goal { font-size: 14px; padding: 5px 12px; margin-bottom: 25px;}
    .ral-summary-chart { height: 140px; }
    .ral-summary-chart-y-axis { height: 140px; font-size: 11px; padding-right: 5px; }
    .ral-summary-bar { width: 25px; }
    .ral-summary-bar-month { font-size: 11px; margin-top: 8px; }
    .ral-summary-bar-label-top { font-size: 10px; padding: 4px 7px; }
    .ral-summary-chart-y-axis span:not(:last-child)::after {
        right: -250px; /* Adjust for smaller screens */
    }
}
/* --- Readiness Level Screen Static Image Styles --- */
.ral-funnel-readiness-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    padding-bottom: 30px;
}

.ral-readiness-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.ral-readiness-image-container {
    width: 100%;
    max-width: 450px; /* Container to help center the image if needed */
    margin: 20px auto;
    text-align: center; /* Center the image within this container */
}

.ral-readiness-level-image {
    max-width: 400px; /* As per your request */
    width: 100%; /* Make it responsive within the max-width */
    height: auto;
    display: block;
    margin: 0 auto 10px auto; /* Center block image and add margin below */
}

.ral-readiness-chart-note { /* Kept for the "illustrative purposes" text */
    font-size: 12px;
    color: #888;
    margin-top: 5px; /* Adjust if needed after image */
    text-align: center;
}

.ral-readiness-subtext {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 25px; /* Space above subtext */
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.4;
    text-align: center;
}
.ral-readiness-continue-button {
    padding: 16px 45px;
    font-size: 18px;
    width: auto;
    max-width: 280px;
    margin-top: 10px;
}

@media screen and (max-width: 550px) {
    .ral-readiness-title { font-size: 22px; }
    .ral-readiness-subtext { font-size: 18px; }
    .ral-readiness-continue-button { font-size: 16px; padding: 14px 35px; }
    .ral-readiness-level-image { max-width: 90%; } /* Adjust for smaller screens if 350px is too large */
}