/* Professional Tax Calculator - Tool Styles */
/* All classes prefixed with pt- to avoid collisions */

/* Calculator Section */
.pt-calculator-section {
    padding: 40px 0 80px;
}

.pt-calculator-section .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Reveal Animation */
.pt-reveal {
    animation: ptReveal 0.4s ease-out;
}

@keyframes ptReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Container */
.pt-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pt-card h2 {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1a1715);
    margin-bottom: 8px;
}

.pt-card h2 + p {
    color: var(--text-secondary, #6b6560);
    margin-bottom: 32px;
    font-size: 15px;
}

/* Form Layout */
.pt-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pt-form-grid .pt-form-full {
    grid-column: 1 / -1;
}

.pt-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pt-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1715);
}

.pt-form-group label .pt-required {
    color: var(--primary, #f1643f);
}

.pt-form-group select,
.pt-form-group input[type="text"],
.pt-form-group input[type="number"] {
    padding: 10px 14px;
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Hanken Grotesk', sans-serif;
    color: var(--text-primary, #1a1715);
    background: var(--bg-card, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.pt-form-group select:focus,
.pt-form-group input:focus {
    border-color: var(--primary, #f1643f);
    box-shadow: 0 0 0 3px rgba(241, 100, 63, 0.1);
}

.pt-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.pt-input-prefix {
    position: relative;
}

.pt-input-prefix .pt-rupee-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #6b6560);
    pointer-events: none;
}

.pt-input-prefix input {
    padding-left: 30px !important;
}

/* Result Cards */
.pt-results {
    margin-top: 32px;
}

.pt-result-banner {
    text-align: center;
    padding: 32px 24px;
    border-radius: 14px;
    background: var(--primary, #f1643f);
    color: #fff;
    margin-bottom: 20px;
}

.pt-result-banner .pt-result-amount {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.pt-result-banner .pt-result-label {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

.pt-result-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pt-result-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e0dc);
    background: var(--bg-card, #fff);
}

.pt-result-card .pt-result-number {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text-primary, #1a1715);
}

.pt-result-card .pt-result-card-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #6b6560);
}

/* State Notes Callout */
.pt-state-note {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-primary, #1a1715);
    line-height: 1.5;
}

.pt-state-note.not-applicable {
    background: rgba(249, 115, 22, 0.06);
    border-color: rgba(249, 115, 22, 0.15);
}

.pt-state-note-icon {
    flex-shrink: 0;
    color: #3b82f6;
}

.pt-state-note.not-applicable .pt-state-note-icon {
    color: #f97316;
}

/* Slab Breakdown Table */
.pt-slab-section {
    margin-top: 24px;
}

.pt-slab-section h3 {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1a1715);
    margin-bottom: 16px;
}

.pt-slab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 10px;
    overflow: hidden;
}

.pt-slab-table thead th {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #6b6560);
    border-bottom: 1px solid var(--border-color, #e2e0dc);
}

.pt-slab-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-primary, #1a1715);
}

.pt-slab-table tbody tr:last-child td {
    border-bottom: none;
}

.pt-slab-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.pt-slab-table tbody tr.pt-active-slab {
    background: rgba(241, 100, 63, 0.08);
    font-weight: 600;
}

.pt-slab-table tbody tr.pt-active-slab td:first-child::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary, #f1643f);
    margin-right: 8px;
}

/* Rate Chart Section */
.pt-rate-chart-section {
    padding: 80px 0;
    background: var(--bg-primary, #faf9f7);
}

.pt-rate-chart-section .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pt-rate-chart-section h2 {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #1a1715);
    margin-bottom: 12px;
    text-align: center;
}

.pt-rate-chart-section > .container > p {
    text-align: center;
    color: var(--text-secondary, #6b6560);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-size: 15px;
}

.pt-rate-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pt-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 12px;
    overflow: hidden;
}

.pt-rate-table thead th {
    background: rgba(0, 0, 0, 0.04);
    padding: 14px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #6b6560);
    border-bottom: 1px solid var(--border-color, #e2e0dc);
}

.pt-rate-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-primary, #1a1715);
}

.pt-rate-table tbody tr:last-child td {
    border-bottom: none;
}

.pt-rate-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.015);
}

.pt-rate-table tbody tr:hover {
    background: rgba(241, 100, 63, 0.04);
}

/* SEO Content Section */
.pt-seo-content {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.02);
}

.pt-seo-content h2 {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #1a1715);
    margin-bottom: 12px;
    text-align: center;
}

.pt-seo-content > .container > p {
    text-align: center;
    color: var(--text-secondary, #6b6560);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-size: 15px;
}

.pt-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pt-seo-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e0dc);
    background: var(--bg-card, #fff);
}

.pt-seo-card h3 {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary, #1a1715);
}

.pt-seo-card p {
    font-size: 14px;
    color: var(--text-secondary, #6b6560);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.pt-faq-section {
    padding: 80px 0;
}

.pt-faq-section .container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pt-faq-section h2 {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #1a1715);
    margin-bottom: 32px;
    text-align: center;
}

.pt-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-faq-item {
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card, #fff);
}

.pt-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1a1715);
    text-align: left;
    gap: 12px;
    transition: background 0.2s ease;
}

.pt-faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.pt-faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-secondary, #6b6560);
    transition: transform 0.2s ease;
}

.pt-faq-item.open .pt-faq-question svg {
    transform: rotate(180deg);
}

.pt-faq-answer {
    display: none;
    padding: 0 20px 18px;
}

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

.pt-faq-answer p {
    font-size: 14px;
    color: var(--text-secondary, #6b6560);
    line-height: 1.7;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 809px) {
    .pt-card {
        padding: 24px 20px;
    }

    .pt-form-grid {
        grid-template-columns: 1fr;
    }

    .pt-result-cards {
        grid-template-columns: 1fr 1fr;
    }

    .pt-seo-grid {
        grid-template-columns: 1fr;
    }

    .pt-rate-table thead th,
    .pt-rate-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .pt-slab-table thead th,
    .pt-slab-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pt-calculator-section {
        padding: 0 0 48px;
    }

    .pt-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .pt-card h2 {
        font-size: 20px;
    }

    .pt-result-banner {
        padding: 24px 16px;
    }

    .pt-result-banner .pt-result-amount {
        font-size: 36px;
    }

    .pt-result-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pt-result-card {
        padding: 16px 12px;
    }

    .pt-result-card .pt-result-number {
        font-size: 24px;
    }

    .pt-rate-chart-section {
        padding: 48px 0;
    }

    .pt-rate-chart-section h2 {
        font-size: 22px;
    }

    .pt-seo-content {
        padding: 48px 0;
    }

    .pt-seo-content h2 {
        font-size: 22px;
    }

    .pt-faq-section {
        padding: 48px 0;
    }

    .pt-faq-section h2 {
        font-size: 22px;
    }

    .pt-faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .pt-faq-answer {
        padding: 0 16px 14px;
    }
}
