/* =========================================
   AajBazar Gold Rate Calculator
   Lightweight + Mobile First
========================================= */

.ab-gold-calculator,
.ab-gc-content,
.ab-gc-faq {
    max-width: 850px;
    margin: 28px auto;
    padding: 0 15px;
    box-sizing: border-box;
}


/* =========================================
   Header
========================================= */

.ab-gc-header {
    text-align: center;
    margin-bottom: 20px;
}

.ab-gc-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f3f3f3;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.ab-gc-header h2 {
    margin: 10px 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.ab-gc-header p {
    max-width: 650px;
    margin: auto;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.ab-gc-updated {
    margin-top: 10px;
    color: #777;
    font-size: 12px;
}


/* =========================================
   Calculator Box
========================================= */

.ab-gc-box {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

.ab-gc-field {
    margin-bottom: 15px;
}

.ab-gc-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.ab-gc-field input,
.ab-gc-field select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 15px;
    box-sizing: border-box;
}

.ab-gc-field input:focus,
.ab-gc-field select:focus {
    outline: none;
    border-color: #555;
}

.ab-gc-field small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 12px;
}


/* =========================================
   GST
========================================= */

.ab-gc-gst {
    margin: 5px 0 18px;
    color: #222;
    font-size: 14px;
}

.ab-gc-gst input {
    margin-right: 7px;
}


/* =========================================
   Calculate Button
========================================= */

#ab-calculate-gold {
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 9px;
    background: #111;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

#ab-calculate-gold:hover {
    opacity: .9;
}


/* =========================================
   Result
========================================= */

.ab-gc-result {
    margin-top: 20px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
}

.ab-gc-result h3 {
    margin: 0 0 15px;
    color: #222;
    font-size: 20px;
}

.ab-gc-result-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid #e5e5e5;
    color: #333;
    font-size: 14px;
}

.ab-gc-result-row strong {
    color: #222;
    text-align: right;
}

.ab-gc-total {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    border-radius: 9px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ab-gc-total strong {
    color: #fff;
    font-size: 19px;
}

.ab-gc-note {
    margin: 14px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================
   SEO Content
========================================= */

.ab-gc-content {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
}

.ab-gc-content h2,
.ab-gc-faq h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #222;
    font-size: 22px;
    line-height: 1.35;
}

.ab-gc-formula {
    margin: 18px 0;
    padding: 16px;
    border-left: 3px solid #111;
    background: #f7f7f7;
    color: #333;
    line-height: 1.8;
}

.ab-gc-content ol {
    padding-left: 22px;
}

.ab-gc-content li {
    margin-bottom: 6px;
}


/* =========================================
   FAQ
========================================= */

.ab-faq-item {
    border-bottom: 1px solid #ddd;
}

.ab-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 16px 0;

    border: 0 !important;
    background: transparent !important;

    color: #222 !important;

    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;

    cursor: pointer;

    box-shadow: none !important;
    text-decoration: none !important;
}

.ab-faq-question:hover,
.ab-faq-question:focus,
.ab-faq-question:active {
    background: transparent !important;
    color: #222 !important;
    box-shadow: none !important;
}

.ab-faq-question span {
    color: #222 !important;
}

.ab-faq-question b {
    display: inline-block;
    color: #222 !important;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    flex-shrink: 0;
}

.ab-faq-answer {
    display: none;

    padding: 0 0 15px;

    color: #666 !important;
    font-size: 14px;
    line-height: 1.7;
}

.ab-faq-answer p {
    margin: 0;
    color: #666 !important;
}

.ab-faq-item.active .ab-faq-answer {
    display: block;
}


/* =========================================
   Desktop
========================================= */

@media (min-width: 650px) {

    .ab-gc-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
    }

    .ab-gc-gst,
    #ab-calculate-gold {
        grid-column: 1 / -1;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 480px) {

    .ab-gc-header h2 {
        font-size: 26px;
    }

    .ab-gc-box,
    .ab-gc-result {
        padding: 16px;
    }

    .ab-gc-total {
        flex-direction: column;
        gap: 6px;
    }

    .ab-gc-total strong {
        text-align: left;
    }

    .ab-gold-calculator .ab-faq-question {
        font-size: 15px;
    }
}