/* Rent vs. Own Calculator: Page-Specific Styles */
/* ================================
   General Page Setup
================================= */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

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;
}

/* ================================
   Layout & Containers
================================= */
.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 {
  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;
}

/* ================================
   Form Elements
================================= */
h2 {
  text-align: center;
  color: #003366;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

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

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

/* ================================
   Result Box
================================= */
#results {
  margin-top: 20px;
  background: #eef9ff;
  padding: 10px;
  border-left: 4px solid #099FDB;
}

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

a.home-link {
  margin-top: 20px;
  display: inline-block;
  color: #099FDB;
  text-decoration: none;
  font-weight: bold;
}

/* ================================
   Responsive Adjustments
================================= */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }

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

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

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