/* === Personal Tax Calculator Styling — UI Fix === */

#personal-tax-calculator-section.personal-tax-calculator-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: var(--e-global-typography-text-font-family);
}

/* Row Layout */
/* Center align input row */
.ptc-input-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 25px auto 32px auto;
    text-align: center;
}

/* Label spacing fix and centered text */
.ptc-input-row label {
    font-weight: 600;
    font-size: 18px;
    color: var(--e-global-color-text);
    margin-right: 8px;
    white-space: nowrap;
    text-align: right;
}

/* Input styling */
.ptc-input-row input {
    width: 260px;
    padding: 14px 18px;
    font-size: 18px;
    border: 1px solid var(--e-global-color-text);
    border-radius: 10px;
    font-family: inherit;
}

/* Button centered and visually aligned */
.ptc-input-row button {
    padding: 14px 26px !important;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    background: var(--e-global-color-primary, #333);
    color: #fff;
    border: 2px solid var(--e-global-color-primary, #333);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ptc-input-row button:hover,
.ptc-input-row button:active,
.ptc-input-row button:focus {
    background: var(--e-global-color-accent, #e6b020);
    color: #000;
    outline: none;
    transform: translateY(-1px);
}

/* Table wrapper with overflow */
.ptc-results-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Table */
.ptc-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.ptc-results-table thead th {
    background: var(--e-global-color-primary);
    color: #fff;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* Body */
.ptc-results-table td {
    padding: 12px 18px;
    white-space: nowrap;
    font-size: 16px;
    border-bottom: 1px solid #e6e6e6;
}

.ptc-results-table tbody tr:nth-child(odd) {
    background: #f9fbfc;
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
    #personal-tax-calculator-section.personal-tax-calculator-container {
        padding: 25px 15px;
    }
    
    .ptc-results-table {
        font-size: 15px;
    }
    
    .ptc-results-table thead th,
    .ptc-results-table td {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    #personal-tax-calculator-section.personal-tax-calculator-container {
        padding: 20px 12px;
    }
    
    .ptc-input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .ptc-input-row label {
        text-align: left;
        margin-right: 0;
        font-size: 16px;
    }
    
    .ptc-input-row input {
        width: 100%;
        font-size: 16px;
    }
    
    .ptc-input-row button {
        width: 100%;
        font-size: 16px;
    }
    
    .ptc-results-table {
        font-size: 14px;
        min-width: 800px;
    }
    
    .ptc-results-table thead th,
    .ptc-results-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    #personal-tax-calculator-section.personal-tax-calculator-container {
        padding: 15px 8px;
    }
    
    .ptc-input-row input,
    .ptc-input-row button {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .ptc-results-table {
        font-size: 13px;
        min-width: 750px;
    }
    
    .ptc-results-table thead th,
    .ptc-results-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}