/* WordPress Embed Compatibility - Fully isolated styles */
.paycheck-calculator-widget {
    all: initial;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    box-sizing: border-box;
}

.paycheck-calculator-widget *,
.paycheck-calculator-widget *::before,
.paycheck-calculator-widget *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Container */
.paycheck-calculator-widget {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
}

.paycheck-calculator-widget .calculator-container {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

/* Tab Navigation */
.paycheck-calculator-widget .tab-navigation {
    display: flex;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    overflow-x: auto;
}

.paycheck-calculator-widget .tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #666666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid #e0e0e0;
    font-size: 14px;
    white-space: nowrap;
}

.paycheck-calculator-widget .tab-btn:last-child {
    border-right: none;
}

.paycheck-calculator-widget .tab-btn:hover {
    background: #ebebeb;
}

.paycheck-calculator-widget .tab-btn.active {
    background: #00008B;
    color: #ffffff;
}

/* Tab Content */
.paycheck-calculator-widget .tab-panel {
    display: none;
}

.paycheck-calculator-widget .tab-panel.active {
    display: block;
}

/* Form Sections */
.paycheck-calculator-widget .form-section {
    margin-bottom: 30px;
}

.paycheck-calculator-widget .form-section h3 {
    color: #00008B;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #00008B;
}

/* Form Groups */
.paycheck-calculator-widget .form-group {
    margin-bottom: 20px;
}

.paycheck-calculator-widget .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: end;
}

/* Labels */
.paycheck-calculator-widget label {
    display: block;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Input Fields */
.paycheck-calculator-widget input,
.paycheck-calculator-widget select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.paycheck-calculator-widget input:focus,
.paycheck-calculator-widget select:focus {
    outline: none;
    border-color: #00008B;
}

/* Radio Buttons */
.paycheck-calculator-widget .radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.paycheck-calculator-widget .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.paycheck-calculator-widget input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #00008B;
}

.paycheck-calculator-widget .radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

/* Hidden Fields */
.paycheck-calculator-widget .hidden {
    display: none;
}

/* Benefits Section */
.paycheck-calculator-widget .benefit-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.paycheck-calculator-widget .benefit-item input {
    margin-bottom: 0;
}

.paycheck-calculator-widget .benefit-item button {
    padding: 12px 20px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.paycheck-calculator-widget .benefit-item button:hover {
    background: #c82333;
}

/* Calculate Button */
.paycheck-calculator-widget .calculate-btn {
    width: 100%;
    padding: 16px 32px;
    background: #00008B;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin: 30px 0;
}

.paycheck-calculator-widget .calculate-btn:hover {
    background: #000070;
}

/* Results Section */
.paycheck-calculator-widget .results-section {
    margin-top: 40px;
    padding: 30px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.paycheck-calculator-widget .results-section h2 {
    text-align: center;
    color: #00008B;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 30px 0;
}

/* Chart Container */
.paycheck-calculator-widget .chart-container {
    position: relative;
    height: 400px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.paycheck-calculator-widget .take-home-amount {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
    width: 200px;
}

.paycheck-calculator-widget .take-home-amount h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.paycheck-calculator-widget .take-home-amount .amount {
    font-size: 28px;
    font-weight: 700;
    color: #00008B;
    margin: 0;
    word-break: break-word;
}

.paycheck-calculator-widget .take-home-amount small {
    font-size: 12px;
    color: #666666;
    text-transform: capitalize;
}

/* Deductions Table */
.paycheck-calculator-widget .deductions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.paycheck-calculator-widget .deductions-table th {
    background: #00008B;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.paycheck-calculator-widget .deductions-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.paycheck-calculator-widget .deductions-table tr:last-child td {
    border-bottom: none;
}

.paycheck-calculator-widget .deductions-table .deduction-amount {
    text-align: right;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.paycheck-calculator-widget .deductions-table .take-home {
    color: #00008B;
    font-size: 16px;
}

/* Disclaimer */
.paycheck-calculator-widget .disclaimer {
    margin-top: 30px;
    padding: 20px;
    background: #fff9e6;
    border: 1px solid #f0e68c;
    border-left: 4px solid #00008B;
}

.paycheck-calculator-widget .disclaimer h4 {
    color: #00008B;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.paycheck-calculator-widget .disclaimer p {
    color: #333333;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Add Benefit Button */
.paycheck-calculator-widget .add-benefit-btn {
    padding: 12px 24px;
    background: #00008B;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
    margin-top: 15px;
    font-size: 14px;
}

.paycheck-calculator-widget .add-benefit-btn:hover {
    background: #000070;
}

/* Responsive Design */
@media (max-width: 768px) {
    .paycheck-calculator-widget .calculator-container {
        padding: 20px 15px;
    }
    
    .paycheck-calculator-widget .tab-navigation {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .paycheck-calculator-widget .tab-btn {
        flex-shrink: 0;
    }
    
    .paycheck-calculator-widget .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .paycheck-calculator-widget .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .paycheck-calculator-widget .benefit-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .paycheck-calculator-widget .chart-container {
        height: 350px;
        max-width: 100%;
    }
    
    .paycheck-calculator-widget .take-home-amount {
        width: 160px;
    }
    
    .paycheck-calculator-widget .take-home-amount .amount {
        font-size: 22px;
    }
    
    .paycheck-calculator-widget .deductions-table {
        font-size: 13px;
    }
    
    .paycheck-calculator-widget .deductions-table th,
    .paycheck-calculator-widget .deductions-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .paycheck-calculator-widget .take-home-amount {
        width: 140px;
    }
    
    .paycheck-calculator-widget .take-home-amount .amount {
        font-size: 20px;
    }
    
    .paycheck-calculator-widget .take-home-amount h3 {
        font-size: 12px;
    }
}