.tax-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-header {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    transition: 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.calc-action-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.calc-action-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.result-container {
    margin-top: 2rem;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.hero-card {
    background: #10b981;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-label {
    opacity: 0.9;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hero-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.tax-breakdown {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.breakdown-row:last-child {
    border-bottom: none;
    font-weight: 700;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.net {
    background: #3b82f6;
}

.dot.tax {
    background: #ef4444;
}

.chart-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.chart-container {
    width: 180px;
    height: 180px;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(#ef4444 0% var(--tax), #3b82f6 var(--tax) 100%);
}

.chart-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.result-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    align-items: start;
}

.tax-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

.faq-section {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.faq-question i {
    margin-right: 10px;
    color: var(--primary);
}

.faq-answer {
    color: #475569;
    line-height: 1.6;
}

.state-tax-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.state-tax-table th,
.state-tax-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.state-tax-table th {
    background-color: #f8fafc;
    font-weight: 600;
}

.state-tax-table tr:hover {
    background-color: #f8fafc;
}

.state-tax-table tbody tr:nth-of-type(even) {
    background-color: #f9fafb;
}

.state-tax-table caption {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.example-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.example-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.example-title i {
    margin-right: 10px;
}

.formula-section {
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.formula-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.how-to-use {
    margin: 25px 0;
}

.step {
    display: flex;
    margin-bottom: 15px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

@media (max-width: 700px) {
    .result-grid-layout {
        grid-template-columns: 1fr;
    }

    .state-tax-table {
        display: block;
        overflow-x: auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
    }
}

/* Segmented Control */
.tax-mode-container {
    margin-bottom: 1.5rem;
}

.segmented-control {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.segment-item {
    flex: 1;
    text-align: center;
}

.segment-item input {
    display: none;
}

.segment-item label {
    display: block;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    color: #64748b;
    transition: 0.2s;
    font-size: 0.95rem;
}

.segment-item input:checked+label {
    background: #fff;
    color: #10b981;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Global Layout Fixes */
.header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    height: 70px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    display: block !important;
}

.header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}