.bodyCarbon {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5)),
    url("https://forward-static.s3.eu-north-1.amazonaws.com/gd_course/gd_course_NHH_2026_group5/icons/icons_background.png");
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  height: 800px;
}

.carbonInfo h1 {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 700;
}

.carbonDescription {
  font-size: 1.15rem;
  line-height: 1.7;
  color: black;
  max-width: 560px;
  margin-bottom: 18px;
}

.buttonCarbon {
  margin-top: 60px;
}

.infoCal h1 {
  font-size: 60px;
  font-family: "Roboto", sans-serif;
}

.type-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.type-btn:hover {
  background: #eef6f6;
}

.type-btn.active {
  background: #0f8b8d;
  color: white;
  border-color: #0f8b8d;
}

.calculatorPanel {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.transportGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
}

.transportCard {
  border: 1px solid #dbe4ea;
  background: #f9fcfd;
  border-radius: 18px;
  padding: 24px 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.transportCard i {
  font-size: 1.8rem;
  color: #0f8b8d;
}

.transportCard:hover {
  transform: translateY(-4px);
  border-color: #0f8b8d;
  background: #f1fbfb;
  box-shadow: 0 10px 24px rgba(15, 139, 141, 0.12);
}

.hidden {
  display: none;
}

/**********************/
.loginWarning {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 128, 110, 0.08);
  color: #0f766e;
  text-align: center;
}

.loginWarning p {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.loginActions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.loginBtn {
  padding: 8px 16px;
  background: teal;
  color: white;
  border-radius: 8px;
  text-decoration: none;
}

.registerBtn {
  padding: 8px 16px;
  border: 1px solid teal;
  color: teal;
  border-radius: 8px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .bodyCarbon {
    flex-direction: column;
    gap: 30px;
    height: auto;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
  }

  .carbonInfo h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .carbonDescription {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 16px;
  }

  .buttonCarbon {
    margin-top: 30px;
  }

  .infoCal h1 {
    font-size: 36px;
  }

  /* --------------Calculator panel---------------- */

  .calculatorPanel {
    padding: 20px;
    border-radius: 18px;
    width: 100%;
    max-width: 420px;
  }

  .transportGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .transportCard {
    padding: 18px 12px;
    min-height: 100px;
    font-size: 0.9rem;
    gap: 8px;
  }

  .transportCard i {
    font-size: 1.4rem;
  }

  /* ---------------- Buttons ---------------- */

  .type-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* ---------------- Login warning ----------------*/

  .loginWarning {
    padding: 12px;
    font-size: 14px;
  }

  .loginActions {
    flex-direction: column;
    gap: 8px;
  }

  .loginBtn,
  .registerBtn {
    width: 100%;
    text-align: center;
  }
}
