/* Income Tax Calculator - Tool Styles */
/* All classes prefixed with it- to avoid collisions */

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

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

/* Section Layout */
.it-section {
    margin-bottom: 0;
}

.it-section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 24px;
}

.it-section-divider::before,
.it-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #e2e0dc);
}

.it-section-divider span {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #f1643f);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

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

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

/* Card Container */
.it-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);
}

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

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

/* FY Selector */
.it-fy-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.it-fy-selector label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1715);
    white-space: nowrap;
}

.it-fy-selector select {
    padding: 10px 36px 10px 14px;
    border: 2px solid var(--primary, #f1643f);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Bricolage Grotesque', serif;
    color: var(--primary, #f1643f);
    background: rgba(241, 100, 63, 0.04);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23f1643f' 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;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.it-fy-selector select:focus {
    box-shadow: 0 0 0 3px rgba(241, 100, 63, 0.15);
}

.it-fy-selector select:hover {
    background-color: rgba(241, 100, 63, 0.08);
}

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

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

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

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

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

.it-form-group label .it-hint {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-secondary, #6b6560);
}

.it-form-group select,
.it-form-group input[type="text"],
.it-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;
}

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

.it-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;
}

/* Rupee Input */
.it-rupee-input {
    position: relative;
    display: flex;
    align-items: stretch;
}

.it-rupee-prefix {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color, #e2e0dc);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #6b6560);
    white-space: nowrap;
}

.it-rupee-input input {
    border-radius: 0 8px 8px 0 !important;
    flex: 1;
    min-width: 0;
}

/* Checkbox Items */
.it-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1a1715);
    transition: all 0.2s ease;
    user-select: none;
}

.it-checkbox-item:hover {
    border-color: var(--primary, #f1643f);
    background: rgba(241, 100, 63, 0.03);
}

.it-checkbox-item.checked {
    border-color: var(--primary, #f1643f);
    background: rgba(241, 100, 63, 0.06);
}

.it-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary, #f1643f);
    flex-shrink: 0;
    cursor: pointer;
}

/* Toggle Switch */
.it-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.it-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.it-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.it-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-color, #e2e0dc);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.it-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.it-toggle input:checked + .it-toggle-slider {
    background: var(--primary, #f1643f);
}

.it-toggle input:checked + .it-toggle-slider::before {
    transform: translateX(20px);
}

.it-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1a1715);
}

/* Collapsible Sections */
.it-collapsible {
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card, #fff);
    margin-bottom: 16px;
}

.it-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.it-collapsible-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.it-collapsible-title {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1a1715);
}

.it-collapsible-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.it-collapsible-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #f1643f);
    font-family: 'Bricolage Grotesque', serif;
}

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

.it-collapsible.open .it-collapsible-chevron {
    transform: rotate(180deg);
}

.it-collapsible-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-color, #e2e0dc);
    padding-top: 20px;
}

.it-collapsible.open .it-collapsible-body {
    display: block;
}

/* Deduction Running Total */
.it-deduction-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(241, 100, 63, 0.04);
    border: 1px solid rgba(241, 100, 63, 0.1);
    margin-top: 16px;
}

.it-deduction-total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1715);
}

.it-deduction-total-amount {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary, #f1643f);
}

/* Buttons */
.it-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
}

.it-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--primary, #f1643f);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Hanken Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.it-btn-primary:hover {
    background: #d4532f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(241, 100, 63, 0.3);
}

.it-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.it-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--text-primary, #1a1715);
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Hanken Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.it-btn-secondary:hover {
    border-color: var(--text-secondary, #6b6560);
    background: rgba(0, 0, 0, 0.02);
}

/* ===== RESULTS ===== */

/* Savings Banner */
.it-savings-banner {
    text-align: center;
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    margin-bottom: 24px;
}

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

.it-savings-banner-label {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.95;
}

/* Tax Free Banner */
.it-tax-free-banner {
    text-align: center;
    padding: 28px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    margin-bottom: 24px;
}

.it-tax-free-banner-icon {
    margin-bottom: 8px;
}

.it-tax-free-banner-icon svg {
    stroke: #fff;
}

.it-tax-free-banner-amount {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.it-tax-free-banner-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.92;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Tax Free Badge (inline in regime card header) */
.it-tax-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Regime Comparison */
.it-regime-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.it-regime-card {
    border: 2px solid var(--border-color, #e2e0dc);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card, #fff);
    transition: border-color 0.3s ease;
}

.it-regime-card.recommended {
    border-color: #16a34a;
    box-shadow: 0 4px 24px rgba(22, 163, 74, 0.12);
}

.it-regime-card-header {
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border-color, #e2e0dc);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.it-regime-card.recommended .it-regime-card-header {
    background: rgba(22, 163, 74, 0.06);
    border-bottom-color: rgba(22, 163, 74, 0.15);
}

.it-regime-card-title {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1a1715);
}

.it-recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #16a34a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.it-regime-card-body {
    padding: 24px;
}

/* Breakdown Table */
.it-breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.it-breakdown-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.it-breakdown-table tr:last-child {
    border-bottom: none;
}

.it-breakdown-table td {
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-primary, #1a1715);
    vertical-align: top;
}

.it-breakdown-table td:first-child {
    color: var(--text-secondary, #6b6560);
    padding-right: 16px;
}

.it-breakdown-table td:last-child {
    text-align: right;
    font-weight: 600;
    font-family: 'Bricolage Grotesque', serif;
    white-space: nowrap;
}

.it-breakdown-table .it-subtotal-row td {
    font-weight: 700;
    color: var(--text-primary, #1a1715);
    border-top: 1px solid var(--border-color, #e2e0dc);
    padding-top: 12px;
}

.it-breakdown-table .it-total-row td {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary, #1a1715);
    border-top: 2px solid var(--text-primary, #1a1715);
    padding-top: 14px;
    padding-bottom: 4px;
}

.it-breakdown-table .it-total-row td:last-child {
    color: var(--primary, #f1643f);
    font-size: 18px;
}

.it-breakdown-table .it-monthly-row td {
    font-size: 12px;
    color: var(--text-secondary, #6b6560);
    padding-top: 4px;
    border-top: none;
}

.it-breakdown-table .it-deduction-row td {
    color: #16a34a;
}

.it-breakdown-table .it-deduction-row td:last-child {
    color: #16a34a;
}

.it-breakdown-table .it-na-row td {
    color: var(--text-secondary, #6b6560);
    opacity: 0.5;
}

/* Tax Visual Bar */
.it-tax-bar {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e0dc);
    background: var(--bg-card, #fff);
}

.it-tax-bar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1715);
    margin-bottom: 16px;
}

.it-tax-bar-visual {
    display: flex;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.it-tax-bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    transition: width 0.6s ease-out;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.it-tax-bar-segment.deductions {
    background: #22c55e;
}

.it-tax-bar-segment.tax {
    background: #ef4444;
}

.it-tax-bar-segment.take-home {
    background: #3b82f6;
}

.it-tax-bar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.it-tax-bar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary, #6b6560);
}

.it-tax-bar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.it-tax-bar-legend-dot.deductions { background: #22c55e; }
.it-tax-bar-legend-dot.tax { background: #ef4444; }
.it-tax-bar-legend-dot.take-home { background: #3b82f6; }

/* Copy & Download Results Buttons */
.it-copy-results {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.it-copy-results .it-btn-primary svg,
.it-copy-results .it-btn-secondary svg {
    vertical-align: -2px;
    margin-right: 4px;
}

/* Disclaimer */
.it-disclaimer {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color, #e2e0dc);
    font-size: 12px;
    color: var(--text-secondary, #6b6560);
    line-height: 1.7;
}

.it-disclaimer strong {
    color: var(--text-primary, #1a1715);
    font-size: 12px;
}

/* ===== SEO CONTENT ===== */
.it-seo-content {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.02);
}

.it-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;
}

.it-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;
}

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

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

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

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

/* Slab Table in SEO cards */
.it-slab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.it-slab-table th {
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #6b6560);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #e2e0dc);
}

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

.it-slab-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--primary, #f1643f);
}

/* ===== FAQ SECTION ===== */
.it-faq-section {
    padding: 80px 0;
}

.it-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;
}

.it-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

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

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

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

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

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

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

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

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

    .it-btn-row {
        flex-direction: column-reverse;
    }

    .it-btn-primary,
    .it-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .it-fy-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .it-fy-selector select {
        width: 100%;
    }

    .it-regime-comparison {
        grid-template-columns: 1fr;
    }

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

    .it-savings-banner-amount {
        font-size: 28px;
    }

    .it-tax-free-banner-amount {
        font-size: 28px;
    }
}

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

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

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

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

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

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

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

    .it-section-divider {
        margin: 32px 0 20px;
    }

    .it-regime-card-body {
        padding: 16px;
    }

    .it-breakdown-table td {
        font-size: 12px;
    }

    .it-breakdown-table .it-total-row td {
        font-size: 14px;
    }

    .it-breakdown-table .it-total-row td:last-child {
        font-size: 15px;
    }

    .it-tax-bar-legend {
        gap: 12px;
    }
}

/* ===== HRA MODAL ===== */

.it-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: itFadeIn 0.2s ease-out;
}

@keyframes itFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.it-modal {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    width: 90%;
    max-width: 780px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: itSlideUp 0.3s ease-out;
}

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

.it-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #e2e0dc);
}

.it-modal-header h3 {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1a1715);
    margin: 0;
}

.it-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary, #6b6560);
    transition: background 0.2s ease;
    font-size: 20px;
    line-height: 1;
}

.it-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.it-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.it-modal-body > p {
    font-size: 13px;
    color: var(--text-secondary, #6b6560);
    margin: 0 0 16px;
    line-height: 1.5;
}

.it-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color, #e2e0dc);
}

/* HRA Table */
.it-hra-table {
    width: 100%;
    border-collapse: collapse;
}

.it-hra-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary, #f1643f);
    padding: 10px 8px;
    border-bottom: 2px solid var(--border-color, #e2e0dc);
    white-space: nowrap;
}

.it-hra-table th:last-child {
    text-align: center;
}

.it-hra-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.it-hra-table td:first-child {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    color: var(--text-primary, #1a1715);
    width: 80px;
}

.it-hra-table td:last-child {
    text-align: center;
}

.it-hra-table input[type="text"] {
    padding: 8px 10px;
    border: 1px solid var(--border-color, #e2e0dc);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Hanken Grotesk', sans-serif;
    color: var(--text-primary, #1a1715);
    background: var(--bg-card, #fff);
    width: 100%;
    min-width: 80px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: right;
}

.it-hra-table input[type="text"]:focus {
    border-color: var(--primary, #f1643f);
    box-shadow: 0 0 0 2px rgba(241, 100, 63, 0.1);
}

.it-hra-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary, #f1643f);
    cursor: pointer;
}

.it-hra-modal-summary {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(241, 100, 63, 0.04);
    border: 1px solid rgba(241, 100, 63, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.it-hra-modal-summary-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1a1715);
}

.it-hra-modal-summary-amount {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary, #f1643f);
}

/* HRA Detail Button */
.it-hra-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.it-hra-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--primary, #f1643f);
    border: 1px dashed var(--primary, #f1643f);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Hanken Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.it-hra-detail-btn:hover {
    background: rgba(241, 100, 63, 0.06);
    border-style: solid;
}

.it-hra-detail-status {
    font-size: 12px;
    font-weight: 500;
    color: #16a34a;
    display: none;
}

.it-hra-detail-status.visible {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Modal responsive */
@media (max-width: 600px) {
    .it-modal {
        width: 96%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .it-modal-header {
        padding: 16px;
    }

    .it-modal-body {
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .it-modal-footer {
        padding: 12px 16px;
    }

    .it-hra-table input[type="text"] {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 60px;
    }

    .it-hra-table td:first-child {
        font-size: 12px;
    }

    .it-hra-table th {
        font-size: 11px;
    }
}
