.mortgage-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 100vh; /* full screen fit */
}

/* Main container */
.mortgage-box {
  display: flex;
  max-width: 1100px;
  width: 100%;
  height: 90vh; /* 🔥 fit inside screen */
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(138, 92, 246, 0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

label{
    color: #4811eb;
}


/* FORM */
.form {
  flex: 1;
  padding: 30px;
  background: white;
  overflow-y: auto;
}

.form h1 {
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280; /* soft gray */
  letter-spacing: 0.3px;
}

.input-group input,
.input-group select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* BUTTON */
.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* RESULTS */
.results {
  flex: 1;
  background: #0f172a;
  color: white;
  padding: 30px;
  overflow-y: auto;
}

.big-result {
  font-size: 40px;
  color: #a78bfa;
  margin: 20px 0;
}

.result-breakdown p {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

hr {
  margin: 20px 0;
  border-color: rgba(255,255,255,0.2);
}

/* Down payment toggle */
.dp-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.dp-toggle button {
  flex: 1;
  padding: 8px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 6px;
}

.dp-toggle button.active {
  background: #7c3aed;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mortgage-box {
    flex-direction: column;
    height: auto; /* 🔥 important */
  }
}