﻿
.flip-page {
    background: #fff;
    color: #193d2e;
    padding: 25px 0 60px;
}

.flip-wrap {
    width: min(1100px, calc(100% - 32px));
    margin: auto;
}

.flip-crumb {
    font-size: 13px;
    color: #829087;
    margin-bottom: 22px;
}

    .flip-crumb a {
        color: #2874F0;
        text-decoration: none;
    }

.flip-heading {
    text-align: center;
    margin-bottom: 25px;
}

    .flip-heading span {
        font-size: 11px;
        letter-spacing: 2px;
        color: #2874F0;
        font-weight: 800;
    }

    .flip-heading h1 {
        font-size: clamp(28px, 5vw, 40px);
        color: #2874F0;
        margin: 8px 0;
    }

    .flip-heading p {
        color: #748279;
        margin: 5px 0;
    }

/* MAIN CALCULATOR LAYOUT */

.flip-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 20px;
    align-items: start;
}

/* FORM AND OUTPUT CARDS */

.flip-form,
.flip-output {
    padding: 20px 24px;
    border: 1px solid #dce7f8;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(40, 116, 240, 0.07);
    background: #fff;
    min-width: 0;
}

    .flip-form h2 {
        margin: 0 0 12px;
        font-size: 21px;
        color: #193d2e;
    }

    /* INPUT FIELDS */

    .flip-form label {
        display: block;
        margin: 9px 0 5px;
        font-size: 13px;
        font-weight: 700;
        color: #193d2e;
    }

    .flip-form input {
        width: 100%;
        height: 40px;
        border: 1px solid #cbd8eb;
        border-radius: 9px;
        padding: 0 12px;
        font-size: 14px;
        color: #193d2e;
        background: #fff;
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .flip-form input:focus {
            border-color: #2874F0;
            box-shadow: 0 0 0 3px rgba(40, 116, 240, .10);
        }

    /* RESET BUTTON */

    .flip-form button {
        width: 100%;
        margin-top: 15px;
        padding: 11px;
        background: #2874F0;
        color: #fff;
        border: 0;
        border-radius: 9px;
        font-weight: 700;
        cursor: pointer;
        transition: background .25s ease, transform .25s ease;
    }

        .flip-form button:hover {
            background: #1558C0;
            transform: translateY(-2px);
        }

        .flip-form button:active {
            transform: translateY(0);
        }

/* RESULT CARD */

.flip-output {
    background: #fff;
}

/* PROFIT HIGHLIGHT */

.flip-profit {
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(125deg, #2874F0, #1558C0);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .flip-profit::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        right: -35px;
        top: -45px;
        background: rgba(255, 229, 0, .20);
        border-radius: 50%;
        pointer-events: none;
    }

    .flip-profit span {
        display: block;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .flip-profit strong {
        display: block;
        font-size: clamp(29px, 4vw, 38px);
        margin: 5px 0;
        overflow-wrap: anywhere;
    }

        .flip-profit strong.loss {
            color: #ffd0c7;
        }

    .flip-profit small {
        color: #e5efff;
        font-size: 12px;
    }

/* SETTLEMENT BREAKDOWN */

.flip-settlement {
    padding: 10px 0;
}

    .flip-settlement div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 2px;
        border-bottom: 1px solid #e8edf5;
        font-size: 13px;
        line-height: 1.4;
    }

    .flip-settlement span {
        color: #526477;
    }

    .flip-settlement b {
        color: #193d2e;
        text-align: right;
        white-space: nowrap;
    }

    .flip-settlement .flip-fees {
        font-weight: 800;
        border-top: 1px solid #cbd8eb;
    }

    .flip-settlement .flip-final {
        margin-top: 7px;
        padding: 11px 13px;
        border: 0;
        border-radius: 9px;
        background: #fff9d9;
        font-weight: 800;
    }

        .flip-settlement .flip-final span {
            color: #193d2e;
        }

        .flip-settlement .flip-final b {
            color: #1558C0;
            font-size: 16px;
        }

/* PROFIT MARGIN */

.flip-margin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef4ff;
}

    .flip-margin span {
        color: #405875;
        font-size: 14px;
    }

    .flip-margin strong {
        color: #2874F0;
        font-size: 19px;
    }

/* NOTE AND INFORMATION */

.flip-note {
    margin: 18px 0;
    color: #7b8981;
    font-size: 12px;
    line-height: 1.7;
}

.flip-info {
    max-width: 850px;
    margin: 30px auto 0;
    color: #65756c;
    line-height: 1.8;
}

    .flip-info h2 {
        color: #123e2f;
    }

/* TABLET AND MOBILE */

@media (max-width: 750px) {
    .flip-page {
        padding: 20px 0 45px;
    }

    .flip-wrap {
        width: calc(100% - 24px);
    }

    .flip-heading {
        margin-bottom: 20px;
    }

    .flip-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .flip-form,
    .flip-output {
        padding: 17px 15px;
        border-radius: 14px;
    }

        .flip-form h2 {
            font-size: 19px;
        }

        .flip-form label {
            margin: 10px 0 5px;
        }

        .flip-form input {
            height: 42px;
        }

    .flip-profit {
        padding: 17px;
    }

    .flip-settlement div {
        font-size: 12px;
        gap: 8px;
    }

    .flip-settlement b {
        font-size: 12px;
    }

    .flip-margin {
        padding: 12px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .flip-settlement div {
        font-size: 11px;
    }

    .flip-settlement b {
        font-size: 11px;
    }

    .flip-profit strong {
        font-size: 29px;
    }
}
