/* ------------------------------
   GLOBAL THEME
--------------------------------*/
:root {
  --primary-color: #ff4b4b;
  --secondary-color: #2b2b2b;
  --accent-color: #ff7b7b;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --border-color: #eaeaea;
  --text-color: #222;
  --text-muted: #666;
  --radius: 12px;
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s ease;
  --max-width: 1200px;
}

/* ------------------------------
   BODY & BACKGROUND
--------------------------------*/
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-color);
  background: linear-gradient(135deg, #f8fbff 0%, #eef3ff 50%, #ffffff 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* ✅ HERO SECTION (Adjusted Spacing for Tool Pages) */
.hero {
  text-align: center;
  padding: 40px 20px 20px; /* reduced top padding */
  background: linear-gradient(to bottom, #ffffff, #f9f9f9);
  margin-top: 0;
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 0;
}

.hero p {
  font-size: 1rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}


/* ------------------------------
   MAIN LAYOUT
--------------------------------*/
main {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.calculator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ------------------------------
   CALCULATION CARD
--------------------------------*/
.calc-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 35px 30px 35px;
  width: 320px;
  transition: var(--transition);
}

.calc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.calc-card label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary-color);
}

.calc-card input,
.calc-card select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.calc-card input:focus,
.calc-card select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.15);
}

/* Button */
button {
  margin-top: 22px;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

button:hover {
  background: #e33b3b;
  transform: translateY(-1px);
}

/* ------------------------------
   SUMMARY CARD
--------------------------------*/
.summary-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px 20px 30px;
  width: 320px;
  transition: var(--transition);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.summary-card h2 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.summary-card p {
  font-size: 1rem;
  margin: 8px 0;
  color: var(--secondary-color);
}

.summary-card span {
  font-weight: 700;
  color: var(--primary-color);
}

/* ------------------------------
   RESPONSIVE DESIGN
--------------------------------*/
@media (max-width: 768px) {

  .calc-card,
  .summary-card {
    width: 100%;
    max-width: 360px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.95rem;
  }
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
  background: var(--bg-white);
  padding: 25px 5%;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 40px;
}