/* Styles for the tax calculator */

.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
}

.error-icon {
    display: none;
    float: right;
    margin-left: 5px;
    width: 20px;
    height: 20px;
    background-color: #ff8080;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    color: white;
    cursor: pointer;
    position: relative;
}

.error-icon:hover::after {
    content: attr(title);
    display: block;
    position: absolute;
    background-color: #ff8080;
    color: white;
    padding: 5px;
    border-radius: 5px;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.error-tooltip {
    display: none;
    position: absolute;
    background-color: #ff8080;
    color: white;
    padding: 5px;
    border-radius: 5px;
    z-index: 1;
}

.error-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ff8080 transparent transparent transparent;
}

.invalid-input {
    border: 1px solid #ff8080;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #555;
    text-decoration: none;
}
