/* ==========================================================================
   SIMPLE INTEREST CALCULATOR PAGE
   ========================================================================== */

   :root {
    --primary-blue: #0052cc;
    --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --success-bg: #ecfdf5;
    --success-text: #047857;
    --warning-bg: #fff7ed;
    --warning-text: #c2410c;
    --danger-bg: #fef2f2;
    --danger-text: #b91c1c;
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 48px 0;
}

.section-spacing {
    margin-top: 32px;
}

.main-content {
    padding-bottom: 72px;
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.4rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 16px;
    color: var(--text-main);
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 32px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    margin-bottom: 28px;
    opacity: 0.95;
}

.breadcrumb a,
.breadcrumb span {
    color: rgba(255, 255, 255, 0.92);
}

.breadcrumb .current {
    color: rgba(255, 255, 255, 0.86);
}

.hero-content {
    max-width: 860px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 18px;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.08rem;
    max-width: 820px;
    margin-bottom: 24px;
}

.hero-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-point i {
    margin-top: 5px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #f8fbff;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-secondary-alt {
    background: transparent;
    color: var(--white);
    border-color: rgba(226, 232, 240, 1);
}

.btn-secondary-alt:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.btn-outline {
    background: var(--white);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-light);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* ==========================================================================
   CARDS / GENERIC SECTIONS
   ========================================================================== */

.section-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header p {
    max-width: 760px;
    color: var(--text-muted);
}

.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.info-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background: #f1f5f9;
    font-weight: 700;
}

.feature-list {
    padding-left: 18px;
}

.feature-list li {
    margin-bottom: 10px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   CALCULATOR AREA
   ========================================================================== */

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: start;
}

.calculator-card,
.results-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
}

.card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-header p {
    color: var(--text-muted);
}

.card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    border-radius: 14px;
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.helper-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-light);
    display: grid;
    gap: 10px;
}

.helper-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.helper-item strong {
    color: var(--text-main);
}

.helper-item span {
    color: var(--text-muted);
}

.sample-values {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.sample-values span {
    font-weight: 600;
    color: var(--text-main);
}

.sample-btn {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sample-btn:hover {
    background: #eef4ff;
    color: var(--primary-blue);
    border-color: rgba(0, 82, 204, 0.18);
}

.validation-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.validation-message.error {
    display: block;
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(185, 28, 28, 0.16);
}

.validation-message.success {
    display: block;
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(4, 120, 87, 0.16);
}

/* ==========================================================================
   RESULTS
   ========================================================================== */

.results-intro {
    text-align: center;
    padding: 40px 14px;
}

.results-placeholder-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    font-size: 1.65rem;
}

.results-intro h3 {
    margin-bottom: 8px;
}

.results-intro p {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

.primary-result {
    margin-bottom: 22px;
}

.result-label {
    display: inline-block;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.primary-result h3 {
    font-size: clamp(2rem, 5vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.primary-result p {
    color: var(--text-muted);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.result-box {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    background: var(--white);
}

.result-box span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.result-box strong {
    font-size: 1.18rem;
    color: var(--text-main);
}

.formula-breakdown {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    background: #fbfdff;
    margin-bottom: 18px;
}

.formula-breakdown h4 {
    margin-bottom: 10px;
}

.formula-breakdown p {
    color: var(--text-muted);
}

.info-box {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.success-box {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(4, 120, 87, 0.14);
}

.warning-box {
    margin-top: 20px;
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: rgba(194, 65, 12, 0.14);
}

.warning-box p,
.success-box p {
    color: inherit;
}

/* ==========================================================================
   FORMULA / STEPS / CONTENT BLOCKS
   ========================================================================== */

.formula-box {
    margin: 20px 0;
    padding: 24px;
    text-align: center;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(0, 82, 204, 0.14);
}

.formula-box p {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
}

.subtle-formula {
    background: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.step-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    background: var(--white);
}

.step-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 12px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.mini-box,
.info-panel {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    background: var(--white);
}

.benefits-limitations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* ==========================================================================
   RELATED CALCULATORS
   ========================================================================== */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: var(--transition);
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.related-card h3 {
    color: var(--text-main);
    margin-bottom: 8px;
}

.related-card p {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.related-card span {
    color: var(--primary-blue);
    font-weight: 700;
}

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

.faq-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    width: 100%;
    border: none;
    background: var(--white);
    color: var(--text-main);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8fbff;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fcfdff;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-card {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 36px 30px;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.cta-card h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.93);
    max-width: 760px;
    margin: 0 auto 22px;
}

.cta-actions {
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .mini-grid,
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .calculator-wrapper,
    .steps-grid,
    .benefits-limitations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 36px 0;
    }

    .hero {
        padding: 26px 0 56px;
    }

    .section-card,
    .calculator-card,
    .results-card,
    .cta-card {
        padding: 24px;
    }

    .form-grid,
    .result-grid,
    .mini-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .button-row,
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .card-header {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 14px;
    }

    .breadcrumb {
        font-size: 0.84rem;
    }

    .sample-values {
        align-items: stretch;
    }

    .sample-btn {
        width: 100%;
        border-radius: 12px;
    }

    .primary-result h3 {
        font-size: 2.2rem;
    }

    .formula-box p {
        font-size: 1.08rem;
    }
}   