/* Base Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

/* Navigation */
nav {
  background-color: #009fdb;
  padding: 12px 20px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

/* Container Box */
.container {
  max-width: 720px;
  margin: 30px auto;
  background-color: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header Block */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.header i {
  font-size: 40px;
  color: #007bff;
}

.header-title {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  line-height: 1.2;
}

.header-title span {
  display: block;
  color: #003366;
  font-size: 32px;
}

/* Headings */
h2 {
  text-align: center;
  color: #003366;
}

/* Form Elements */
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
}

/* Button */
button {
  margin-top: 15px;
  padding: 10px 24px;
  background-color: #009fdb;
  color: white;
  border: none;
  border-radius: 5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Result Box */
#affordResult {
  margin-top: 20px;
  background-color: #eef9ff;
  padding: 10px;
  border-left: 4px solid #009fdb;
}

/* Home Link */
a.home-link {
  margin-top: 20px;
  display: inline-block;
  color: #009fdb;
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: #f1f1f1;
  margin-top: 40px;
  font-size: 0.9em;
  color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  input {
    width: 100% !important;
    font-size: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .left,
  .right {
    min-width: 100%;
  }
}