/* =====================================================
   CALCHUB GST CALCULATOR
   ===================================================== */

.ch-gst-calculator {
    width: 100%;
    max-width: 760px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.10);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.ch-gst-calculator *,
.ch-gst-calculator *::before,
.ch-gst-calculator *::after {
    box-sizing: border-box;
}


/* =====================================================
   HEADER
   ===================================================== */

.ch-gst-header {
    padding: 32px 24px;
    text-align: center;
    background: #f8fbff;
    border-bottom: 1px solid #e8edf3;
}

.ch-gst-icon {
    margin-bottom: 10px;
    font-size: 38px;
    line-height: 1;
}

.ch-gst-header h2 {
    margin: 0;
    color: #172033;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.ch-gst-header p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}


/* =====================================================
   FORM
   ===================================================== */

.ch-gst-form {
    padding: 30px;
}

.ch-gst-group {
    margin-bottom: 22px;
}

.ch-gst-group label,
.ch-gst-label {
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}


/* =====================================================
   SELECT
   ===================================================== */

.ch-gst-control {
    width: 100%;
    height: 54px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 11px;
    background: #ffffff;
    color: #172033;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    appearance: auto;
}

.ch-gst-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =====================================================
   INPUT
   ===================================================== */

.ch-gst-input-wrap {
    position: relative;
    width: 100%;
}

.ch-gst-input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 11px;
    background: #ffffff;
    color: #172033;
    font-size: 16px;
    outline: none;
}

.ch-gst-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.ch-gst-input.ch-gst-has-left {
    padding-left: 62px;
}

.ch-gst-input.ch-gst-has-right {
    padding-right: 45px;
}

.ch-gst-input-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

.ch-gst-input-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    pointer-events: none;
}


/* =====================================================
   RADIO OPTIONS
   ===================================================== */

.ch-gst-radio {
    display: flex !important;
    align-items: center;
    gap: 11px;
    margin: 0 0 13px !important;
    color: #334155 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.ch-gst-radio:last-child {
    margin-bottom: 0 !important;
}

.ch-gst-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ch-gst-radio-mark {
    position: relative;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
}

.ch-gst-radio input:checked + .ch-gst-radio-mark {
    border-color: #2563eb;
}

.ch-gst-radio input:checked + .ch-gst-radio-mark::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #2563eb;
}

.ch-gst-radio:hover .ch-gst-radio-mark {
    border-color: #2563eb;
}


/* =====================================================
   CALCULATE BUTTON
   ===================================================== */

.ch-gst-calculate-button {
    width: 100%;
    min-height: 54px;
    margin-top: 3px;
    padding: 12px 20px;
    border: 0;
    border-radius: 11px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.ch-gst-calculate-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.ch-gst-calculate-button:active {
    transform: translateY(0);
}


/* =====================================================
   ERROR
   ===================================================== */

.ch-gst-error {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
}


/* =====================================================
   RESULTS
   ===================================================== */

.ch-gst-results {
    display: none;
    border-top: 1px solid #e5e7eb;
    background: #fbfdff;
    padding: 0 30px 30px;
}

.ch-gst-results-title {
    padding: 27px 0 18px;
    text-align: center;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}


/* =====================================================
   RESULT ROWS
   ===================================================== */

.ch-gst-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 14px 17px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.ch-gst-result-row span {
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

.ch-gst-result-row strong {
    color: #172033;
    font-size: 17px;
    line-height: 1.35;
    text-align: right;
    overflow-wrap: anywhere;
}


/* =====================================================
   FINAL RESULT
   ===================================================== */

.ch-gst-final-row {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.ch-gst-final-row span {
    color: #1e40af;
    font-weight: 700;
}

.ch-gst-final-row strong {
    color: #1d4ed8;
    font-size: 20px;
}


/* =====================================================
   RESET
   ===================================================== */

.ch-gst-reset-button {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.ch-gst-reset-button:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}


/* =====================================================
   FOOTER
   ===================================================== */

.ch-gst-footer {
    padding: 17px 20px;
    text-align: center;
    border-top: 1px solid #eef1f5;
    background: #fafbfc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .ch-gst-calculator {
        margin: 25px auto;
        border-radius: 18px;
    }

    .ch-gst-header {
        padding: 27px 18px;
    }

    .ch-gst-header h2 {
        font-size: 23px;
    }

    .ch-gst-header p {
        font-size: 14px;
    }

    .ch-gst-form {
        padding: 23px 18px;
    }

    .ch-gst-results {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ch-gst-results-title {
        padding-top: 24px;
    }

    .ch-gst-result-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .ch-gst-result-row strong {
        text-align: left;
        font-size: 16px;
    }

    .ch-gst-final-row strong {
        font-size: 19px;
    }

}