* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  padding: 60px 20px;
  background-color: #f1f7f2;
  color: #1d3328;
}

/* heading */

.title {
  text-align: center;
  font-size: 36px;
  color: #176b45;
  margin-bottom: 12px;
}

.title-text {
  text-align: center;
  font-size: 15px;
  color: #718078;
  margin-bottom: 40px;
}

/* Salary */

.label {
  display: block;
  max-width: 450px;
  margin: 0 auto 10px;
  font-weight: bold;
  font-size: 14px;
}

.salary {
  display: block;
  width: 100%;
  max-width: 450px;
  margin: 0 auto 20px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.salary:focus {
  outline: 1px solid #238653;
  border-color: #238653;
}

/* Check */

.check {
  display: block;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  padding: 15px;
  background-color: #176b45;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.check:hover {
  background-color: #104b32;
}

/* Popup */

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 25px;
  background-color: white;
  border-radius: 10px;
}

.popup-content h2 {
  color: #176b45;
  font-size: 24px;
  margin-bottom: 20px;
  padding-right: 35px;
}

/* Close button */

.close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: #e5f0e8;
  color: #176b45;
  font-size: 23px;
  cursor: pointer;
}

.close-button:hover {
  background-color: #176b45;
  color: white;
}

/* Result */

.result-info {
  padding: 15px;
  margin-bottom: 10px;
  background-color: #f3f7f4;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
}

/* budget */

.budget-card {
  padding: 20px;
  margin: 20px 0;
  background-color: #176b45;
  color: white;
  border-radius: 8px;
  font-size: 20px;
}

.result-intro {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* LGA headings */

.lga-title {
  margin: 25px 0 12px;
  padding: 10px;
  background-color: #e5f0e8;
  color: #176b45;
  border-left: 4px solid #238653;
  font-size: 18px;
  text-transform: capitalize;
}

/* Apartment */

.apartment-card {
  padding: 15px;
  margin-bottom: 12px;
  background-color: #f8faf8;
  border: 1px solid #ddd;
  border-left: 4px solid #238653;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.apartment-name {
  display: block;
  margin-bottom: 8px;
  color: #176b45;
  font-size: 16px;
  text-transform: capitalize;
}

.result-note {
  margin-top: 20px;
  color: #718078;
  font-size: 12px;
  line-height: 1.5;
}

/* Mobile design */

@media (max-width: 600px) {
  body {
    padding: 40px 15px;
  }

  .title {
    font-size: 28px;
  }

  .title-text {
    font-size: 14px;
  }

  .popup-content {
    padding: 20px 15px;
  }

  .popup-content h2 {
    font-size: 20px;
  }

  .budget-card {
    font-size: 17px;
  }

  .lga-title {
    font-size: 16px;
  }
}
