﻿/* Bonus Question - Accordion Layout CSS */
/* Converted from Tailwind CSS in Payment.cshtml */

@media (min-width: 1024px) {
    .container {
        width: 90%;
    }
}

/* Main Wrapper */
.bonus-main-wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 16px;
    gap: 16px;
}

@media (min-width: 1024px) {
    .bonus-main-wrapper {
        flex-direction: row;
        padding: 24px;
        gap: 0;
    }
}

/* Back Button */
.bonus-back-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #FFFFFF;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    left: 8px;
    top: 12px;
    z-index: 10;
}

@media (min-width: 768px) {
    .bonus-back-btn {
        left: 32px;
        top: 32px;
    }
}

.bonus-back-text {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #D13CFF;
    margin: 0;
}

/* Page Title */
.bonus-page-title {
    font-weight: 700;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
    color: #292A2D;
}

@media (min-width: 768px) {
    .bonus-page-title {
        font-size: 1rem;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .bonus-page-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

/* Plan Section - Left Side */
.bonus-plan-section {
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    gap: 18px;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    .bonus-plan-section {
        padding: 24px;
        flex: 1;
        min-height: 300px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}

/* Accordion Wrapper */
.custom-accordion-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Accordion Item */
.plan-item.accordion-item {
    border-radius: 9px;
    transition: box-shadow 0.2s;
}

.plan-item.accordion-item.open {
    border: 1px solid#A56EFF;
}

/* Accordion Header */
.accordion-header {
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    padding: 12px;
    border-radius: 9px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    cursor: pointer;
    transition: all 0.2s;
}

.accordion-header.center {
    align-items: center;
}

.accordion-item.open > .accordion-header {
    border-radius: 9px 9px 0 0;
    background: #F8F9FA;
}

.accordion-item.selected:not(.open) > .accordion-header {
    background: #F6F2FF;
    border: 1px solid #A56EFF;
}

.accordion-item.open > .accordion-header {
    border-bottom: 1px solid #A56EFF;
}

.accordion-header-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accordion-header-content.with-badge {
    gap: 0.5rem;
}

.accordion-title-wrap {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.accordion-title-wrap .icon-coin {
    width: 1.5rem;
    height: 1.5rem;
}

.accordion-title-wrap.badge {
    border-radius: 0.475rem;
    opacity: 1;
    gap: 0.425rem;
    padding: 0.25rem 0.5rem;
    background: #A56EFF;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.25rem;
    letter-spacing: 0;
    text-align: center;
    color: #D4BBFF;
    width: fit-content;
}

@media (max-width: 767px) {
    .accordion-title-wrap:not(.badge) {
        flex-direction: column-reverse;
        align-items: start;
    }
}

.accordion-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.3px;
    color: #292A2D;
    margin: 0;
}

.icon-title-wrap {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
}

.accordion-badge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(218, 60, 255, 0.2);
    padding: 4px 8px;
    border-radius: 7px;
}

.accordion-badge-text {
    font-weight: 700;
    font-size: 10px;
    line-height: 100%;
    letter-spacing: -0.3px;
    color: rgba(183, 60, 255, 0.8);
    margin: 0;
}

.accordion-description {
    font-weight: 400;
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #919191;
    margin: 0;
}

/* Accordion Icon */
.accordion-icon {
    border-radius: 5px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.accordion-item.open > .accordion-header > .accordion-header-right > .accordion-icon {
    transform: rotate(180deg);
    background: #E8DAFF;
}

.accordion-item.open > .accordion-header > .accordion-header-right > .accordion-icon path {
    stroke: #BE95FF;
}

/* Accordion Content */
.accordion-content {
    background: #FFFFFF;
    border-radius: 0 0 9px 9px;
    border: 1px solid #D9D9D9;
    border-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transition: all 0.3s ease-out;
}

.accordion-item.open > .accordion-content {
    max-height: 800px;
    opacity: 1;
    padding: 12px;
}

.accordion-image-wrap {
    width: 100%;
}

.accordion-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}

.accordion-header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Content Title, Description, Note */
.content-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.3px;
    color: #292A2D;
}

.content-title sup {
    font-weight: 400;
    font-size: 14px;
    vertical-align: middle;
    margin-right: 4px;
    color: #8D8D8D;
}

.content-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #919191;
    margin: 0 0 8px 0;
}

.content-note {
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0%;
    color: #919191;
    font-style: italic;
    margin: 0;
}

.content-description-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

/* Choose Plan Button */
.choose-plan-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.bonus-btn-primary {
    background: #D13CFF;
    color: #F8F9FA;
}

.bonus-btn-primary:hover {
    background: #ff55da;
}

.bonus-btn-primary:disabled {
    background: rgba(218, 60, 255, 0.2);
    color: rgba(254, 60, 255, 0.4);
    cursor: not-allowed;
    border: none;
}

/* Payment Section - Right Side */
.bonus-payment-section {
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    padding: 16px;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    .bonus-payment-section {
        flex: 1;
        padding: 24px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

.bonus-section-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: -0.5px;
    text-align: center;
    color: #292A2D;
    margin: 0 0 8px 0;
}

@media (min-width: 1024px) {
    .bonus-section-title {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Payment Method Section */
.bonus-payment-method-section {
    width: 100%;
}

.select-payment-method-body {
    width: 100%;
    background: #FFFFFF;
    border-radius: 9px;
    padding: 16px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    justify-content: center;
    margin: 0 auto;
    align-items: stretch;
}


@media (max-width: 768px) {
    .payment-method-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: stretch;
    }
}

.payment-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #D9D9D9;
    background: #FFFFFF;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.payment-method-card:hover {
    background: rgba(142, 62, 201, 0.08);
    transform: translateY(-2px);
}

.payment-method-card.selected:hover {
    transform: none;
}

.payment-method-card.selected {
    background: rgba(165, 110, 255, 0.15);
    border: 2px solid #A56EFF;
    box-shadow: 0 2px 8px rgba(165, 110, 255, 0.25);
}

.payment-logo-card {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.payment-name-card {
    font-weight: 700;
    font-size: 1rem;
    line-height: 16px;
    letter-spacing: -0.3px;
    color: #616161;
    text-align: center;
}

.payment-method-card.selected .payment-name-card {
    color: #2C2C2C;
}



/* Payment Detail */
.payment-detail-wrapper {
    width: 100%;
}

.payment-detail-header {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(224, 224, 224, 1);
    padding: 16px;
    border-radius: 9px 9px 0 0;
}

.payment-detail-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #2C2C2C;
    margin: 0;
}

@media (min-width: 1024px) {
    .payment-detail-title {
        font-size: 16px;
    }
}

.payment-detail-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: #FFFFFF;
    border-radius: 0 0 9px 9px;
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}

.payment-detail-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
    padding: 16px;
}

.payment-detail-row.total {
    border-bottom: none;
    flex-direction: column;
    gap: 0.5rem;
}

.total-label-wrap {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.payment-detail-label {
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #616161;
    margin: 0;
}

@media (min-width: 1024px) {
    .payment-detail-label {
        font-size: 16px;
    }
}

.payment-detail-value {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #2C2C2C;
    margin: 0;
}

@media (min-width: 1024px) {
    .payment-detail-value {
        font-size: 16px;
    }
}

.payment-detail-total {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #6F42C1;
    margin: 0;
}

@media (min-width: 1024px) {
    .payment-detail-total {
        font-size: 18px;
    }
}

/* Action Wrapper */
.bonus-action-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0 0 0;
}

.bonus-btn-primary {
    width: 100%;
    background: #D13CFF;
    color: #F8F9FA;
    border: none;
    padding: 12px 48px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 1024px) {
    .bonus-btn-primary {
        font-size: 18px;
        line-height: 24px;
        padding: 12px 48px;
    }
}

.bonus-btn-primary:hover:not(:disabled) {
    background: #FF55DA;
    transform: translateY(-2px);
}

.bonus-btn-primary:disabled {
    background: #F4F4F4;
    color: #C6C6C6;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modalWrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    padding: 16px;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 24px;
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.quizModal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    opacity: 0;
    animation: slideUp 0.4s ease forwards;
    padding-top: 48px;
}

.quizModal img {
    margin-top: -115px;
    max-width: 25%;
}

.headModal {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    line-height: 1.3;
}

#modalBody {
    padding: 0;
    margin: 16px 0 32px 0;
    line-height: 1.6;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.modal-content .closed {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: #666;
    font-size: 20px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-content .closed:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #f44336;
    transform: rotate(90deg);
}

/* Legacy Support for Old Style */
.bonusCardWrap {
    max-width: 640px;
    margin: 32px auto;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    padding-top: 16px;
}

.bonusBanner {
    overflow: hidden;
    border-radius: 20px;
}

.bonusBanner img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 20px;
}

.bonusBanner img:hover {
    transform: scale(1.03);
}

.btnClaim {
    padding: 20px;
    text-align: center;
    background-color: transparent;
}

.btnClaim button {
    background: linear-gradient(to right, #E13386, #FF4F90);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(225, 51, 134, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btnClaim button:hover {
    background: linear-gradient(to right, #D91E74, #FF5A96);
    transform: translateY(-2px);
}

.txt-bonus {
    color: darkgreen;
}

.extra-token-promo.is-hidden,
.no-extra-token-promo.is-hidden {
    display: none;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-promo-badge {
    display: none;
    border-radius: 0.375rem;
    opacity: 1;
    gap: 0.425rem;
    padding: 0.125rem 0.25rem;
    background: #e42222;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.25rem;
    letter-spacing: 0;
    text-align: center;
    color: #FFFFFF;
}
.disabled {
    pointer-events: none; /* menonaktifkan klik */
    opacity: 0.5; /* membuat terlihat nonaktif */
    cursor: not-allowed;
}