/* Account Details CSS */

/*********** FORM STYLES *****************/

form label span.state_state,
form label span.state_divider,
form label span.state_province,
form label span.zip_zip,
form label span.zip_divider,
form label span.zip_postal {
  display: inline;
}

form {
  margin-bottom: 12px;
}

.account_details h3 {
  border-bottom: solid 1px #dadada;
  padding: 6px 0;
  margin-bottom: 6px;
}

.account_details input[type="checkbox"] {
  width: auto;
}

.basic-contact-extra-fields-row label {
    display: inline-block;
    width: 48%;
}

input:not(.button):not([type="radio"]):not([type="checkbox"]) {
  background-clip: padding-box;
  background-color: #fff !important;
  border-color: #E8E8E8;
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
  box-sizing: border-box;
  color: #495057;
  display: block;
  font-size: 14px;
  line-height: 21px;
  padding: 6px 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
}

label.phone-label,
  label.quarter-width {
    width: 22%;
  }

  form.content_block {
    display: flex; 
    flex-wrap: wrap
  }

  label {
    width: 48%
  }

  form.content_block hr {
    width: 100%;
    color: transparent;
    background: transparent;
    border-color: transparent;
  }

  h3 {
    width: 100%;
  }

  p.button_box {
    display: block;
    width: 100%;
  }

/*********** PHOTO *****************/

h3.current_photo_header {
  text-align: center;
  padding-bottom: 10px;
}

.current_photo {
  float: left;
}

form#photo {
  overflow: hidden;
}


.new_photo>label {
  padding: 30px 0;
  text-align: center;
  width: auto
}

form#photo-insurance,
form#photo-drivers-license {
  display: flex;
  justify-content: space-between;
}

.insurance-card-photos .new_photo>label,
.drivers-license-photo .new_photo>label {
  padding:10px 0;
}

.new_photo>label strong {
  display: none;
}

.new_photo button {
  display: block;
  margin: 0 auto;
}

.photo-notes {
  font-size: 90%;
  font-style: italic;
  margin-bottom: 50px;
  text-align: center;
}

.image_wrapper {
  background-color: #cccccc;
  border-radius: 50%;
  border: solid 6px #4abfba9c;
  height: 200px;
  vertical-align: middle;
  overflow: hidden;
  width: 200px;
}

.image_wrapper_card {
  background-color: #FFF;
  border: solid 3px #4abfba9c;
  height: 100px;
  vertical-align: middle;
  overflow: hidden;
  width: 100px;
}

img.pending_photo,
.current_photo img,
.insurance-card-photos img,
.drivers-license-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.insurance-card-photos img,
.drivers-license-photo img {
  object-fit: contain;
}

.current_photo {
  margin-right: 15px;
  display: inline-block;
  vertical-align: top;
  float: none;
}

.new_photo {
  display: inline-block;
  padding-left: 20px;
}

.phone-label>span {
  display: block;
}

.upload-photo-btn {
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  display: block;
}


/*********** CONTACT PREFERENCES *****************/

div.marketing {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
}

div.marketing p{
  width: 400px;
}

div.marketing div {
  max-width: 82px;
}
/*********** INSURANCE *****************/

label.insurance-notes,
label.insurance-notes textarea {
  width: 100%;
}

#insurance input[type=submit] {
  font-size: 12px;
}

.insurance-family-member input {
  display: inline-block;
  width: auto;
  margin-left: 4px;
}

#insurance h3, 
.insurance-card-photos h3,
.drivers-license-photo h3 {
  border-bottom: solid 1px #dadada;
  padding: 6px 0;
  margin-bottom: 6px;
  color:#767561;
}

#insurance label.insurance-two-cols {
	display:inline-block;
	width:calc(50% - 12px);
}
/*********** EMERGENCY CONTACT *****************/
#emergency_contact_details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center
}

.emergency-contact-block {
  background-color: white;
  border-radius: 4px;
  border: solid 1px #e2e2e2;
  box-sizing: border-box;
  justify-content: center;
  margin: 4px 0 12px;
  max-width: 100%;
  min-width: calc(50% - 12px);
  padding: 12px 8px;
}

.emergency-contact-block:nth-child(2n) {
  margin-left: 12px;
}

#emergency_contact_details .button_box {
  display: block;
  width: 100%;
  margin: 8px auto 0;
}


.emergency-contact-block button.edit,
.emergency-contact-block button.remove {
  float: right;
  margin: 3px 5px;
  background: transparent;
  color: #828282;
}

.emergency-contact-block button.edit:before,
.emergency-contact-block button.remove:before {
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font: normal normal normal 20px/1 FontAwesome;
  left: -9px;
  position: absolute;
  text-rendering: auto;
  top: 4px;
  visibility: visible;
  width: 30px;
}

.emergency-contact-block button.edit:hover {
  color: #70ba44;
}

.emergency-contact-block button.edit:before {
  content: '\f044';
}

.emergency-contact-block button.remove:hover {
  color: #df5400;
}

.emergency-contact-block button.remove:before {
  content: '\f1f8';
}

#remove_relationship_form,
#add_relationship_form,
#edit_relationship_form {
  padding: 15px;
}

#edit_relationship_form .relationship_name span,
#edit_relationship_form .relationship_name div {
  display: inline-block;
}

#edit_relationship_form .relationship_name div {
  padding-left: 10px;
}

/*********** RESPONSIVE *****************/

@media screen and (max-width: 900px) {
  .page-account-details table {
    margin: 0;
  }

  form label {
    padding: 4px 0 8px;
  }

  table,
  tbody,
  tr,
  td {
    width: 100%;
    display: block;
  }

  .emergency-contact-block label span {
    font-weight: bold
  }

  form label {
    width: 100%;
 }

 label.phone-label, label.quarter-width {
   width: 100%;
 }

 .emergency-contact-block {
     width: 100%;
 }

 .emergency-contact-block:nth-child(2n) {
     margin-left: 0px;
 }

 .current_photo,
 .new_photo {
   text-align: center;
   width: 100%;
 }

 .image_wrapper {
   margin: 0 auto
 }

 div.marketing {
 justify-content: space-evenly;
}

 div.marketing p{
   width: 100%;
 }

 div.marketing div {
   max-width: 82px;
 }

}

@media screen and (max-width: 500px) {
  .new_photo {
    display: block;
    padding-left: 0;
    text-align: center;
  }

  .page-account-details .image_wrapper {
    width: 200px;
    display: block;
    margin: 0 auto;
  }

  .page-account-details .current_photo {
    position: relative;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .emergency-contact-block {
    min-width: 100%
  }

  .emergency-contact-block:nth-child(2n) {
    margin-left: 0;
  }

  .emergency-contact-block:last-of-type {
    margin-bottom: 0
  }
}