.wrapper {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background-color: #2a2a2a;
    color: white;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    max-width: 600px;
    background-color: #1a1a1a;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header {
    background-color: #000;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #333;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.back-btn>img {
    width: 8px;
    object-fit: contain;
}

.logo {
    width: 100px;
    height: 25px;
    background-image: url("https://rummy-assets.jungleerummy.com/Content/versioned/2.0.0.1/images/version4/promotion_june_25/zenrik_images/image-3-(1)-17495445752418.webp?v=1749544576");
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

.progress-bar {
    padding: 9px 14px;
    display: flex;
    gap: 8px;
}

.progress-segment {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: #333;
}

.progress-segment.active {
    position: relative;
    transition: 1s all;
}

.progress-segment.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 2px;
    z-index: 9;
    animation: fillProgress 1s ease-in forwards;
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.character-section {
    padding: 0px 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.character {
    width: 90px;
    height: 97px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    opacity: 0;
    transition: 0.7s all;
    transform: translateY(30%);
    animation: fromBottomToTop 1s ease-in forwards;
}

@keyframes fromBottomToTop {
    from {
        opacity: 0.4;
    }

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

.character>img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 15px;
    left: 0;
    object-fit: cover;
}

.speech-bubble-wrapper {
    background: linear-gradient(96.18deg, #f0c45d 11.6%, #000000 90.77%);
    padding: 1px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    transform: translateX(-30%);
    display: inline-block;
    opacity: 0;
    animation: wrapperanimation 0.3s ease-out 0.3s forwards;
}

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

.speech-bubble {
    background: #252525;
    padding: 4px 14px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    color: white;
    font-family: sans-serif;
    font-size: 14px;
}

.home-section {
    margin-bottom: 16px !important;
}

.speech-text {
    font-size: 12px;
    font-weight: 200;
    color: #ffffffcc;
    padding: 7px;
    text-align: center;

    /* line-height: 1.4; */
}

.speech-text .quote {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
    font-size: 14px;
    color: white;
}

.speech-text .subtitle {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.question-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    transform-origin: bottom center;
    transform: rotateX(90deg);
    opacity: 0;
    animation: flipDown 0.8s ease-out forwards;
}

.question-wrapper-page3 {
    transform-origin: bottom center;
    transform: rotateX(90deg);
    opacity: 0;
    animation: flipDown 0.8s ease-out forwards;
}

@keyframes flipDown {
    to {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

.question-section {
    padding: 14px;
    box-shadow: 0px -3px 7px 0px #00000040;
    overflow: hidden;
    background: #303030;
    max-width: 94%;
    margin: auto;
    border-radius: 7px;
    position: relative;
    background-color: white;
    opacity: 0;
    transform: translateY(50%);
    animation: slideInUp 0.6s ease-out 0.2s forwards;
}

.question {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    color: black;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #333;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
}

.option:nth-child(1) {
    animation: scaleUp 0.3s ease-out 0.4s forwards;
}

.option:nth-child(2) {
    animation: scaleUp 0.3s ease-out 0.5s forwards;
}

.option:nth-child(3) {
    animation: scaleUp 0.3s ease-out 0.6s forwards;
}

.option:nth-child(4) {
    animation: scaleUp 0.3s ease-out 0.7s forwards;
}

.option:nth-child(5) {
    animation: scaleUp 0.3s ease-out 0.8s forwards;
}

.option:nth-child(6) {
    animation: scaleUp 0.3s ease-out 0.9s forwards;
}

.option:nth-child(7) {
    animation: scaleUp 0.3s ease-out 1s forwards;
}

.option:nth-child(8) {
    animation: scaleUp 0.3s ease-out 1.1s forwards;
}

.option:nth-child(9) {
    animation: scaleUp 0.3s ease-out 1.2s forwards;
}

.option:nth-child(10) {
    animation: scaleUp 0.3s ease-out 1.3s forwards;
}

.option:nth-child(11) {
    animation: scaleUp 0.3s ease-out 1.4s forwards;
}

.option:nth-child(12) {
    animation: scaleUp 0.3s ease-out 1.5s forwards;
}

.option:nth-child(13) {
    animation: scaleUp 0.3s ease-out 01.6s forwards;
}

.option:nth-child(14) {
    animation: scaleUp 0.3s ease-out 1.7s forwards;
}

.option:nth-child(15) {
    animation: scaleUp 0.3s ease-out 1.8s forwards;
}

.option:nth-child(16) {
    animation: scaleUp 0.3s ease-out 1.9s forwards;
}

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

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

.option.selected {
    background: #e6bb65;
    color: #000;
}

.option:hover {
    background-color: #444;
}

.option.selected:hover {
    background: #e6bb65;
}

.option-text {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.option.selected .checkbox {
    border-color: #000;
    background-color: #000;
}



.option.selected .checkbox::after {
    content: "";
    color: #ffd700;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("https://rummy-assets.jungleerummy.com/Content/versioned/2.0.0.1/images/version4/promotion_june_25/zenrik_images/check-17497316421802.webp?v=1749731643");
    filter: invert();
}

/* Radio button styles */
.radio-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 12px;
}

.radio-option.selected {
    background: #e6bb65;
    color: #000;
}

.radio-option:hover {
    background-color: #444;
}

.radio-option.selected:hover {
    background: #e6bb65;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.radio-option.selected .radio-circle {
    border-color: #000;
    background-color: #000;
}

.red-astrik {
    color: #d30000;
    margin-left: 4px;
    display: none;
}

.radio-circle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
}

.radio-option.selected .radio-circle::after {
    background-color: #ffd700;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    text-align: center;
    margin: 10px 20px 0;
    display: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    display: block;
    transform: translateY(0);
    margin-bottom: 3px;
}

.next-btn {
    padding: 13px;
    background: linear-gradient(180deg, #f7e1a5 0%, #eeb940 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    opacity: 0;
    transform: scale(0.5);
    animation: nextBtnAnimate 0.9s ease-in-out forwards;
}

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

.next-btn:hover {
    transform: translateY(-2px);
}

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

.back-to-previous {
    margin: 20px;
    margin-top: 15px;
    padding: 12px;
    background-color: transparent;
    color: white;
    border: 2px solid #666;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    width: calc(100% - 40px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

.back-to-previous:hover {
    border-color: #ffd700;
    color: #ffd700;
}

.decorative-pattern {
    /* height: 60px; */
    background: linear-gradient(45deg,
            #1a1a1a 25%,
            transparent 25%,
            transparent 75%,
            #1a1a1a 75%),
        linear-gradient(45deg,
            #1a1a1a 25%,
            transparent 25%,
            transparent 75%,
            #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.1;
}

/* Page styles */
.page {
    display: none;
}

.page.active {
    display: block;
}

.text-input {
    width: 100%;
    padding: 16px;
    background: #1f1f1f;
    border: 1px solid #555;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    resize: vertical;
    min-height: 120px;
    transition: 2s all;
}

.text-input:focus {
    outline: none;
    border-color: #ffd700;
}

.text-input::placeholder {
    color: #999;
}

.page2-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page2 {
    position: absolute;
    height: 100%;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.showpage2 {
    opacity: 1;
    visibility: visible;
}

.page4content {
    width: 94%;
    font-size: 14px;
    background: #1c1c1c;
    font-weight: 300;
    margin: auto;
    line-height: 100%;
    color: #ffffff80;
    margin-top: 14px;
    padding: 18px;
    box-shadow: 0px -3px 7px 0px #00000040;
    border-bottom: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: relative;
}

.page4content::before {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 0;
    width: 30px;
    height: 30px;
    background-image: url("https://rummy-assets.jungleerummy.com/Content/versioned/2.0.0.1/images/version4/promotion_june_25/zenrik_images/Frame-(1)-17492048747367.webp?v=1749204877");
    background-size: contain;
    background-repeat: no-repeat;
}

.page4div {
    border-radius: 0;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: none;
}

.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 100px);
}

.success-container {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.success-icon {
    font-size: 100px;
}

.success-icon>img {
    width: 173px;
    height: 100%;
    object-fit: contain;
}