﻿
.fba-page {
    background: #fff;
    color: #232F3E;
    padding: 25px 0 60px;
}

.fba-wrap {
    width: min(1100px, calc(100% - 32px));
    margin: auto;
}

/* BREADCRUMB */

.fba-crumb {
    font-size: 13px;
    color: #829087;
    margin-bottom: 22px;
}

    .fba-crumb a {
        color: #FF9900;
        text-decoration: none;
    }

/* PAGE HEADING */

.fba-heading {
    text-align: center;
    margin-bottom: 25px;
}

    .fba-heading span {
        font-size: 11px;
        letter-spacing: 2px;
        color: #E58A00;
        font-weight: 800;
    }

    .fba-heading h1 {
        font-size: clamp(28px, 5vw, 40px);
        color: #232F3E;
        margin: 8px 0;
    }

    .fba-heading p {
        color: #748279;
        margin: 5px 0;
    }

/* MAIN LAYOUT */

.fba-board {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: start;
}

/* INPUT AND RESULT CARDS */

.fba-input-card,
.fba-result-card {
    padding: 20px 24px;
    border: 1px solid #e4e8ed;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(35, 47, 62, .07);
    background: #fff;
    min-width: 0;
}

    .fba-input-card h2 {
        margin: 0;
        font-size: 21px;
        color: #232F3E;
    }

.fba-subtitle {
    font-size: 12px;
    color: #849087;
    margin: 6px 0 15px;
}

/* INPUT GRID */

.fba-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 15px;
}

    .fba-field-grid label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 5px;
        color: #354456;
    }

    .fba-field-grid input {
        width: 100%;
        height: 40px;
        border: 1px solid #d9e0e8;
        border-radius: 9px;
        padding: 0 11px;
        font-size: 14px;
        color: #232F3E;
        background: #fff;
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .fba-field-grid input:focus {
            border-color: #FF9900;
            box-shadow: 0 0 0 3px rgba(255, 153, 0, .12);
        }

/* RESET BUTTON */

.fba-input-card > button {
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    background: #232F3E;
    color: #fff;
    border: 0;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

    .fba-input-card > button:hover {
        background: #FF9900;
        color: #232F3E;
        transform: translateY(-2px);
    }

    .fba-input-card > button:active {
        transform: translateY(0);
    }

/* RESULT CARD */

.fba-result-card {
    background: #fff;
}

/* PROFIT HIGHLIGHT */

.fba-result-heading {
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(125deg, #232F3E, #37475A);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .fba-result-heading::after {
        content: "";
        position: absolute;
        width: 110px;
        height: 110px;
        right: -35px;
        top: -45px;
        background: rgba(255, 153, 0, .20);
        border-radius: 50%;
        pointer-events: none;
    }

    .fba-result-heading span {
        display: block;
        font-size: 11px;
        letter-spacing: 1px;
        color: #FFB84D;
        font-weight: 800;
    }

    .fba-result-heading strong {
        display: block;
        font-size: clamp(29px, 4vw, 38px);
        margin: 5px 0;
        overflow-wrap: anywhere;
    }

        .fba-result-heading strong.loss {
            color: #ffd0c7;
        }

    .fba-result-heading small {
        color: #dce3ec;
        font-size: 12px;
    }

/* BREAKDOWN */

.fba-breakdown-title {
    margin: 16px 0 6px;
    font-weight: 800;
    color: #232F3E;
    font-size: 15px;
}

.fba-breakdown div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e8edf2;
    font-size: 13px;
    line-height: 1.4;
}

.fba-breakdown span {
    color: #718078;
}

.fba-breakdown b {
    color: #232F3E;
    text-align: right;
    white-space: nowrap;
}

.fba-breakdown .fba-total {
    border-top: 1px solid #cbd4df;
    font-weight: 800;
}

/* FINAL SETTLEMENT */

.fba-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff4df;
    border: 1px solid #ffe0ad;
    border-radius: 10px;
}

    .fba-bottom span {
        color: #59452a;
        font-size: 13px;
    }

    .fba-bottom b {
        color: #232F3E;
        font-size: 19px;
    }

/* NOTE AND INFORMATION */

.fba-note {
    margin: 18px 0;
    color: #7b8981;
    font-size: 12px;
    line-height: 1.7;
}

.fba-info {
    max-width: 850px;
    margin: 30px auto 0;
    color: #65756c;
    line-height: 1.8;
}

    .fba-info h2 {
        color: #232F3E;
    }

/* TABLET AND MOBILE */

@media (max-width: 760px) {
    .fba-page {
        padding: 20px 0 45px;
    }

    .fba-wrap {
        width: calc(100% - 24px);
    }

    .fba-heading {
        margin-bottom: 20px;
    }

    .fba-board {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .fba-input-card,
    .fba-result-card {
        padding: 17px 15px;
        border-radius: 14px;
    }

    .fba-field-grid {
        gap: 12px;
    }

    .fba-result-heading {
        padding: 17px;
    }

    .fba-breakdown div {
        font-size: 12px;
        gap: 8px;
    }

    .fba-breakdown b {
        font-size: 12px;
    }
}

/* SMALL MOBILE */

@media (max-width: 430px) {
    .fba-field-grid {
        grid-template-columns: 1fr;
    }

    .fba-result-heading strong {
        font-size: 29px;
    }

    .fba-bottom b {
        font-size: 17px;
    }
}


/* COMPACT CALCULATOR SWITCHER */

.calculator-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 22px;
}

.switch-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: .2s ease;
}

    .switch-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,.07);
    }

.switch-icon {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.switch-gst .switch-icon {
    background: #ccfbf1;
    color: #0f766e;
}

.switch-profit .switch-icon {
    background: #dbeafe;
    color: #2563eb;
}

.switch-amazon .switch-icon,
.switch-fba .switch-icon {
    background: #ffedd5;
    color: #c2410c;
}

.switch-flipkart .switch-icon {
    background: #dbeafe;
    color: #2874f0;
}

.switch-meesho .switch-icon {
    background: #fce7f3;
    color: #db2777;
}

.switch-item.active {
    border-color: #ff9900;
    background: #fff7ed;
    color: #9a3412;
}

@media (max-width: 480px) {
    .calculator-switcher {
        gap: 7px;
        margin: 15px 0 20px;
    }

    .switch-item {
        padding: 6px 9px;
        font-size: 10px;
    }
}
