body.profile div.ui-widget-header {
  background:none;
  border:none;
  /*margin-bottom:50px;*/
}

body.profile div.ui-dialog {
  overflow:visible !important;
  padding-bottom:70px;
  border:4px solid #000;
  margin-top:60px;
}

body.profile div.ui-widget-content {
  -moz-border-radius:30px;
  -webkit-border-radius:30px;
}

body.profile span.ui-icon {
  background:url("../images/close.png") no-repeat top left;
  width:33px;
  height:33px;
  border:0;
  
}

body.profile a.ui-dialog-titlebar-close {
  position:absolute;
  top:-5px;
  right:-5px;
}

body.profile a.ui-state-hover {
  background:none;
  border:0;
  top:-4px;
  right:-4px;
}

div#referral_header {
  background:url("../images/referral_box_bottom.png") no-repeat bottom left;
  position:absolute;
  min-height:161px;
  padding-right:145px;
  padding-bottom:58px;
  width:370px;
  left:-50px;
  bottom:80%;
}

div#referral_header p {
  background:url("../images/referral_box_top.png") no-repeat top left;
  width:350px;
  padding-top:2.75em;
  position:relative;
  z-index:1;
  padding-left:15px;
  padding-right:15px;
  padding-bottom:0.5em;
  font-family:vardana;
  font-style:normal;
  color:#000;
  letter-spacing:0.05em;
  word-spacing:0.5em;
  font-size:1.15em;
  line-height:1.3em;
}

div#referral_header h3 {
  position:relative;
  top:1.75em;
  z-index:2;
  padding-left:15px;
  font-family:"marker felt", "comic sans ms", cursive;
  color:#000;
  font-size:1.5em;
  font-weight:normal;
  font-style:italic;
}

div#referral_form h3 {
  font-family:"marker felt", "comic sans ms", cursive;
  color:#000;
  font-size:1.5em;
  font-weight:normal;
  font-style:italic;
  margin-bottom:10px;
}

div#referral_form p {
  font-family:vardana;
  font-style:normal;
  color:#000;
  letter-spacing:0.05em;
  word-spacing:0.5em;
  font-size:1.15em;
}

form.referral_form div.field_wrapper {
  width:46%;
  padding:2%;
  float:left;
}

form.referral_form div.field_wrapper input, form.referral_form div.field_wrapper.wide textarea {
  width:100%;
  background:none;
  border:1px solid #ccc;
  padding:3px;
  -moz-border-radius:3px;
  -webkit-border-radius:3px;
  -moz-box-shadow:inset 1px 1px 3px #ccc;
  color:#788d3a;
  text-transform:capitalize;
}

form.referral_form div.field_wrapper.wide {
  width:96%;
}

form.referral_form div.field_wrapper.wide textarea {
  height:5em;
}

input.blue_submit {
  position:absolute;
  bottom:20px;
  left:120px;
  border:none;
  font-family:arial, sans-serif;
  font-size:2em;
  text-shadow:#646464 1px 1px 2px;
}

a#no_thanks {
  position:absolute;
  bottom:20px;
  right:120px;
  display:block;
  color:#788D3A;
}

a#no_thanks:hover {
  text-decoration:underline;
}

div#referral_form fieldset {
  border-bottom:1px solid #ccc;
  padding-bottom:1em;
}