#va-disability-calculator .mb1 {
    margin-bottom: 8px !important;
}

#va-disability-calculator .lh1 {
    line-height: 1.3;
}

#va-disability-calculator .h4, #va-disability-calculator .mb1 {
    color: var(--color-brand-blue, #0c5da2);
}

#va-disability-calculator {
    padding: 16px;
    background: var(--border_and_bg_grey, #fafafa);
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: 100vw;
    box-shadow: var(--wp--preset--shadow--shallow, 0 0 30px 5px rgba(0, 0, 0, 0.15));
}

#va-disability-calculator select,
#va-disability-calculator input[type="number"] {
    width: 100%;
    padding: 6px;
}

#va-disability-calculator button {
    padding: 8px;
}

#va-entries-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0;
    border-bottom: 1px solid #ccc;
}

.va-entry-label:first-of-type {
    flex-basis: 60%;
}

#va-rating-entries {
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: var(--wp--preset--shadow--shallow, 0 0 30px 5px rgba(0, 0, 0, 0.15));
    background-color: #fff;
    position: relative;
}

.field--input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: normal;
}

.field--input--checkbox {
    flex-direction: row;
}

.field--input:last-of-type {
    margin-bottom: 0;
}

.field--input label {
    display: flex;
    gap: 16px;
    line-height: 1.3;
    align-items: center;
}

.field--input select {
    font-weight: normal;
}

.field--input.hidden {
    display: none;
}

#va-dependents, #va-marital-status {
    font-weight: bold;
    background-color: #fff;
    padding: 20px;
    box-shadow: var(--wp--preset--shadow--shallow, 0 0 30px 5px rgba(0, 0, 0, 0.15));
}

#va-dependents {
    margin-bottom: 16px;
}

#va-rating-results {
    display: grid;
    place-content: center;

    font-size: var(--fluid-18px-22px);
    margin-top: 16px;
    padding: 20px;

    position: sticky;
    bottom: 0;
    min-height: 6em;
    background-color: var(--color-brand-maroon, #7D090E);
    color: #fff;
    box-shadow: var(--wp--preset--shadow--natural, 0 0 30px 5px rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

#va-rating-results .row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#va-rating-results .row p:last-of-type strong {
    margin-bottom: 0;
}

#va-rating-results p {
    margin: 0;
    text-align: center;    
}

#va-rating-results p strong {
    display: block;
    font-size: 1.2em;
    line-height: 1;
}

#va-rating-results p strong {
    margin-bottom: 16px;
}

#va-rating-results .row:has(.fine-print) {
    margin-top: 16px;
}

#va-rating-results .fine-print strong {
    display: inline;
    margin-bottom: 0;
}

#va-add-btn {
    margin-bottom: 10px;
}

.va-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.va-entry select,
.va-entry input {
    flex: 1;
}

.va-entry select[name=bodyPart] {
    flex-basis: 30%;
}

.va-remove-btn {
    background: none;
    border: none;
    color: #c00;
    cursor: pointer;
    font-size: 1.2em;
}

.va-remove-btn:hover, #va-add-btn:hover, #reset-btn:hover {
    transform: none !important
}

#reset-btn {
    margin-top: 32px;
}

.tooltip {
    text-decoration: underline dotted var(--color-brand-blue, #0c5da2);
    cursor: pointer;
    margin-bottom: 0;
}

.field--input .tooltip {
    margin-top: -12px;
}
.tippy-box {
    background-color: #e8e8e8;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.15));
    padding: 10px;
    font-size: 0.85em;
    border-radius: 0;
}

.tippy-content {
    color: #000;
}
.tippy-box a {
    color: var(--color-brand-blue, #0c5da2);
    text-decoration: underline;
}

.tippy-arrow {
    color: #e8e8e8;
}

.row--label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.row--label .dashicons-info-outline {
    margin-bottom: 0;
    line-height: 1;
}

.dashicons-info-outline:hover {
    color: var(--color-brand-maroon, #7D090E);
}

#spouse-aid-tooltip {
    /* Ensures the tooltip is centered on the text */
    width: fit-content;
}

@media screen and (min-width: 56.88em) {
    #va-disability-calculator {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    #va-disability-calculator form {
        width: 100%;
        display: flex;
        gap: 32px;
        padding: 16px;
    }

    .va-entry-label:first-of-type {
        flex-basis: 66%;
    }
    
    #va-rating-entries {
        flex: 1;
        margin-bottom: 0;
    }

    #va-dependents {
        margin-bottom: 32px;
    }

    .va-entry select,
    .va-entry input {
        flex: unset;
    }

    select[name=bodyPart] {
        flex: 1;
    }
    select[name=rating] {
        flex-basis: 25%;
    }

    #va-additional-info {
        flex: 1;
    }

    #va-rating-results {
        margin: 16px 16px 0;
        position: relative;
    }

    #va-rating-results .row {
        flex-direction: row;
        gap: 32px;
        margin-left: 16px;
        margin-right: 16px;
    }

    #va-rating-results .row:has(.fine-print) {
        margin-top: 28px;
    }

    #va-rating-results p strong {
        margin: 0;
    }

    #reset-btn {
        margin-left: 16px;
    }
    
}

/* Toast notification styles */
.toast {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-brand-maroon, #7D090E);
    color: white;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: var(--wp--preset--shadow--natural, 0 0 30px 5px rgba(0, 0, 0, 0.15));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    max-width: 25em;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.info {
    background-color: var(--color-brand-blue, #0c5da2);
}

@media screen and (max-width: 768px) {
    .toast {
        max-width: none;
    }
    
}

@media (forced-colors: active) {
    #va-calculator-embed, #va-rating-entries, 
    #va-additional-info, #va-rating-results,
    .va-remove-btn, .tippy-box, .toast {
        border: 2px solid;
    }

}