.hidden { display: none !important; }

/* Form Page Styles */
.form-page {
  background: white;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 82, 204, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-header {
  padding: 32px 40px;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-back-button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-back-button:hover {
  background: white;
  color: #0052cc;
}

.form-header h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }

.form-header-actions { display: flex; gap: 12px; }

.form-content-grid {
  padding: 40px;
  display: grid;
  gap: 32px;
}

.form-section {
  display: grid;
  gap: 16px;
}

.form-section h4 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.input-group input, .input-group select {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.2s ease;
  font-family: inherit;
}

.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: #0052cc;
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

@media (max-width: 1000px) {
  .input-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .input-row { grid-template-columns: 1fr; }
  .form-header { padding: 24px; flex-direction: column; gap: 20px; text-align: center; }
  .form-header-left { flex-direction: column; }
}

/* Stat Cards - Rectangular Layout */
.refinancing-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.08);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 140px; /* Force rectangular form */
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 82, 204, 0.15);
  border-color: #0052cc;
}

.stat-card.active {
  background: #0052cc;
  border-color: #0052cc;
  color: white;
}

.stat-card.active .label, .stat-card.active .count, .stat-card.active h3 {
  color: white;
}

.stat-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card .count {
  font-size: 36px;
  font-weight: 800;
  color: #0052cc;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.stat-card.active .label {
  color: rgba(255, 255, 255, 0.7);
}
.primary-button { background: #0052cc; color: white; border: none; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,82,204,0.12); transition: transform 0.2s ease, background 0.2s ease; }
.primary-button:hover { transform: translateY(-2px); background: #0066ff; }
.leads-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.secondary-button { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 18px; cursor: pointer; font-weight: 700; transition: all 0.2s ease; }
.secondary-button:hover { background: #e2e8f0; }
.action-button { background: transparent; border: 1px solid #cbd5e1; border-radius: 10px; color: #0f172a; padding: 8px 12px; cursor: pointer; font-weight: 700; }
.action-button:hover { background: #eff6ff; border-color: #93c5fd; }
.table-actions { display: flex; gap: 8px; justify-content: center; }

.leads-container { background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%); border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,82,204,0.15); border: 2px solid #d4e4ff; }
.leads-header { margin-bottom: 28px; border-bottom: 2px solid #d4e4ff; padding-bottom: 16px; }
.leads-header h3 { margin: 0; color: #0052cc; font-size: 20px; font-weight: 700; }
.leads-table { width: 100%; border-collapse: collapse; }
.leads-table thead { background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%); color: white; }
.leads-table th { padding: 16px; text-align: left; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.leads-table td { padding: 16px; border-bottom: 1px solid #e0e7f1; color: #1a2a3a; font-weight: 500; }
.leads-table tbody tr:hover { background: #f0f7ff; }
.empty-state { text-align: center; padding: 60px 20px; color: #6b7280; }
.empty-state p { font-size: 16px; margin: 0; }
