/* === Layout Basics === */

.ticket {
    padding-top: 80px;
    border-top-left-radius: 140px;
    border-top-right-radius: 140px;
    background: linear-gradient(180deg, #fff 16.73%, rgba(255, 255, 255, 0.00) 71.12%);
    position: relative;
}

.ticket-container {
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.left-wing2 {
    position: absolute;
    left: 50%;
    transform: translate(-300%, 0);
    z-index: 1;
    pointer-events: none;
}

.left-wing2 img {
    width: 220px;
}

/* === Structure === */

.flex-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.left-wrap {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr; /* single column by default */
    width: 100%;
}

.right-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* === Step Cards === */

.wrap-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    border: 1px solid #E0E9FF;
    border-radius: 24px;
    padding: 14px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wrap-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.numbering {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #EDEDED;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrap-2 .numbering {
    background-color: #FFE6ED;
}

.wrap-3 .numbering {
    background-color: #EFF8FA;
}

.wrap-4 .numbering {
    background-color: #FFECCE;
}

.wrap-5 .numbering {
    background-color: #C8D0F3;
}

/* === Example Box + Tabs === */

.inner-wrap {
    background-color: #072AC826;
    border: 1px solid #E0E9FF;
    border-radius: 30px;
    overflow: hidden;
}

.inner-wrap-box {
    padding: 16px 30px;
}

.inner-wrap-box h4 {
    margin-bottom: 6px;
}

.inner-wrap-box p:first-of-type {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inner-wrap-box small {
    width: 23px;
    height: 23px;
    background-color: #ffffffCC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-wrap {
    background-color: #fff;
    padding: 10px 30px 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom: 1px solid #E0E9FF;
}

.tabs {
    display: flex;
    gap: 30px;
}

.tab {
    color: rgba(11, 16, 40, 0.70);
    cursor: pointer;
    padding-bottom: 4px;
    text-align: center;
}

.tab.active-tab {
    border-bottom: 2px solid #072AC8;
    color: #072AC8;
    font-family: 'BoldFont', sans-serif;
}

.outer-wrap {
    background-color: #fff;
    padding: 10px 30px;
    min-height: 225px;
}

/* === Tab Content === */

.tab-flex {
    display: none;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.tab-flex.active-content {
    display: flex;
}

.tab-flex img {
    width: 37%;
}

.solution-styled,
.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(11, 16, 40, 0.9);
}

.solution-styled .step,
.solution-steps .step span {
    min-width: 30px;
    color: #072AC8;
    font-weight: bold;
    margin-right: 6px;
}

.solution-steps .step {
    display: flex;
    align-items: flex-start;
}

.step-3 > div {
    display: flex;
    align-items: flex-start;
    margin: 8px 0;
    line-height: 0.5;
    color: rgba(11, 16, 40, 0.70);
}

.step-3 .indent {
    padding-left: 22px;
}

.step-3 .indent2 {
    padding-left: 32px;
}

.underline {
    text-decoration: underline;
}

.winner {
    color: #072AC8;
    font-family: 'BoldFont', sans-serif;
}

/* === Code Block (Tab 3) === */

.code-window {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    max-width: 500px;
    overflow-x: auto;
}

.code-header {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.code-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

/* === Responsive === */
@media screen and (max-width: 1360px) {
    .left-wing2 {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .ticket {
        margin-top: 20px;
        padding: 40px 0 30px;
        border-top-left-radius: 60px;
        border-top-right-radius: 60px;
    }

    .flex-container {
        flex-direction: column;
    }

    .tab-flex img {
        width: 20%;
    }

    .wrap-card,
    .inner-wrap {
        border-radius: 16px;
    }

    .right-wrap {
        flex: 1;
    }

    .wrap-card {
        padding: 10px 16px;
        gap: 14px;
    }

    .wrap-card .numbering {
        width: 36px;
        height: 36px;
    }

    .inner-wrap-box {
        padding: 10px 20px;
    }

    .tab-wrap {
        padding: 10px 20px 0;
    }

    .outer-wrap {
        padding: 20px;
        min-height: unset;
    }
}
