/* tax.css */

/* Content Section */
.content-section {
    padding: 80px 20px 40px; /* Reduced padding */
    min-height: 100vh;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically */
    flex-direction: column;
    /* overflow-y: auto; Enable scrolling only if content overflows */
}

.container {
    max-width: 900px;
    width: 100%;
    background: #222;
    border-radius: 12px;
    padding: 30px; /* Reduced padding */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* max-height: 90vh; Limit container height */
    overflow-y: auto; /* Enable scrolling within container if needed */
}

.section-title {
    text-align: center;
    font-size: 28px; /* Reduced font size */
    margin-bottom: 20px; /* Reduced margin */
    color: #ffffff;
    width: 100%;
}

.year-selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Reduced margin */
    gap: 10px; /* Reduced gap */
    width: 100%;
}

.year-selection label {
    font-size: 16px; /* Reduced font size */
    color: #fff;
    margin-bottom: 5px; /* Reduced margin */
    text-align: center;
    width: 100%;
}

.radio-group {
    display: flex;
    gap: 8px; /* Reduced gap */
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 6px 12px; /* Reduced padding */
    background: #444;
    border-radius: 15px; /* Reduced border radius */
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px; /* Reduced font size */
}

.radio-group input[type="radio"]:checked + label {
    background: #19ca54;
}

/* Accordion Styles */
.accordion-header {
    padding: 10px 20px; /* Reduced padding */
    background: #1976d2;
    color: #fff;
    font-size: 16px; /* Reduced font size */
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: "▼";
    font-size: 12px; /* Reduced font size */
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 15px; /* Reduced padding */
    background: #333;
    display: block; /* Always visible */
}

.accordion-content.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.accordion-content label {
    display: block;
    margin-bottom: 10px; /* Reduced margin */
    font-size: 14px; /* Reduced font size */
}

.accordion-content input[type="number"] {
    width: 100%;
    padding: 8px; /* Reduced padding */
    margin-bottom: 15px; /* Reduced margin */
    border: 1px solid #666;
    border-radius: 6px; /* Reduced border radius */
    font-size: 14px; /* Reduced font size */
    background: #444;
    color: #f5f5f5;
    outline: none;
    transition: border-color 0.3s ease;
}

.accordion-content input[type="number"]:focus {
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Calculator Container Styling */
.calculators-container {
    display: flex;
    flex-direction: row;
    gap: 15px; /* Reduced gap */
    margin-bottom: 20px; /* Reduced margin */
    width: 100%;
}

.calculator {
    flex: 1;
    border: 2px solid #888;
    border-radius: 6px; /* Reduced border radius */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Tax Table Styling */
.table-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tax-table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px; /* Reduced margin */
    border: 2px solid #888;
}

#tax-table-container th,
#tax-table-container td {
    padding: 10px; /* Reduced padding */
    border: 2px solid #888;
    text-align: center;
    font-size: 14px; /* Reduced font size */
}

#tax-table-container th {
    background: #1976d2;
    color: #fff;
    font-weight: 700;
}

#tax-table-container tr:nth-child(even) {
    background: #333;
}

#tax-table-container tr:hover {
    background: #444;
}

#insurance-ceiling-text {
    color: #fff;
    margin-bottom: 5px; /* Reduced margin */
    font-size: 14px; /* Reduced font size */
}

@media screen and (max-width: 768px) {
    .content-section {
        padding: 60px 15px 30px; /* Reduced padding */
    }

    .container {
        padding: 20px; /* Reduced padding */
    }

    .calculators-container {
        flex-direction: column;
    }

    .section-title {
        font-size: 24px; /* Reduced font size */
    }
}
