/*
Theme Name: My Tax Calculator
Theme URI: https://glanteen.com
Author: Glanteen.Com
Author URI: https://glanteen.com
Description: Exact pixel-perfect replica of https://www.mytaxcalculator.pk/pta-tax-calculator and entire platform tax calculators. Emerald green theme, exact model search & dropdowns (Brand/Model/Storage/Official C&F value), Passport & CNIC side-by-side cards, exact component explanations, tax rates by phone value tables, popular phone tables, accordion FAQs, comprehensive grid of all calculators, and official sources links. Powered by Glanteen.Com.
Version: 5.0.0
License: GNU General Public License v2 or later
Text Domain: glanteen-mytaxcalculator
*/

:root {
    --bg-emerald: #064e3b;
    --bg-emerald-dark: #04382a;
    --bg-emerald-deep: #022c22;
    --emerald-accent: #059669;
    --emerald-light: #ecfdf5;
    --emerald-border: #a7f3d0;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-gray: #e2e8f0;
    --card-bg: #ffffff;
    --red-alert: #dc2626;
    --tag-pill: #0f5132;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-emerald);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* TOP NAVBAR */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #0f172a;
}

.brand-logo-mark {
    width: 34px;
    height: 34px;
    background: #064e3b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.brand-title span {
    color: #059669;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
}

.top-nav a {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.top-nav a:hover, .top-nav a.active {
    color: #064e3b;
}

.nav-badge-new {
    background: #10b981;
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.powered-pill {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
}

/* HERO SECTION */
.hero-wrapper {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
}

.hero-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a7f3d0;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #d1fae5;
    max-width: 750px;
    margin: 0 auto 1.5rem;
}

.hero-feature-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: #ecfdf5;
}

.hero-feature-tags span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* CALCULATOR MAIN GRID */
.calc-container {
    max-width: 1240px;
    margin: 0 auto 3.5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media(min-width: 990px) {
    .calc-container {
        grid-template-columns: 1.1fr 1fr;
    }
}

.app-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* FORM STYLING */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.4rem;
}

.field-select, .field-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fff;
    outline: none;
    transition: all 0.2s;
}

.field-select:focus, .field-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* REGISTRATION ROUTE TOGGLE */
.btn-toggle-group {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 0.4rem;
    gap: 4px;
}

.btn-toggle {
    flex: 1;
    padding: 0.7rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-toggle.active {
    background: #064e3b;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.helper-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* DEVICE TYPE & CONDITION TOGGLES */
.toggle-pills-row {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 0.35rem;
    gap: 3px;
}

.pill-opt {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.pill-opt.active {
    background: #064e3b;
    color: #ffffff;
}

/* CUSTOMS VALUE PICKER / ENTER VALUE TOGGLE */
.customs-mode-row {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 1.25rem;
}

.customs-mode-btn {
    flex: 1;
    padding: 0.65rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.customs-mode-btn.active {
    background: #059669;
    color: #ffffff;
}

/* MODEL SELECTION CONTROLS */
.model-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.official-val-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.85rem 1.15rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.val-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: #065f46;
    font-size: 0.92rem;
}

.val-right {
    font-size: 1.4rem;
    font-weight: 800;
    color: #065f46;
}

/* ESTIMATED TAXES PANEL */
.result-header-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.val-card-small {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
}

.val-label-sm {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.val-amount-sm {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0.25rem;
}

.grand-total-banner {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.grand-total-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #991b1b;
}

.grand-total-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: #dc2626;
    margin: 0.25rem 0;
    letter-spacing: -0.02em;
}

.grand-total-sub {
    font-size: 0.85rem;
    color: #7f1d1d;
    font-weight: 600;
}

/* ESTIMATES BREAKDOWN LIST */
.tax-rows-list {
    margin-bottom: 1.5rem;
}

.tax-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.925rem;
}

.tax-row-item:last-child {
    border-bottom: none;
}

.tax-item-left {
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tax-item-right {
    font-weight: 700;
    color: #0f172a;
}

.tax-item-right.exempt {
    color: #059669;
    background: #ecfdf5;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.tax-item-right.payable {
    color: #dc2626;
}

/* SIDE-BY-SIDE ROUTE CARDS (PASSPORT VS CNIC) */
.routes-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid #e2e8f0;
}

.route-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.15rem;
    background: #f8fafc;
}

.route-card.selected {
    border-color: #059669;
    background: #f0fdf4;
}

.route-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.route-amount {
    font-size: 1.35rem;
    font-weight: 900;
    color: #059669;
}

.route-card.cnic-card .route-amount {
    color: #0f172a;
}

.route-fine-tag {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
}

.route-note {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* CAN'T FIND YOUR MODEL CARD */
.missing-model-box {
    margin-top: 1.75rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 1.5rem;
    background: #fafafa;
}

.missing-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.missing-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

/* SECTION HEADINGS (WHITE ON GREEN) */
.section-wrapper {
    max-width: 1240px;
    margin: 0 auto 3.5rem;
    padding: 0 1.5rem;
}

.white-card-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sec-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.sec-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* WHERE EACH FIGURE COMES FROM - 6 BOXES GRID */
.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.figure-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

.fig-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 0.5rem;
}

.fig-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

/* STEPS: THE PRICE YOU PAID IS NOT WHAT YOU ARE TAXED ON */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
}

.step-num {
    width: 28px;
    height: 28px;
    background: #064e3b;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.step-text {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
}

/* TABLES (SLABS & POPULAR PHONES) */
.custom-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.custom-table th, .custom-table td {
    padding: 0.85rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.custom-table th {
    background: #f1f5f9;
    font-weight: 800;
    color: #1e293b;
}

.custom-table tr:hover {
    background: #f8fafc;
}

.custom-table tr.active-phone {
    background: #ecfdf5;
    font-weight: 700;
}

/* FAQ ACCORDION */
.faq-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 0.85rem;
    background: #ffffff;
    overflow: hidden;
}

.faq-question {
    padding: 1.15rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-accordion-item.open .faq-answer {
    display: block;
}

.faq-chevron {
    transition: transform 0.2s;
}

.faq-accordion-item.open .faq-chevron {
    transform: rotate(180deg);
}

/* MORE PAKISTAN TAX CALCULATORS GRID (FULL PLATFORM) */
.platform-calcs-section {
    background: #04382a;
    border-radius: 24px;
    padding: 3rem 2rem;
    color: #ffffff;
    margin-bottom: 3.5rem;
}

.platform-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.platform-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.platform-heading p {
    color: #a7f3d0;
    font-size: 1.05rem;
}

.category-block {
    margin-bottom: 2.5rem;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
}

.cat-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-count {
    font-size: 0.75rem;
    color: #6ee7b7;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.calc-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.calc-tile-link {
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calc-tile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.calc-tile-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.calc-tile-desc {
    font-size: 0.8rem;
    color: #64748b;
}

.calc-tile-arrow {
    color: #059669;
    font-size: 1.2rem;
    font-weight: 700;
}

/* OFFICIAL DATA SOURCES (12 GRID CARDS) */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.source-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
}

.source-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.source-logo-text {
    font-weight: 800;
    font-size: 0.85rem;
    color: #064e3b;
    background: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.source-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.source-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

/* FOOTER */
.site-footer {
    background: #022c22;
    color: #94a3b8;
    padding: 4rem 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-quote-box {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #d1fae5;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #34d399;
}
