      @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&display=swap');
      
      /* CRITICAL FIX: Full-screen progress bar and answer display - Cache buster v3.0.1 */
      /* Expanded progress bar to full screen width while maintaining answer visibility */
      /* Fixed conflicting background overrides and z-index layering issues */
      
      /* Cache busting comment for monotone blue buttons - v2.0 FINAL OVERRIDE */
      
      /* BEAUTIFUL DISAPPEARANCE ANIMATIONS */
      /* Matching the appearance animations with smooth fade-out effects */
      
      /* Fade out animation - matches fadeIn */

      html {
        color-scheme: light only;
      }

      @keyframes fadeOut {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(0, -20px, 0);
        }
      }
      
      /* Scale fade out - for buttons and options */
      @keyframes scaleOutFade {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0) scale(1);
        }
        to {
          opacity: 0;
          transform: translate3d(0, -10px, 0) scale(0.95);
        }
      }
      
      /* Slide and fade out up - for modal/window closing */
      @keyframes slideOutUp {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(0, -30px, 0);
        }
      }
      
      /* Slide and fade out down */
      @keyframes slideOutDown {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(0, 30px, 0);
        }
      }
      
      /* Gentle scale out - for content transitions */
      @keyframes gentleScaleOut {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0) scale(1);
        }
        to {
          opacity: 0;
          transform: translate3d(0, 0, 0) scale(0.9);
        }
      }
      
      /* Button disappear animation - matches buttonFadeIn */
      @keyframes buttonFadeOut {
        from {
          opacity: 1;
          transform: translateY(0);
        }
        to {
          opacity: 0;
          transform: translateY(20px);
        }
      }
      
      /* Motivation screen fade out */
      @keyframes motivationFadeOut {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0) scale(1);
        }
        to {
          opacity: 0;
          transform: translate3d(0, -20px, 0) scale(0.98);
        }
      }
      
      /* CSS classes for applying disappearance animations */
      .fade-out {
        animation: fadeOut 0.3s ease-out forwards;
      }
      
      .scale-out-fade {
        animation: scaleOutFade 0.25s ease-out forwards;
      }
      
      .slide-out-up {
        animation: slideOutUp 0.3s ease-out forwards;
      }
      
      .slide-out-down {
        animation: slideOutDown 0.3s ease-out forwards;
      }
      
      .gentle-scale-out {
        animation: gentleScaleOut 0.4s ease-out forwards;
      }
      
      .button-fade-out {
        animation: buttonFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      }
      
      .motivation-fade-out {
        animation: motivationFadeOut 0.4s ease-out forwards;
      }
      
      /* Quiz content disappearance - enhanced versions of existing */
      .quiz-content.fade-out-left {
        animation: fadeOutToLeft 0.3s ease-out forwards;
      }
      
      .quiz-content.fade-out-right {
        animation: fadeOutToRight 0.3s ease-out forwards;
      }
      
      @keyframes fadeOutToLeft {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(-30px, 0, 0);
        }
      }
      
      @keyframes fadeOutToRight {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(30px, 0, 0);
        }
      }
      
      /* Option buttons group disappearance */
      .options-container.fade-out {
        animation: fadeOut 0.25s ease-out forwards;
      }
      
      .options-container.stagger-out .option-button {
        animation: scaleOutFade 0.2s ease-out forwards;
      }
      
      /* Staggered disappearance for multiple elements */
      .options-container.stagger-out .option-button:nth-child(1) { animation-delay: 0ms; }
      .options-container.stagger-out .option-button:nth-child(2) { animation-delay: 50ms; }
      .options-container.stagger-out .option-button:nth-child(3) { animation-delay: 100ms; }
      .options-container.stagger-out .option-button:nth-child(4) { animation-delay: 150ms; }
      .options-container.stagger-out .option-button:nth-child(5) { animation-delay: 200ms; }
      .options-container.stagger-out .option-button:nth-child(6) { animation-delay: 250ms; }
      .options-container.stagger-out .option-button:nth-child(7) { animation-delay: 300ms; }
      .options-container.stagger-out .option-button:nth-child(8) { animation-delay: 350ms; }
      
      /* Staggered appearance for multiple elements */
      .options-container.stagger-in .option-button {
        opacity: 0;
        animation: fadeIn 0.3s ease-out forwards;
      }
      
      .options-container.stagger-in .option-button:nth-child(1) { animation-delay: 50ms; }
      .options-container.stagger-in .option-button:nth-child(2) { animation-delay: 100ms; }
      .options-container.stagger-in .option-button:nth-child(3) { animation-delay: 150ms; }
      .options-container.stagger-in .option-button:nth-child(4) { animation-delay: 200ms; }
      .options-container.stagger-in .option-button:nth-child(5) { animation-delay: 250ms; }
      .options-container.stagger-in .option-button:nth-child(6) { animation-delay: 300ms; }
      .options-container.stagger-in .option-button:nth-child(7) { animation-delay: 350ms; }
      .options-container.stagger-in .option-button:nth-child(8) { animation-delay: 400ms; }
      
      /* Question title disappearance */
      .question-title.fade-out {
        animation: slideOutUp 0.3s ease-out forwards;
      }
      
      /* Bottom container disappearance */
      .bottom-container.slide-out {
        animation: slideOutDown 0.3s ease-out forwards;
      }
      
      /* Special elements disappearance animations */
      
      /* Notification/alert disappearance */
      .notification.fade-out,
      .alert.fade-out {
        animation: notificationFadeOut 0.4s ease-out forwards;
      }
      
      @keyframes notificationFadeOut {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0) scale(1);
        }
        to {
          opacity: 0;
          transform: translate3d(0, -20px, 0) scale(0.95);
        }
      }
      
      /* Modal/overlay disappearance */
      .modal.fade-out,
      .overlay.fade-out {
        animation: modalFadeOut 0.3s ease-out forwards;
      }
      
      @keyframes modalFadeOut {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
          -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
        }
        to {
          opacity: 0;
          transform: translate3d(0, 0, 0);
          -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
        }
      }
      
      /* Progress elements disappearance */
      .progress-container.fade-out {
        animation: slideOutUp 0.25s ease-out forwards;
      }
      
      /* Loading screen disappearance */
      .loading-screen.fade-out {
        animation: loadingFadeOut 0.5s ease-out forwards;
      }
      
      @keyframes loadingFadeOut {
        from {
          opacity: 1;
          transform: scale(1);
        }
        to {
          opacity: 0;
          transform: scale(1.05);
        }
      }
      
      /* Smooth transitions for content switching */
      .content-transition-out {
        animation: contentTransitionOut 0.3s ease-out forwards;
      }
      
      .content-transition-in {
        animation: contentTransitionIn 0.4s ease-out forwards;
      }
      
      @keyframes contentTransitionOut {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(0, -15px, 0);
        }
      }
      
      @keyframes contentTransitionIn {
        from {
          opacity: 0;
          transform: translate3d(0, 15px, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      
      /* Card/panel disappearance */
      .card.zoom-out,
      .panel.zoom-out {
        animation: cardZoomOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      }
      
      @keyframes cardZoomOut {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0) scale(1);
        }
        to {
          opacity: 0;
          transform: translate3d(0, 0, 0) scale(0.9);
        }
      }
      
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        background: #ffffff;
        min-height: 100vh;
        color: #2d3436;
        overflow-x: hidden;
      }

      .container {
        /* Removed max-width: 480px to allow full screen usage */
        width: 100%;
        margin: 0;
        min-height: 100vh;
        background: white;
        position: relative;
      }

      /* Quiz elements positioning - no longer inside quizContainer */
      .quiz-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        /* Center content with max-width for consistency */
        max-width: 100%;
        margin: 0;
      }
      
      :root {
        --bottom-bar-height: 96px;
        --bottom-safe-area: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
      }

      .quiz-content {
        padding: 140px 20px calc(var(--bottom-safe-area) + 24px); /* keep content above bottom bar */
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        /* Center content like the old container but allow full width */
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
      }
      
      .bottom-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, white 90%, transparent);
        padding: 16px 20px max(16px, env(safe-area-inset-bottom));
        z-index: 100;
      }

      /* Dedicated spacer element for pages that need extra bottom offset */
      .bottom-safe-spacer {
        height: var(--bottom-safe-area);
        width: 100%;
        flex-shrink: 0;
      }

      /* Ensure key content blocks never sit behind the fixed bottom button */
      .motivational-screen,
      .loading-screen,
      .question-with-background,
      .chart-section,
      .results-section,
      .quiz-step,
      .section-content,
      .quiz-content .options-container {
        padding-bottom: var(--bottom-safe-area);
      }

      .progress-container {
        padding: 20px;
        background: white;
        /* Full width progress bar - no max-width constraint */
        width: 100%;
        margin: 0;
      }

      .progress-bar {
        height: 4px;
        background: #f0f0f0;
        border-radius: 100px;
        margin-bottom: 8px;
      }

      .progress-fill {
        height: 100%;
        background: #478dff;
        border-radius: 100px;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .progress-text {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: #8e8e93;
        margin-top: 8px;
        padding-bottom: 15px;
      }

      .back-button {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f5f5f7;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        color: #2d3436;
      }

      .back-button:hover {
        background: #e8e8eb;
      }

      /* Start screen */
      .start-screen {
        text-align: center;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center content like the old container */

        margin: 0 auto;
      }

      /* Age Selection Cards */
      .age-selection-section {
        margin-top: 24px;
        margin-bottom: 24px;
      }

      .age-section-title {
        font-size: 20px;
        font-weight: 600;
        color: #666;
        margin-bottom: 30px;
        text-align: center;
        font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      }

      .age-cards-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        justify-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
      }

      /* Tablet breakpoint - 3 columns */
      @media (max-width: 900px) {
        .age-cards-container {
          grid-template-columns: repeat(3, 1fr);
          gap: 20px;
          max-width: 900px;
        }
      }

      .age-card {
        background: #f8f8f8;
        border-radius: 16px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 280px;
        min-width: 200px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }

      .age-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      }

      .age-card.selected {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(216, 128, 167, 0.3);
        border: 2px solid #478dff;
      }

      .age-card.selected .age-card-button {
        background: #478dff;
      }

      .age-card-image {
        width: 100%;
        height: 220px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        border-radius: 16px 16px 0 0;
      }

      .age-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 16px 16px 0 0;
        transition: transform 0.3s ease;
      }

      .age-card-image img:hover {
        transform: scale(1.05);
      }

      .age-card-button {
        background: #478dff;
        color: white;
        padding: 16px 12px;
        border-radius: 0 0 14px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        font-weight: 500;
        font-size: 14px;
        min-height: 50px;
      }

      .age-range {
        flex: 1;
        text-align: left;
      }

      .age-arrow {
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #478dff;
        font-weight: bold;
        font-size: 12px;
        flex-shrink: 0;
      }

      /* Responsive styles for age cards */
      @media (max-width: 600px) {
        .age-cards-container {
          grid-template-columns: repeat(2, 1fr);
          gap: 20px;
          max-width: 600px;
        }

        .age-card {
          width: 100%;
          max-width: 250px;
          min-width: 180px;
        }

        .age-card-image {
          height: 180px;
        }

        .age-card-button {
          padding: 14px 10px;
          font-size: 13px;
          min-height: 45px;
        }

        .age-section-title {
          font-size: 18px;
          margin-bottom: 25px;
        }
      }

      @media (max-width: 480px) {
        .age-cards-container {
          grid-template-columns: repeat(2, 1fr);
          gap: 16px;
          max-width: 400px;
          padding: 0 16px;
        }

        .age-card {
          width: 100%;
          max-width: 180px;
          min-width: 140px;
        }

        .age-card-image {
          height: 160px;
        }

        .age-card-button {
          padding: 12px 8px;
          font-size: 12px;
          min-height: 40px;
        }
      }

      /* Single column for very small screens */
      @media (max-width: 360px) {
        .age-cards-container {
          grid-template-columns: 1fr;
          gap: 20px;
          max-width: 280px;
          padding: 0 20px;
        }

        .age-card {
          width: 100%;
          max-width: 280px;
          min-width: 200px;
        }

        .age-card-image {
          height: 200px;
        }
      }

      .logo {
        font-size: 32px;
        font-weight: 800;
        background: #478dff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 40px;
        letter-spacing: -1px;
      }

      .start-title {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 12px;
        color: #1a1a1a;
      }

      .start-subtitle {
        font-size: 17px;
        color: #6e6e73;
        line-height: 1.4;
        margin-bottom: 24px;
      }

      .quiz-timer {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: #f5f5f7;
        border-radius: 100px;
        font-size: 14px;
        color: #6e6e73;
        margin-bottom: 17px;
      }

      .redirect-loading {
        text-align: center;
        padding: 60px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 300px;
      }

      .loading-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid #e2e8f0;
        border-top: 4px solid #478dff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
      }

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

      .loading-text {
        font-size: 18px;
        color: #478dff;
        font-weight: 600;
      }

      .question-subtitle {
        text-align: center;
        font-size: 15px;
        color: #8e8e93;
        margin-top: -20px;
        margin-bottom: 24px;
      }

      /* Options */
      .options-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
        flex-grow: 1;
        width: 100%;
        max-width: none;
        padding: 0 20px;
        box-sizing: border-box;
      }

      /* Desktop: enhanced spacing for options */
      @media (min-width: 769px) {
        .options-container {
          padding-left: 40px;
          padding-right: 40px;
          max-width: none;
        }
        
        .options-container .option-button,
        .options-container .checkbox-option {
          min-height: 64px;
          display: flex;
          align-items: center;
          justify-content: flex-start;
        }
      }





      .option-button {
        border: 2px solid #f0f0f0;
        word-wrap: break-word;
      }

      .option-button:hover {
        border-color: #dddddd;
        background: #fafbff;
        transform: scale(1.02);
      }

      .option-button.selected {
        border-color: #e8e6e6;
        background: #e3e4ef;
        color: black;
      }

      /* Special positioning for photo-style buttons - checkmark at bottom */
      .option-button.option-with-image.photo-style.selected::after {
        top: 212px;
        bottom: 20px;
        right: 17px;
        z-index: 3;
        animation: none;
    }

      /* Multiple choice */
      .checkbox-option {
        display: flex;
        align-items: center;
        padding: 24px 16px;
        border: 2px solid #f0f0f0;
        border-radius: 16px;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
        gap: 14px;
        min-height: 64px;
        height: auto;
        width: 480px;
        max-width: 480px;
        min-width: 480px;
        margin: 0 auto;
        box-sizing: border-box;
        color: white;
      }

      .checkbox-option:hover {
        border-color: #dddddd;
        background: #fafbff;
      }

      .checkbox-option.selected {
        border-color: #e8e6e6;
        background: #e3e4ef;
        color: white;
      }

      .checkbox-option.selected .custom-checkbox {
        background: #478dff;
        border-color: transparent;
      }

      .checkbox-option.selected .custom-checkbox::after {
        content: "+";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 14px;
        font-weight: bold;
      }

      /* Special positioning for photo-style checkbox options - checkmark at bottom */
      .checkbox-option.checkbox-with-image.photo-style.selected .custom-checkbox::after {
        top: auto;
        bottom: 20px;
        left: 20px;
        transform: none;
        z-index: 3;
      }

      .checkbox-label {
        font-size: 16px;
        font-weight: 500;
        color: #2d3436;
      }

      /* Primary button */
      .btn-primary {
        background: #478dff;
        color: white;
        border: none;
        padding: 18px;
        border-radius: 16px;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 480px !important;
        max-width: 480px !important;
        min-width: 480px !important;
        box-shadow: 0 4px 20px rgba(71, 141, 255, 0.25);
        position: relative;
        min-height: 56px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        word-wrap: break-word;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        margin: 0 auto;
        box-sizing: border-box;
      }

      .btn-primary::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #478dff;
        opacity: 0;
        transition: opacity 0.3s;
      }

      .btn-primary:hover::before {
        opacity: 1;
      }

      .btn-primary span {
        position: relative;
        z-index: 1;
        display: inline-block;
        transition: transform 0.2s ease;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.3;
        width: 100%;
      }

      .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 25px rgba(71, 141, 255, 0.35);
      }

      .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
      }



      .bottom-container .container-inner {
        /* Center content like the old container */
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
      }

      /* Input fields */
      .input-container {
        margin-bottom: 24px;
        position: relative;
        width: 480px;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
      }

      .input-field {
        width: 480px !important;
        max-width: 480px !important;
        min-width: 480px !important;
        padding: 18px;
        border: 2px solid #f0f0f0;
        border-radius: 16px;
        font-size: 16px;
        transition: all 0.2s;
        background: #fafbff;
        margin: 0 auto;
        box-sizing: border-box;
        display: block;
      }

      .input-field:focus {
        outline: none;
        border-color: #478dff;
        background: white;
      }

      .input-unit {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        color: #8e8e93;
        font-size: 16px;
      }

      .input-note {
            text-align: center;

        font-size: 12px;
        color: #8e8e93;
        margin-top: 8px;
      }

      /* Slider */
      .slider-container {
        margin: 32px 0;
      }

      .slider {
        width: 100%;
        -webkit-appearance: none;
        height: 6px;
        border-radius: 100px;
        background: #f0f0f0;
        outline: none;
      }

      .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #478dff;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(71, 141, 255, 0.3);
      }

      .slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border-radius: 50%;
        background: #478dff;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(71, 141, 255, 0.3);
      }

      .slider-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 12px;
        font-size: 13px;
        color: #8e8e93;
      }

      .slider-value {
        text-align: center;
        margin-top: 24px;
        font-size: 32px;
        font-weight: 700;
        background: #478dff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      @keyframes fadeInScale {
        from {
          opacity: 0;
          transform: scale(0.95);
        }
        to {
          opacity: 1;
          transform: scale(1);
        }
      }

      .motivation-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 24px;
        background: #478dff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: white;
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
      }

      .motivation-title {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #1a1a1a;
        line-height: 1.3;
      }

      .motivation-text {
        font-size: 16px;
        color: #6e6e73;
        line-height: 1.6;
        margin-bottom: 32px;
      }

      /* BMI Result */
      .bmi-card {
        padding: 24px;
        border-radius: 20px;
        margin: 24px 0;
        text-align: center;
        position: relative;
        width: 480px !important;
        max-width: 480px !important;
        min-width: 480px !important;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
      }

      .bmi-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
      }

      .bmi-normal {
        background: #f0fdf4;
        border: 2px solid #86efac;
      }

      .bmi-overweight {
        background: #fefce8;
        border: 2px solid #fde047;
      }

      .bmi-obese {
        background: #fef2f2;
        border: 2px solid #fca5a5;
      }

      .bmi-underweight {
        background: #eff6ff;
        border: 2px solid #93c5fd;
      }

      .bmi-value {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 8px;
        color: #1a1a1a;
      }

      .bmi-label {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
        color: #2d3436;
      }

      .bmi-message {
        font-size: 15px;
        color: #6e6e73;
        line-height: 1.5;
      }

      /* Inline BMI card - appears below input fields */
      .bmi-card:not(:first-child) {
        margin-top: 20px;
        margin-bottom: 20px;
      }

      /* Profile screen */
      .profile-card {
        background: #f5f5f7;
        border-radius: 20px;
        padding: 24px;
        margin: 24px 0;
      }

      .profile-header {
        text-align: center;
        margin-bottom: 24px;
      }

      .profile-avatar {
        width: 80px;
        height: 80px;
        background: #478dff;
        border-radius: 50%;
        margin: 0 auto 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        color: white;
      }

      .profile-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid #e5e5e7;
      }

      .profile-item:last-child {
        border-bottom: none;
      }

      .profile-label {
        color: #8e8e93;
        font-size: 15px;
      }

      .profile-value {
        font-weight: 600;
        color: #1a1a1a;
        font-size: 16px;
      }

      .profile-highlight {
        background: #478dff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700;
      }

      /* Testimonial */
      .testimonial-card {
        background: #f5f5f7;
        border-radius: 20px;
        padding: 10px 24px 5px 24px;
        margin: 16px 0;
      }

      .testimonial-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
      }

      .testimonial-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #478dff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 18px;
      }

      .testimonial-info {
        flex: 1;
      }

      .testimonial-name {
        font-weight: 600;
        color: #1a1a1a;
        font-size: 16px;
      }

      .testimonial-meta {
        color: #8e8e93;
        font-size: 14px;
      }

      .testimonial-stars {
        display: flex;
        gap: 4px;
        align-items: center;
        margin-bottom: 12px;
      }

      .testimonial-stars .star-item {
        width: 20px;
        height: 20px;
        background-color: #2ECC71;
        border-radius: 4px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .testimonial-stars .star-item::before {
        content: "★";
        color: white;
        font-size: 14px;
        font-weight: bold;
        line-height: 1;
      }

      .testimonial-text {
        color: #6e6e73;
        line-height: 1.5;
        font-size: 15px;
        margin-bottom: 16px;
      }

      .before-after {
        display: flex;
        gap: 16px;
        padding-top: 16px;
        border-top: 1px solid #e5e5e7;
      }

      .before-after-item {
        flex: 1;
        text-align: center;
      }

      .before-after-label {
        font-size: 12px;
        color: #8e8e93;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
      }

      .before-after-value {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a1a;
      }
      
      /* Enhanced before-after photos */
      .before-after-photos {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin-top: 24px;
        margin-bottom: 15px;
        padding: 20px;
        background: #f8fafc;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
      }
      
      .photo-container {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
      }
      
      .photo-label {
        font-size: 14px;
        color: #64748b;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      
      .photo-wrapper {
        position: relative;
        width: 120px;
        height: 160px;
        border-radius: 12px;
        overflow: hidden;
        background: #e2e8f0;
        border: 2px solid #cbd5e1;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .before-after-photo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
        transition: transform 0.3s ease;
      }

      .before-after-photo:hover {
        transform: scale(1.05);
      }
      
      .photo-placeholder {
        font-size: 14px;
        color: #94a3b8;
        font-weight: 500;
        text-align: center;
        padding: 20px;
        background: #f1f5f9;
        border-radius: 8px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .weight-info {
        font-size: 16px;
        color: #1e293b;
        font-weight: 700;
        background: white;
        padding: 8px 16px;
        border-radius: 20px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      }
      
      @keyframes pulse {
        0%, 100% {
          transform: scale(1);
          opacity: 1;
        }
        50% {
          transform: scale(1.1);
          opacity: 0.8;
        }
      }
      
      /* Single photo container styling */
      .single-photo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 24px;
        padding: 20px;
        background: #f8fafc;
        border-radius: 16px;
        border: 1px solid #e2e8f0;
      }
      
      .photo-wrapper-large {
        position: relative;
        width: 280px;
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .before-label, .after-label {
        position: absolute;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 2;
      }
      
      .before-label {
        top: 8px;
        left: 8px;
      }
      
      .after-label {
        bottom: 8px;
        right: 8px;
      }
      
      .single-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        transition: transform 0.3s ease;
      }

      .single-photo:hover {
        transform: scale(1.02);
      }

      /* Responsive styles for single photo */
      @media (max-width: 600px) {
        .single-photo-container {
          padding: 16px;
        }
        
        .photo-wrapper-large {
          width: 240px;
          height: 180px;
        }
      }
      
      @media (max-width: 480px) {
        .single-photo-container {
          padding: 12px;
        }
        
        .photo-wrapper-large {
          width: 200px;
          height: 150px;
        }
      }
      
      /* Responsive styles for before-after photos */
      @media (max-width: 600px) {
        .before-after-photos {
          flex-direction: column;
          gap: 16px;
          padding: 16px;
        }
        
        .photo-wrapper {
          width: 100px;
          height: 130px;
        }
        
        .weight-info {
          font-size: 14px;
          padding: 6px 12px;
        }
      }
      
      @media (max-width: 480px) {
        .before-after-photos {
          padding: 12px;
        }
        
        .photo-wrapper {
          width: 80px;
          height: 100px;
        }
        
        .photo-label {
          font-size: 12px;
        }
        
        .weight-info {
          font-size: 12px;
          padding: 4px 8px;
        }
      }

      /* Final screen */
      .final-screen {
        padding: 40px 20px;
        text-align: center;
      }

      .price-badge {
        display: inline-block;
        background: #478dff;
        color: white;
        padding: 8px 16px;
        border-radius: 100px;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 24px;
      }

      .price-container {
        margin: 32px 0;
      }

      .price-value {
        font-size: 48px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1;
      }

      .price-period {
        font-size: 18px;
        color: #6e6e73;
        margin-top: 8px;
      }

      .price-note {
        font-size: 14px;
        color: #8e8e93;
        margin-top: 8px;
      }

      .features-list {
        text-align: left;
        margin: 32px 0;
      }

      .feature-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
      }

      .feature-icon {
        width: 24px;
        height: 24px;
        background: #478dff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
        flex-shrink: 0;
      }

      .feature-text {
        color: #2d3436;
        font-size: 15px;
        line-height: 1.5;
      }

      .security-badges {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #e5e5e7;
      }

      .security-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #8e8e93;
      }

      /* Loading animation */
      .loading-screen {
        text-align: center;
        padding: 60px 20px;
      }

      .loading-spinner {
        width: 60px;
        height: 60px;
        margin: 0 auto 24px;
        border: 3px solid #f0f0f0;
        border-top: 3px solid #478dff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }

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

      .loading-text {
        font-size: 18px;
        color: #6e6e73;
        margin-bottom: 8px;
      }

      .loading-subtext {
        font-size: 14px;
        color: #8e8e93;
      }

      /* Responsive */
      @media (max-width: 480px) {
        .quiz-content {
          padding: 80px 16px 100px;
        }

        .bottom-container {
          padding: 16px;
        }

        .question-title {
          font-size: 22px;
        }

        .start-title {
          font-size: 26px;
        }
        
        .loading-reviews {
          max-width: 100%;
          margin-top: 16px;
        }
        
        .reviews-title {
          font-size: 16px;
          margin-bottom: 16px;
        }
        
        .review-item {
          padding: 12px;
          gap: 10px;
        }
        
        .review-avatar {
          width: 36px;
          height: 36px;
          font-size: 12px;
        }
        
        .review-text {
          font-size: 13px;
        }
        
        .review-author {
          font-size: 11px;
        }
      }

      .info-screen {
        text-align: center;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 400px;
      }

      .info-image-container {
        margin-bottom: 30px;
        position: relative;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(71, 141, 255, 0.2);
      }

      .info-image {
        width: 280px;
        height: 350px;
        object-fit: contain;
        object-position: center;
        border-radius: 20px;
        filter: brightness(1.1) contrast(1.05) saturate(1.1);
        transition: transform 0.3s ease;
        background: #f8f9fa;
      }

      .info-image:hover {
        transform: scale(1.02);
      }

      .info-text {
        font-size: 20px;
        color: #478dff;
        font-weight: 600;
        line-height: 1.4;
        max-width: 400px;
        margin: 0 auto;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      }

      @media (max-width: 480px) {
        .info-image {
          width: 240px;
          height: 300px;
        }

        .info-text {
          font-size: 18px;
        }
      }
      .progress-circle-container {
        position: relative;
        display: inline-block;
        margin-bottom: 30px;
      }

      .progress-circle {
        transform: rotate(-90deg);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
        will-change: transform;
        backface-visibility: hidden;
      }

      .progress-circle-bg {
        fill: none;
        stroke: #e2e8f0;
        stroke-width: 8;
      }

      .progress-circle-fill {
        fill: none;
        stroke: #c53030;
        stroke-width: 8;
        stroke-linecap: round;
        transition: stroke-dashoffset 0.3s ease;
        will-change: stroke-dashoffset;
      }

      .progress-percentage {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 28px;
        font-weight: bold;
        color: #2d3748;
      }

      .loading-screen {
        text-align: center;
        padding: 60px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 400px;
        contain: layout style paint;
        backface-visibility: hidden;
        transform: translateZ(0);
      }

      .loading-text {
        font-size: 22px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 10px;
      }

      .loading-subtext {
        font-size: 16px;
        color: #718096;
        margin-bottom: 40px;
      }
      
      /* Customer Reviews in Loading Screen */
      .loading-reviews {
        width: 100%;
        max-width: 600px;
        margin-top: 20px;
        contain: layout style paint;
      }
      
      .reviews-title {
        font-size: 18px;
        font-weight: 600;
        color: #4a5568;
        margin-bottom: 20px;
        text-align: center;
      }
      
      .reviews-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      
      .review-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        background: #f8fafc;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        will-change: transform, box-shadow;
        contain: layout style paint;
      }
      
      .review-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }
      
      .review-avatar {
        width: 40px;
        height: 40px;
        background: #478dff;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
        flex-shrink: 0;
      }
      
      .review-content {
        flex: 1;
        text-align: left;
      }
      
      .review-stars {
        display: flex;
        gap: 3px;
        align-items: center;
        margin-bottom: 8px;
      }

      .review-stars .star-item {
        width: 16px;
        height: 16px;
        background-color: #2ECC71;
        border-radius: 3px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .review-stars .star-item::before {
        content: "★";
        color: white;
        font-size: 12px;
        font-weight: bold;
        line-height: 1;
      }

      /* Single star in rating label */
      .stat-label .star-item {
        width: 16px;
        height: 16px;
        background-color: #2ECC71;
        border-radius: 3px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 4px;
        vertical-align: middle;
      }

      .stat-label .star-item::before {
        content: "★";
        color: white;
        font-size: 12px;
        font-weight: bold;
        line-height: 1;
      }

      /* Mobile responsive styles for stars */
      @media (max-width: 768px) {
        .testimonial-stars .star-item {
          width: 18px;
          height: 18px;
        }
        
        .testimonial-stars .star-item::before {
          font-size: 12px;
        }

        .review-stars .star-item {
          width: 14px;
          height: 14px;
        }
        
        .review-stars .star-item::before {
          font-size: 10px;
        }

        .stat-label .star-item {
          width: 14px;
          height: 14px;
        }
        
        .stat-label .star-item::before {
          font-size: 10px;
        }
      }
      
      .review-text {
        font-size: 14px;
        color: #2d3748;
        line-height: 1.4;
        margin-bottom: 8px;
        font-style: italic;
      }
      
      .review-author {
        font-size: 12px;
        color: #718096;
        font-weight: 500;
      }
      
      /* Redirect loading screen (simple spinner) */
      .redirect-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 400px;
        text-align: center;
        padding: 40px 20px;
        contain: layout style paint;
        backface-visibility: hidden;
        transform: translateZ(0);
      }
      
      .redirect-loading .loading-spinner {
        width: 60px;
        height: 60px;
        margin: 0 auto 24px;
        border: 3px solid #f0f0f0;
        border-top: 3px solid #478dff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        will-change: transform;
      }
      
      .redirect-loading .loading-text {
        font-size: 22px;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 10px;
      }
      
      .redirect-loading .loading-subtext {
        font-size: 16px;
        color: #718096;
      }
      .testimonials-container {
        padding: 20px 20px calc(var(--bottom-safe-area) + 30px);
        max-width: 500px;
        margin: 0 auto;
        position: relative;
        z-index: 40;
      }

      .success-badge {
        text-align: center;
        margin-bottom: 30px;
        padding: 20px;
        background: #478dff;
        border-radius: 16px;
        color: white;
      }

      .success-icon {
        font-size: 32px;
        margin-bottom: 10px;
      }

      .success-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 8px;
      }

      .success-subtitle {
        font-size: 16px;
        opacity: 0.9;
      }

      .stats-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 30px;
        padding: 20px;
        background: #f8fafc;
        border-radius: 12px;
      }

      .stat-item {
        text-align: center;
        flex: 1;
      }

      .stat-number {
        font-size: 24px;
        font-weight: bold;
        color: #478dff;
      }

      .stat-label {
        font-size: 12px;
        color: #718096;
        margin-top: 4px;
      }

      .testimonials-title {
        text-align: center;
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #2d3748;
      }

      .testimonials-slider {
        position: relative;
        height: 280px;
        z-index: 40;
        margin-bottom: calc(var(--bottom-safe-area) + 80px);
      }

      .testimonial-card {
        position: absolute;
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.5s ease;
      }

      .testimonial-card.active {
        opacity: 1;
        transform: translateX(0);
      }

      .verified-badge {
        background: #22c55e;
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
      }

      .progress-arrow {
        font-size: 20px;
        color: #478dff;
        font-weight: bold;
      }

      .guarantee-section {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: #f0f9ff;
        border-radius: 12px;
        margin-top: 20px;
        border: 2px solid #e0f2fe;
      }

      .guarantee-icon {
        font-size: 24px;
      }

      .guarantee-text {
        font-size: 14px;
        color: #0f172a;
      }

      .pulse-animation {
        animation: pulse 2s infinite;
      }

      @keyframes pulse {
        0% {
          box-shadow: 0 0 0 0 rgba(71, 141, 255, 0.4);
        }
        70% {
          box-shadow: 0 0 0 10px rgba(71, 141, 255, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(71, 141, 255, 0);
        }
      }

      .wellness-profile-clean {
        padding: 30px 20px;
        max-width: 600px;
        margin: 0 auto;
        background: white;
      }

      .profile-title {
        text-align: center;
        font-size: 24px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 40px;
      }

      .bmi-scale-container {
        margin-bottom: 30px;
      }

      .bmi-scale-wrapper {
        background: white;
        padding: 20px;
        border-radius: 12px;
        width: 480px !important;
        max-width: 480px !important;
        min-width: 480px !important;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
      }

      .bmi-scale-track {
        height: 40px;
        background: linear-gradient(
          to right,
          #60a5fa 0%,
          #34d399 25%,
          #fbbf24 50%,
          #f87171 75%,
          #ef4444 100%
        );
        border-radius: 20px;
        position: relative;
        margin-bottom: 15px;
      }

      .bmi-pointer {
        position: absolute;
        top: -5px;
        transform: translateX(-50%);
        height: 50px;
        width: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .bmi-dot {
        width: 12px;
        height: 12px;
        background: #dc2626;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }

      .bmi-numbers {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 8px;
        padding: 0 10px;
      }

      .bmi-labels {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 0 10px;
      }

      .bmi-labels .underweight {
        color: #3b82f6;
      }
      .bmi-labels .normal {
        color: #10b981;
      }
      .bmi-labels .overweight {
        color: #f59e0b;
      }
      .bmi-labels .obese {
        color: #ef4444;
      }

      .profile-left-section {
        flex: 2;
      }

      .profile-right-section {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .bmi-alert-card {
        background: #fef7f7;
        border-left: 4px solid #22c55e;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 30px;
        display: flex;
        gap: 15px;
        width: 480px !important;
        max-width: 480px !important;
        min-width: 480px !important;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
      }

      .alert-icons {
        display: flex;
        flex-direction: column;
        gap: 5px;
      }

      .alert-icons span {
        font-size: 20px;
      }

      .alert-title {
        font-size: 18px;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 8px;
      }

      .alert-description {
        font-size: 14px;
        color: #4a5568;
        line-height: 1.5;
      }

      .metrics-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .metric-row {
        display: flex;
        align-items: center;
        gap: 15px;
      }

      .metric-icon {
        font-size: 24px;
        width: 30px;
        text-align: center;
      }

      .metric-info {
        display: flex;
        flex-direction: column;
      }

      .metric-label {
        font-size: 11px;
        color: #9ca3af;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .metric-value {
        font-size: 16px;
        color: #1a202c;
        font-weight: 600;
      }

      .body-silhouette {
        width: 160px;
        height: 280px;
        background: #f3f4f6;
        border-radius: 80px;
        border: 3px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
      }

      .silhouette-body {
        width: 80px;
        height: 200px;
        background: #6b7280;
        border-radius: 40px 40px 25px 25px;
        position: relative;
      }

      .silhouette-body::before {
        content: "";
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        background: #6b7280;
        border-radius: 50%;
      }

      .continue-button {
        width: 100%;
        background: #478dff;
        color: white;
        border: none;
        padding: 18px;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease;
      }

      .continue-button:hover {
        transform: translateY(-2px);
      }

      @media (max-width: 768px) {
        .profile-content {
          flex-direction: column;
          gap: 20px;
        }

        .body-silhouette {
          width: 120px;
          height: 200px;
          margin: 0 auto;
        }

        .silhouette-body {
          width: 60px;
          height: 140px;
        }

        .silhouette-body::before {
          width: 35px;
          height: 35px;
          top: -20px;
        }
      }
      .wellness-profile-clean {
        padding: 40px 30px; /* Increased padding */
        max-width: 800px; /* Increased from 600px */
        margin: 0 auto;
        background: white;
      }

      .bmi-scale-wrapper {
        background: white;
        padding: 25px; /* Increased from 20px */
        border-radius: 12px;
      }

      .profile-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px; /* Increased from 30px */
        margin-bottom: 40px;
      }

      .bmi-alert-card {
        background: #fef7f7;
        border-left: 4px solid #22c55e;
        border-radius: 8px;
        padding: 25px; /* Increased from 20px */
        margin-bottom: 30px;
        display: flex;
        gap: 20px; /* Increased from 15px */
      }

      .alert-description {
        font-size: 15px; /* Increased from 14px */
        color: #4a5568;
        line-height: 1.6; /* Increased from 1.5 */
      }

      .metrics-list {
        display: flex;
        flex-direction: column;
        gap: 25px; /* Increased from 20px */
      }

      .metric-row {
        display: flex;
        align-items: center;
        gap: 18px; /* Increased from 15px */
        padding: 15px; /* Added padding */
        background: #f8fafc; /* Added background */
        border-radius: 8px; /* Added border radius */
      }

      .body-silhouette {
        width: 180px; /* Increased from 160px */
        height: 300px; /* Increased from 280px */
        background: #f3f4f6;
        border-radius: 90px; /* Adjusted */
        border: 3px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
      }

      .silhouette-body {
        width: 90px; /* Increased from 80px */
        height: 220px; /* Increased from 200px */
        background: #6b7280;
        border-radius: 45px 45px 25px 25px; /* Adjusted */
        position: relative;
      }

      .silhouette-body::before {
        content: "";
        position: absolute;
        top: -35px; /* Adjusted from -30px */
        left: 50%;
        transform: translateX(-50%);
        width: 55px; /* Increased from 50px */
        height: 55px; /* Increased from 50px */
        background: #6b7280;
        border-radius: 50%;
      }

      @media (max-width: 768px) {
        .wellness-profile-clean {
          padding: 25px 20px; /* Adjusted for mobile */
          max-width: 100%;
          margin: 0 10px;
        }

        .profile-content {
          flex-direction: column;
          gap: 25px; /* Increased from 20px */
        }

        .body-silhouette {
          width: 140px; /* Increased from 120px */
          height: 220px; /* Increased from 200px */
          margin: 0 auto;
        }

        .silhouette-body {
          width: 70px; /* Increased from 60px */
          height: 160px; /* Increased from 140px */
        }

        .silhouette-body::before {
          width: 40px; /* Increased from 35px */
          height: 40px; /* Increased from 35px */
          top: -25px; /* Adjusted from -20px */
        }

        .bmi-scale-wrapper {
          padding: 20px; /* Adjusted for mobile */
        }

        .bmi-alert-card {
          padding: 20px; /* Adjusted for mobile */
          gap: 15px;
        }
      }
      /* Mobile Adaptation - Add this to your existing CSS */

      /* Base mobile adjustments */
      @media (max-width: 480px) {
        body {
          font-size: 14px;
          line-height: 1.4;
        }

        .container {
          max-width: 100%;
          margin: 0;
        }

        /* Header adjustments */
        .quiz-header {
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          width: 100%;
          box-sizing: border-box;
        }

        .progress-container {
          padding: 15px 16px 12px;
          width: 100%;
          margin: 0;
        }

        .progress-text {
          font-size: 12px;
        }

        /* Content spacing */
        .quiz-content {
          padding: 85px 16px 140px;
          min-height: calc(100vh - 85px);
        }

        .start-screen {
          padding: 20px 16px;
          justify-content: center;
        }

        /* Typography */
        .logo {
          font-size: 28px;
          margin-bottom: 30px;
        }

        .start-title {
          font-size: 24px;
          line-height: 1.1;
          margin-bottom: 10px;
        }

        .start-subtitle {
          font-size: 16px;
          margin-bottom: 20px;
        }

        .question-title {
          font-size: 20px;
          line-height: 1.2;
          margin-bottom: 24px;
        }

        .question-subtitle {
          font-size: 14px;
          margin-bottom: 20px;
        }

        /* Options and buttons */
        .options-container {
          gap: 10px;
          margin-bottom: 20px;
        }

        /* Bottom container */
        .bottom-container {
          padding: 16px;
          background: linear-gradient(to top, white 85%, transparent);
        }

        /* Input fields */
        .input-field {
          padding: 16px;
          font-size: 15px;
          border-radius: 12px;
          min-height: 54px;
          box-sizing: border-box;
        }

        .input-unit {
          right: 16px;
          font-size: 15px;
        }

        .input-note {
          font-size: 11px;
          margin-top: 6px;
        }

        /* Slider adjustments */
        .slider-container {
          margin: 24px 0;
        }

        .slider-value {
          font-size: 28px;
          margin-top: 20px;
        }

        .slider-labels {
          font-size: 12px;
          margin-top: 10px;
        }

        /* Motivational screens */
        .motivational-screen {
          padding: 30px 16px;
        }

        .motivation-icon {
          width: 70px;
          height: 70px;
          font-size: 32px;
          margin-bottom: 20px;
        }

        .motivation-title {
          font-size: 22px;
          margin-bottom: 14px;
        }

        .motivation-text {
          font-size: 15px;
          margin-bottom: 24px;
        }

        /* BMI and profile screens */
        .bmi-card {
          padding: 20px;
          border-radius: 16px;
          margin: 20px 0;
        }

        .bmi-value {
          font-size: 40px;
        }

        .bmi-label {
          font-size: 16px;
        }

        .bmi-message {
          font-size: 14px;
        }

        /* Wellness profile adjustments */
        .wellness-profile-clean {
          padding: 20px 16px;
          max-width: 100%;
          margin: 0;
        }

        .profile-title {
          font-size: 20px;
          margin-bottom: 30px;
        }

        .bmi-scale-wrapper {
          padding: 16px;
          margin: 0 -4px;
        }

        .bmi-scale-track {
          height: 35px;
          margin-bottom: 12px;
        }

        .bmi-pointer {
          top: -3px;
          width: 18px;
          height: 41px;
        }

        .bmi-dot {
          width: 10px;
          height: 10px;
          border: 2px solid white;
        }

        .bmi-numbers,
        .bmi-labels {
          font-size: 10px;
          padding: 0 8px;
        }

        .profile-content {
          flex-direction: column;
          gap: 20px;
          margin-bottom: 30px;
        }

        .bmi-alert-card {
          padding: 16px;
          gap: 12px;
          border-radius: 12px;
          margin-bottom: 20px;
        }

        .alert-title {
          font-size: 16px;
          margin-bottom: 6px;
        }

        .alert-description {
          font-size: 13px;
          line-height: 1.4;
        }

        .metrics-list {
          gap: 16px;
        }

        .metric-row {
          gap: 14px;
          padding: 12px;
          border-radius: 10px;
        }

        .metric-icon {
          font-size: 20px;
          width: 24px;
        }

        .metric-label {
          font-size: 10px;
        }

        .metric-value {
          font-size: 14px;
        }

        .body-silhouette {
          width: 140px;
          height: 220px;
          margin: 0 auto;
          border-radius: 70px;
        }

        .silhouette-body {
          width: 70px;
          height: 160px;
          border-radius: 35px 35px 20px 20px;
        }

        .silhouette-body::before {
          width: 40px;
          height: 40px;
          top: -25px;
        }

        /* Info screen */
        .info-screen {
          padding: 16px;
          min-height: 300px;
        }

        .info-image {
          width: 220px;
          height: 280px;
        }

        .info-text {
          font-size: 16px;
          max-width: 100%;
        }

        /* Loading screen */
        .loading-screen {
          padding: 40px 16px;
          min-height: 300px;
        }

        .progress-circle-container {
          margin-bottom: 20px;
        }

        .loading-text {
          font-size: 18px;
          margin-bottom: 8px;
        }

        .loading-subtext {
          font-size: 14px;
        }

        /* Testimonials */
        .testimonials-container {
          padding: 16px 16px calc(var(--bottom-safe-area) + 20px);
          max-width: 100%;
          margin: 0;
          position: relative;
          z-index: 40;
        }

        .success-badge {
          padding: 16px;
          margin-bottom: 20px;
          border-radius: 12px;
        }

        .success-icon {
          font-size: 28px;
          margin-bottom: 8px;
        }

        .success-title {
          font-size: 20px;
          margin-bottom: 6px;
        }

        .success-subtitle {
          font-size: 14px;
        }

        .stats-row {
          margin-bottom: 20px;
          padding: 16px;
          border-radius: 10px;
        }

        .stat-number {
          font-size: 20px;
        }

        .stat-label {
          font-size: 11px;
        }

        .testimonials-title {
          font-size: 18px;
          margin-bottom: 16px;
        }

        .testimonials-slider {
          height: 260px;
          margin-bottom: calc(var(--bottom-safe-area) + 60px);
        }

        .testimonial-card {
          padding: 10px 24px 5px 24px;
          border-radius: 12px;
          margin-bottom: 12px;
        }

        .testimonial-header {
          gap: 10px;
          margin-bottom: 12px;
        }

        .testimonial-avatar {
          width: 40px;
          height: 40px;
          font-size: 16px;
        }

        .testimonial-name {
          font-size: 14px;
        }

        .testimonial-meta {
          font-size: 12px;
        }

        .testimonial-text {
          font-size: 14px;
          margin-bottom: 12px;
        }

        .before-after {
          gap: 12px;
          padding-top: 12px;
        }

        .before-after-value {
          font-size: 20px;
        }

        .guarantee-section {
          gap: 10px;
          padding: 12px;
          margin-top: 16px;
          border-radius: 10px;
        }

        .guarantee-icon {
          font-size: 20px;
        }

        .guarantee-text {
          font-size: 13px;
        }

        /* Final screen */
        .final-screen {
          padding: 20px 16px;
        }

        .price-badge {
          font-size: 12px;
          padding: 6px 12px;
          margin-bottom: 20px;
        }

        .price-value {
          font-size: 40px;
        }

        .price-period {
          font-size: 16px;
          margin-top: 6px;
        }

        .price-note {
          font-size: 13px;
          margin-top: 6px;
        }

        .features-list {
          margin: 24px 0;
        }

        .feature-item {
          padding: 10px 0;
          gap: 10px;
        }

        .feature-icon {
          width: 20px;
          height: 20px;
          font-size: 11px;
        }

        .feature-text {
          font-size: 14px;
        }

        .security-badges {
          gap: 12px;
          margin-top: 20px;
          padding-top: 20px;
          flex-wrap: wrap;
        }

        .security-badge {
          font-size: 12px;
          gap: 4px;
        }

        /* Quiz timer */
        .quiz-timer {
          gap: 6px;
          padding: 6px 12px;
          font-size: 13px;
          margin-bottom: 30px;
        }
      }

      /* Extra small devices */
      @media (max-width: 360px) {
        .quiz-content {
          padding: 85px 12px 140px;
        }

        .start-screen {
          padding: 16px 12px;
        }

        .question-title {
          font-size: 18px;
        }



        .bottom-container {
          padding: 12px;
        }

        .info-image {
          width: 200px;
          height: 250px;
        }

        .body-silhouette {
          width: 120px;
          height: 190px;
        }

        .silhouette-body {
          width: 60px;
          height: 140px;
        }

        .silhouette-body::before {
          width: 35px;
          height: 35px;
          top: -20px;
        }
      }

      /* Landscape mode adjustments */
      @media (max-height: 500px) and (orientation: landscape) {
        .quiz-content {
          padding: 70px 16px 100px;
        }

        .start-screen {
          padding: 10px 16px;
          justify-content: flex-start;
          padding-top: 20px;
        }

        .logo {
          font-size: 24px;
          margin-bottom: 16px;
        }

        .start-title {
          font-size: 20px;
          margin-bottom: 8px;
        }

        .start-subtitle {
          font-size: 14px;
          margin-bottom: 16px;
        }

        .quiz-timer {
          margin-bottom: 20px;
        }

        .motivation-icon {
          width: 50px;
          height: 50px;
          font-size: 24px;
          margin-bottom: 16px;
        }

        .motivational-screen {
          padding: 20px 16px;
        }

        .loading-screen {
          padding: 20px 16px;
        }

        .body-silhouette {
          width: 100px;
          height: 160px;
        }

        .silhouette-body {
          width: 50px;
          height: 120px;
        }

        .silhouette-body::before {
          width: 30px;
          height: 30px;
          top: -18px;
        }
      }

      /* Touch improvements */
      @media (hover: none) and (pointer: coarse) {
        .option-button:hover {
          transform: none;
          background: white;
          border-color: #f0f0f0;
        }

        .option-button:active {
          transform: scale(0.98);
          background: #fafbff;
          border-color: #478dff;
        }

        .btn-primary:hover {
          transform: none;
          box-shadow: 0 4px 20px rgba(71, 141, 255, 0.25);
        }

        .btn-primary:active {
          transform: scale(0.98);
        }

        .checkbox-option:hover {
          background: white;
          border-color: #f0f0f0;
        }

        .checkbox-option:active {
          background: #fafbff;
          border-color: #478dff;
        }
      }
      .progress-logo {
        display: flex;
        justify-content: center;
      }
      .progress-logo-text {
        padding-right: 10px;
        font-size: 32px;
        font-weight: 800;
        background: #478dff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      /* Updated Header with sections */
      .quiz-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .header-top {
        display: flex;
        align-items: center;
        padding: 16px 20px 8px;
        justify-content: space-between;
      }

      .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .logo-small {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
      }

      .section-title {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
      }

      .progress-info {
        font-size: 14px;
        color: #666;
        font-weight: 500;
      }

      /* Sectioned Progress Bar */
      .progress-container {
        padding: 0 20px 16px;
        width: 100%;
        margin: 0;
      }

      .sectioned-progress {
        display: flex;
        gap: 4px;
        margin-bottom: 12px;
      }

      .section-progress {
        flex: 1;
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
      }

      .section-fill {
        height: 100%;
        background: #478dff;
        border-radius: 2px;
        transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 0%;
      }

      .section-labels {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        color: #9ca3af;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 8px;
      }

      .section-label {
        flex: 1;
        text-align: center;
        opacity: 0.6;
        transition: opacity 0.3s ease;
      }

      .section-label.active {
        opacity: 1;
        color: #478dff;
        font-weight: 600;
      }

      .section-label.completed {
        opacity: 1;
        color: #22c55e;
      }
      .header-top {
        display: flex;
        align-items: center;
        padding: 16px 20px 8px;
        justify-content: space-between;
        position: relative; /* Add this */
      }

      .section-title {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
        position: absolute; /* Add this */
        left: 50%; /* Add this */
        transform: translateX(-50%); /* Add this */
      }
      .sectioned-progress {
        display: flex;
        gap: 8px; /* Increased gap between sections */
        margin-bottom: 12px;
      }

      .section-progress {
        flex: 1;
        height: 6px;
        background: #e5e7eb;
        border-radius: 3px;
      }

      .progress-container {
        padding: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
      }

      .sectioned-progress {
        display: flex;
        gap: 8px;
        margin: 0;
        padding: 0 20px;
      }
      .progress-container {
        padding: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%; /* Add this */
      }

      .sectioned-progress {
        display: flex;
        gap: 8px;
        margin: 0;
        padding: 0; /* Remove the padding: 0 20px; */
        width: 100%; /* Add this */
      }
      .quiz-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 100;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); /* Increased shadow */
        min-height: 80px; /* Add minimum height */
      }

      .header-top {
        display: flex;
        align-items: center;
        padding: 24px 20px 20px; /* Increased padding */
        justify-content: space-between;
        position: relative;
        min-height: 70px; /* Add minimum height */
      }

      .back-button {
        width: 40px; /* Increased from 32px */
        height: 40px; /* Increased from 32px */
        border-radius: 50%;
        background: #f5f5f7;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        color: #2d3436;
        font-size: 18px; /* Increased from 16px */
        font-weight: 600; /* Add font weight */
      }

      .logo-small {
        /* Increased from 700 */
        margin-left: 4px; /* Add some spacing */
        font-size: 27px;
        font-weight: 800;
        background: #478dff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .section-title {
        font-size: 20px; /* Increased from 16px */
        font-weight: 700; /* Increased from 600 */
        color: #1a1a1a;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }

      .quiz-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 100;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        min-height: 80px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Add smooth transition */
      }

      .back-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f5f5f7;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Enhanced transition */
        color: #2d3436;
        font-size: 18px;
        font-weight: 600;
        transform: scale(1); /* Add for scale animation */
      }

      .back-button:hover {
        background: #e8e8eb;
        transform: scale(1.05); /* Add hover scale effect */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Add hover shadow */
      }

      .back-button:active {
        transform: scale(0.95); /* Add press effect */
      }

      .section-title {
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Add transition */
        opacity: 1;
      }

      .section-title.changing {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px); /* Add slide effect */
      }

      .section-progress {
        flex: 1;
        height: 6px;
        background: #e5e7eb;
        border-radius: 3px;
        transition: all 0.3s ease;
      }

      .section-fill {
        height: 100%;
        background: #478dff;
        border-radius: 3px;
        transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        width: 0%;
        position: relative;
      }

      /* Add shimmer effect to progress bar */
      .section-fill::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          rgba(255, 255, 255, 0) 0%,
          rgba(255, 255, 255, 0.4) 50%,
          rgba(255, 255, 255, 0) 100%
        );
        animation: shimmer 2s infinite;
      }

      @keyframes shimmer {
        0% {
          left: -100%;
        }
        100% {
          left: 100%;
        }
      }
      /* Optimized page transition animations */
      .quiz-content {
        align-items: center;
        padding: 90px 20px 120px;
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        will-change: transform; /* Enable GPU acceleration */
      }

      .quiz-content.slide-out-left {
        animation: slideOutToLeft 0.3s ease-out forwards;
      }

      .quiz-content.slide-out-right {
        animation: slideOutToRight 0.3s ease-out forwards;
      }

      .quiz-content.slide-in-left {
        animation: slideInFromLeft 0.3s ease-out;
      }

      .quiz-content.slide-in-right {
        animation: slideInFromRight 0.3s ease-out;
      }

      /* Simplified, faster animations using transform3d for GPU acceleration */
      @keyframes slideInFromRight {
        from {
          opacity: 0;
          transform: translate3d(50px, 0, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }

      @keyframes slideInFromLeft {
        from {
          opacity: 0;
          transform: translate3d(-50px, 0, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }

      @keyframes slideOutToLeft {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(-50px, 0, 0);
        }
      }

      @keyframes slideOutToRight {
        from {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
        to {
          opacity: 0;
          transform: translate3d(50px, 0, 0);
        }
      }

      /* Simplified question animations */
      .question-title {
        font-family: 'Roboto', sans-serif;
            text-align: center;
        font-weight: 600;
        font-size: 29px;
        font-weight: 700;
        line-height: 1.3;
        color: #1a1a1a;
        animation: fadeIn 0.4s ease-out 0.1s both;
        padding-bottom: 20px;
      }



      /* Remove shimmer and pulse animations - they cause performance issues */
      .section-fill {
        height: 100%;
        background: #478dff;
        border-radius: 3px;
        transition: width 0.4s ease-out;
        width: 0%;
        will-change: width;
      }

      /* Optimized button transitions */
      .back-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f5f5f7;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
        color: #2d3436;
        font-size: 18px;
        font-weight: 600;
        will-change: transform;
      }

      .back-button:hover {
        background: #e8e8eb;
        transform: scale(1.05);
      }

      .back-button:active {
        transform: scale(0.95);
      }

      /* Simplified section title transition */
      .section-title {
        margin-left: 20px;
        font-size: 20px;
        font-weight: 700;
        color: #1a1a1a;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: opacity 0.2s ease;
      }

      .section-title.changing {
        opacity: 0;
      }

      /* Primary button - Consolidated Definition */

      /* Hover animation */
      .btn-primary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 30px rgba(71, 141, 255, 0.4);
        background: #478dff;
      }

      /* Active/Press animation */
      .btn-primary:active {
        transform: translateY(0) scale(0.98);
        box-shadow: 0 2px 15px rgba(71, 141, 255, 0.3);
        transition: all 0.1s ease;
      }

      /* Loading animation when clicked */
      .btn-primary.loading {
        animation: pulse 1.5s ease-in-out infinite;
        pointer-events: none;
      }

      @keyframes pulse {
        0%,
        100% {
          transform: translateY(-2px) scale(1.02);
          box-shadow: 0 8px 30px rgba(71, 141, 255, 0.4);
        }
        50% {
          transform: translateY(-2px) scale(1.05);
          box-shadow: 0 12px 40px rgba(71, 141, 255, 0.6);
        }
      }

      /* Ripple effect on click */
      .btn-primary::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
      }

      .btn-primary:active::before {
        width: 300px;
        height: 300px;
      }

      /* Gradient animation */
      .btn-primary::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.2),
          transparent
        );
        transition: left 0.5s;
      }

      .btn-primary:hover::after {
        left: 100%;
      }

      /* Button text animation */
      .btn-primary span {
        position: relative;
        z-index: 1;
        display: inline-block;
        transition: transform 0.2s ease;
        text-align: center;
      }

      .btn-primary:hover span {
        transform: translateY(-1px);
      }

      /* Entrance animation for new buttons */
      .btn-primary.fade-in {
        animation: buttonFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        transform: translateY(20px);
      }

      @keyframes buttonFadeIn {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Button appearance animation */
      .btn-primary {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        animation: buttonAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
      }

      @keyframes buttonAppear {
        0% {
          opacity: 0;
          transform: translateY(30px) scale(0.9);
        }
        60% {
          opacity: 1;
          transform: translateY(-5px) scale(1.05);
        }
        100% {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      /* Alternative slide-up animation */
      .btn-primary.slide-up {
        animation: slideUpAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        transform: translateY(50px);
      }

      @keyframes slideUpAppear {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Bounce appearance animation */
      .btn-primary.bounce-in {
        animation: bounceIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        transform: scale(0.3);
      }

      @keyframes bounceIn {
        0% {
          opacity: 0;
          transform: scale(0.3);
        }
        50% {
          opacity: 1;
          transform: scale(1.1);
        }
        70% {
          transform: scale(0.95);
        }
        100% {
          opacity: 1;
          transform: scale(1);
        }
      }

      /* Fade and scale animation */
      .btn-primary.fade-scale {
        animation: fadeScale 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
        transform: scale(0.8);
      }

      @keyframes fadeScale {
        to {
          opacity: 1;
          transform: scale(1);
        }
      }

      /* Delayed appearance for bottom container */
      .bottom-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, white 90%, transparent);
        padding: 20px;
        z-index: 100;

        /* Add animation for the entire container */
        opacity: 0;
        transform: translateY(100%);
        animation: containerSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.4s
          forwards;
      }

      @keyframes containerSlideUp {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Bottom container optimizations - mobile responsive */

      /* Disabled state during processing */
      .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        pointer-events: none;
      }

      .btn-primary.processing {
        opacity: 0.7;
        cursor: wait;
        pointer-events: none;
      }
      /* Touch-friendly adjustments */
      @media (max-width: 480px) {
        .header-top {
          padding: 8px 12px;
          min-height: 52px;
        }

        .back-button {
          width: 40px;
          height: 40px;
          border-radius: 20px;
          font-size: 18px;
        }

        .logo-small {
          font-size: 20px;
          margin-left: 6px;
        }

        .section-title {
          font-size: 16px;
          max-width: 200px;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        .progress-container {
          padding: 0 12px 5px;
          width: 100%;
          margin: 0;
        }

        .sectioned-progress {
          gap: 4px;
        }

        .section-progress {
          height: 3px;
        }

        .section-fill {
          height: 3px;
        }

        .section-label {
          font-size: 9px;
        }
      }

      /* Landscape mode optimizations */
      @media (max-height: 500px) and (orientation: landscape) {
        .header-top {
          padding: 6px 12px;
          min-height: 44px;
        }

        .progress-container {
          padding: 0 12px 8px;
          width: 100%;
          margin: 0;
        }

        .section-labels {
          display: none; /* Hide labels in landscape to save space */
        }

        .sectioned-progress {
          margin-bottom: 0;
        }
      }


      /* High contrast mode */
      @media (prefers-contrast: high) {
        .quiz-header {
          background: #ffffff;
          border-bottom: 2px solid #000000;
        }

        .back-button {
          background: #8acbff !important;
          color: #ffffff;
          border: 2px solid #000000;
        }

        .section-fill {
          background: #478dff;
          box-shadow: none;
        }
      }

      /* Reduced motion support */
      @media (prefers-reduced-motion: reduce) {
        .back-button,
        .section-title,
        .section-fill,
        .section-label,
        .progress-dot {
          transition: none;
        }

        .quiz-header {
          transition: none;
        }
      }

      /* Option button styling consolidated with main definition above */

      /* Entrance animation */
      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(30px) scale(0.95);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      /* Active/pressed state for touch devices */
      .option-button:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
      }

      .checkbox-option:active {
        transform: translateY(0) scale(0.98);
        transition: all 0.1s ease;
      }

      /* Mobile optimizations */
      @media (max-width: 480px) {
        .option-button {
          padding: 16px;
          font-size: 15px;
          border-radius: 12px;
        }

        .checkbox-option {
          padding: 14px;
          border-radius: 12px;
        }

        .custom-checkbox {
          width: 22px;
          height: 22px;
          border-radius: 6px;
        }

        .checkbox-label {
          font-size: 15px;
        }

        .option-button.selected::after {
          right: 16px;
          font-size: 18px;
        }
      }

      /* High contrast mode support */
      @media (prefers-contrast: high) {
        .option-button {
          border-color: #000000;
          background: #ffffff;
          color: #000000;
        }

        .checkbox-option {
          border-color: #000000;
          background: #ffffff;
        }

        .custom-checkbox {
          border-color: #000000;
        }
      }

      /* Reduced motion support */
      @media (prefers-reduced-motion: reduce) {
        .option-button,
        .checkbox-option {
          animation: none;
          opacity: 1;
          transition: none;
        }

        .option-button:hover,
        .checkbox-option:hover {
          transform: none;
        }
      }



      /* Multiple choice options - bigger */
      .checkbox-option {
        display: flex;
        align-items: center;
        padding: 24px 20px; /* Increased from 16px */
        border: 2px solid #e2e8f0;
        border-radius: 20px; /* Increased from 16px */
        background: white;
        cursor: pointer;
        transition: all 0.3s ease;
        gap: 18px; /* Increased from 14px */
        box-shadow: 0 2px 8px rgba(100, 116, 139, 0.08);
        opacity: 0;
        animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        min-height: 64px; /* Added minimum height */
      }

      .checkbox-option.selected .custom-checkbox::after {
        content: "+";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 16px;
        font-weight: bold;
      }

      /* Bigger checkbox label */
      .checkbox-label {
        font-size: 18px; /* Increased from 16px */
        font-weight: 500;
        color: white;
        transition: color 0.3s ease;
        line-height: 1.4;
      }

      .option-button.selected::after {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: white;
        font-weight: bold;
      }

      /* Bigger gaps between options */
      .options-container {
        display: flex;
        flex-direction: column;
        gap: 16px; /* Increased from 12px */
        margin-bottom: 32px; /* Increased from 24px */
        flex-grow: 1;
      }

      /* Mobile optimizations - still bigger than before */
      @media (max-width: 480px) {
        .option-button {
          padding: 24px 20px; /* Increased from 16px */
          font-size: 17px; /* Increased from 15px */
          border-radius: 16px; /* Increased from 12px */
          min-height: 60px;
        }

        .checkbox-option {
          padding: 20px 18px; /* Increased from 14px */
          border-radius: 16px; /* Increased from 12px */
          gap: 16px; /* Increased from 14px */
          min-height: 56px;
        }

        .custom-checkbox {
          width: 26px; /* Increased from 22px */
          height: 26px; /* Increased from 22px */
          border-radius: 8px; /* Increased from 6px */
        }

        .checkbox-label {
          font-size: 17px; /* Increased from 15px */
        }

        .option-button.selected::after {
          font-size: 22px; /* Increased from 18px */
        }

        .checkbox-option.selected .custom-checkbox::after {
          font-size: 15px; /* Increased from 14px */
        }

        .options-container {
          gap: 14px; /* Increased from 12px */
        }
      }

      /* Extra small devices - still bigger */
      @media (max-width: 360px) {
        .option-button {
          padding: 22px 18px;
          font-size: 16px;
          min-height: 56px;
        }

        .checkbox-option {
          padding: 18px 16px;
          min-height: 52px;
        }
      }

      /* Landscape mode - adjust for limited height */
      @media (max-height: 500px) and (orientation: landscape) {
        .option-button {
          padding: 20px 24px;
          min-height: 52px;
        }

        .checkbox-option {
          padding: 18px 20px;
          min-height: 48px;
        }

        .options-container {
          gap: 12px;
        }
      }

      .start-question {
        margin: 40px 0 30px;
        width: 100%;
      }

      .start-question-title {
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        text-align: center;
        margin-bottom: 20px;
      }

      .start-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 480px;
        max-width: 480px;
        margin: 0 auto;
        align-items: center;
      }

      .start-option {
        padding: 16px 20px;
        border: 2px solid #f0f0f0;
        border-radius: 12px;
        background: white;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 16px;
        font-weight: 500;
        color: white;
        text-align: center;
        position: relative;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 480px !important;
        max-width: 480px !important;
        min-width: 480px !important;
        margin: 0 auto;
        box-sizing: border-box;
      }

      .start-option:hover {
        border-color: #478dff;
        background: #fafbff;
        transform: translateY(-1px);
      }

      .start-option.selected {
        border-color: #478dff;
        background: #478dff;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(71, 141, 255, 0.3);
      }

      .start-option.selected::after {
        content: "+";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: white;
        font-weight: bold;
      }

      /* Button states */
      .btn-primary:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        transform: none !important;
        pointer-events: none;
      }

      .btn-primary.enabled {
        opacity: 1;
        cursor: pointer;
        pointer-events: auto;
      }

      /* Mobile responsive */
      @media (max-width: 480px) {
        .start-question-title {
          font-size: 18px;
        }

        .start-options {
          max-width: 100%;
          gap: 10px;
        }

        .start-option {
          padding: 14px 16px;
          font-size: 15px;
          min-height: 56px;
        }
      }

.checkbox-option.selected .custom-checkbox {
  background: #478dff;
  border-color: #478dff;
  box-shadow: 0 2px 8px rgba(71, 141, 255, 0.3);
}

.checkbox-option.selected .custom-checkbox::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  display: block;
}

@media (max-width: 480px) {
  .option-button::after {
    width: 28px;
    height: 28px;
    right: 20px;
    font-size: 14px;
  }

  .start-option::after {
    width: 24px;
    height: 24px;
    right: 12px;
    font-size: 12px;
  }

  .custom-checkbox {
    width: 28px;
    height: 28px;
  }

  .checkbox-option.selected .custom-checkbox::after {
    font-size: 14px;
  }
}

.start-option {
  padding: 20px 60px 20px 24px; /* Increased padding, matching main options */
  border: 2px solid #e2e8f0; /* Match the border color */
  border-radius: 16px; /* Slightly larger border radius */
  background: #8acbff !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px; /* Increased from 16px */
  font-weight: 500;
  color: white; /* Match the text color */
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px; /* Added minimum height */
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.08); /* Match the shadow */
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin: 0 auto;
  box-sizing: border-box;
}

.start-option::after {
  content: "";
  position: absolute;
  right: 24px; /* Increased from 15px to match main options */
  top: 50%;
  transform: translateY(-50%);
  width: 32px; /* Increased from 28px */
  height: 32px; /* Increased from 28px */
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  background: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* Increased from 14px */
  font-weight: bold;
  color: white;
}

.start-option:hover {
  border-color: #478dff;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); /* Match hover style */
  transform: translateY(-2px) scale(1.02); /* Match the transform */
  box-shadow: 0 8px 25px rgba(71, 141, 255, 0.15); /* Match hover shadow */
  color: white; /* Match hover text color */
}

.start-option:hover::after {
  border-color: #478dff;
}

.start-option.selected {
  border-color: #478dff;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); /* Match selected background */
  color: white; /* Match selected text color */
  transform: translateY(-2px) scale(1.02); /* Match the transform */
  box-shadow: 0 10px 30px rgba(71, 141, 255, 0.3); /* Match selected shadow */
}

.start-option.selected::after {
  content: "✓";
  background: #478dff;
  border-color: #478dff;
  box-shadow: 0 2px 8px rgba(71, 141, 255, 0.3);
}

/* Custom date picker styles */
.date-input-container {
  position: relative;
  width: 480px;
  max-width: 480px;
  margin: 0 auto 24px auto;
  display: flex;
  justify-content: center;
}

.custom-date-input {
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  padding: 18px 60px 18px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #475569;
  font-weight: 500;
  margin: 0 auto;
  box-sizing: border-box;
}

.custom-date-input:hover {
  border-color: #3b82f6;
  background: #fafbff;
}

.custom-date-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  color: #6b7280;
}

.date-placeholder {
  color: #9ca3af;
}

.date-value {
  color: #1f2937;
}

/* Hidden native date input */
.native-date-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .custom-date-input {
    padding: 16px 50px 16px 18px;
    font-size: 15px;
    border-radius: 12px;
  }
  
  .date-icon {
    right: 16px;
    width: 20px;
    height: 20px;
  }
}

/* Updated motivation screen with image support */
.motivational-screen {
  padding: 20px;
  animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

/* Inline motivation content layout */
.motivational-screen .motivation-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
  padding: 40px 0;
}


.motivation-text-section {
  flex: 1;
  text-align: left;
}

.motivation-image-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 20px;
}

.motivation-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
  border-radius: 16px;
}

.motivation-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.2;
}

.motivation-title .highlight {
  color: #3b82f6;
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
}

.motivation-subtitle {
  font-size: 18px;
  color: #374151;
  line-height: 1.4;
  margin-bottom: 16px;
  font-weight: 500;
}

.motivation-description {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .motivation-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .motivation-text-section {
    order: 2;
  }
  
  .motivation-image-section {
    order: 1;
  }
  
  .motivation-title {
    font-size: 26px;
  }
  
  .motivation-title .highlight {
    font-size: 28px;
  }
  
  .motivation-subtitle {
    font-size: 16px;
  }
  
  .motivation-description {
    font-size: 15px;
  }
  
  /* Inline motivation responsive */
  .motivational-screen .motivation-content {
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .motivational-screen {
    padding: 16px;
  }
  
  .motivation-content {
    gap: 16px;
  }
  
  .motivation-title {
    font-size: 22px;
  }
  
  .motivation-title .highlight {
    font-size: 24px;
  }
  
  /* Inline motivation responsive */
  .motivational-screen .motivation-content {
    gap: 20px;
    padding: 16px 0;
  }
}

/* Full-screen hanging motivation window with text left, image right */
/* Full-screen motivation window with text left, image right */
.motivational-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.motivation-content {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100vh;
  background: white;
  padding-top: 140px;
  padding-bottom: 120px;
  box-sizing: border-box;
}

.motivation-text-section {
  flex: 0 0 50%; /* Fixed 50% width, no grow/shrink */
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: white;
  position: relative;
  text-align: left;
}

.motivation-image-section {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.motivation-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f8f9fa;
}

/* Text styling */
.motivation-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 0.95;
  margin: 0 0 20px 0;
  color: #1e293b;
  letter-spacing: -0.035em;
  text-align: left;
}

.motivation-title .highlight {
  color: #ec4899;
  display: block;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}

.motivation-subtitle {
  font-size: 24px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
  max-width: 500px;
  text-align: left;
}

/* Keep header and bottom container visible */
.quiz-header {
  z-index: 100 !important;
  position: fixed !important;
}

.bottom-container {
  z-index: 100 !important;
  position: fixed !important;
}

/* Large desktop */
@media (min-width: 1400px) {
  .motivation-text-section {
    padding: 100px 80px;
  }
  
  .motivation-title {
    font-size: 80px;
  }
  
  .motivation-subtitle {
    font-size: 28px;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .motivation-text-section {
    padding: 60px 50px;
  }
  
  .motivation-title {
    font-size: 56px;
  }
  
  .motivation-subtitle {
    font-size: 22px;
  }
}

/* Tablet landscape */
@media (max-width: 1024px) {
  .motivation-content {
    position: relative;
    padding-top: 120px;
    padding-bottom: 100px;
  }
  
  .motivation-text-section {
    padding: 50px 40px;
  }
  
  .motivation-title {
    font-size: 48px;
  }
  
  .motivation-subtitle {
    font-size: 20px;
  }
}

/* Tablet portrait - stack vertically */
@media (max-width: 768px) {
  .motivation-content {
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 90px;
  }
  
  .motivation-text-section {
    flex: 0 0 auto;
    order: 2;
    padding: 40px 30px;
    text-align: center;
    align-items: center;
  }
  
  .motivation-image-section {
    flex: 0 0 auto;
    order: 1;
    min-height: 250px;
    max-height: 60vh;
    padding: 15px;
  }
  
  .motivation-title {
    font-size: 40px;
    text-align: center;
  }
  
  .motivation-subtitle {
    font-size: 18px;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .motivation-content {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .motivation-text-section {
    padding: 30px 20px;
  }
  
  .motivation-image-section {
    flex: 0 0 auto;
    min-height: 200px;
    max-height: 50vh;
    padding: 10px;
  }
  
  .motivation-title {
    font-size: 32px;
  }
  
  .motivation-subtitle {
    font-size: 16px;
  }
}

/* Landscape mode - keep side by side */
@media (max-height: 600px) and (orientation: landscape) {
  .motivation-content {
    flex-direction: row;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .motivation-text-section {
    flex: 0 0 50%;
    order: 1;
    padding: 20px 30px;
    text-align: left;
    align-items: flex-start;
  }
  
  .motivation-image-section {
    flex: 0 0 50%;
    order: 2;
  }
  
  .motivation-title {
    font-size: 32px;
    text-align: left;
  }
  
  .motivation-subtitle {
    font-size: 16px;
    text-align: left;
  }
}

/* Animation for entrance */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.motivational-screen {
  animation: fadeInScale 0.5s ease-out;
}

.motivation-text-section {
  animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.motivation-image-section {
  animation: slideInFromRight 0.8s ease-out 0.4s both;
}

/* Height input with unit selector and consent */
.height-input-container {
  margin-bottom: 24px;
  position: relative;
  width: 480px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

.input-with-units {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  transition: all 0.3s ease;
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.input-with-units:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.height-input {
  flex: 1;
  padding: 18px 20px;
  border: none;
  font-size: 16px;
  background: transparent;
  outline: none;
  color: #1f2937;
  border-radius: 16px 0 0 16px;
  box-sizing: border-box;
}

.height-input::placeholder {
  color: #9ca3af;
}

.unit-selector {
  display: flex;
  background: #f8fafc;
  border-radius: 0 16px 16px 0;
  overflow: hidden;
}

.unit-option {
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unit-option.active {
  background: #3b82f6;
  color: white;
  font-weight: 600;
}

.unit-option:hover:not(.active) {
  background: #e2e8f0;
  color: #374151;
}

/* Privacy policy consent */
.consent-container {
  margin-top: 24px;
  margin-bottom: 24px;
  width: 480px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

.consent-checkbox {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin: 0 auto;
  box-sizing: border-box;
}

.consent-checkbox:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.consent-checkbox.checked {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.consent-check {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.consent-checkbox.checked .consent-check {
  background: #3b82f6;
  border-color: #3b82f6;
}

.consent-checkbox.checked .consent-check::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.consent-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.privacy-link {
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-link:hover {
  color: #1d4ed8;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .height-input {
    padding: 16px 18px;
    font-size: 15px;
  }
  
  .unit-option {
    padding: 16px 16px;
    font-size: 15px;
    min-width: 50px;
    box-sizing: border-box;
  }
  
  .consent-checkbox {
    padding: 14px;
  }
  
  .consent-text {
    font-size: 13px;
  }
}

.consent-checkbox.checked {
  border-color: #3b82f6;
  background: #f0f9ff;
  pointer-events: none !important;
  opacity: 0.8;
  cursor: default !important;
}

.consent-checkbox.checked:hover {
  border-color: #3b82f6;
  background: #f0f9ff;
  transform: none;
}

.bmi-notification {
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  animation: slideInNotification 0.5s ease-out 0.3s forwards;
  box-sizing: border-box;
}

.bmi-notification.warning {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.bmi-notification.error {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.bmi-notification.success {
  background: #f0fdf4;
  border-left-color: #22c55e;
}

.bmi-notification.info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.bmi-notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bmi-notification-icon {
  font-size: 18px;
}

.bmi-notification-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.bmi-notification-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

.weight-display {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  text-align: center;
}

/* Inline BMI notification - appears below input fields */
.bmi-notification:not(:first-child) {
  margin-top: 20px;
  margin-bottom: 20px;
}

@keyframes slideInNotification {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wellness-profile {
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  background: white;
}

.profile-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 40px;
}

/* BMI Scale */
.bmi-scale-section {
  margin-bottom: 40px;
}

.bmi-scale-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 30px;
}

.bmi-scale-container {
  position: relative;
  margin-bottom: 30px;
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.bmi-indicator {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.bmi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.bmi-badge::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #1a1a1a;
}

.bmi-scale-track {
  height: 12px;
  background: linear-gradient(
    to right,
    #3b82f6 0%,
    #10b981 25%,
    #fbbf24 50%,
    #f97316 75%,
    #ef4444 100%
  );
  border-radius: 6px;
  position: relative;
  margin: 20px 0;
}

.bmi-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}

.bmi-categories {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  color: #6b7280;
}

/* BMI Alert */
.bmi-alert {
  background: #f0fdf4;
  border: 1px solid #22c55e;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  animation: slideInAlert 0.6s ease-out;
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.bmi-alert.warning {
  background: #fef3c7;
  border-color: #f59e0b;
}

.bmi-alert.error {
  background: #fef2f2;
  border-color: #ef4444;
}

.bmi-alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.bmi-alert-icon {
  width: 24px;
  height: 24px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.bmi-alert.warning .bmi-alert-icon {
  background: #f59e0b;
}

.bmi-alert.error .bmi-alert-icon {
  background: #ef4444;
}

.bmi-alert-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.bmi-alert-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* Profile Metrics */
.profile-metrics {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
}

.metric-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-info-icon {
  width: 16px;
  height: 16px;
  background: #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  cursor: help;
}

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

/* Mobile responsive */
@media (max-width: 480px) {
  .wellness-profile {
    padding: 20px 16px;
  }
  
  .bmi-scale-title {
    font-size: 20px;
  }
  
  .bmi-badge {
    font-size: 14px;
    padding: 6px 16px;
  }
  
  .metric-item {
    gap: 12px;
  }
  
  .metric-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .metric-value {
    font-size: 16px;
  }
}

.age-motivation-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 0;
  margin: 0;
}

.age-motivation-content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.age-motivation-text {
  flex: 1;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.age-motivation-image {
  flex: 1;
  height: 100vh;
  background: #478dff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

}

.age-motivation-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 16px;
}

.age-motivation-icon {
  font-size: 48px;
  margin-bottom: 20px;
  animation: bounceIn 0.8s ease-out;
}

.age-motivation-title {
  font-size: 42px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.age-motivation-title .highlight {
  background: #478dff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.age-motivation-subtitle {
  font-size: 20px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 24px;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.age-motivation-text-content {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  animation: slideInLeft 0.8s ease-out 0.6s both;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .age-motivation-content {
    flex-direction: column;
  }
  
  .age-motivation-text {
    order: 2;
    padding: 40px 30px;
    text-align: center;
  }
  
  .age-motivation-image {
    order: 1;
    height: 40vh;
    flex: none;
  }
  
  .age-motivation-title {
    font-size: 28px;
  }
  
  .age-motivation-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .age-motivation-text {
    padding: 30px 20px;
  }
  
  .age-motivation-title {
    font-size: 24px;
  }
  
  .age-motivation-icon {
    font-size: 36px;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.age-motivation-image {
  flex: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #478dff;
}

.motivation-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: inline-block;
  background: transparent;
  border-radius: 16px;
}

/* Ensure images load properly on mobile */
@media (max-width: 768px) {
  .age-motivation-image {
    height: 40vh;
    flex: none;
  }
  
  .motivation-photo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent;
    display: inline-block;
    border-radius: 16px;
  }
}

/* Enhanced responsive image handling */
@media (max-width: 480px) {
  .age-card-image {
    height: 180px;
  }
  
  .option-button.option-with-image .option-image {
    width: 60px;
    height: 60px;
  }
  
  .checkbox-option.checkbox-with-image .option-image {
    width: 60px;
    height: 60px;
  }
  
  .info-image {
    width: 200px;
    height: 250px;
  }
  
  .motivation-photo {
    max-width: 280px;
    max-height: 280px;
    width: auto;
    height: auto;
    display: inline-block;
    border-radius: 16px;
  }
}

/* Image fallback and loading states */
img {
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

img[src=""], img:not([src]) {
  opacity: 0;
}

/* Ensure all images have proper fallback backgrounds */
.age-card-image,
.option-image,
.before-after-photo,
.motivation-image,
.motivation-photo,
.age-photo,
.info-image {
  background-color: transparent;
  border-radius: 16px;
}

/* Image loading animation */
@keyframes imageLoad {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

img {
  animation: imageLoad 0.3s ease-out;
}


.image-loaded {
  opacity: 1;
  filter: none;
  transition: all 0.3s ease;
}

.image-error {
  opacity: 0.3;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

/* Loading spinner for images */
.image-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #478dff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

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

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .age-card-image img,
  .option-image img,
  .before-after-photo,
  .motivation-image,
  .motivation-photo,
  .age-photo,
  .info-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

.age-motivation-content {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: none;
  height: 100vh;
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  flex-direction: row; /* Ensure horizontal layout */
}

.age-motivation-text {
  flex: 1;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 1; /* Text on the left */
}

.age-motivation-image {
  flex: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #478dff;
  order: 2;
}

.motivation-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: inline-block;
  background: transparent;
  border-radius: 16px;
}

/* Desktop specific - ensure photo stays on right */
@media (min-width: 769px) {
  .age-motivation-content {
    flex-direction: row;
  }
  
  .age-motivation-text {
    order: 1;
    flex: 1;
  }
  
  .age-motivation-image {
    order: 2;
    flex: 1;
  }
}

/* Mobile responsive - stack vertically with image on top */
@media (max-width: 768px) {
  .age-motivation-content {
    flex-direction: column;
  }
  
  .age-motivation-text {
    order: 2;
    padding: 40px 30px;
    text-align: center;
  }
  
  .age-motivation-image {
    order: 1;
    height: 40vh;
    flex: none;
  }
}

@media (max-width: 480px) {
  .age-motivation-text {
    padding: 30px 20px;
  }
  
  .age-motivation-title {
    font-size: 24px;
  }
  
  .age-motivation-icon {
    font-size: 36px;
  }
}

/* New age motivation styles - completely separate */
.age-motivation-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.age-motivation-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  max-width: none;
}

.age-text-section {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.age-image-section {
  flex: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #478dff;
}

.age-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f8f9fa;
}

.age-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.age-title {
  font-size: 42px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 16px;
}

.age-title .highlight {
  background: #478dff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.age-subtitle {
  font-size: 20px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 24px;
}

.age-description {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .age-motivation-layout {
    flex-direction: column;
  }
  
  .age-text-section {
    order: 2;
    padding: 40px 30px;
    text-align: center;
  }
  
  .age-image-section {
    order: 1;
    height: 40vh;
    flex: none;
  }
  
  .age-title {
    font-size: 28px;
  }
  
  .age-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .age-text-section {
    padding: 30px 20px;
  }
  
  .age-title {
    font-size: 24px;
  }
  
  .age-icon {
    font-size: 36px;
  }
}



/* Fullscreen motivation with image layout */
.motivation-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 50;
  display: block;
  margin: 0;
  padding: 0;
}

.motivation-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: 80px;
  padding-bottom: 100px;
  box-sizing: border-box;
}

.motivation-text-section {
  flex: 1;
  padding: 60px 0 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  order: 1;
  text-align: center;
}

.motivation-image-section {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
  margin: 0;
  padding: 0;
}

.motivation-photo {
  max-width: 350px;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  object-position: center;
  display: inline-block;
  margin: auto;
  padding: 0;
  background: transparent;
}

.motivation-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.motivation-title {
  font-size: 42px;
  text-align: start;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 16px;
}

.motivation-title .highlight {
  background: #478dff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.motivation-subtitle {
  font-size: 20px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 24px;
}

.motivation-description {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.6;
  text-align: start;
}

/* Centered motivation layout (no image) */
.motivation-fullscreen-centered {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 80px 20px 100px;
  box-sizing: border-box;
}

.motivation-content-centered {
  text-align: center;
  max-width: 600px;
}

.motivation-icon-large {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #478dff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 10px 30px rgba(71, 141, 255, 0.3);
}

.motivation-title-centered {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
  line-height: 1.3;
}

.motivation-subtitle-centered {
  font-size: 18px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 16px;
}

.motivation-description-centered {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .motivation-fullscreen {
    padding-top: 80px;
  }
  
  .motivation-layout {
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 20px;
    height: calc(100vh - 80px);
    overflow-y: auto;
  }
  
  .motivation-text-section {
    order: 1;
    padding: 20px 20px 10px 20px;
    text-align: center;
    flex: 0 0 auto;
  }
  
  .motivation-image-section {
    order: 2;
    height: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 20px 20px;
    min-height: 300px;
  }
  
  .motivation-photo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: inline-block;
    background: transparent;
    border-radius: 16px;
  }
  
  .motivation-title {
    font-size: 28px;
  }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
  .motivation-fullscreen {
    padding-top: 70px;
  }
  
  .motivation-layout {
    padding-top: 0;
    padding-bottom: 10px;
    height: calc(100vh - 70px);
  }
  
  .motivation-text-section {
    padding: 15px 15px 5px 15px;
  }
  
  .motivation-image-section {
    padding: 5px 15px 15px 15px;
    min-height: 250px;
  }
  
  .motivation-photo {
    max-width: 90%;
    max-height: 90%;
  }
  
  .motivation-subtitle {
    font-size: 16px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .motivation-fullscreen {
    padding-top: 60px;
  }
  
  .motivation-layout {
    height: calc(100vh - 60px);
  }
  
  .motivation-title-centered {
    font-size: 26px;
  }
  
  .motivation-subtitle-centered {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .motivation-text-section {
    padding: 20px 16px;
  }
  
  .motivation-title {
    font-size: 24px;
  }
  
  .motivation-icon {
    font-size: 36px;
  }
  
  .motivation-title-centered {
    font-size: 22px;
  }
  
  .motivation-icon-large {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
}

/* Weight Prediction Screen */
.weight-prediction-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  margin-top: 80px;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px 40px;
  box-sizing: border-box;
  overflow-y: auto;
}

.prediction-content {
  max-width: 650px;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
  padding-bottom: calc(var(--bottom-safe-area) + 50px);
}

.prediction-main-title {
  font-size: 38px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.1;
  margin-bottom: 35px;
}

.prediction-subtitle {
  font-size: 22px;
  color: #4a5568;
  margin-bottom: 25px;
  font-weight: 500;
}
.target-number {
  font-size: 48px;
  font-weight: 900;
  color: #e53e3e;
  margin-right: 10px;
  text-shadow: 0 2px 4px rgba(229, 62, 62, 0.2);
}

.target-unit {
  font-size: 20px;
  color: #718096;
  margin: 0 5px;
}

.target-date {
  font-size: 28px;
  font-weight: 600;
  color: #e53e3e;
}

.gain-subtitle {
  font-size: 21px;
  color: #4a5568;
  margin-bottom: 20px;
  font-weight: 500;
}

.weight-change {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    max-width: 190px;
    display: inline;
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: px;
    border: 2px solid #e2e8f0;
}

.change-amount {
  font-size: 36px;
  font-weight: 700;
  color: #1a202c;
  margin-right: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.change-text {
  font-size: 20px;
  color: #1a202c;
}

.chart-section {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 24px;
  padding: 25px 20px;
  margin: 25px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 2px solid #e2e8f0;
}

.prediction-chart {
  width: 100%;
  height: 350px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  position: relative;
}

.chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  will-change: opacity, stroke-dashoffset;
  backface-visibility: hidden;
}

/* Line drawing animation */
.chart-line.animate {
  animation: drawLine 4s ease-out forwards;
  will-change: stroke-dashoffset;
}

.chart-grid-line {
  stroke: #e2e8f0;
  stroke-width: 0.5;
  opacity: 0.3;
}

.chart-axis-label {
  font-size: 13px;
  fill: #4a5568;
  font-weight: 600;
  text-anchor: middle;
}

.event-marker-line {
  stroke: #e53e3e;
  stroke-width: 2;
  stroke-dasharray: 5,5;
  opacity: 1;
}

/* Legacy HTML labels (kept for backward compatibility) */
.event-marker-label {
  position: absolute;
  background: #4a5568;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  top: 30px;
  left: 60%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeInScale 0.5s ease-out 1.4s forwards;
  white-space: nowrap;
}

.goal-marker-label {
  position: absolute;
  background: #e53e3e;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  top: 20px;
  right: 20px;
  opacity: 0;
  animation: bounceIn 0.6s ease-out 1.6s forwards;
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
  text-align: center;
  line-height: 1.2;
}

.prediction-disclaimer {
  font-size: 12px;
  color: #a0aec0;
  line-height: 1.5;
  margin-top: 25px;
}

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drawLine {
  from {
    stroke-dashoffset: var(--path-length, 1000);
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Smooth transitions for chart elements */
.chart-line,
.event-marker-line,
.event-marker-icon,
.goal-marker-icon {
  transition: opacity 0.8s ease-out;
}

@keyframes pointAppear {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}



/* Mobile Responsive */
@media (max-width: 768px) {
  .prediction-main-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  .prediction-subtitle {
    font-size: 18px;
  }
  
  .gain-subtitle {
    font-size: 18px;
  }
  
  .target-number {
    font-size: 42px;
  }
  
  .target-date {
    font-size: 22px;
  }
  
  .change-amount {
    font-size: 26px;
  }
  
  .chart-section {
    padding: 20px 15px;
    margin: 20px 0;
  }
  
  .prediction-chart {
    height: 300px;
  }
  
  .event-marker-label {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .goal-marker-label {
    font-size: 12px;
    padding: 8px 12px;
    right: 10px;
  }
  
  .weight-target,
  .weight-change {
    padding: 20px;
  }
  
  .chart-section {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .weight-prediction-fullscreen {
    padding: 30px 16px 50px;
  }
  
  .prediction-main-title {
    font-size: 24px;
  }
  
  .prediction-subtitle {
    font-size: 16px;
  }
  
  .gain-subtitle {
    font-size: 16px;
  }
  
  .target-number {
    font-size: 36px;
  }
  
  .target-unit {
    font-size: 16px;
  }
  
  .target-date {
    font-size: 18px;
  }
  
  .change-amount {
    font-size: 22px;
  }
  
  .change-text {
    font-size: 16px;
  }
}

/* Age motivation entrance animations */
.age-motivation-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 50;
  display: block;
  margin: 0;
  padding: 0;
  opacity: 0;
  animation: motivationScreenFadeIn 0.8s ease-out forwards;
}

.age-motivation-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: 80px;
  padding-bottom: 100px;
  box-sizing: border-box;
}

.age-text-section {
  flex: 1;
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  order: 2;
  opacity: 0;
  transform: translateX(-60px);
  animation: textSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.age-image-section {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #478dff;
  order: 1;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateX(60px) scale(0.95);
  animation: imageSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.age-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  animation: photoZoomIn 1.2s ease-out 0.8s forwards;
}

.age-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation: iconBounce 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.age-title {
  font-size: 42px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(40px);
  animation: titleSlideUp 0.8s ease-out 1s forwards;
}

.age-title .highlight {
  background: #478dff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: highlightPulse 2s ease-in-out 1.5s infinite;
}

.age-subtitle {
  font-size: 20px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: subtitleFadeUp 0.8s ease-out 1.2s forwards;
}

.age-description {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(25px);
  animation: descriptionFadeUp 0.8s ease-out 1.4s forwards;
}

/* Keyframe animations */
@keyframes motivationScreenFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes textSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  70% {
    opacity: 1;
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes imageSlideIn {
  0% {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  70% {
    opacity: 0.9;
    transform: translateX(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes photoZoomIn {
  from {
    transform: scale(1.1);
    filter: blur(2px);
  }
  to {
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes iconBounce {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

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

@keyframes highlightPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Button entrance animation */
.bottom-container {
  opacity: 0;
  transform: translateY(50px);
  animation: buttonContainerSlideUp 0.6s ease-out 1.0s forwards;
}

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

/* Mobile responsive animations */
@media (max-width: 768px) {
  .age-motivation-layout {
    flex-direction: column;
    padding-top: 60px;
    padding-bottom: 80px;
  }
  
  .age-text-section {
    order: 2;
    padding: 30px 20px;
    text-align: center;
    transform: translateY(60px);
    animation: textSlideUpMobile 1s ease-out 0.5s forwards;
  }
  
  .age-image-section {
    order: 1;
    height: 40vh;
    flex: none;
    transform: translateY(-60px) scale(0.95);
    animation: imageSlideDownMobile 1s ease-out 0.2s forwards;
  }
  
  @keyframes textSlideUpMobile {
    from {
      opacity: 0;
      transform: translateY(60px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes imageSlideDownMobile {
    from {
      opacity: 0;
      transform: translateY(-60px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}


/* Full screen layout and button sizing rules consolidated above - redundant overrides removed */

/* Responsive sizing rules consolidated above - excessive overrides removed for performance */

/* SLIDER/SCALE QUESTIONS - 450px WIDTH OVERRIDE v7.0 */
/* Only slider questions get the 450px width specification */

.slider-container,
.scale-container,
.quiz-content .slider-container,
#quizContent .slider-container,
.quiz-content .scale-container,
#quizContent .scale-container {
    align-items: center;
  width: 450px !important;
  max-width: 450px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.slider-track,
.scale-track,
.quiz-content .slider-track,
#quizContent .slider-track,
.quiz-content .scale-track,
#quizContent .scale-track {
  width: 450px !important;
  max-width: 450px !important;
}

/* Slider input width */
.slider-input,
.scale-input,
.quiz-content .slider-input,
#quizContent .slider-input,
.quiz-content .scale-input,
#quizContent .scale-input {
  width: 450px !important;
  max-width: 450px !important;
}

/* Mobile responsive for sliders */
@media (max-width: 480px) {
  .slider-container,
  .scale-container,
  .quiz-content .slider-container,
  #quizContent .slider-container,
  .quiz-content .scale-container,
  #quizContent .scale-container {
    width: calc(100vw - 40px) !important;
    max-width: 450px !important;
    min-width: 280px !important;
  }
  
  .slider-track,
  .scale-track,
  .quiz-content .slider-track,
  #quizContent .slider-track,
  .quiz-content .scale-track,
  #quizContent .scale-track {
    width: 100% !important;
  }
  
  .slider-input,
  .scale-input,
  .quiz-content .slider-input,
  #quizContent .slider-input,
  .quiz-content .scale-input,
  #quizContent .scale-input {
    width: 100% !important;
  }
}

/* RESTORED ESSENTIAL BUTTON AND LAYOUT STYLES */

/* Enhanced Option Button Styling */
.option-button {
  border-radius: 20px;
  cursor: pointer;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 17px;
  font-weight: 500;
  color: black;
    text-align: left;
  position: relative;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.08);
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 84px;
  height: auto;
  display: flex;
  align-items: center;
  /* Text truncation with ellipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Ensure text truncation works properly in flex containers */
.option-button > *:not(.option-image):not(.custom-checkbox) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 80px;
}

/* Option Button Circle Indicator */
.option-button::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgb(128 129 132 / 30%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  transition: all 0.3s ease;
}


.option-button.selected::after {
  content: "✓";
  background: black;
  border-color: black;
  box-shadow: 0 2px 8px rgb(128 129 132 / 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: white;
  
}

/* Enhanced Checkbox Option Styling */
.checkbox-option {
  display: flex;
  align-items: center;
  padding: 40px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 18px;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.08);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  min-height: 80px;
  height: auto;
  /* Text truncation with ellipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 480px !important;
  max-width: 480px !important;
  min-width: 480px !important;
  margin: 0 auto;
  box-sizing: border-box;
}
/* Enhanced Custom Checkbox */
.custom-checkbox {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgb(128 129 132 / 30%);
  flex-shrink: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-option:hover .custom-checkbox {
  border-color: #478dff;
}

.checkbox-option.selected .custom-checkbox {
  background: black;
  border-color: black;
  box-shadow: 0 2px 8px rgb(128 129 132 / 30%);
}

.checkbox-option.selected .custom-checkbox::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
}

/* Enhanced Button Labels */
.checkbox-label {
  font-size: 18px;
  font-weight: 500;
  color: black;
  transition: color 0.3s ease;
  line-height: 1.4;
  /* Text truncation with ellipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding-right: 40px;
}

/* Full Screen Layout Rules */
.quiz-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.quiz-content .question-title {
  max-width: 650px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding-top: 23px !important;
}

.quiz-content .question-subtitle {
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Options Container Full Width */
.quiz-content .options-container,
#quizContent .options-container,
.options-container {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Two-column layout for questions with many options */
.quiz-content .options-container.two-column,
#quizContent .options-container.two-column,
.quiz-content .options-container[data-two-column="true"],
#quizContent .options-container[data-two-column="true"],
.options-container.two-column,
.options-container[data-two-column="true"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 8px !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  align-items: start !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* Last odd item spans full width in two-column */
.quiz-content .options-container.two-column .option-button:last-child:nth-child(odd),
.quiz-content .options-container.two-column .checkbox-option:last-child:nth-child(odd),
#quizContent .options-container.two-column .option-button:last-child:nth-child(odd),
#quizContent .options-container.two-column .checkbox-option:last-child:nth-child(odd),
.options-container.two-column .option-button:last-child:nth-child(odd),
.options-container.two-column .checkbox-option:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
}

/* Responsive Design Rules */
@media (min-width: 601px) and (max-width: 768px) {
  .quiz-content .options-container,
  #quizContent .options-container,
  .options-container {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  
  .quiz-content .options-container.two-column,
  #quizContent .options-container.two-column,
  .options-container.two-column {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 8px !important;
    max-width: 850px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (min-width: 769px) {
  .quiz-content .options-container,
  #quizContent .options-container,
  .options-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  
  .quiz-content .option-button,
  #quizContent .option-button,
  .options-container .option-button {
    min-height: 64px !important;
    padding: 20px 28px !important;
    font-size: 17px !important;
  }
  
  .quiz-content .checkbox-option,
  #quizContent .checkbox-option,
  .options-container .checkbox-option {
    min-height: 64px !important;
    padding: 18px 24px !important;
    font-size: 17px !important;
  }
  
  .quiz-content .options-container.two-column,
  #quizContent .options-container.two-column,
  .options-container.two-column {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 8px !important;
    max-width: 950px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (min-width: 1200px) {
  .quiz-content .options-container,
  #quizContent .options-container,
  .options-container {
    padding-left: 80px !important;
    padding-right: 80px !important;
  }
  
  .quiz-content .option-button,
  #quizContent .option-button,
  .options-container .option-button {
    min-height: 68px !important;
    padding: 22px 32px !important;
    font-size: 18px !important;
  }
  
  .quiz-content .checkbox-option,
  #quizContent .checkbox-option,
  .options-container .checkbox-option {
    min-height: 68px !important;
    padding: 20px 28px !important;
    font-size: 18px !important;
  }
  
  .quiz-content .options-container.two-column,
  #quizContent .options-container.two-column,
  .options-container.two-column {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 8px !important;
    max-width: 1050px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (max-width: 1300px) {
  .quiz-content .options-container.two-column,
  #quizContent .options-container.two-column,
  .quiz-content .options-container[data-two-column="true"],
  #quizContent .options-container[data-two-column="true"],
  .options-container.two-column,
  .options-container[data-two-column="true"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 600px) {
  .quiz-content .options-container.two-column,
  #quizContent .options-container.two-column,
  .quiz-content .options-container[data-two-column="true"],
  #quizContent .options-container[data-two-column="true"],
  .options-container.two-column,
  .options-container[data-two-column="true"] {
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  .quiz-content .options-container.two-column .option-button,
  #quizContent .options-container.two-column .option-button,
  .options-container.two-column .option-button,
  .quiz-content .options-container.two-column .checkbox-option,
  #quizContent .options-container.two-column .checkbox-option,
  .options-container.two-column .checkbox-option {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }
}

@media (max-width: 1300px) {
  .option-button,
  .checkbox-option {
    max-width: 100% !important;
    min-width: auto !important;
  }
}

/* Button Group and Skip Functionality */
.button-group {
  display: flex !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 485px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.button-group .btn-primary,
.button-group .btn-secondary {
  flex: 1 !important;
  margin: 0 !important;
}

.btn-secondary {
  background: #f8fafc !important;
  color: black !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px 24px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 60px !important;
  box-sizing: border-box !important;
}

.btn-secondary:hover {
  background: #e2e8f0 !important;
  color: white !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-secondary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.btn-secondary:disabled {
  background: #f1f5f9 !important;
  color: black !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Mobile responsive for button group */
@media (max-width: 520px) {
  .button-group {
    width: calc(100vw - 20px) !important;
    max-width: 480px !important;
    min-width: 280px !important;
    gap: 10px !important;
  }
  
  .button-group .btn-primary,
  .button-group .btn-secondary {
    padding: 14px 20px !important;
    font-size: 15px !important;
    min-height: 55px !important;
  }
}

/* Mobile responsive for 480px width elements - prevent horizontal scroll */
@media (max-width: 520px) {
  .btn-primary,
  .option-button,
  .checkbox-option,
  .input-field,
  .start-option,
  .custom-date-input,
  .input-with-units,
  .consent-checkbox,
  .bmi-card,
  .bmi-notification,
  .bmi-alert,
  .bmi-alert-card,
  .bmi-scale-wrapper,
  .bmi-scale-container {
    width: calc(100vw - 40px) !important;
    max-width: 480px !important;
    min-width: 280px !important;
    margin: 0 auto;
  }
  
  .input-container,
  .date-input-container,
  .height-input-container,
  .consent-container {
    width: calc(100vw - 40px) !important;
    max-width: 480px !important;
    min-width: 280px !important;
  }
  
  .start-options {
    width: calc(100vw - 40px) !important;
    max-width: 480px !important;
    min-width: 280px !important;
  }
  
  .options-container.two-column {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100vw - 40px) !important;
    max-width: 480px !important;
    min-width: 280px !important;
    margin: 0 auto !important;
  }
}

/* Essential Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Input and content width standards simplified and consolidated above - excessive overrides removed */

/* Option Button with Image Styling */
.option-button.option-with-image {
  display: flex;
  align-items: center;
  height: 250px;
  gap: 20px;
  padding: 32px 24px;
  min-height: 108px;
}

/* Grid layout for regular option buttons with images (flexible columns) */
.options-container:has(.option-button.option-with-image:not(.photo-style)) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 16px !important;
  max-width: 1400px !important;
  justify-items: stretch !important;
  align-items: start !important;
}

/* 2 columns for medium screens (1130px to 450px) */
@media (max-width: 1130px) {
  .options-container:has(.option-button.option-with-image:not(.photo-style)) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    max-width: 800px !important;
  }
}

/* Single column for small screens (below 450px) */
@media (max-width: 450px) {
  .options-container:has(.option-button.option-with-image:not(.photo-style)) {
    gap: 12px !important;
    max-width: 100% !important;
  }
}

/* Photo-style buttons - exactly like the reference photo */
.option-button.option-with-image.photo-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  min-height: 200px;
  width: 250px !important;
  max-width: 250px !important;
  min-width: 150px !important;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-button.option-with-image.photo-style:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.option-button.option-with-image.photo-style .option-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}

.option-button.option-with-image.photo-style .option-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.option-button.option-with-image.photo-style .option-image img:hover {
  transform: scale(1.02);
}

.option-button.option-with-image.photo-style .option-text {
  position: relative;
  z-index: 2;
  top: 15px;
  max-height: 40px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  border-radius: 20px;
  padding: 13px;
  text-align: center;
  background: #8acbff !important;
  width: 230px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: start;
  min-height: 60px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.option-button.option-with-image .option-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-button.option-with-image .option-image img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
  transition: transform 0.2s ease;
}

.option-button.option-with-image .option-image img:hover {
  transform: scale(1.1);
}

.option-button.option-with-image .option-text {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
  padding-right: 60px;
}

/* Adjust regular option buttons with images for 2-column layout */
.options-container:has(.option-button.option-with-image:not(.photo-style)) .option-button.option-with-image {
  width: 100% !important;
  max-width: 100% !important;
  min-width: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

  /* Remove checkmark from body size cards on mobile */
  .options-container.body-size-cards .option-button::after {
    display: none !important;
  }

  .options-container.body-size-cards .option-button.option-with-image::after {
    display: none !important;
  }

/* Checkbox Option with Image Styling */
.checkbox-option.checkbox-with-image {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 20px;
  min-height: 104px;
}

/* Photo-style checkbox buttons - exactly like the reference photo */
.checkbox-option.checkbox-with-image.photo-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  min-height: 200px;
  width: 200px !important;
  max-width: 200px !important;
  min-width: 200px !important;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid layout for photo-style buttons */
.options-container:has(.photo-style) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 20px !important;
  max-width: 1400px !important;
  justify-items: center !important;
  align-items: start !important;
}

/* 2 columns for medium screens (1130px to 450px) */
@media (max-width: 1130px) {
  .options-container:has(.photo-style) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
    max-width: 800px !important;
  }
}

/* Single column for small screens (below 450px) */
@media (max-width: 450px) {
  .options-container:has(.photo-style) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
  }
}

/* Body Size Cards - exactly like the reference photo */
.body-size-cards {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: nowrap !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 20px 0 !important;
}

.body-size-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 250px !important;
  min-width: 250px !important;
  height: 248px !important;
  padding: 0 !important;
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border: 1px solid #e5e7eb !important;
  flex-shrink: 0 !important;
}

.body-size-card:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.body-size-card.selected {
  background: #f3f4f6 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
  border-color: #d1d5db !important;
}

.body-size-card .option-image {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
}

.body-size-card .option-image img {
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.body-size-card .option-text {
    width: 95%;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    height: 40px;
    text-align: left;
    margin: 0 !important;
    line-height: 1.3 !important;
    position: absolute !important;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2 !important;
    background: white;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
}

.body-size-card.selected .selection-indicator {
  background: #333 !important;
  border-color: #333 !important;
}

.body-size-card.selected .selection-indicator::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

/* Ensure photo-style buttons maintain their square shape */
.options-container:has(.photo-style) .option-button,
.options-container:has(.photo-style) .checkbox-option {
  margin: 0 !important;
}

.checkbox-option.checkbox-with-image.photo-style .option-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
}

.checkbox-option.checkbox-with-image.photo-style .option-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.checkbox-option.checkbox-with-image.photo-style .option-image img:hover {
  transform: scale(1.02);
}

.checkbox-option.checkbox-with-image.photo-style .checkbox-label {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  padding: 16px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.checkbox-option.checkbox-with-image.photo-style .custom-checkbox {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
}

.checkbox-option.checkbox-with-image.photo-style:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.checkbox-option.checkbox-with-image .option-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-option.checkbox-with-image .option-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
  transition: transform 0.2s ease;
}

.checkbox-option.checkbox-with-image .option-image img:hover {
  transform: scale(1.1);
}

.checkbox-option.checkbox-with-image .checkbox-label {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
  padding-right: 10px;
}

/* Responsive adjustments for buttons with images */
@media (max-width: 600px) {
  .option-button.option-with-image,
  .checkbox-option.checkbox-with-image {
    padding: 24px 20px;
    min-height: 98px;
    gap: 16px;
  }

  /* Grid adjustments for regular option buttons with images on mobile - handled by 450px breakpoint */

  /* Photo-style button adjustments for mobile */
  .option-button.option-with-image.photo-style,
  .checkbox-option.checkbox-with-image.photo-style {
    width: 160px !important;
    max-width: 160px !important;
    min-width: 160px !important;
    min-height: 160px;
  }

  /* Grid adjustments for mobile photo-style buttons */
  .options-container:has(.photo-style) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 600px !important;
  }
  
  .option-button.option-with-image .option-image,
  .checkbox-option.checkbox-with-image .option-image {
    width: 70px;
    height: 70px;
  }
  
  .option-button.option-with-image .option-text,
  .checkbox-option.checkbox-with-image .checkbox-label {
    font-size: 16px;
    padding-right: 50px;
  }
  
  /* Regular button adjustments for mobile */
  .option-button {
    padding: 36px 60px 36px 20px;
    min-height: 76px;
  }
  
  .checkbox-option {
    padding: 32px 16px;
    min-height: 72px;
  }
  
  .option-button > *:not(.option-image):not(.custom-checkbox) {
    padding-right: 70px;
  }
  
  .checkbox-label {
    padding-right: 35px;
  }
}

@media (max-width: 480px) {
  .option-button.option-with-image,
  .checkbox-option.checkbox-with-image {
    padding: 20px 16px;
    min-height: 88px;
    gap: 14px;
  }

  /* Single column layout for regular image buttons on small mobile - handled by 450px breakpoint */

  /* Photo-style button adjustments for small mobile */
  .option-button.option-with-image.photo-style,
  .checkbox-option.checkbox-with-image.photo-style {
    width: 140px !important;
    max-width: 140px !important;
    min-width: 140px !important;
    min-height: 140px;
  }

  /* Grid adjustments for small mobile photo-style buttons */
  .options-container:has(.photo-style) {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    max-width: 500px !important;
  }
  
  .option-button.option-with-image .option-image,
  .checkbox-option.checkbox-with-image .option-image {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }
  
  .option-button.option-with-image .option-text,
  .checkbox-option.checkbox-with-image .checkbox-label {
    font-size: 15px;
    padding-right: 45px;
  }
  
  /* Regular button adjustments for small mobile */
  .option-button {
    padding: 32px 50px 32px 16px;
    min-height: 68px;
  }
  
  .checkbox-option {
    padding: 28px 12px;
    min-height: 64px;
  }
  
  .option-button > *:not(.option-image):not(.custom-checkbox) {
    padding-right: 60px;
  }
  
  .checkbox-label {
    padding-right: 30px;
  }
}

/* Background Image Layout for Questions */
.question-with-background {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  padding-top: 0 !important;
}

/* Ensure background images only cover the right side */
.question-with-background::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: inherit;
  background-size: auto 60% !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  z-index: 1;
  pointer-events: none;
  border-radius: 0 20px 20px 0;
}

/* Background image styling - right side only, no stretching */
.question-with-background[style*="background-image"] {
  background-size: auto 60% !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  background-attachment: local !important;
  border-radius: 20px;
}

/* Override the pseudo-element for specific background images */
.question-with-background[style*="background-image"]::before {
  background-image: inherit;
  background-size: auto 60% !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  border-radius: 0 20px 20px 0;
}

.question-with-background .question-content {
  width: 100%;
  max-width: 500px;
  z-index: 2;
  position: relative;
  padding: 20px;
}

.question-with-background .question-subtitle {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.question-with-background .options-container {
  width: 100%;
  max-width: 500px;
  z-index: 2;
  position: relative;
}

/* Hide background images at 850px and below */
@media (max-width: 850px) {
  .question-with-background[style*="background-image"] {
    background-image: none !important;
  }
  
  .question-with-background[style*="background-image"]::before {
    display: none !important;
  }
  
  .question-with-background::before {
    display: none !important;
  }
}

/* Responsive Design for Background Images */
@media (min-width: 1200px) {
  .question-with-background {
    padding: 30px;
    min-height: 400px;
  }
  
  .question-with-background::before {
    width: 45%;
    border-radius: 0 25px 25px 0;
  }
  
  .question-with-background[style*="background-image"]::before {
    border-radius: 0 25px 25px 0;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .question-with-background {
    padding: 25px;
    min-height: 350px;
  }
  
  .question-with-background::before {
    width: 50%;
    border-radius: 0 22px 22px 0;
  }
  
  .question-with-background[style*="background-image"]::before {
    border-radius: 0 22px 22px 0;
  }
}

@media (max-width: 600px) {
  .question-with-background {
    min-height: 250px;
  }
  
  .question-with-background::before {
    width: 60%;
    border-radius: 0 18px 18px 0;
  }
  
  .question-with-background[style*="background-image"]::before {
    border-radius: 0 18px 18px 0;
  }
  
  .question-with-background[style*="background-image"] {
    border-radius: 18px;
  }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ======================================== */

/* CSS Custom Properties for mobile viewport height fix */
:root {
  --vh: 1vh;
}

/* Mobile-first approach - start with mobile and scale up */
/* Base mobile styles (up to 768px) */
@media (max-width: 768px) {
  /* Container and layout adjustments */
  .container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Quiz header mobile optimization */
  .quiz-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
  }

  .header-top {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .back-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #2d3436;
    font-size: 18px;
    min-width: 36px;
    min-height: 36px;
  }

  .logo-small {
    font-size: 20px;
    font-weight: 700;
    background: #478dff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .section-title {
    font-size: 21px;
    font-weight: 600;
    color: #2d3436;
  }

  .sectioned-progress {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
  }

  .progress-section {
    min-width: 60px;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .progress-section.active {
    background: #478dff;
  }

  .progress-section.completed {
    background: #4CAF50;
  }

  /* Quiz content mobile */
  .quiz-content {
    padding: 120px 16px 140px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  /* Start screen mobile */
  .start-screen {
    text-align: center;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
  }

  .logo {
    font-size: 28px;
    font-weight: 800;
    background: #478dff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
  }

  .start-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1a1a1a;
    padding: 0 8px;
  }

  .start-subtitle {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.4;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .quiz-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f5f5f7;
    border-radius: 100px;
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 24px;
  }

  /* Start question mobile */
  .start-question {
    margin-top: 24px;
  }

  .start-question-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
    padding: 0 8px;
  }

  .start-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 8px;
  }

  .start-option {
    padding: 20px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    font-weight: 500;
    color: #2d3436;
    text-align: left;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .start-option:hover {
    border-color: #478dff;
    background: #fafbff;
  }
  .option-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
  }

  .start-option.selected .option-checkmark {
    background: white;
    color: #478dff;
  }

  /* Question styles mobile */
  .question-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #1a1a1a;
    padding: 0 8px;
  }

  /* Options container mobile */
  .options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 8px;
  }



  /* Body size cards - force vertical layout on mobile */
  .options-container.body-size-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }

  .options-container.body-size-cards .option-button {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    margin: 0 auto;
  }

  /* Option buttons mobile */
  .option-button {
    padding: 20px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    position: relative;
    min-height: 60px;
    height: auto;
    display: flex;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    margin: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: normal;
  }
  .option-button.selected {
    border-color: #e8e6e6;
        background: #e3e4ef;
    color: black;
  }

  /* Checkbox options mobile */
  .checkbox-option {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    font-weight: 500;
    color: #2d3436;
    min-height: 60px;
  }
  .checkbox-option.selected {
    border-color: #e8e6e6;
    background: #e3e4ef;
    color: white;
  }

  .checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: #478dff;
  }

  /* Bottom container mobile */
  .bottom-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, white 95%, transparent);
    padding: 16px;
    z-index: 50;
    border-top: 1px solid #f0f0f0;
  }

  .container-inner {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Primary button mobile - maintain desktop styling */
  .btn-primary {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Body type section mobile */
  .body-type-section {
    padding: 0 8px;
  }

  .body-type-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #1a1a1a;
  }

  .body-type-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .body-type-option {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 80px;
  }

  .body-type-option:hover {
    border-color: #dddddd;
        background: #fafbff;
  }

  .body-type-icon {
    width: 60px;
    height: 60px;
    margin-right: 16px;
    flex-shrink: 0;
  }

  .body-type-text {
    font-size: 16px;
    font-weight: 500;
    color: inherit;
  }

  /* Before after photos mobile */
  .before-after-photos {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 8px;
    margin: 24px 0;
  }

  .photo-wrapper {
    width: 120px;
    height: 160px;
    margin: 0 auto;
  }

  .photo-label {
    font-size: 14px;
    color: #6e6e73;
    text-align: center;
    margin-top: 8px;
  }

  .weight-info {
    font-size: 14px;
    padding: 8px 12px;
    background: #f5f5f7;
    border-radius: 8px;
    text-align: center;
    margin-top: 8px;
  }

  /* Final screen mobile */
  .final-screen {
    padding: 24px 16px;
    text-align: center;
  }

  .price-badge {
    display: inline-block;
    background: #478dff;
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
  }

  .price-container {
    margin: 24px 0;
  }

  .price-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
  }

  .price-period {
    font-size: 16px;
    color: #6e6e73;
    margin-top: 8px;
  }

  .price-note {
    font-size: 13px;
    color: #8e8e93;
    margin-top: 8px;
  }

  .features-list {
    text-align: left;
    margin: 24px 0;
    padding: 0 8px;
  }

  .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

  .feature-icon {
    width: 20px;
    height: 20px;
    background: #478dff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    flex-shrink: 0;
  }

  .feature-text {
    color: #2d3436;
    font-size: 14px;
    line-height: 1.5;
  }

  .security-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e7;
    flex-wrap: wrap;
  }

  /* Loading and motivation screens mobile */
  .loading-screen,
  .motivational-screen {
    padding: 40px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
  }

  .motivation-icon {
    width: 80px;
    height: 80px;
    background: #478dff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin-bottom: 24px;
  }

  .motivation-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
    padding: 10px 8px;
  }

  .motivation-text {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  /* Body silhouette mobile */
  .body-silhouette {
    width: 140px;
    height: 220px;
    margin: 0 auto 24px;
  }

  .silhouette-body {
    width: 80px;
    height: 180px;
    background: #f0f0f0;
    border-radius: 40px;
    position: relative;
    margin: 0 auto;
  }

  .silhouette-body::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Info images mobile */
  .info-image {
    width: 280px;
    height: 350px;
    margin: 24px auto;
    border-radius: 16px;
    object-fit: cover;
  }

  /* Redirect loading mobile */
  .redirect-loading {
    text-align: center;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #478dff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
  }
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
  .quiz-content {
    padding: 110px 12px 130px;
  }

  /* Body size cards on small mobile */
  .options-container.body-size-cards {
    gap: 12px;
    padding: 0 4px;
  }

  .options-container.body-size-cards .option-button {
    padding: 16px 12px;
    min-height: 80px;
  }

  .start-screen {
    padding: 16px 12px;
  }

  .header-top {
    padding: 10px 12px;
  }
  .question-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .start-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .start-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .start-question-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .option-button,
  .checkbox-option,
  .start-option {
    padding: 18px 14px;
    font-size: 15px;
    min-height: 56px;
  }

  .body-type-option {
    padding: 18px 14px;
    min-height: 70px;
  }

  .body-type-icon {
    width: 50px;
    height: 50px;
    margin-right: 14px;
  }

  .btn-primary {
    min-height: 52px;
  }

  .bottom-container {
    padding: 12px;
  }

  .info-image {
    width: 240px;
    height: 300px;
  }

  .body-silhouette {
    width: 120px;
    height: 190px;
  }

  .silhouette-body {
    width: 70px;
    height: 160px;
  }

  .silhouette-body::before {
    width: 35px;
    height: 35px;
    top: -22px;
  }

  .motivation-icon {
    width: 70px;
    height: 70px;
    font-size: 36px;
    margin-bottom: 20px;
  }

  .motivation-title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .motivation-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .price-value {
    font-size: 32px;
  }

  .price-period {
    font-size: 15px;
  }

  .feature-text {
    font-size: 13px;
  }
}

/* Extra small mobile devices (up to 360px) */
@media (max-width: 360px) {
  .quiz-content {
    padding: 100px 10px 120px;
  }

  /* Body size cards on extra small mobile */
  .options-container.body-size-cards {
    gap: 10px;
    padding: 0 2px;
  }

  .options-container.body-size-cards .option-button {
    padding: 14px 10px;
    min-height: 70px;
  }

  .start-screen {
    padding: 12px 10px;
  }

  .header-top {
    padding: 8px 10px;
  }

  .progress-container {
    padding: 8px 10px;
  }

  .question-title {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .start-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .start-subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .start-question-title {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .option-button,
  .checkbox-option,
  .start-option {
    padding: 16px 12px;
    font-size: 14px;
    min-height: 52px;
  }

  .body-type-option {
    padding: 16px 12px;
    min-height: 65px;
  }

  .body-type-icon {
    width: 45px;
    height: 45px;
    margin-right: 12px;
  }

  .btn-primary {
    min-height: 48px;
  }

  .bottom-container {
    padding: 10px;
  }

  .info-image {
    width: 200px;
    height: 250px;
  }

  .body-silhouette {
    width: 100px;
    height: 160px;
  }

  .silhouette-body {
    width: 60px;
    height: 140px;
  }

  .silhouette-body::before {
    width: 30px;
    height: 30px;
    top: -20px;
  }

  .motivation-icon {
    width: 60px;
    height: 60px;
    font-size: 32px;
    margin-bottom: 18px;
  }

  .motivation-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .motivation-text {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .price-value {
    font-size: 28px;
  }

  .price-period {
    font-size: 14px;
  }

  .feature-text {
    font-size: 12px;
  }
}

/* Landscape mode adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 768px) {
  .quiz-content {
    padding: 80px 16px 100px;
  }

  .start-screen {
    padding: 12px 16px;
    justify-content: flex-start;
    padding-top: 16px;
    min-height: 100vh;
  }

  .logo {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .start-title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .start-subtitle {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .quiz-timer {
    margin-bottom: 16px;
  }

  .start-question {
    margin-top: 16px;
  }

  .start-question-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .start-options {
    gap: 8px;
  }

  .start-option {
    padding: 14px 12px;
    min-height: 50px;
    font-size: 14px;
  }

  .question-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .options-container {
    gap: 8px;
    margin-bottom: 20px;
  }

  .option-button,
  .checkbox-option {
    padding: 14px 12px;
    min-height: 50px;
    font-size: 14px;
  }

  .body-type-option {
    padding: 14px 12px;
    min-height: 60px;
  }

  .body-type-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }

  .motivation-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 12px;
  }

  .motivation-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .motivation-text {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .body-silhouette {
    width: 80px;
    height: 130px;
    margin-bottom: 16px;
  }

  .silhouette-body {
    width: 50px;
    height: 110px;
  }

  .silhouette-body::before {
    width: 25px;
    height: 25px;
    top: -18px;
  }

  .info-image {
    width: 200px;
    height: 250px;
    margin: 16px auto;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .option-button:hover,
  .checkbox-option:hover,
  .start-option:hover,
  .body-type-option:hover {
    transform: none;
    background: white;
    border-color: #dddddd;
  }

  .btn-primary:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(71, 141, 255, 0.25);
  }

  .btn-primary:active {
    transform: scale(0.98);
  }

  /* Increase touch targets */
  .back-button {
    min-width: 30px;
    min-height: 30px;
  }

  .option-button,
  .checkbox-option,
  .start-option {
    min-height: 56px;
  }

  .btn-primary {
    min-height: 56px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .option-button,
  .checkbox-option,
  .start-option {
    border-width: 1px;
  }

  .progress-section {
    height: 5px;
  }
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
  .quiz-header {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .bottom-container {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}


/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .option-button,
  .checkbox-option,
  .start-option,
  .body-type-option,
  .btn-primary {
    transition: none;
  }

  .option-button:hover,
  .checkbox-option:hover,
  .start-option:hover,
  .body-type-option:hover {
    transform: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

/* Additional mobile performance optimizations */
@media (max-width: 768px) {
  /* Optimize animations for mobile */
  .option-button,
  .checkbox-option,
  .start-option,
  .body-type-option {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Improve scrolling performance */
  .quiz-content,
  .start-screen {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Optimize images for mobile */
  .info-image,
  .body-silhouette {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  /* Better text rendering on mobile */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Prevent horizontal scroll on mobile */
  html, body {
    overflow-x: hidden;
    position: relative;
  }

  /* Optimize button states for mobile */
  .btn-primary:active,
  .option-button:active,
  .checkbox-option:active,
  .start-option:active,
  .body-type-option:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
}



.start-screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Center content like the old container */
  margin: 0 auto;
  gap: 20px;
  max-width: 620px;
}

@media (max-width: 520px) {
  .logo-small {
    display: none;
}
.quiz-header {
  justify-content: center;
  align-items: center;
}
.progress-container {
  max-width: 140px;
  margin: 0 auto 5px auto;
}
.sectioned-progress {
  height: 6px;
}
.section-title {
  margin-left: 0;
}
}

/* Inline styles moved to external CSS */
.quiz-header-hidden {
  display: none;
}

.back-button-hidden {
  visibility: hidden;
}

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

.welcome-message {
  margin-bottom: 5px;
}

.welcome-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

.error-title {
  color: #dc3545;
  margin-bottom: 20px;
}

.error-message {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.refresh-button {
  background: #478dff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary-hidden {
  opacity: 0;
  transform: translateY(30px);
}

.image-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 80px;
  color: rgba(71, 141, 255, 0.4);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
}

.motivation-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 120px;
  color: rgba(255,255,255,0.4);
}

.motivation-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 120px;
  color: rgba(255,255,255,0.4);
}


