/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations de transition entre pages */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

body:has(.welcome-page-mobile),
body:has(.explanation-page-mobile) {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Hide nav and footer on welcome and explanation pages */
body:has(.welcome-page-mobile) nav,
body:has(.welcome-page-mobile) footer,
body:has(.explanation-page-mobile) nav,
body:has(.explanation-page-mobile) footer {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: #F5F3F0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile first - container responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

nav {
    background: #2c2c2c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-bottom: 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-brand:hover {
    opacity: 0.9;
}

/* Language Selector */
.language-selector-fixed {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid #FF6B35;
    color: #2c2c2c;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-btn:hover {
    background: #FF6B35;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.language-icon {
    font-size: 1.2rem;
}

.language-current {
    font-weight: 600;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-selector-fixed:hover .language-dropdown {
    display: flex;
}

.language-dropdown:hover {
    display: flex;
}

.language-option {
    padding: 0.75rem 1rem;
    color: #2c2c2c;
    text-decoration: none;
    transition: background 0.2s ease;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #F5F3F0;
}

.language-option.active {
    background: #FF6B35;
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .language-selector-fixed {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .language-icon {
        font-size: 1rem;
    }
    
    .language-dropdown {
        min-width: 120px;
    }
}

.language-option {
    padding: 0.75rem 1rem;
    color: #2c2c2c;
    text-decoration: none;
    transition: background 0.2s ease;
    display: block;
}

.language-option:hover {
    background: #F5F3F0;
}

.language-option.active {
    background: #FF6B35;
    color: white;
    font-weight: 600;
}

/* Mobile nav adjustments */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 0;
    }
    
    nav a {
        font-size: 1rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary {
    background: #FF6B35;
}

.btn-primary:hover {
    background: #E55A2B;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Welcome page - Mobile First - Exact match to design */
.welcome-page-mobile {
    width: 100%;
    min-height: 100vh;
    padding: 4vh 4vw;
    background: #F5F3F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.welcome-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1.5vh;
    text-align: left;
    line-height: 1.2;
    flex-shrink: 0;
    animation: slideInRight 0.5s ease-out 0.1s both;
}

.welcome-intro {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 2vh;
    text-align: left;
    font-weight: 400;
    flex-shrink: 0;
    animation: slideInRight 0.5s ease-out 0.2s both;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    margin-bottom: 2vh;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5vw;
    background: #ffffff;
    padding: clamp(0.75rem, 2vh, 1rem);
    border-radius: clamp(10px, 2.5vw, 14px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: none;
    flex-shrink: 0;
    animation: slideInUp 0.4s ease-out both;
}

.step-card:nth-child(1) {
    animation-delay: 0.3s;
}

.step-card:nth-child(2) {
    animation-delay: 0.4s;
}

.step-card:nth-child(3) {
    animation-delay: 0.5s;
}

.step-card:nth-child(4) {
    animation-delay: 0.6s;
}

.step-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 8vw, 40px);
    height: clamp(32px, 8vw, 40px);
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-title {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.3vh;
    line-height: 1.3;
}

.step-description {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    color: #4a4a4a;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
}

.welcome-cta {
    text-align: center;
    padding: 2vh 0;
    width: 100%;
    flex-shrink: 0;
}

.btn-welcome {
    display: block;
    width: 100%;
    padding: clamp(1rem, 3vh, 1.25rem) 2rem;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: clamp(10px, 2.5vw, 12px);
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: none;
    border: none;
    animation: slideInUp 0.5s ease-out 0.7s both;
}

.btn-welcome:hover {
    background: #E55A2B;
    transform: none;
    box-shadow: none;
}

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

/* Welcome and explanation pages take full viewport */
body:has(.welcome-page-mobile),
body:has(.explanation-page-mobile) {
    padding: 0;
    margin: 0;
}

body:has(.welcome-page-mobile) main,
body:has(.explanation-page-mobile) main {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Explanation page - Mobile First - Same style as welcome */
.explanation-page-mobile {
    width: 100%;
    min-height: 100vh;
    padding: 4vh 4vw;
    background: #F5F3F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.explanation-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 1vw;
}

.explanation-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1.5vh;
    text-align: left;
    line-height: 1.2;
    animation: slideInRight 0.5s ease-out 0.1s both;
}

.explanation-intro {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 3vh;
    text-align: left;
    font-weight: 400;
    animation: slideInRight 0.5s ease-out 0.2s both;
}

.what-you-get {
    margin-bottom: 2.5vh;
}

.section-title {
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1.5vh;
    text-align: left;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5vw;
    margin-bottom: 1.5vh;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    color: #2c2c2c;
    line-height: 1.5;
    animation: slideInRight 0.4s ease-out both;
}

.benefits-list li:nth-child(1) {
    animation-delay: 0.3s;
}

.benefits-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.benefits-list li:nth-child(3) {
    animation-delay: 0.5s;
}

.checkmark {
    color: #FF6B35;
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 1.2rem);
    flex-shrink: 0;
    margin-top: 0.1vh;
}

.how-it-works {
    background: rgba(255, 255, 255, 0.6);
    padding: clamp(1rem, 3vh, 1.5rem);
    border-radius: clamp(10px, 2.5vw, 14px);
    margin-bottom: 2vh;
}

.how-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5vw;
    margin-bottom: 1.5vh;
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    color: #2c2c2c;
    line-height: 1.5;
    animation: slideInRight 0.4s ease-out both;
}

.how-list li:nth-child(1) {
    animation-delay: 0.35s;
}

.how-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.how-list li:nth-child(3) {
    animation-delay: 0.45s;
}

.how-list li:last-child {
    margin-bottom: 0;
}

.dot {
    color: #FF6B35;
    font-weight: 700;
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    flex-shrink: 0;
    line-height: 1;
}

.explanation-cta {
    text-align: center;
    padding: 2vh 0;
    width: 100%;
    flex-shrink: 0;
}

.btn-explanation {
    display: block;
    width: 100%;
    padding: clamp(1rem, 3vh, 1.25rem) 2rem;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: clamp(10px, 2.5vw, 12px);
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: none;
    border: none;
    cursor: pointer;
    animation: slideInUp 0.5s ease-out 0.5s both;
}

.btn-explanation:hover {
    background: #E55A2B;
    transform: none;
    box-shadow: none;
}

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

/* Desktop adjustments */
@media (min-width: 768px) {
    .welcome-page-mobile {
        max-width: 500px;
        margin: 0 auto;
        padding: 5vh 4vw;
        min-height: 100vh;
    }
    
    .explanation-page-mobile {
        max-width: 600px;
        margin: 0 auto;
        padding: 5vh 4vw;
        min-height: 100vh;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta {
    margin-top: 3rem;
}

/* Quiz page - Mobile First */
.quiz-page-mobile {
    width: 100%;
    min-height: 100vh;
    padding: 4vh 4vw;
    background: #F5F3F0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.quiz-card {
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    border-radius: clamp(16px, 4vw, 20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: clamp(1.5rem, 4vh, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 2.5rem);
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.4s ease-out;
}

.quiz-progress-section {
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.progress-track {
    width: 100%;
    height: clamp(8px, 2vh, 12px);
    background: #F5F3F0;
    border-radius: clamp(8px, 2vh, 12px);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #FF6B35;
    border-radius: clamp(8px, 2vh, 12px);
    transition: width 0.5s ease;
}

.question-counter {
    font-size: clamp(0.85rem, 3vw, 1rem);
    color: #4a4a4a;
    margin: 0;
    text-align: left;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 2.5rem);
    flex: 1;
}

.quiz-question {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    animation: slideInRight 0.4s ease-out 0.2s both;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vh, 1rem);
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: clamp(1rem, 3vh, 1.5rem);
    background: #F5F3F0;
    border-radius: clamp(12px, 3vw, 16px);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    animation: slideInUp 0.3s ease-out both;
}

.quiz-option:nth-child(1) {
    animation-delay: 0.3s;
}

.quiz-option:nth-child(2) {
    animation-delay: 0.35s;
}

.quiz-option:nth-child(3) {
    animation-delay: 0.4s;
}

.quiz-option:nth-child(4) {
    animation-delay: 0.45s;
}

.quiz-option:nth-child(5) {
    animation-delay: 0.5s;
}

.quiz-option:hover {
    background: #EDE8E3;
}

.quiz-option.selected {
    background: #FFF5F2;
    border-color: #FF6B35;
}

.option-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-label {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    color: #2c2c2c;
    line-height: 1.5;
    flex: 1;
}

.quiz-next-btn {
    width: 100%;
    padding: clamp(1rem, 3vh, 1.25rem) 2rem;
    background: #D3D3D3;
    color: #2c2c2c;
    border: none;
    border-radius: clamp(10px, 2.5vw, 12px);
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease;
    margin-top: clamp(1.5rem, 4vh, 2.5rem);
    animation: slideInUp 0.4s ease-out 0.6s both;
}

.quiz-next-btn.enabled {
    background: #FF6B35;
    color: white;
    cursor: pointer;
}

.quiz-next-btn.enabled:hover {
    background: #E55A2B;
}

.quiz-next-btn:active.enabled {
    transform: scale(0.98);
}

/* Hide nav and footer on quiz page */
body:has(.quiz-page-mobile) nav,
body:has(.quiz-page-mobile) footer {
    display: none;
}

body:has(.quiz-page-mobile) {
    overflow-x: hidden;
    overflow-y: auto;
}

body:has(.quiz-page-mobile) main {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Analyzing page - Mobile First */
.analyzing-page {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #FFFBF8 0%, #FFF5F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4vh 4vw;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.analyzing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(3rem, 8vh, 5rem);
    width: 100%;
    max-width: 500px;
}

.analyzing-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: clamp(200px, 50vw, 300px);
    height: clamp(200px, 50vw, 300px);
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.circle-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: #FF6B35;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    animation: float 4s ease-in-out infinite;
}

.circle-center {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2.5s ease-in-out infinite, rotate 20s linear infinite;
    z-index: 2;
}

.circle-1 {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    top: 5%;
    right: 15%;
    animation: orbit1 6s ease-in-out infinite, float 4s ease-in-out infinite 0.5s;
    z-index: 1;
}

.circle-2 {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    bottom: 10%;
    right: 10%;
    animation: orbit2 7s ease-in-out infinite, float 4s ease-in-out infinite 1s;
    z-index: 1;
}

.circle-3 {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    bottom: 15%;
    left: 5%;
    animation: orbit3 6.5s ease-in-out infinite, float 4s ease-in-out infinite 1.5s;
    z-index: 1;
}

.circle-4 {
    width: clamp(40px, 10vw, 60px);
    height: clamp(40px, 10vw, 60px);
    top: 10%;
    left: 10%;
    animation: orbit4 7.5s ease-in-out infinite, float 4s ease-in-out infinite 2s;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-15px) scale(1.05);
    }
    50% {
        transform: translateY(-8px) scale(0.98);
    }
    75% {
        transform: translateY(-12px) scale(1.02);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.9;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbit1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(15px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-10px, -15px) scale(0.95);
    }
    75% {
        transform: translate(5px, -25px) scale(1.05);
    }
}

@keyframes orbit2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-20px, 15px) scale(1.1);
    }
    50% {
        transform: translate(-15px, -10px) scale(0.95);
    }
    75% {
        transform: translate(-25px, 5px) scale(1.05);
    }
}

@keyframes orbit3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, 20px) scale(1.1);
    }
    50% {
        transform: translate(10px, 15px) scale(0.95);
    }
    75% {
        transform: translate(25px, 5px) scale(1.05);
    }
}

@keyframes orbit4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-15px, -20px) scale(1.1);
    }
    50% {
        transform: translate(10px, -15px) scale(0.95);
    }
    75% {
        transform: translate(-5px, -25px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.analyzing-text {
    text-align: center;
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.analyzing-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    font-weight: 700;
    color: #E55A2B;
    margin-bottom: clamp(0.75rem, 2vh, 1rem);
    line-height: 1.2;
    animation: slideInUp 0.6s ease-out 0.5s both, subtlePulse 3s ease-in-out infinite 1.5s;
}

.analyzing-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
    font-weight: 400;
    color: #D4A574;
    line-height: 1.5;
    margin: 0;
    animation: slideInUp 0.6s ease-out 0.7s both, fadeInOut 2.5s ease-in-out infinite 1.8s;
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

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

/* Hide nav and footer on analyzing page */
body:has(.analyzing-page) nav,
body:has(.analyzing-page) footer {
    display: none;
}

body:has(.analyzing-page) {
    overflow-x: hidden;
    overflow-y: auto;
}

body:has(.analyzing-page) main {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .quiz-page-mobile {
        padding: 5vh 4vw;
    }
    
    .quiz-card {
        max-width: 600px;
        padding: clamp(2rem, 5vh, 3rem);
    }
}

/* Results page - Mobile First */
.results-page-mobile {
    width: 100%;
    min-height: 100vh;
    background: #F5F3F0;
    padding: 4vh 4vw;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3rem);
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.results-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.results-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    color: #4a4a4a;
    font-weight: 400;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 2rem);
    margin-bottom: clamp(2rem, 5vh, 3rem);
}

.result-card {
    background: #FFFFFF;
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(1.5rem, 4vh, 2rem);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.5s ease-out both;
}

.result-card:nth-child(1) {
    animation-delay: 0.3s;
}

.result-card:nth-child(2) {
    animation-delay: 0.4s;
}

.primary-card {
    border-left: 4px solid #FF6B35;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F2 100%);
}

.secondary-card {
    border-left: 4px solid #6C7AE0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F7FF 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-weight: 600;
}

.primary-badge {
    background: #FF6B35;
    color: white;
}

.secondary-badge {
    background: #6C7AE0;
    color: white;
}


.score-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.score-value {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    color: #FF6B35;
    line-height: 1;
}

.secondary-card .score-value {
    color: #6C7AE0;
}

.score-label {
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    color: #4a4a4a;
    font-weight: 400;
}

.profile-name {
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.profile-description {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.advice-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.advice-title {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.advice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    color: #4a4a4a;
    line-height: 1.5;
}

.advice-bullet {
    color: #FF6B35;
    font-weight: 700;
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 0.1em;
}

.secondary-card .advice-bullet {
    color: #6C7AE0;
}

.all-scores-card {
    background: #FFFFFF;
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(1.5rem, 4vh, 2rem);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.5s ease-out 0.5s both;
}

.scores-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    text-align: center;
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: #F5F3F0;
    transition: all 0.2s ease;
}

.score-row.highlight-primary {
    background: #FFF5F2;
    border: 2px solid #FF6B35;
}

.score-row.highlight-secondary {
    background: #F5F7FF;
    border: 2px solid #6C7AE0;
}

.score-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.score-profile-name {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    font-weight: 600;
    color: #2c2c2c;
}

.score-badge {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.score-badge.primary {
    background: #FF6B35;
    color: white;
}

.score-badge.secondary {
    background: #6C7AE0;
    color: white;
}

.score-bar-container {
    flex: 1;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    min-width: 60px;
}

.score-bar {
    height: 100%;
    background: #FF6B35;
    border-radius: 4px;
    transition: width 0.6s ease-out;
}

.score-bar-negative {
    background: linear-gradient(90deg, #E0E0E0, #B0B0B0);
    opacity: 0.6;
}

.score-row.highlight-secondary .score-bar {
    background: #6C7AE0;
}

.score-number {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    font-weight: 600;
    color: #2c2c2c;
    min-width: 45px;
    text-align: right;
}

.score-number.score-negative {
    color: #999;
}

.score-row.negative-score {
    opacity: 0.85;
}

.results-cta {
    position: sticky;
    bottom: 0;
    padding: 2vh 0;
    background: linear-gradient(to top, #F5F3F0 0%, rgba(245, 243, 240, 0.95) 80%, transparent 100%);
    animation: slideInUp 0.5s ease-out 0.7s both;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: clamp(1.1rem, 3.5vh, 1.4rem) 2rem;
    background: #FF6B35;
    color: white;
    text-decoration: none;
    border-radius: clamp(12px, 3vw, 16px);
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-arrow {
    font-size: 1.3em;
    transition: transform 0.2s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

/* Hide nav and footer on results page */
body:has(.results-page-mobile) nav,
body:has(.results-page-mobile) footer {
    display: none;
}

body:has(.results-page-mobile) {
    overflow-x: hidden;
    overflow-y: auto;
}

body:has(.results-page-mobile) main {
    padding: 0;
    margin: 0;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .results-page-mobile {
        max-width: 700px;
        margin: 0 auto;
        padding: 5vh 4vw;
    }
}

/* Satisfaction page - Mobile First */
.satisfaction-page-mobile {
    width: 100%;
    min-height: 100vh;
    background: #F5F3F0;
    padding: 4vh 4vw;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out;
}

.satisfaction-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vh, 3rem);
}

.satisfaction-header {
    text-align: center;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.satisfaction-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.satisfaction-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    color: #4a4a4a;
    font-weight: 400;
}

.satisfaction-form {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vh, 2rem);
}

.rating-card {
    background: #FFFFFF;
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(2rem, 5vh, 2.5rem);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.5s ease-out 0.3s both;
}

.rating-label {
    display: block;
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    text-align: center;
}

.rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: 1rem;
}

.star-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-label {
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-icon {
    width: clamp(40px, 10vw, 56px);
    height: clamp(40px, 10vw, 56px);
    color: #E0E0E0;
    transition: all 0.2s ease;
}

.star-label:hover .star-icon,
.star-label.hover .star-icon {
    color: #FFD700;
    transform: scale(1.1);
}

.star-label.active .star-icon {
    color: #FF6B35;
    fill: #FF6B35;
}

.rating-text {
    text-align: center;
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    color: #4a4a4a;
    font-weight: 500;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.feedback-card {
    background: #FFFFFF;
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(1.5rem, 4vh, 2rem);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.5s ease-out 0.4s both;
}

.feedback-label {
    display: block;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.feedback-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: clamp(12px, 3vw, 16px);
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    font-family: inherit;
    color: #2c2c2c;
    background: #F5F3F0;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #FF6B35;
    background: #FFFFFF;
}

.char-count {
    text-align: right;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: #4a4a4a;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.char-count.warning {
    color: #FF6B35;
    font-weight: 600;
}

.satisfaction-submit-btn {
    width: 100%;
    padding: clamp(1.1rem, 3.5vh, 1.4rem) 2rem;
    background: #D3D3D3;
    color: #2c2c2c;
    border: none;
    border-radius: clamp(12px, 3vw, 16px);
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.5s ease-out 0.5s both;
}

.satisfaction-submit-btn.enabled {
    background: #FF6B35;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.satisfaction-submit-btn.enabled:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.satisfaction-submit-btn.enabled:active {
    transform: translateY(0);
}

/* Hide nav and footer on satisfaction page */
body:has(.satisfaction-page-mobile) nav,
body:has(.satisfaction-page-mobile) footer {
    display: none;
}

body:has(.satisfaction-page-mobile) {
    overflow-x: hidden;
    overflow-y: auto;
}

body:has(.satisfaction-page-mobile) main {
    padding: 0;
    margin: 0;
}

/* SkillTrek Presentation - Mobile First */
.presentation-page {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #F5F3F0 0%, #FFF5F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    box-sizing: border-box;
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

.presentation-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(108, 122, 224, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.presentation-container {
    width: 100%;
    max-width: 700px;
    height: 100%;
    position: relative;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    filter: blur(4px);
}

.slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    filter: blur(0);
}

.slide-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vh, 1.5rem);
    text-align: center;
    padding: 2rem 0;
}

.slide-text {
    font-size: clamp(1.1rem, 5vw, 1.8rem);
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.slide-text:nth-child(1) {
    animation-delay: 0.1s;
}

.slide-text:nth-child(2) {
    animation-delay: 0.2s;
}

.slide-text:nth-child(3) {
    animation-delay: 0.3s;
}

.slide-text:nth-child(4) {
    animation-delay: 0.4s;
}

.slide-text:nth-child(5) {
    animation-delay: 0.5s;
}

.slide-text:nth-child(6) {
    animation-delay: 0.6s;
}

.slide-text:nth-child(7) {
    animation-delay: 0.7s;
}

.slide-text.highlight {
    font-weight: 700;
    color: #FF6B35;
    font-size: clamp(1.3rem, 6vw, 2.2rem);
    position: relative;
    display: inline-block;
}

.slide-text.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-text.highlight.animate-in::after {
    transform: scaleX(1);
}

.slide-text.brand {
    font-weight: 700;
    color: #FF6B35;
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.slide-text.indent {
    padding-left: clamp(1.5rem, 5vw, 2.5rem);
    text-align: left;
    font-size: clamp(1rem, 4.5vw, 1.6rem);
}

.next-button {
    position: fixed;
    bottom: clamp(2rem, 5vh, 3rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 8vw), 300px);
    padding: clamp(1rem, 3vh, 1.25rem) 2rem;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: clamp(12px, 3vw, 16px);
    font-size: clamp(1rem, 4vw, 1.15rem);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    z-index: 100;
    overflow: hidden;
    box-sizing: border-box;
}


.next-button:hover {
    background: #E55A2B;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.next-button:active {
    transform: translateX(-50%) translateY(0);
    background: #E55A2B;
}

.next-button:focus {
    outline: none;
    background: #FF6B35;
}

.next-button.final {
    background: #FF6B35;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.next-button.final:hover {
    background: #E55A2B;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.next-button.final:active {
    background: #E55A2B;
    transform: translateX(-50%) translateY(0);
}

.next-button.final:focus {
    background: #FF6B35;
}

.button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.next-button:hover .button-arrow {
    transform: translateX(4px);
}

.slide-indicator {
    position: fixed;
    top: clamp(2rem, 5vh, 3rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 100;
}

.indicator-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E0E0E0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dot.active {
    background: #FF6B35;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35, #6C7AE0);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Hide nav and footer on presentation page */
body:has(.presentation-page) nav,
body:has(.presentation-page) footer {
    display: none;
}

body:has(.presentation-page) {
    overflow-x: hidden;
    overflow-y: auto;
}

body:has(.presentation-page) main {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Explanation page */
.explanation-page {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step:hover {
    background: #f0f0f0;
    transform: translateX(10px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.step-content p {
    color: #666;
    margin: 0;
}

.info-box {
    background: #fff5f2;
    border-left: 4px solid #FF6B35;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Beta enroll - Mobile First */
.beta-enroll-page {
    min-height: 100vh;
    background: #F5F3F0;
    padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

.enroll-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vh, 3rem);
    animation: slideInUp 0.5s ease-out;
}

.enroll-header h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.enroll-header .subtitle {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    color: #4a4a4a;
    font-weight: 400;
}

.beta-form {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-section {
    background: white;
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: clamp(1.5rem, 4vh, 2rem);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    animation: slideInUp 0.6s ease-out;
}

.form-section.optional-section {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.form-section-title {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: clamp(1.25rem, 4vh, 1.75rem);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F5F3F0;
}

.section-header {
    margin-bottom: clamp(1.25rem, 4vh, 1.75rem);
}

.section-hint {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: #FF6B35;
    font-weight: 500;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: clamp(1.25rem, 4vh, 1.5rem);
}

.form-group:last-child {
    margin-bottom: 0;
}

.beta-form label {
    display: block;
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.required {
    color: #FF6B35;
}

.beta-form input,
.beta-form textarea {
    width: 100%;
    padding: clamp(0.875rem, 3vw, 1rem);
    border: 2px solid #E8E6E3;
    border-radius: clamp(10px, 2.5vw, 12px);
    font-size: clamp(1rem, 3.5vw, 1.05rem);
    color: #2c2c2c;
    background: #F9F8F6;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.beta-form input:focus,
.beta-form textarea:focus {
    outline: none;
    border-color: #FF6B35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.beta-form input::placeholder,
.beta-form textarea::placeholder {
    color: #9A9A9A;
}

.beta-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group.optional label {
    color: #6A6A6A;
    font-weight: 500;
}

.form-actions {
    margin-top: clamp(2rem, 6vh, 3rem);
    padding-bottom: clamp(1rem, 4vh, 2rem);
}

.submit-button {
    width: 100%;
    padding: clamp(1rem, 3.5vh, 1.25rem) 2rem;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: clamp(12px, 3vw, 16px);
    font-size: clamp(1.05rem, 4vw, 1.2rem);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    animation: slideInUp 0.7s ease-out;
}

.submit-button:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button svg {
    width: 20px;
    height: 20px;
}

/* Success page */
.beta-success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.success-container {
    max-width: 500px;
    width: 100%;
    padding: clamp(2rem, 6vw, 3rem);
    animation: scaleIn 0.5s ease-out;
}

.success-icon {
    width: clamp(80px, 20vw, 100px);
    height: clamp(80px, 20vw, 100px);
    margin: 0 auto clamp(1.5rem, 4vh, 2rem);
    color: #FF6B35;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.beta-success-page h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: clamp(1.5rem, 4vh, 2rem);
}

.badge {
    background: white;
    border-radius: clamp(16px, 4vw, 20px);
    padding: clamp(1.5rem, 5vw, 2rem);
    margin: clamp(1.5rem, 4vh, 2rem) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.badge-icon {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1;
}

.badge h2 {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
}

.badge p {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    color: #4a4a4a;
    line-height: 1.6;
}

.badge.hardcore {
    border: 2px solid #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 107, 53, 0.02));
}

.badge.hardcore h2 {
    color: #FF6B35;
}

.badge.regular {
    border: 2px solid #6C7AE0;
    background: linear-gradient(135deg, rgba(108, 122, 224, 0.05), rgba(108, 122, 224, 0.02));
}

.badge.regular h2 {
    color: #6C7AE0;
}

.thank-you {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    color: #4a4a4a;
    margin-top: clamp(1.5rem, 4vh, 2rem);
    animation: fadeIn 0.6s ease-out 0.4s both;
}

/* Hide nav/footer on beta enroll page */
body:has(.beta-enroll-page) nav,
body:has(.beta-enroll-page) footer {
    display: none;
}

/* Allow scroll on beta enroll page */
body:has(.beta-enroll-page) {
    overflow-x: hidden;
    overflow-y: auto;
}

body:has(.beta-enroll-page) main {
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .beta-enroll-page {
        padding: 3rem 2rem;
    }
    
    .form-section {
        padding: 2.5rem;
    }
}

footer {
    margin-top: auto;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #e0e0e0;
    background: #F5F3F0;
}

/* Mobile footer */
@media (max-width: 768px) {
    footer {
        padding: 1rem 0;
        font-size: 0.9rem;
    }
}

/* Error page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin: 2rem 0;
}

/* Amélioration du quiz */
.option-wrapper {
    margin-bottom: 1rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.option:hover {
    border-color: #FF6B35;
    background: #fff5f2;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.option input[type="radio"] {
    margin-right: 1.2rem;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #FF6B35;
}

.option-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    font-weight: 700;
    color: #666;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.option:has(input[type="radio"]:checked) {
    border-color: #FF6B35;
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.option:has(input[type="radio"]:checked) .option-number {
    background: #FF6B35;
    color: white;
}

.option:has(input[type="radio"]:checked) .option-text {
    font-weight: 600;
    color: #FF6B35;
}

.option-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
}

.quiz-actions {
    margin-top: 2.5rem;
    text-align: center;
}

.btn-enabled {
    opacity: 1 !important;
    cursor: pointer !important;
}

.question-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.question-header {
    margin-bottom: 1.5rem;
}

.question-badge {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.progress {
    background: #e0e0e0;
    border-radius: 10px;
    height: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-weight: 600;
    text-align: center;
}

