/*=========================================================
    PREDICTION MARKET CALCULATOR
    prediction-style.css
=========================================================*/


/*=========================================================
    GLOBAL
=========================================================*/

#prediction-calculator,
#prediction-calculator *,
#prediction-calculator *::before,
#prediction-calculator *::after {
    box-sizing: border-box;
}


/*=========================================================
    WRAPPER
=========================================================*/

.prediction-wrapper {
    width: 100%;
    max-width: 1380px;
    margin: 50px auto;
    padding: 0 20px;
}


/*=========================================================
    SECTION
=========================================================*/

.prediction-wrapper .sc-section {
    background: #F4F4F4;
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 25px;
    transition: .35s;
    overflow: hidden;
}

.prediction-wrapper .sc-section.active {
    opacity: 1;
}

.prediction-wrapper .sc-section.sc-locked {
    opacity: .75;
}


/*=========================================================
    HEADER
=========================================================*/

.prediction-wrapper .sc-section-header {
    margin-bottom: 30px;
}

.prediction-wrapper .sc-step-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.prediction-wrapper .sc-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.prediction-wrapper .sc-header-left h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
}

.prediction-wrapper .sc-header-right {
    max-width: 380px;
}

.prediction-wrapper .sc-header-right p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}


/*=========================================================
    STEP NUMBER
=========================================================*/

.prediction-wrapper .sc-step-number {
    width: 42px;
    height: 42px;
    background: #1D1D1B;
    color: #FFBD00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}


/*=========================================================
    MAIN LAYOUT
=========================================================*/

.prediction-wrapper .sc-step-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    align-items: start;
}


/*=========================================================
    FORM AREA
=========================================================*/

.prediction-wrapper .sc-form-area {
    width: 100%;
}


/*=========================================================
    INPUT GRID
=========================================================*/

.prediction-wrapper .sc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 18px;
}


/*=========================================================
    FIELD
=========================================================*/

.prediction-wrapper .sc-field {
    width: 100%;
}

.prediction-wrapper .sc-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}


/*=========================================================
    INPUT
=========================================================*/

.prediction-wrapper .sc-input {
    height: 45px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E5E5;
}

.prediction-wrapper .sc-input span {
    width: 45px;
    min-width: 45px;
    text-align: center;
    font-size: 15px;
    color: #555;
}

.prediction-wrapper .sc-input input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111;
    padding: 0 12px;
}

.prediction-wrapper .sc-input input::placeholder {
    color: #aaa;
}


/*=========================================================
    REMOVE NUMBER INPUT ARROWS
=========================================================*/

.prediction-wrapper input[type="number"]::-webkit-inner-spin-button,
.prediction-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prediction-wrapper input[type="number"] {
    -moz-appearance: textfield;
}


/*=========================================================
    LOCKED STATE
=========================================================*/

.prediction-wrapper .sc-locked {
    cursor: not-allowed;
}

.prediction-wrapper .sc-locked .sc-input input {
    cursor: not-allowed;
    opacity: .6;
}

.prediction-wrapper .sc-collapsed .sc-section-body {
    display: none;
}


/*=========================================================
    SUMMARY
=========================================================*/

.prediction-wrapper .sc-summary {
    width: 100%;
    background: #1D1D1B;
    border-radius: 22px;
    padding: 16px;
    min-height: 260px;
    position: relative;
}

.prediction-wrapper .summary-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.prediction-wrapper .sc-summary-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/*=========================================================
    SUMMARY ITEM
=========================================================*/

.prediction-wrapper .sc-summary-item {
    background: #2A2A28;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.prediction-wrapper .sc-summary-item small {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.45;
}

.prediction-wrapper .sc-summary-item div {
    color: #FFBD00;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.qc-bottom-row {
    background: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}
.qc-bottom-text {
    font-size: 24px;
    font-weight: 700;
}
.qc-bottom-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.qc-bottom-text {
    flex: 1;
}

.qc-bottom-button {
    flex-shrink: 0;
}

.qc-bottom-button button {
    padding: 15px 30px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

/*=========================================================
    SUMMARY NOTE
=========================================================*/

.prediction-wrapper .sc-summary-note {
    margin: 18px auto 0;
    color: #B0B0B0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    padding: 0 15px;
}

.prediction-wrapper .sc-summary-note strong {
    color: #FFBD00;
}


/*=========================================================
    YEARLY VALUE
=========================================================*/

.prediction-wrapper .sc-yearly {
    margin-top: 10px;
    height: 32px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.prediction-wrapper .sc-yearly span {
    font-size: 12px;
    font-weight: 500;
    color: #777;
}

.prediction-wrapper .sc-yearly strong {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}


/*=========================================================
    STEP 2
=========================================================*/

#prediction-step2 .sc-step-layout {
    grid-template-columns: 1fr 350px;
}

#prediction-step2 .sc-summary {
    min-height: 100%;
}

#prediction-step2 .sc-summary-inner {
    gap: 15px;
}


/*=========================================================
    STEP 3
=========================================================*/

#prediction-step3 .sc-step-layout {
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

#prediction-step3 .sc-form-area {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

#prediction-step3 .sc-full {
    width: 100%;
}

#prediction-step3 .sc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#prediction-step3 .sc-input {
    height: 46px;
}


/*=========================================================
    PERCENTAGE INPUT
=========================================================*/

.prediction-percentage-input {
    position: relative;
}

.prediction-percentage-input input {
    padding-right: 45px !important;
}

.prediction-percentage-symbol {
    width: 40px !important;
    min-width: 40px !important;
    order: 2;
}


/*=========================================================
    STEP 3 SUMMARY
=========================================================*/

#prediction-step3 .sc-summary {
    min-height: auto;
}

#prediction-step3 .sc-summary-item {
    padding: 18px 15px;
}

#prediction-step3 .sc-summary-item div {
    font-size: 26px;
}


/*=========================================================
    RESULT SECTION
=========================================================*/

#prediction-result .sc-section-header {
    margin-bottom: 25px;
}


/*=========================================================
    RESULT TOP
=========================================================*/

#prediction-result .sc-result-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}


/*=========================================================
    BUTTONS
=========================================================*/

.prediction-wrapper .sc-btn {
    height: 48px;
    padding: 0 28px;
    border: 0;
    outline: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.prediction-wrapper .sc-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.prediction-wrapper .sc-btn-dark {
    background: #1D1D1B;
    color: #fff;
}

.prediction-wrapper .sc-btn-dark:hover:not(:disabled) {
    background: #000;
}

.prediction-wrapper .sc-btn-light {
    background: #E9E9E9;
    color: #111;
}

.prediction-wrapper .sc-btn-light:hover:not(:disabled) {
    background: #DCDCDC;
}


/*=========================================================
    PREDICTION RESULT BOX
=========================================================*/

#prediction-result .sc-result-box {
    background: #FFBD00;
    border-radius: 18px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/*=========================================================
    RESULT ITEM
=========================================================*/

#prediction-result .sc-result-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 22px 15px;
}

#prediction-result .sc-result-item small {
    display: block;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

#prediction-result .sc-result-item div {
    color: #111;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}


/*=========================================================
    RESULT HIGHLIGHT ITEMS
=========================================================*/

#prediction-result .prediction-result-highlight {
    background: #1D1D1B;
}

#prediction-result .prediction-result-highlight small {
    color: #fff;
}

#prediction-result .prediction-result-highlight div {
    color: #FFBD00;
}


/*=========================================================
    CTA
=========================================================*/

#prediction-result .prediction-cta {
    margin-top: 30px;
    text-align: center;
}

#prediction-result .prediction-cta p {
    margin: 0 0 15px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

#prediction-result .prediction-cta .sc-btn {
    min-width: 260px;
}


/*=========================================================
    FULL WIDTH RESULT ITEM
=========================================================*/

#prediction-result .prediction-result-full {
    grid-column: 1 / -1;
}

.prediction-cta .sc-btn{
    background: #000;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    color:#fff;
}

/*=========================================================
  LABEL + TOOLTIP
=========================================================*/

.sc-label-with-tooltip {
    display: flex;
    align-items: center;
    gap: 7px;
}


/*=========================================================
  TOOLTIP WRAPPER
=========================================================*/

.sc-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/*=========================================================
  TOOLTIP ICON
=========================================================*/

.sc-tooltip-icon {
    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #777;
    color: #fff;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    cursor: help;

    user-select: none;
}


/*=========================================================
  TOOLTIP CONTENT
=========================================================*/

.sc-tooltip-text {
    position: absolute;

    left: 50%;
    bottom: calc(100% + 10px);

    transform: translateX(-50%);

    width: 280px;

    padding: 10px 12px;

    background: #222;
    color: #fff;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;

    text-align: left;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 9999;
}


/*=========================================================
  TOOLTIP ARROW
=========================================================*/

.sc-tooltip-text::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 50%;

    transform: translateX(-50%);

    border-width: 6px;
    border-style: solid;

    border-color:
        #222
        transparent
        transparent
        transparent;
}


/*=========================================================
  SHOW TOOLTIP
=========================================================*/

.sc-tooltip:hover .sc-tooltip-text {
    opacity: 1;
    visibility: visible;
}


/*=========================================================
  MOBILE
=========================================================*/

@media (max-width: 767px) {

    .sc-tooltip-text {
        left: 0;
        transform: none;

        width: 240px;
    }

    .sc-tooltip-text::after {
        left: 8px;
        transform: none;
    }

}

/*=========================================================
    MOBILE
=========================================================*/

@media (max-width: 992px) {

    .prediction-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }

    .prediction-wrapper .sc-section {
        padding: 25px;
        border-radius: 22px;
    }

    .prediction-wrapper .sc-step-layout {
        grid-template-columns: 1fr;
    }

    .prediction-wrapper .sc-grid {
        grid-template-columns: 1fr;
    }

    .prediction-wrapper .sc-header-right {
        max-width: 100%;
    }

    .prediction-wrapper .sc-step-info {
        display: block;
    }

    .prediction-wrapper .sc-header-right {
        margin-top: 12px;
    }

    #prediction-step2 .sc-step-layout {
        grid-template-columns: 1fr;
    }

    #prediction-step3 .sc-step-layout {
        grid-template-columns: 1fr;
    }

    #prediction-step3 .sc-row {
        grid-template-columns: 1fr;
    }

    #prediction-result .sc-result-top {
        justify-content: center;
        flex-wrap: wrap;
    }

    #prediction-result .sc-result-box {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }

}


/*=========================================================
    SMALL MOBILE
=========================================================*/

@media (max-width: 600px) {

    .prediction-wrapper .sc-section {
        padding: 20px;
        border-radius: 18px;
    }

    .prediction-wrapper .sc-header-left h2 {
        font-size: 22px;
    }

    .prediction-wrapper .sc-step-number {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    #prediction-result .sc-result-box {
        grid-template-columns: 1fr;
    }

    #prediction-result .sc-result-full {
        grid-column: auto;
    }

    #prediction-result .sc-result-item div {
        font-size: 27px;
    }

    .prediction-wrapper .sc-btn {
        width: 100%;
    }

    #prediction-result .prediction-cta .sc-btn {
        min-width: 0;
    }

}