/* GST Calculator Stylesheet */
.gst-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.gst-container {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 320px; /* Locked narrow for AdSense space */
    box-sizing: border-box;
}

.gst-container h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #1e1b4b; /* Deep Corporate Indigo */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.gst-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.gst-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.gst-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gst-input-group input[type="number"],
.gst-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.gst-input-wrapper input[type="number"] {
    padding-left: 30px; 
}

/* Custom alignment for the specific Custom Rate input */
#gstCustomRateWrapper input[type="number"] {
    padding-left: 12px;
    padding-right: 35px;
}

.gst-currency {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #64748b;
}

.gst-symbol {
    position: absolute;
    right: 12px;
    font-weight: 600;
    color: #64748b;
}

.gst-input-group input:focus,
.gst-input-group select:focus {
    outline: none;
    border-color: #4338ca; /* Indigo */
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.2);
    background: #ffffff;
}

/* Radio Button Toggles */
.gst-toggle-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gst-radio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.gst-radio input {
    display: none;
}

.gst-radio:has(input:checked) {
    background: #e0e7ff;
    border-color: #4338ca;
    color: #4338ca;
}

.gst-btn {
    width: 100%;
    background: #4338ca; /* Indigo */
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(67, 56, 202, 0.3);
}

.gst-btn:hover {
    background: #3730a3;
}

.gst-result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #f5f3ff; 
    border: 1px solid #ddd6fe;
    display: none; 
}

.gst-result-box h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #4338ca;
    letter-spacing: 0.05em;
}

.gst-result-main {
    margin: 10px 0 15px 0;
    font-size: 2.1rem;
    font-weight: 900;
    color: #312e81;
}

.gst-breakdown {
    border-top: 1px solid #c4b5fd;
    padding-top: 15px;
    text-align: left;
    font-size: 0.9rem;
    color: #3730a3;
}

.gst-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gst-breakdown-row strong {
    color: #312e81;
    font-weight: 700;
}

.gst-sub-tax {
    font-size: 0.8rem;
    color: #6b7280;
    padding-left: 10px;
    margin-bottom: 4px;
}