/**
 * SEOsuite.net - GST Calculator Stylesheet
 * Lightweight, Bootstrap-first, High-Contrast Light Theme
 * Paragraph text strictly 16px, headings in px (zero rem units)
 */

/* Main Wrapper */
.gst-calc-wrapper {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Typography Overrides (Strictly px units, 16px paragraphs) */
.gst-calc-wrapper p,
.gst-calc-wrapper .gst-para,
.gst-seo-content p,
.gst-seo-content li,
.gst-faq-answer {
    font-size: 16px !important;
    line-height: 26px !important;
    color: #334155;
    margin-bottom: 14px;
}

.gst-hero h1,
.gst-hero-title {
    font-size: 32px !important;
    line-height: 40px !important;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0;
}

.gst-section-title,
.gst-card h2 {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px 0;
}

.gst-card h3,
.gst-sub-title {
    font-size: 20px !important;
    line-height: 28px !important;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.gst-card h4,
.gst-block-title {
    font-size: 18px !important;
    line-height: 24px !important;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

/* Hero Section */
.gst-hero {
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px 20px 22px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.gst-hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mode Switcher Tabs (Add GST vs Remove GST) */
.gst-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
}

.gst-mode-tab {
    flex: 1;
    text-align: center;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gst-mode-tab.active {
    background: #ffffff;
    color: #d97706;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gst-mode-tab:hover:not(.active) {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

/* Tool Main Card */
.gst-main-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Form Controls */
.gst-form-group {
    margin-bottom: 18px;
}

.gst-form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.gst-input-box {
    position: relative;
}

.gst-input {
    height: 46px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.gst-input:focus {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}

.gst-input-prefix,
.gst-input-suffix {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
}

.gst-input-prefix {
    left: 12px;
}

.gst-input-suffix {
    right: 12px;
}

/* Rate Slabs Grid */
.gst-rates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 1.2fr;
    gap: 6px;
    margin-top: 8px;
}

.gst-rate-btn {
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.gst-rate-btn:hover {
    border-color: #d97706;
    color: #d97706;
    background: #fffbeb;
}

.gst-rate-btn.active {
    background: #d97706;
    border-color: #b45309;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
}

.gst-custom-rate-box {
    position: relative;
}

/* Transaction Type Selector (Intra-state vs Inter-state) */
.gst-tx-selector {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    gap: 6px;
    margin-top: 6px;
}

.gst-tx-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gst-tx-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Business Options Accordion (Discounts & Shipping) */
.gst-business-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
}

.gst-business-toggle-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: #0369a1;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.gst-business-content {
    display: none;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    margin-top: 10px;
}

.gst-business-box.open .gst-business-content {
    display: block;
}

.gst-business-box.open .gst-business-toggle-btn .fa {
    transform: rotate(180deg);
}

/* Results Card (Right Column) */
.gst-result-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.gst-result-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #92400e;
    margin-bottom: 4px;
}

.gst-result-value {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 44px;
}

.gst-result-sub {
    font-size: 14px;
    color: #78350f;
    font-weight: 600;
    margin-top: 4px;
}

/* Tax Breakdown Stat Grid */
.gst-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.gst-stat-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
}

.gst-stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}

.gst-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 26px;
}

/* Itemized Invoice Table Card */
.gst-invoice-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.gst-invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 15px;
}

.gst-invoice-row:last-child {
    border-bottom: none;
}

.gst-invoice-key {
    color: #475569;
    font-weight: 600;
}

.gst-invoice-val {
    color: #0f172a;
    font-weight: 700;
}

/* Action Buttons */
.gst-btn-primary {
    background: #d97706;
    border: 1.5px solid #b45309;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gst-btn-primary:hover {
    background: #b45309;
    color: #ffffff;
}

.gst-btn-secondary {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gst-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* SEO Content & Tables */
.gst-seo-content {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    margin-top: 30px;
}

.gst-table-ref {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px 0;
    font-size: 16px !important;
}

.gst-table-ref th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.gst-table-ref td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    color: #334155;
}

/* FAQ Accordion */
.gst-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.gst-faq-question {
    background: #f8fafc;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    text-align: left;
}

.gst-faq-question:hover {
    background: #f1f5f9;
}

.gst-faq-question .fa {
    transition: transform 0.2s ease;
    color: #d97706;
}

.gst-faq-answer {
    padding: 16px 18px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: none;
}

.gst-faq-item.open .gst-faq-answer {
    display: block;
}

.gst-faq-item.open .gst-faq-question .fa {
    transform: rotate(180deg);
}

/* Print Friendly Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .gst-main-card,
    .gst-main-card * {
        visibility: visible;
    }
    .gst-main-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
    }
    .gst-mode-tabs,
    .gst-rates-grid,
    .gst-tx-selector,
    .gst-business-toggle-btn,
    button {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .gst-hero h1,
    .gst-hero-title {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    .gst-result-value {
        font-size: 28px !important;
        line-height: 34px !important;
    }
    .gst-rates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gst-stat-grid {
        grid-template-columns: 1fr;
    }
}

