/* ================================
   GLOBAL RESET & BASE STYLE
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #333;
  padding: 20px;
  line-height: 1.6;
}

/* ================================
   MAIN CONTAINER
================================ */
.container {
  max-width: 620px;
  margin: auto;
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* ================================
   HEADINGS
================================ */
h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 6px;
  color: #111;
}

h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 14px;
  color: #1f2937;
}

/* ================================
   FORM LABELS
================================ */
label {
  display: block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
}

/* ================================
   INPUTS & SELECT
================================ */
input[type="number"],
select {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

/* Focus State */
input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ================================
   TENURE ROW
================================ */
.tenure-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.tenure-row input {
  flex: 1;
}

.tenure-row select {
  width: 42%;
}

/* ================================
   BUTTONS (GLOBAL)
================================ */
button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              background 0.25s ease;
}

button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

button:active {
  transform: scale(0.97);
}

/* ================================
   RESULT SECTION
================================ */
.result {
  margin-top: 32px;
  padding: 22px;
  border-radius: 14px;
  background: #ecfdf5;
  text-align: center;
}

/* Result Boxes */
.result-box {
  background: #ffffff;
  margin: 10px auto;
  padding: 14px;
  width: 92%;
  font-size: 14.5px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.result-box strong {
  color: #111827;
}

/* ================================
   CHART
================================ */
canvas {
  margin-top: 26px;
  max-width: 100%;
}

/* ================================
   DOWNLOAD PDF BUTTON
================================ */
#downloadPDF {
  background: #2563eb;
}

#downloadPDF:hover {
  background: #1e40af;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ================================
   SHARE PDF BUTTON
================================ */
#sharePDF {
  background: #16a34a;
  margin-top: 16px;
}

#sharePDF:hover {
  background: #15803d;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

/* ================================
   WHY SECTION
================================ */
.why-section {
  margin-top: 40px;
  padding: 22px;
  border-radius: 14px;
  background: #f1f5f9;
}

.why-section p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 12px;
}

/* ================================
   PDF EXPORT SAFETY
================================ */
@media print {
  body {
    background: #ffffff;
  }

  button {
    display: none !important;
  }
}

/* ================================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .container {
    padding: 22px;
  }

  h1 {
    font-size: 22px;
  }

  .tenure-row {
    flex-direction: column;
  }

  .tenure-row select {
    width: 100%;
  }

  button {
    font-size: 15px;
    padding: 13px;
  }
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #ccc;
  margin-bottom: 10px;
}
.faq-question {
  cursor: pointer;
  padding: 15px;
  font-weight: bold;
  background-color: #f7f7f7;
  transition: background-color 0.3s;
}
.faq-question:hover {
  background-color: #eaeaea;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 15px;
  background-color: #fafafa;
}
.faq-answer p {
  margin: 10px 0;
}
