/* ===== Modern Colorful Loan Form ===== */
.clx-form {
  max-width: 760px;
  margin: 50px auto;
  padding: 40px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 80, 180, 0.15);
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  color: #333;
  position: relative;
  overflow: hidden;
}

/* Title */
.clx-form h2 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 28px;
  font-weight: 700;
  color: #1a237e;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 2;
}

.clx-form h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0073e6, #00c6ff);
  margin: 12px auto 0;
  border-radius: 4px;
}

/* Form rows (grid layout) */
.clx-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

/* Labels */
.clx-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

/* Inputs & selects */
.clx-form input,
.clx-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #ffffff;
}

.clx-form input:focus,
.clx-form select:focus {
  border-color: #0073e6;
  background: #f0f9ff;
  outline: none;
  box-shadow: 0 0 12px rgba(0, 115, 230, 0.15);
}

/* Submit button */
.clx-form button {
  grid-column: span 2;
  padding: 16px;
  background: linear-gradient(135deg, #0073e6, #00c6ff);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 115, 230, 0.25);
}

.clx-form button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #005bb5, #0099cc);
  box-shadow: 0 8px 20px rgba(0, 90, 180, 0.3);
}

/* Error message */
.clx-error {
  background: #ffebee;
  border: 1px solid #e53935;
  padding: 14px 18px;
  margin: 25px auto;
  border-radius: 10px;
  color: #b71c1c;
  max-width: 720px;
  font-size: 14px;
  font-weight: 500;
}

/* Background accents */
.clx-form::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,115,230,0.2), transparent 70%);
  border-radius: 50%;
}

.clx-form::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,198,255,0.2), transparent 70%);
  border-radius: 50%;
}



/* Responsive */
@media (max-width: 640px) {
  .clx-row {
    grid-template-columns: 1fr;
  }
  .clx-form button {
    grid-column: span 1;
  }
}
