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

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

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

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

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

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

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

/* Hero Section */
.sip-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);
}

.sip-hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Preset Goal Pills */
.sip-preset-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sip-preset-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sip-preset-tab.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.sip-preset-tab:hover:not(.active) {
    background: #e2e8f0;
    color: #0f172a;
}

/* Tool Main Card */
.sip-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 & Sliders */
.sip-form-group {
    margin-bottom: 22px;
}

.sip-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sip-form-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
}

.sip-input-box {
    position: relative;
    max-width: 220px;
}

.sip-input {
    height: 44px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    text-align: right;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sip-input:focus {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

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

.sip-input-prefix {
    left: 10px;
}

.sip-input-suffix {
    right: 10px;
}

.sip-words-hint {
    font-size: 13px;
    color: #0284c7;
    font-weight: 600;
    margin-top: 4px;
    text-align: right;
}

/* Sliders */
.sip-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    margin: 12px 0 6px 0;
    cursor: pointer;
}

.sip-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    border: 2.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.sip-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.sip-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0284c7;
    border: 2.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.sip-slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* Tenure Unit Switcher (Years vs Months) */
.sip-unit-toggle {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 10px;
}

.sip-unit-btn {
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.sip-unit-btn.active {
    background: #0284c7;
    color: #ffffff;
}

/* Advanced Options Accordion */
.sip-adv-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.sip-adv-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;
}

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

.sip-adv-box.open .sip-adv-content {
    display: block;
}

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

/* Primary Result Hero Card */
.sip-result-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

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

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

.sip-result-sub {
    font-size: 14px;
    color: #047857;
    font-weight: 600;
    margin-top: 4px;
}

/* Summary Grid */
.sip-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.sip-summary-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.sip-summary-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

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

/* Donut Chart Container */
.sip-chart-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.sip-chart-svg {
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
}

.sip-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sip-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.sip-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.sip-legend-dot.invested {
    background: #0284c7;
}

.sip-legend-dot.gains {
    background: #10b981;
}

/* Full Width Growth Chart Card */
.sip-growth-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.sip-growth-chart-wrap {
    width: 100%;
    height: 280px;
    position: relative;
    margin: 16px 0;
}

.sip-growth-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Amortization / Year-wise Table */
.sip-table-container {
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 14px;
}

.sip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px !important;
}

.sip-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 2px solid #cbd5e1;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sip-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 15px !important;
}

.sip-table tr:hover {
    background: #f8fafc;
}

/* Action Buttons */
.sip-btn-primary {
    background: #0284c7;
    border: 1.5px solid #0369a1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sip-btn-primary:hover {
    background: #0369a1;
    color: #ffffff;
}

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

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

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

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

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

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

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

.sip-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;
}

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

.sip-faq-question .fa {
    transition: transform 0.2s ease;
    color: #0284c7;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 767px) {
    .sip-hero h1,
    .sip-hero-title {
        font-size: 24px !important;
        line-height: 32px !important;
    }
    .sip-result-value {
        font-size: 28px !important;
        line-height: 34px !important;
    }
    .sip-chart-box {
        flex-direction: column;
    }
    .sip-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .sip-input-box {
        max-width: 100%;
        width: 100%;
    }
    .sip-summary-grid {
        grid-template-columns: 1fr;
    }
}

