/*
|--------------------------------------------------------------------------
| ToolVerse - GST Calculator
|--------------------------------------------------------------------------
| Scope:
| - GST page only
| - Fully responsive
| - No global CSS leakage
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   PAGE
   ========================================================================== */

.tv-gst-page {
    width: 100%;
    color: var(--tv-color-text);
    background: #ffffff;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.tv-gst-hero {
    position: relative;
    overflow: hidden;

    padding: 44px 0 58px;

    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(99, 91, 255, 0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0%,
            #f7f9fc 100%
        );
}


/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.tv-gst-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 26px;

    color: #7b8798;

    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.tv-gst-breadcrumb a {
    color: var(--tv-color-primary);
    transition: color 160ms ease;
}

.tv-gst-breadcrumb a:hover {
    color: var(--tv-color-primary-dark);
}

.tv-gst-breadcrumb span[aria-current="page"] {
    color: #596579;
}


/* ==========================================================================
   HERO LAYOUT
   ========================================================================== */

.tv-gst-hero__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.55fr);

    align-items: center;

    gap: 48px;
}


/* ==========================================================================
   LABELS
   ========================================================================== */

.tv-gst-eyebrow,
.tv-gst-section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;

    padding: 0 10px;

    border: 1px solid rgba(99, 91, 255, 0.13);
    border-radius: 999px;

    background: var(--tv-color-primary-soft);

    color: var(--tv-color-primary-dark);

    font-size: 9px;
    font-weight: 760;
    line-height: 1;

    letter-spacing: 0.2px;
}


/* ==========================================================================
   HERO CONTENT
   ========================================================================== */

.tv-gst-hero__content h1 {
    max-width: 680px;

    margin: 14px 0 0;

    color: var(--tv-color-heading);

    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 830;

    line-height: 1.04;
    letter-spacing: -1.9px;
}

.tv-gst-hero__content > p {
    max-width: 680px;

    margin: 18px 0 0;

    color: var(--tv-color-muted);

    font-size: 15px;
    line-height: 1.75;
}


/* ==========================================================================
   HERO POINTS
   ========================================================================== */

.tv-gst-hero__points {
    display: flex;
    flex-wrap: wrap;

    gap: 10px 14px;

    margin-top: 22px;
}

.tv-gst-hero__points span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #536173;

    font-size: 10px;
    font-weight: 650;
}

.tv-gst-hero__points svg {
    width: 17px;
    height: 17px;

    padding: 3px;

    border-radius: 50%;

    background: var(--tv-color-accent-soft);

    fill: none;

    stroke: var(--tv-color-success);

    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   HERO NOTE
   ========================================================================== */

.tv-gst-hero__note {
    padding: 22px;

    border: 1px solid rgba(99, 91, 255, 0.12);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.88);

    box-shadow:
        0 14px 34px
        rgba(16, 24, 40, 0.055);
}

.tv-gst-hero__note-label {
    display: inline-flex;

    color: var(--tv-color-primary);

    font-size: 9px;
    font-weight: 760;

    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.tv-gst-hero__note strong {
    display: block;

    margin-top: 8px;

    color: var(--tv-color-heading);

    font-size: 15px;
    font-weight: 780;

    line-height: 1.4;
}

.tv-gst-hero__note p {
    margin: 7px 0 0;

    color: var(--tv-color-muted);

    font-size: 10px;
    line-height: 1.65;
}


/* ==========================================================================
   CALCULATOR SECTION
   ========================================================================== */

.tv-gst-calculator-section {
    padding: 64px 0 74px;
    background: #ffffff;
}


/* ==========================================================================
   CALCULATOR SHELL
   ========================================================================== */

.tv-gst-calculator {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(360px, 0.9fr);

    overflow: hidden;

    border: 1px solid rgba(220, 225, 234, 0.96);
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 24px 60px
        rgba(16, 24, 40, 0.075);
}


/* ==========================================================================
   FORM
   ========================================================================== */

.tv-gst-calculator__form {
    padding: 34px;
}

.tv-gst-calculator__heading > span {
    color: var(--tv-color-primary);

    font-size: 9px;
    font-weight: 760;

    text-transform: uppercase;
    letter-spacing: 0.55px;
}

.tv-gst-calculator__heading h2 {
    margin: 7px 0 0;

    color: var(--tv-color-heading);

    font-size: 26px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -0.8px;
}

.tv-gst-calculator__heading p {
    margin: 7px 0 0;

    color: var(--tv-color-muted);

    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================================
   ADD / REMOVE MODE
   ========================================================================== */

.tv-gst-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 5px;

    margin-top: 25px;
    padding: 4px;

    border: 1px solid var(--tv-color-border);
    border-radius: 14px;

    background: #f6f7f9;
}

.tv-gst-mode button {
    min-height: 42px;

    padding: 0 15px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #667085;

    font-size: 10px;
    font-weight: 720;

    cursor: pointer;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.tv-gst-mode button:hover {
    color: var(--tv-color-heading);
}

.tv-gst-mode button.is-active {
    background: #ffffff;

    color: var(--tv-color-primary-dark);

    box-shadow:
        0 3px 10px
        rgba(16, 24, 40, 0.07);
}


/* ==========================================================================
   FIELD
   ========================================================================== */

.tv-gst-field {
    margin-top: 26px;
}

.tv-gst-field > label {
    display: block;

    margin-bottom: 9px;

    color: var(--tv-color-heading);

    font-size: 11px;
    font-weight: 720;
}


/* ==========================================================================
   INPUT
   ========================================================================== */

.tv-gst-field__input-wrap {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 48px;

    padding: 0 14px;

    border: 1px solid var(--tv-color-border);
    border-radius: 13px;

    background: #fafbfc;

    color: #667085;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.tv-gst-field__input-wrap:focus-within {
    border-color: rgba(99, 91, 255, 0.45);

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(99, 91, 255, 0.07);
}

.tv-gst-field__input-wrap > span {
    flex: 0 0 auto;

    color: #667085;

    font-size: 12px;
    font-weight: 720;
}

.tv-gst-field__input-wrap input {
    width: 100%;
    min-width: 0;
    height: 46px;

    padding: 0 7px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--tv-color-heading);

    font-size: 14px;
    font-weight: 760;
}

.tv-gst-field__input-wrap--rate {
    max-width: 135px;
}

.tv-gst-field__input-wrap--rate input {
    text-align: right;
}


/* ==========================================================================
   NUMBER INPUT ARROWS
   ========================================================================== */

.tv-gst-field input[type="number"]::-webkit-outer-spin-button,
.tv-gst-field input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tv-gst-field input[type="number"] {
    -moz-appearance: textfield;
}


/* ==========================================================================
   GST RATE LAYOUT
   ========================================================================== */

.tv-gst-rate-layout {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* ==========================================================================
   GST RATE PRESETS
   ========================================================================== */

.tv-gst-rate-presets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;
}

.tv-gst-rate-presets button {
    min-width: 48px;
    min-height: 38px;

    padding: 0 10px;

    border: 1px solid var(--tv-color-border);
    border-radius: 10px;

    background: #ffffff;

    color: #667085;

    font-size: 9px;
    font-weight: 720;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.tv-gst-rate-presets button:hover {
    border-color: rgba(99, 91, 255, 0.25);

    color: var(--tv-color-primary-dark);
}

.tv-gst-rate-presets button.is-active {
    border-color: rgba(99, 91, 255, 0.24);

    background: var(--tv-color-primary-soft);

    color: var(--tv-color-primary-dark);

    box-shadow:
        0 2px 8px
        rgba(99, 91, 255, 0.08);
}


/* ==========================================================================
   ERROR
   ========================================================================== */

.tv-gst-error {
    margin-top: 18px;

    padding: 11px 13px;

    border: 1px solid rgba(217, 45, 32, 0.14);
    border-radius: 11px;

    background: #fff6f5;

    color: var(--tv-color-danger);

    font-size: 9px;
    font-weight: 650;

    line-height: 1.5;
}

.tv-gst-error[hidden] {
    display: none;
}


/* ==========================================================================
   RESULTS
   ========================================================================== */

.tv-gst-results {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 34px;

    background:
        linear-gradient(
            150deg,
            #111827 0%,
            #171d2d 58%,
            #242047 100%
        );

    color: #ffffff;
}


/* ==========================================================================
   MAIN RESULT
   ========================================================================== */

.tv-gst-results__top {
    padding-bottom: 25px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.tv-gst-results__top > span {
    display: block;

    color: #aeb8c7;

    font-size: 10px;
    font-weight: 650;
}

.tv-gst-results__top > strong {
    display: block;

    margin-top: 8px;

    color: #ffffff;

    font-size: clamp(34px, 4vw, 48px);
    font-weight: 830;

    line-height: 1;

    letter-spacing: -1.8px;
}

.tv-gst-results__top > small {
    display: block;

    margin-top: 8px;

    color: #78869a;

    font-size: 8px;
    font-weight: 600;
}


/* ==========================================================================
   RESULT ROWS
   ========================================================================== */

.tv-gst-results__summary {
    margin-top: 22px;
}

.tv-gst-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 46px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.tv-gst-result-row span {
    color: #9ca8b8;

    font-size: 9px;
    font-weight: 600;
}

.tv-gst-result-row strong {
    color: #ffffff;

    font-size: 11px;
    font-weight: 760;
}

.tv-gst-result-row--total {
    border-bottom: 0;
}

.tv-gst-result-row--total span,
.tv-gst-result-row--total strong {
    color: #ffffff;
}


/* ==========================================================================
   BREAKDOWN
   ========================================================================== */

.tv-gst-breakdown {
    margin-top: 25px;

    padding: 17px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.045);
}

.tv-gst-breakdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    color: #aab5c5;

    font-size: 8px;
    font-weight: 650;
}

.tv-gst-breakdown__bar {
    display: flex;

    width: 100%;
    height: 8px;

    margin-top: 13px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.08);
}

.tv-gst-breakdown__base {
    width: 84.7%;
    background: #7c74ff;
}

.tv-gst-breakdown__tax {
    width: 15.3%;
    background: #41c7a6;
}


/* ==========================================================================
   BREAKDOWN LEGEND
   ========================================================================== */

.tv-gst-breakdown__legend {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: 12px;
}

.tv-gst-breakdown__legend > span {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #9aa6b7;

    font-size: 8px;
    font-weight: 600;
}

.tv-gst-breakdown__legend strong {
    color: #ffffff;

    font-size: 8px;
    font-weight: 760;
}

.tv-gst-breakdown__dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
}

.tv-gst-breakdown__dot--base {
    background: #7c74ff;
}

.tv-gst-breakdown__dot--tax {
    background: #41c7a6;
}


/* ==========================================================================
   RESET
   ========================================================================== */

.tv-gst-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    min-height: 38px;

    margin-top: auto;

    padding: 0 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.055);

    color: #c1cad7;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.tv-gst-reset:hover {
    border-color:
        rgba(255, 255, 255, 0.19);

    background:
        rgba(255, 255, 255, 0.09);

    color: #ffffff;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.tv-gst-content {
    padding: 74px 0;

    background: #f8fafc;
}

.tv-gst-content__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.38fr);

    align-items: start;

    gap: 48px;
}


/* ==========================================================================
   ARTICLE
   ========================================================================== */

.tv-gst-article {
    max-width: 780px;
}

.tv-gst-article h2 {
    margin: 36px 0 0;

    color: var(--tv-color-heading);

    font-size: 24px;
    font-weight: 800;

    line-height: 1.25;
    letter-spacing: -0.65px;
}

.tv-gst-article .tv-gst-section-label + h2 {
    margin-top: 11px;
}

.tv-gst-article p {
    margin: 11px 0 0;

    color: var(--tv-color-muted);

    font-size: 12px;
    line-height: 1.8;
}


/* ==========================================================================
   FORMULA
   ========================================================================== */

.tv-gst-formula {
    margin-top: 18px;

    padding: 18px 20px;

    border: 1px solid rgba(99, 91, 255, 0.12);
    border-radius: 15px;

    background: #ffffff;
}

.tv-gst-formula strong {
    display: block;

    color: var(--tv-color-heading);

    font-size: 13px;
    font-weight: 780;

    line-height: 1.6;
}

.tv-gst-formula span {
    display: block;

    margin-top: 6px;

    color: var(--tv-color-muted);

    font-size: 9px;
    line-height: 1.6;
}


/* ==========================================================================
   EXAMPLES
   ========================================================================== */

.tv-gst-example-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;

    margin-top: 17px;
}

.tv-gst-example-grid > div {
    padding: 16px;

    border: 1px solid var(--tv-color-border);
    border-radius: 14px;

    background: #ffffff;
}

.tv-gst-example-grid strong {
    color: var(--tv-color-heading);

    font-size: 10px;
    font-weight: 760;
}

.tv-gst-example-grid p {
    margin-top: 5px;

    font-size: 9px;
    line-height: 1.65;
}


/* ==========================================================================
   DISCLAIMER
   ========================================================================== */

.tv-gst-disclaimer {
    margin-top: 24px;

    padding: 17px 18px;

    border-left:
        3px solid
        var(--tv-color-primary);

    border-radius:
        0 13px 13px 0;

    background: #f2f1ff;
}

.tv-gst-disclaimer strong {
    display: block;

    color: var(--tv-color-heading);

    font-size: 10px;
    font-weight: 770;
}

.tv-gst-disclaimer p {
    margin-top: 5px;

    font-size: 9px;
}


/* ==========================================================================
   RELATED TOOLS
   ========================================================================== */

.tv-gst-related {
    position: sticky;

    top:
        calc(
            var(--tv-header-height)
            + 24px
        );
}

.tv-gst-related h2 {
    margin: 11px 0 0;

    color: var(--tv-color-heading);

    font-size: 20px;
    font-weight: 790;

    line-height: 1.3;
    letter-spacing: -0.45px;
}

.tv-gst-related__list {
    display: grid;

    gap: 9px;

    margin-top: 17px;
}

.tv-gst-related__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 68px;

    padding: 12px 13px;

    border: 1px solid var(--tv-color-border);
    border-radius: 14px;

    background: #ffffff;

    transition:
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.tv-gst-related__list a:hover {
    border-color:
        rgba(99, 91, 255, 0.18);

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px
        rgba(16, 24, 40, 0.055);
}

.tv-gst-related__list span {
    min-width: 0;

    color: var(--tv-color-heading);

    font-size: 10px;
    font-weight: 740;
}

.tv-gst-related__list small {
    display: block;

    margin-top: 3px;

    color: var(--tv-color-muted);

    font-size: 8px;
    font-weight: 400;
}

.tv-gst-related__list b {
    color: var(--tv-color-primary);

    font-size: 14px;
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.tv-gst-faq {
    padding: 74px 0 82px;

    background: #ffffff;
}

.tv-gst-faq__head {
    max-width: 680px;

    margin-bottom: 25px;
}

.tv-gst-faq__head h2 {
    margin: 11px 0 0;

    color: var(--tv-color-heading);

    font-size: clamp(27px, 3vw, 38px);
    font-weight: 810;

    line-height: 1.15;
    letter-spacing: -1.1px;
}

.tv-gst-faq__head p {
    margin: 10px 0 0;

    color: var(--tv-color-muted);

    font-size: 11px;
    line-height: 1.65;
}

.tv-gst-faq__list {
    display: grid;

    gap: 9px;

    max-width: 900px;
}

.tv-gst-faq__item {
    overflow: hidden;

    border: 1px solid var(--tv-color-border);
    border-radius: 15px;

    background: #ffffff;
}

.tv-gst-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-height: 62px;

    padding: 14px 16px;

    color: var(--tv-color-heading);

    font-size: 11px;
    font-weight: 740;

    line-height: 1.45;

    cursor: pointer;
    list-style: none;
}

.tv-gst-faq__item summary::-webkit-details-marker {
    display: none;
}


/* ==========================================================================
   FAQ ICON
   ========================================================================== */

.tv-gst-faq__item summary i {
    position: relative;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border: 1px solid var(--tv-color-border);
    border-radius: 9px;

    background: #fafbfc;
}

.tv-gst-faq__item summary i::before,
.tv-gst-faq__item summary i::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 10px;
    height: 2px;

    border-radius: 999px;

    background: #667085;

    transform: translate(-50%, -50%);

    transition: transform 160ms ease;
}

.tv-gst-faq__item summary i::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.tv-gst-faq__item[open] summary i::after {
    transform: translate(-50%, -50%);
}

.tv-gst-faq__item > div {
    padding: 0 16px 15px;
}

.tv-gst-faq__item > div p {
    max-width: 800px;

    margin: 0;

    color: var(--tv-color-muted);

    font-size: 10px;
    line-height: 1.7;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {

    .tv-gst-hero__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tv-gst-hero__note {
        max-width: 620px;
    }

    .tv-gst-calculator {
        grid-template-columns: 1fr;
    }

    .tv-gst-content__layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .tv-gst-related {
        position: static;
        max-width: 620px;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 700px) {

    .tv-gst-hero {
        padding: 34px 0 45px;
    }

    .tv-gst-breadcrumb {
        margin-bottom: 20px;
    }

    .tv-gst-hero__content h1 {
        font-size: clamp(32px, 10vw, 42px);
        letter-spacing: -1.35px;
    }

    .tv-gst-hero__content > p {
        margin-top: 14px;

        font-size: 13px;
        line-height: 1.68;
    }

    .tv-gst-calculator-section {
        padding: 48px 0 56px;
    }

    .tv-gst-calculator {
        border-radius: 19px;
    }

    .tv-gst-calculator__form,
    .tv-gst-results {
        padding: 22px;
    }

    .tv-gst-calculator__heading h2 {
        font-size: 22px;
    }

    .tv-gst-rate-layout {
        align-items: stretch;
        flex-direction: column;
    }

    .tv-gst-field__input-wrap--rate {
        max-width: none;
    }

    .tv-gst-rate-presets {
        display: grid;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        width: 100%;
    }

    .tv-gst-rate-presets button {
        min-width: 0;
        width: 100%;
    }

    .tv-gst-results__top > strong {
        font-size: clamp(32px, 11vw, 42px);
    }

    .tv-gst-content {
        padding: 56px 0;
    }

    .tv-gst-article h2 {
        margin-top: 29px;
        font-size: 21px;
    }

    .tv-gst-article p {
        font-size: 11px;
    }

    .tv-gst-example-grid {
        grid-template-columns: 1fr;
    }

    .tv-gst-faq {
        padding: 56px 0 62px;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 420px) {

    .tv-gst-calculator__form,
    .tv-gst-results {
        padding: 18px;
    }

    .tv-gst-mode button {
        padding: 0 8px;

        font-size: 9px;
    }

    .tv-gst-rate-presets {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .tv-gst-breakdown__head,
    .tv-gst-breakdown__legend {
        align-items: flex-start;
        flex-direction: column;
    }

    .tv-gst-result-row {
        gap: 12px;
    }

    .tv-gst-formula {
        padding: 15px;
    }

    .tv-gst-faq__item summary {
        gap: 13px;

        padding: 13px 14px;
    }

    .tv-gst-faq__item > div {
        padding: 0 14px 14px;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .tv-gst-breadcrumb a,
    .tv-gst-mode button,
    .tv-gst-field__input-wrap,
    .tv-gst-rate-presets button,
    .tv-gst-reset,
    .tv-gst-related__list a,
    .tv-gst-faq__item summary i::before,
    .tv-gst-faq__item summary i::after {
        transition: none;
    }

    .tv-gst-related__list a:hover {
        transform: none;
    }
}