h1 {
    margin: 40px auto 30px;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    text-align: center;
}

.vat-section {
    max-width: 480px;
    margin: 0 auto 300px;
    padding: 30px 15px 20px;
    background: #394555;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

.vat-section p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.container-vat {
    background: #fff;
    margin-bottom: 20px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 100%;
    text-align: center;
}

.container-vat h2 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: #333;
}

.vat-rate-badge {
    display: inline-block;
    background: #2d3f52;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.vat-tabs {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 2px solid #2d3f52;
}

.vat-tab {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #2d3f52;
    transition: background 0.2s, color 0.2s;
}

.vat-tab.active {
    background: #2d3f52;
    color: #fff;
}

.vat-tab:hover:not(.active) {
    background: #f0f0f0;
}

.vat-label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.4rem;
    text-align: left;
}

.vat-input-wrap {
    position: relative;
    margin-bottom: 1rem;
}

.vat-input-wrap span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3f52;
}

.vat-input-wrap input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    font-size: 1.2rem;
    border: 2px solid #2d3f52;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.vat-input-wrap input:focus {
    border-color: #9b3d99;
}

.vat-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
    display: none;
}

.vat-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #333;
}

.vat-result-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.05rem;
    color: #2d3f52;
}

.vat-result-row span:first-child {
    color: #555;
}

.vat-result-row.total span {
    color: #2d3f52;
}

button.vat-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0.4rem auto;
    border: none;
    border-radius: 8px;
    background-color: #2d3f52;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

button.vat-btn:hover {
    background-color: #9b3d99;
}

.success {
    color: green;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.error {
    color: #d00;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}