.gst-calculator-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 20px;
    font-size: 16px;
    color: #333;
}

.calculator-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.calculator-wrapper h2 {
    color: #2c3e50;
    margin-bottom: 0;
    text-align: center;
    font-size: 28px;
    margin-top: 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.input-section,
.result-section {
    padding: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 15px;
    color: #2c3e50;
}

.toggle-buttons {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    width: fit-content;
}

.gst-mode-btn {
    /* flex: 1; */
    padding: 9px 16px;
    border: none;
    background: #f8f9fa;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.gst-mode-btn {
    color: #555;
}

button.rate-option:not(.active):hover,
button.rate-option:not(.active):focus,
button.gst-mode-btn:not(.active):hover,
button.gst-mode-btn:not(.active):focus {
    color: #555;
}

.gst-mode-btn.active {
    background: #0054B8;
    color: white;
}

.gst-mode-btn:first-child {
    border-right: 1px solid #ddd;
}

#formatted-amount {
    max-width: 250px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
    background-color: white;
}

#formatted-amount:hover,
#custom-rate:hover {
    border-color: #bbb;
}

#formatted-amount:focus,
#custom-rate:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.2);
    background-color: white;
    /* Force white background on focus */
    border-radius: 8px;
}

.rate-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.rate-option {
    padding: 8px 15px;
    background: #f8f9fa;
    color: #555;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: all 0.2s ease;
}

.rate-option:hover:not(.active),
.rate-option:active:not(.active) {
    background-color: #f8f9fa;
    /* Keep default background */
    border-color: #ddd;
    /* Keep default border */
    transform: none;
    /* Prevent any transform effect */
}

.rate-option:focus {
    outline: none;
    /* Remove theme focus outline */
}

.gst-mode-btn:hover:not(.active),
.gst-mode-btn:active:not(.active),
#reset-btn:active,
#copy-btn:active {
    background-color: #f8f9fa;
}

.gst-mode-btn:focus,
#reset-btn:focus,
#copy-btn:focus {
    outline: none;
    /* Remove theme focus outline */
}

.gst-mode-btn.active,
.rate-option.active,
.gst-mode-btn.active:hover,
.rate-option.active:hover,
.gst-mode-btn.active:active,
.rate-option.active:active,
#reset-btn:active,
#copy-btn:active {
    background: #0054B8;
    color: white;
}

.gst-mode-btn:active,
#reset-btn:active,
#copy-btn:active {
    transform: scale(0.97);
}

#custom-rate {
    width: 80px;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background-color: white;
    border-radius: 6px;
}

/* Hides spinners (up and down arrows) in custom input boxes */
input#custom-rate[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Hides spinners in WebKit browsers (Chrome, Safari, Edge) */
input#custom-rate[type=number]::-webkit-inner-spin-button,
input#custom-rate[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.result-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.result-card h3 {
    color: #2c3e50;
    margin: 0;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    min-height: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 16px;
}

.result-row span {
    padding: 9px 15px;
    border-top: 1px solid #ddd;
}

.result-row.total {
    font-weight: 500;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    font-size: 17px;
}

#total-amount {
    color: #146139;
    font-weight: 500;
}

#gst-amount {
    color: #A22110;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.result-option {
    padding-left: 15px;
    margin-top: 5px;
}

.result-option label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    cursor: pointer;
}

.result-option input[type="checkbox"] {
    flex-shrink: 0;
    /* Prevents checkbox from shrinking */
    width: 15px;
    height: 15px;
    margin: 0;
    /* Resets any default margin */
}

.gst-split-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    font-size: 16px;
    border-top: 1px solid #ddd;
    background-color: #fdfdfd;
}

.gst-split-options label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.gst-split-options input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.action-buttons button {
    padding: 9px 15px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

#reset-btn {
    background-color: #0054B8;
}

#reset-btn:hover,
#reset-btn:active {
    background-color: #0054B8;
}

#copy-btn {
    background-color: #0054B8;
}

#copy-btn:hover,
#copy-btn:active {
    background-color: #0054B8;
}

.faq-list {
    margin-top: 1rem;
}

.faq-list dt {
    font-weight: 500;
    font-size: 1.1em;
}

.faq-list dd {
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

/* Responsive styles */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gst-calculator-container {
        padding: 0;
    }

    .calculator-wrapper {
        padding-left: 0;
        padding-right: 0;
        box-shadow: none;
        border-radius: 0;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
    }

    .input-section,
    .result-section {
        padding: 15px 0;
    }

    .result-section,
    .result-card {
        padding-top: 0;
    }

    .input-section {
        padding-bottom: 0;
    }

    .result-card {
        background: none;
        box-shadow: none;
        padding-left: 0;
        padding-right: 0;
        border: none;
    }

    .action-buttons button {
        font-size: 16px;
        margin-top: 15px;
    }

    .result-row span {
        padding: 9px 0;
    }

    .result-card h3 {
        border-bottom: none;
    }

    .result-option {
        padding-left: 0;
    }


}