/* Housing support calculator widget (blog / embedded HTML) */

/* ---------- Calculator Container ---------- */
.makeen-calc-container {
  max-width: 580px;
  margin: 30px auto;
  background: linear-gradient(145deg, #f8fffe 0%, #eef7f6 100%);
  border: 1px solid #d0e8e5;
  border-radius: 16px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 4px 24px rgba(0, 102, 102, 0.08);
}

/* ---------- Header ---------- */
.calc-header {
  background: linear-gradient(135deg, #006666 0%, #004d4d 100%);
  color: #fff;
  padding: 22px 28px;
  text-align: center;
}
.calc-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.calc-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
  color: #d4eeee;
}

/* ---------- Body ---------- */
.calc-body {
  padding: 28px;
}

/* ---------- Form ---------- */
.calc-body .form-group {
  margin-bottom: 20px;
}
.calc-body .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a3a3a;
  margin-bottom: 8px;
}
.calc-body .form-group input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 1.5px solid #c2d9d6;
  border-radius: 10px;
  background: #fff;
  color: #1a3a3a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.calc-body .form-group input:focus {
  border-color: #006666;
  box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.12);
}
.calc-body .form-group input::placeholder {
  color: #98b5b1;
}

/* ---------- Button ---------- */
.calc-btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #006666 0%, #008080 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 102, 0.28);
}
.calc-btn:active {
  transform: translateY(0);
}

/* ---------- Result Area ---------- */
#resultArea {
  display: none;
  margin-top: 24px;
  animation: fadeInCalc 0.4s ease;
}
@keyframes fadeInCalc {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-title {
  font-size: 14px;
  font-weight: 600;
  color: #4a6e6e;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Result Cards ---------- */
.result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.card-package {
  background: #e6f2f0;
  border-left: 4px solid #006666;
}
.card-monthly {
  background: #fff8e6;
  border-left: 4px solid #d4a017;
}
.card-label {
  font-size: 13px;
  color: #2c4f4f;
  flex: 1;
  padding-right: 12px;
}
.card-value {
  font-size: 18px;
  font-weight: 800;
  color: #006666;
  white-space: nowrap;
}
.value-accent {
  color: #b8860b;
}

/* ---------- Not-eligible state ---------- */
.result-card.not-eligible {
  background: #fef2f2;
  border-left-color: #c0392b;
}
.result-card.not-eligible .card-value {
  color: #c0392b;
  font-size: 14px;
}

/* ---------- Disclaimer & Link ---------- */
.disclaimer-calc {
  font-size: 12px;
  color: #6e8a87;
  margin-top: 16px;
  line-height: 1.6;
}
.brand-link-calc {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #006666;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
}
.brand-link-calc:hover {
  border-bottom-color: #006666;
}

/* ---------- Error state ---------- */
.calc-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .calc-body { padding: 20px; }
  .result-card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .card-value { font-size: 16px; }
}
