div.crm-section {
  margin-bottom: 5px !important;
}

div.label > label {
  white-space: normal !important;
  line-height: 1.3 !important;
}

#crm-container .crm-section .label, .crm-section .label {
  width: 40% !important;
  margin-right: 20px !important;
}

#crm-container .crm-section .content, .crm-section .content{
  margin-left: 40% !important;
}

#content-area .view-content, #content-area .content {
    padding: 0 10px 0 20px !important;
}

#crm-container .crm-section .label, .crm-section .label {
  margin-right: 0px !important;
}

input[type="radio"], input[type="checkbox"] {
  margin: 4px 4px 0 0 !important;
}

select#addressResults_Primary, select#addressResults_3{
  overflow-y: auto !important;
  margin-bottom: 15px !important;
}

h1.page-header {
  margin: 20px 0 20px 0 !important;
}

/*** Hack for Cambridge event starts *****/
#Register > div.crm-event-id-118 > fieldset > div#your-profile-wrapper > div > div.crm-section > div.content, #Register > div.crm-event-id-118 #editrow-custom_293 > div.content,  #Register div.crm-section > div.content{
  margin-left: 0px !important;
}
#Register div.crm-section > div.label > label {
  font-size: 14px !important;
}
/*** Hack for Cambridge event ends *****/

#priceset > div.crm-section > div.content {
  margin-left: 40% !important;
}

#Register div.cividiscount-section > div.content {
  margin-left: 40% !important;
}
table.cividiscount-form-section .label:empty {
  /* override for empty label in button row */
  display: inline;
}
/** Custom media queries to support event layout in mobile devices - starts here**/
@media only screen and (max-width: 768px) {
  input[type="text"] {
    width: 264px !important;
  }
}
@media only screen and (max-width: 640px) {
  h1.page-header {
    font-size: 24px !important;
  }
}
@media only screen and (max-width: 469px) {
  #Register > div.crm-event-id-118 > fieldset > div#your-profile-wrapper > div > div.crm-section > div.content, #Register > div.crm-event-id-118 #editrow-custom_293 > div.content, #Register div.crm-section > div.content {
    margin-left: 40% !important;
  }
}
@media only screen and (max-width: 375px) {
  h1.page-header {
    font-size: 22px !important;
  }
  input[type="text"] {
    width: 200px !important;
  }
}
@media only screen and (max-width: 320px) {
  div.main-wrapper {
    min-width: 320px !important;
  }
}
/** Custom media queries to support event layout in mobile devices - ends here**/

/* Custom CSS for Invoice Quick search in menu bar */
#crm-isearch {
  padding: 1px 0 1px 2px;
  background-color: transparent !important;
}
#civicrm-menu #crm-isearch > a {
  padding: 2px 0 0 2px;
}

#civicrm-menu #crm-isearch > ul {
  z-index: 200001 !important;
}

input#crm-isearch-input {
  box-sizing: border-box;
  background-color: #eaeaea;
  font-size: 13px;
  border: 1px solid #ccc;
  margin: 4px 4px 0;
  padding: 2px 8px;
  height: calc(40px - 10px);
  width: 30px;
  transition: width .5s .05s, background-color .3s .05s;
  color: black;
}
a.highlighted #crm-isearch-input,
#crm-isearch-input:focus,
#crm-isearch-input.has-user-input {
  background-color: white;
  width: 130px;
}
input#crm-isearch-input:-ms-input-placeholder {
  font-family: 'FontAwesome', sans-serif;
}
input#crm-isearch-input::-webkit-input-placeholder {
  font-family: 'FontAwesome', sans-serif;
}
input#crm-isearch-input::-moz-placeholder {
  font-family: 'FontAwesome', sans-serif;
}
input#crm-isearch-input::placeholder {
  font-family: 'FontAwesome', sans-serif;
}

ul.crm-invoiceSearch-results {
  z-index: 100001;
}
ul.crm-invoiceSearch-results.ui-state-disabled {
  opacity: .8;
}
.recaptcha-section .form-layout-compressed {
  width: 100% !important;
}
.recaptcha-section .g-recaptcha {
  margin-left: 37%;
}
.crm-public #crm-submit-buttons .crm-button {
  margin-left: 39.5%;
}
