

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
    width: 100%; height: 100%;
    background-color: #050505; color: #fff;
    font-family: 'Inter', sans-serif;
    overflow: hidden; 
    -webkit-font-smoothing: antialiased;
}


.builder-header { position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 100; }
.builder-close {
    position: absolute; right: calc(4vw + 156px); top: calc(2.5vw + clamp(50px, 7vw, 100px) / 2); transform: translateY(-50%);
    display: flex; align-items: center; gap: 8px; color: #FF9A3D; text-decoration: none; white-space: nowrap;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s;
}

.persistent-ui .header-top { pointer-events: none; }
.persistent-ui .header-top > * { pointer-events: auto; }
.builder-close:hover { color: #fff; }


#builder-main {
    width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative;
}
#step-container {
    width: 100%; max-width: 1000px; padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center;
}


.step-number { font-family: 'League Spartan', sans-serif; font-size: 1rem; color: #FF9A3D; letter-spacing: 2px; margin-bottom: 1.5rem; font-weight: 600; }
.step-title { font-family: 'League Spartan', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 1rem; color: #fff; letter-spacing: -0.02em; }
.step-desc { font-size: 1.1rem; color: #888; line-height: 1.6; max-width: 600px; margin: 0 auto 2rem auto; }
.accent-italic { color: #FF9A3D; font-style: italic; font-weight: 600; }


.input-wrapper { position: relative; width: 100%; max-width: 450px; margin: 0 auto 2.5rem auto; display: flex; align-items: center; gap: 10px; }
.input-line {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; font-size: 1.8rem; padding: 10px 0; text-align: center; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.3s; font-weight: 300;
}
.input-line:focus { border-bottom-color: #fff; }
.input-line::placeholder { color: rgba(255, 255, 255, 0.2); }


.btn-next {
    background: #fff; color: #000; border: none; padding: 14px 35px; border-radius: 50px;
    font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease;
}
.btn-next:hover { transform: translateY(-3px); background: #FF9A3D; color: #000; box-shadow: 0 4px 14px rgba(255, 154, 61, 0.18); }
.press-enter-hint { display: block; font-size: 0.75rem; color: #9a9aa0; margin-top: 1rem; font-weight: 500; }


.choice-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; max-width: 900px; margin-bottom: 2.5rem;
}
.choice-card {
    flex: 1 1 calc(30% - 1rem); min-width: 220px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; padding: 1.5rem; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px;
    position: relative; overflow: hidden;
}

.choice-card::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg); animation: swirlSweep 4s infinite; pointer-events: none;
}
@keyframes swirlSweep { 0% { left: -150%; } 20% { left: 150%; } 100% { left: 150%; } }

.choice-card:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.03); }
.choice-card.selected { border-color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }

.choice-label { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 0.4rem; z-index: 2; position: relative;}
.choice-subtext { font-size: 0.85rem; color: #777; line-height: 1.4; z-index: 2; position: relative;}


.summary-box { width: 100%; max-width: 750px; margin: 0 auto; border: 1px solid rgba(255,255,255,0.1); padding: 2rem; border-radius: 12px; text-align: left; background: rgba(255,255,255,0.02); }
.sum-scroll-list { max-height: 40vh; overflow-y: auto; padding-right: 15px; }
.sum-scroll-list::-webkit-scrollbar { width: 6px; }
.sum-scroll-list::-webkit-scrollbar-thumb { background: #FF9A3D; border-radius: 10px; }
.sum-item { display: flex; flex-direction: column; justify-content: flex-start; padding: 1.2rem 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: #ccc; line-height: 1.5; gap: 6px;}
.sum-item:last-child { border-bottom: none; }
.sum-item strong { color: #fff; font-weight: 400; font-size: 1.1rem; }
.sum-disclaimer { font-size: 0.85rem; color: #888; margin-top: 1rem; }


#progress-nav {
    position: absolute; bottom: 0; right: 0; display: flex; align-items: stretch; background: transparent; border-top-left-radius: 8px; overflow: hidden;
}
.progress-info { padding: 15px 20px; display: flex; flex-direction: column; gap: 8px; background: #FF9A3D; }
#progress-percentage { font-size: 0.7rem; color: #000; letter-spacing: 1px; font-weight: 800; }
.progress-track { width: 120px; height: 3px; background: rgba(0, 0, 0, 0.2); border-radius: 2px; }
.progress-fill { height: 100%; width: 0%; background: #ffffff; transition: width 0.4s ease; }
.progress-arrows { display: flex; flex-direction: column; border-left: 1px solid rgba(0, 0, 0, 0.15); }
.nav-arrow { background: #FF9A3D; border: none; border-bottom: 1px solid rgba(0, 0, 0, 0.15); color: #000; width: 40px; flex: 1; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: color 0.3s, background 0.3s; }
.nav-arrow:hover { background: #ffffff; color: #000; }
.nav-arrow:last-child { border-bottom: none; }


@media (max-width: 768px) {
    
    .builder-close { right: calc(4vw + 140px); gap: 6px; letter-spacing: 1.5px; }
    .builder-close { font-size: 0.65rem; }

    
    #step-container { padding: 6rem 1rem 4rem 1rem; width: 100%; max-width: 100%; }

    
    .step-number { font-size: 0.75rem; margin-bottom: 0.5rem; }
    .step-title { font-size: clamp(1.3rem, 6vw, 1.8rem) !important; margin-bottom: 0.5rem !important; line-height: 1.2; }
    .step-desc { font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.3; }

    
    .choice-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .choice-card {
        min-height: 48px;
        padding: 10px 8px;
        min-width: unset;
        flex: unset;
        justify-content: center;
    }

    
    .choice-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .choice-label {
        font-size: 0.75rem;
        line-height: 1.25;
        margin: 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    
    .input-wrapper { margin-bottom: 1.5rem; }
    .input-line { font-size: 1.2rem; padding: 8px 0; }

    
    .btn-next { padding: 12px 24px; font-size: 0.8rem; margin-top: 0 !important; }
    #submit-btn { margin-top: 1rem !important; }
    
    
    .press-enter-hint { display: none !important; }

    
    .summary-box { padding: 1.2rem; max-height: 50vh; overflow-y: auto; }
    .sum-scroll-list { max-height: unset; overflow-y: visible; padding-right: 5px; }
    .sum-item { padding: 0.8rem 0; font-size: 0.8rem; gap: 4px; }
    .sum-item strong { font-size: 0.9rem; }

    
    #progress-nav { transform: scale(0.85); transform-origin: bottom right; }
}


.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* Keep the progress badge visible above the cookie bar on phones */
@media (max-width: 768px) {
    body:has(#cookie-consent-banner:not(.hidden)) #progress-nav { bottom: 150px; }
}

@media (max-width: 768px) { .builder-close { font-size: 0.75rem; } }

/* Long answers (Oct 2026) */
textarea.input-line, .input-area { width: 100%; resize: vertical; min-height: 4.5em; font-family: inherit; line-height: 1.4; }
input.input-line[type="date"] { color-scheme: dark; }
