/*
 * RECATOOLS — GST & Tax Calculator  |  RT-FIN-006
 * Tool-specific styles only.
 * Global styles live in /assets/css/tool-page.css
 */

/* ─── Mode toggle pills ─────────────────────────────────────────────────── */
.mode-toggle {
    display: flex;
    gap: 6px;
    background: #f0efec;
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    margin-bottom: 24px;
}

.mode-pill {
    padding: 8px 22px;
    border: none;
    border-radius: 999px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    color: #64748B;
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.mode-pill.active {
    background: #E8472F;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(232, 98, 42, 0.30);
}

.mode-pill:not(.active):hover {
    background: #e9e8e4;
    color: #0D1B2A;
}

/* ─── Amount input row ──────────────────────────────────────────────────── */
.amount-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.amount-prefix {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #64748B;
    pointer-events: none;
    user-select: none;
}

.amount-input {
    width: 100%;
    padding: 18px 52px 18px 46px;
    font-family: 'IBM Plex Serif', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #0D1B2A;
    background: #ffffff;
    border: 2px solid #E2E4E8;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.amount-input:focus {
    border-color: #E8472F;
    box-shadow: 0 0 0 4px rgba(232, 98, 42, 0.12);
}

.amount-input::placeholder {
    color: #c5c2bc;
}

/* Remove spinner arrows from number inputs */
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #E2E4E8;
    color: #64748B;
    font-size: 0.8125rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.amount-clear-btn:hover {
    background: #d8d6d0;
    color: #0D1B2A;
}

/* ─── Country quick-select pills ────────────────────────────────────────── */
.country-pills-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.country-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.country-pill {
    padding: 7px 14px;
    border: 1.5px solid #E2E4E8;
    border-radius: 999px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: #0D1B2A;
    background: #ffffff;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.country-pill.active {
    border-color: #E8472F;
    background: #fff5f0;
    color: #E8472F;
}

.country-pill:not(.active):hover {
    border-color: #c5c2bc;
    background: #FFFFFF;
}

/* ─── Tax rate input ─────────────────────────────────────────────────────── */
.rate-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.rate-row label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0D1B2A;
    white-space: nowrap;
}

.rate-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.rate-input {
    width: 96px;
    padding: 10px 32px 10px 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0D1B2A;
    background: #ffffff;
    border: 2px solid #E2E4E8;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    text-align: right;
}

.rate-input:focus {
    border-color: #E8472F;
    box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.12);
}

.rate-input:disabled {
    background: #FFFFFF;
    color: #64748B;
    cursor: default;
}

.rate-input::-webkit-outer-spin-button,
.rate-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.rate-suffix {
    position: absolute;
    right: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748B;
    pointer-events: none;
}

/* ─── Results panel ──────────────────────────────────────────────────────── */
.results-panel {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E2E4E8;
}

.result-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.result-row:first-of-type {
    padding-top: 0;
}

.result-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748B;
}

.result-value {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0D1B2A;
}

/* Tax amount row — highlighted */
.result-row.tax-row .result-value {
    color: #E8472F;
    font-size: 1.0625rem;
}

/* Final amount row — large and bold */
.result-row.final-row {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 2px solid #E2E4E8;
    border-bottom: none;
}

.result-row.final-row .result-label {
    font-size: 1rem;
    font-weight: 600;
    color: #0D1B2A;
}

.result-row.final-row .result-value {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #0D1B2A;
}

/* ─── Formula explanation line ───────────────────────────────────────────── */
.formula-line {
    display: block;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748B;
    background: #f0efec;
    border-left: 3px solid #E8472F;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin-top: 4px;
    line-height: 1.55;
    min-height: 36px;
    font-variant-numeric: tabular-nums;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ─── Tool section divider ───────────────────────────────────────────────── */
.tool-section-divider {
    height: 1px;
    background: #E2E4E8;
    margin: 32px 0;
}

/* ─── Educational pull quote ─────────────────────────────────────────────── */
.pull-quote {
    border-left: 4px solid #E8472F;
    margin: 28px 0;
    padding: 16px 24px;
    background: #fff5f0;
    border-radius: 0 10px 10px 0;
}

.pull-quote p {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.1875rem;
    font-style: italic;
    color: #0D1B2A;
    margin: 0;
    line-height: 1.6;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .amount-input {
        font-size: 1.5rem;
        padding: 15px 46px 15px 40px;
    }

    .amount-prefix {
        font-size: 1.25rem;
    }

    .mode-pill {
        padding: 7px 16px;
        font-size: 0.875rem;
    }

    .result-row.final-row .result-value {
        font-size: 1.375rem;
    }

    .results-panel {
        padding: 18px 16px;
    }

    .rate-row {
        flex-wrap: wrap;
    }
}

/* cache-buster: 2026-05-24T05:06:05Z */
