/*
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.stj-salary-calculator-wrap {
    background-color: #2E4479;
    padding: 2.5% 5%;
    color: #fff; /* White text for contrast */
    max-width: 750px;
    margin: 30px auto;
}

.stj-calculator-title {
    text-align: center;
    color: #fff;
    margin: 0 0 20px;
}

.stj-calculator-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-end; /* Align items to the bottom */
}

.stj-calculator-field,
.stj-calculator-checkbox {
    flex: 1;
    min-width: 200px; /* Adjust as needed */
}

.stj-calculator-field.stj-full-width {
    flex: 1 1 100%; /* Take full width */
}

.stj-calculator-field .select2-container{
    max-width: 100% !important;
    width: 100% !important;
}

.stj-calculator-row label {
    display: block;
    font-weight: bold;
    margin: 0 !important;
}

.stj-calculator-row:not(.stj-checkbox-row) label {
    margin-bottom: 15px;
}

.stj-calculator-row select,
.stj-calculator-row input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    background-color: #f8f8f8;
    color: #333;
}

.stj-calculator-checkbox {
    display: flex;
    align-items: center;
}

.stj-calculator-checkbox input[type="checkbox"] {
    margin: 0 5px 0 0 !important;
    width: auto; /* Override 100% width */
}

.stj-calculator-row-space{
    margin: 30px 0;
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
}

.stj-readonly-row input[type="text"] {
    background-color: #e9e9e9;
    color: #555;
}

.stj-total-salary-row input[type="text"] {
    font-size: 1.5em;
    font-weight: bold;
    background-color: #e9e9e9;
    color: #555;
}

/*
 * Select2 Dropdown Styles
 */
.select2-container--default .select2-results__option {
    color: #333; /* Dark text for readability */
}

.select2-results__option--highlighted {
    background-color: #0073aa !important; /* WordPress primary blue for hover */
    color: #fff !important;
}

.select2-dropdown {
    background-color: #fff; /* White background for the dropdown */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}