/* Global reset */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header + Loan Tabs (Blue Ribbon) */
header, .loan-tabs {
  flex: 0 0 10%;
  width: 100%;
  max-width: 1200px;
  background: #0077b6;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.loan-tabs {
  display: flex;
  justify-content: center;
  background: #023e8a;
  padding: 0.5rem;
}
.loan-tabs button {
  background: #0096c7;
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.loan-tabs button:hover {
  background: #00b4d8;
}

/* Banner Section */
.banner-section {
  flex: 0 0 35%;
  width: 95%;
  max-width: 1200px;
  margin: 1rem auto;
  text-align: center;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  z-index: 1; /* lower than form */
}
.banner-carousel img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}
.banner-carousel img.active {
  display: block;
  animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Form Section */
.form-section {
  flex: 1 0 55%;
  width: 95%;
  max-width: 1200px;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 5;
  height: 55vh;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Vertical field arrangement */
.form-section form,
.form-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input, select, textarea styling */
.form-section input[type="text"],
.form-section input[type="number"],
.form-section input[type="email"],
.form-section select,
.form-section textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.05rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Labels */
.form-section label {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

/* Scrollbar styling */
.form-section::-webkit-scrollbar {
  width: 10px;
}
.form-section::-webkit-scrollbar-thumb {
  background: #0077b6;
  border-radius: 5px;
}
.form-section::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background: #eee;
  border-radius: 10px;
  height: 20px;
  margin-bottom: 1rem;
}
.progress-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  transition: width 0.8s ease;
}

/* Dashboard Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
table th, table td {
  padding: 0.75rem;
  text-align: center;
  border: 1px solid #ddd;
}
table th {
  background: #0077b6;
  color: #fff;
}

/* Status Badges */
td.status {
  font-weight: bold;
  padding: 0.5rem;
  border-radius: 5px;
}
td.status.approved { background: #d4edda; color: #155724; }
td.status.rejected { background: #f8d7da; color: #721c24; }
td.status.pending  { background: #fff3cd; color: #856404; }
td.status.submitted{ background: #cce5ff; color: #004085; }

/* Buttons */
button, a {
  background: #0077b6;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  cursor: pointer;
  z-index: 20;
  margin-top: 1rem;
}
button:hover, a:hover {
  background: #00b4d8;
}

/* --- Consent Section Fix --- */
#page4 {
  position: relative;
  z-index: 10;
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
#page4 label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  cursor: pointer;
}
#page4 input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
  margin-right: 0.5rem; /* extra horizontal space before text */
  position: relative;
  z-index: 20;
}
#page4 a {
  background: #0077b6;
  color: #fff;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  z-index: 20;
  margin-left: 0.5rem; /* ensures link doesn’t touch checkbox */
}
#page4 a:hover {
  background: #00b4d8;
}
#finalBtn {
  background: #0077b6;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  z-index: 20;
}
#finalBtn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header, .loan-tabs { flex: 0 0 12%; }
  .banner-section { flex: 0 0 30%; }
  .form-section { flex: 1 0 58%; padding: 1rem; font-size: 1rem; height: 60vh; }
  .banner-carousel img { max-height: 200px; }
}
/*customer dashboard badges*/
.badge { padding: 5px 10px; border-radius: 5px; font-weight: bold; color: #fff; }
.badge.approved { background-color: #28a745; }
.badge.pending { background-color: #ffc107; color: #000; }
.badge.rejected { background-color: #dc3545; }
.badge.submitted { background-color: #17a2b8; }

.progress-container { background: #eee; width: 120px; border-radius: 5px; margin: auto; }
.progress-bar { background: #007bff; height: 10px; border-radius: 5px; transition: width 0.8s ease; }

 