/* ===============================
   THEME VARIABLES
================================= */
:root {
    --primary-color: #0B2C3D;
    --secondary-color: #1F4E79;
    --accent-color: #C9A24D;
    --bg-light: #F8FAFC;
    --text-dark: #1F2937;
    --border-color: #E5E7EB;
}

/* ===============================
   CALCULATOR PAGE BANNER
   (Matched with Contact Banner)
================================= */
.calculator-banner {
  background: #e6f4fa;
  padding: 40px 0 36px;   /* Same height as contact */
  text-align: center;
  position: relative;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
}

.calculator-banner h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.calculator-banner p {
  font-size: 14px;
  color: #6b7280;
}

.calculator-banner a {
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
}

.calculator-banner a:hover {
  color: var(--accent-color);
}

/* ===============================
   MAIN LAYOUT
================================= */
.calculator-wrapper {
    padding: 70px 0;
    background: #ffffff;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

/* ===============================
   INPUT PANEL
================================= */
.input-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-card {
    background: #ffffff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: 0.3s ease;
    position: relative;
}

.input-card:hover {
    box-shadow: 0 8px 25px rgba(11, 44, 61, 0.05);
}

.input-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-color);
    transition: 0.3s ease;
}

.input-card:hover::before {
    width: 100%;
}

.input-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* Input Box with Rupee */
.input-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.input-box .rupee {
    padding: 10px 12px;
    background: var(--bg-light);
    font-weight: 600;
}

.input-box input {
    border: none;
    padding: 10px;
    flex: 1;
    outline: none;
}

/* Normal Inputs */
.input-card input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ===============================
   SLIDERS
================================= */
input[type="range"] {
    width: 100%;
    appearance: none;
    height: 6px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    margin-bottom: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-color);
}

/* Slider Ticks */
.ticks {
    position: relative;
    height: 24px;
    margin-top: 10px;
}

.ticks span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s ease;
}

.ticks span:hover {
    color: var(--accent-color);
}

.ticks span.active {
    color: var(--accent-color);
    font-weight: 600;
}


/* ===============================
   RESULT PANEL
================================= */
.result-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 8px 25px rgba(11, 44, 61, 0.06);
}

.result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-color);
    transition: 0.3s ease;
}

.result-card:hover::before {
    width: 100%;
}

.result-card h3,
.result-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.result-card p {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===============================
   CHART
================================= */
.chart-card canvas {
    max-width: 250px;
    margin: 20px auto;
    display: block;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    font-weight: 500;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-item {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 5px;
    border-radius: 3px;
}

.legend-item.invested {
    background: var(--accent-color);
}

.legend-item.growth {
    background: var(--primary-color);
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calculator-banner h1 {
        font-size: 32px;
    }
}
.slider-tooltip {
    position: absolute;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}
.result-card {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
