/* ==========================
   🔷 CSS Variables (from Homepage)
========================== */
:root {
  --primary: #f97316;
  --secondary: #f43f5e;
  --text-dark: #1e293b;
  --brand-dark: #1e3a8a;
  --light-bg: #f1f5f9;
  --story-bg: #ffedd5;
  --story-section-bg: #fff7ed;
}

/* ==========================
   🔷 Base Reset
========================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #fff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================
   🔷 Header & Navbar
========================== */
.header {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 10px 0;
  border-radius: 0 0 20px 20px;
}

.container.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 25px;
  font-weight: bold;
}

.navbar .logo a {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffeb3b;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

.nav-links .btn-primary,
.nav-links .btn-secondary {
  margin-left: 12px;
}

/* ==========================
   🔷 Buttons
========================== */
.btn-primary {
  background-color: var(--brand-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: white;
  color: var(--brand-dark);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ==========================
   🔷 SIP Calculator Page Layout
========================== */
.calculator-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.left-panel, .right-panel {
  width: 100%;
  max-width: 480px;
  margin: 0.5rem 0;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  background-color: #f9f9f9;
}

.right-panel {
  background-color: #fff;
  text-align: center;
}

.sip-title {
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.left-panel p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  text-align: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.input-group label {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #333;
  font-size: 0.9rem;
}

.input-group-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.left-panel input[type="number"],
.left-panel input[type="range"] {
  width: 100%;
  padding: 0.6rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.left-panel input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #f1f5f9;
  height: 6px;
  border-radius: 3px;
}

.left-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--brand-dark);
  border-radius: 50%;
  cursor: pointer;
}

.left-panel input[type="range"]:focus {
  outline: none;
  background: var(--primary);
}

.left-panel button {
  background-color: var(--brand-dark);
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  min-height: 44px;
  margin-top: 0.5rem;
}

.left-panel button:hover {
  background-color: #0d3a6a;
}

.reset-btn {
  background-color: var(--secondary);
  color: white;
}

.reset-btn:hover {
  background-color: #d32f4e;
}

.chart-container {
  width: 100%;
  margin: 1rem auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.result-heading {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
}

.results p {
  font-size: 0.9rem;
  color: #555;
  margin: 0.5rem 0;
}

.results p span {
  font-weight: bold;
  color: var(--brand-dark);
}

/* ==========================
   🔷 Footer (Same as Homepage)
========================== */
footer {
  background-color: var(--brand-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  border-radius: 20px 20px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-follow,
.footer-links {
  width: 45%;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: var(--primary);
}

.footer-disclaimer,
.footer-copyright {
  font-size: 14px;
  margin-top: 10px;
}


/* ==========================
   🔷 Media Queries
========================== */
@media (max-width: 768px) {
  .container.navbar {
    padding: 0px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 20px 0;
  }

  .hamburger {
    display: block;
  }

  .calculator-page {
    flex-direction: column;
    padding: 1rem;
  }

  .left-panel,
  .right-panel {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .sip-title {
    font-size: 1.6rem;
  }

  .input-group label,
  .left-panel input,
  .left-panel button,
  .results p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sip-title {
    font-size: 1.3rem;
  }

  .left-panel input,
  .left-panel button,
  .results p {
    font-size: 0.8rem;
  }

  .left-panel button {
    padding: 0.5rem;
    min-height: 40px;
  }

  .result-heading {
    font-size: 1.1rem;
  }
}

