/*
 * HTML Defaults
 *
 *
 */

 select.select-hide {
  display: none;
}

label {
  transition: color 200ms ease-out;
}

label a {
  font-size: 100%;
}

input,
textarea {
  font-size: 1.6rem;
}
textarea {
  padding: 1.5rem;
}
fieldset {
  border: 0;
  padding: 0;
}

.form-info {
  font-style: italic;
  color: #1e076a;
}


/* Wrapper of the whole form */

.external-link-symbol {
	background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNTExLjYyNnB4IiBoZWlnaHQ9IjUxMS42MjdweCIgdmlld0JveD0iMCAwIDUxMS42MjYgNTExLjYyNyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjYyNiA1MTEuNjI3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGc+PGc+PHBhdGggZD0iTTM5Mi44NTcsMjkyLjM1NGgtMTguMjc0Yy0yLjY2OSwwLTQuODU5LDAuODU1LTYuNTYzLDIuNTczYy0xLjcxOCwxLjcwOC0yLjU3MywzLjg5Ny0yLjU3Myw2LjU2M3Y5MS4zNjFjMCwxMi41NjMtNC40NywyMy4zMTUtMTMuNDE1LDMyLjI2MmMtOC45NDUsOC45NDUtMTkuNzAxLDEzLjQxNC0zMi4yNjQsMTMuNDE0SDgyLjIyNGMtMTIuNTYyLDAtMjMuMzE3LTQuNDY5LTM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0OEwxOTguNDI0LDMwNC4wNjdjLTEuOTA2LDEuOTAzLTIuODU2LDQuMDkzLTIuODU2LDYuNTYzYzAsMi40NzksMC45NTMsNC42NjgsMi44NTYsNi41NzFsMzIuNTQ4LDMyLjU0NGMxLjkwMywxLjkwMyw0LjA5MywyLjg1Miw2LjU2NywyLjg1MnM0LjY2NS0wLjk0OCw2LjU2Ny0yLjg1MmwxODYuMTQ4LTE4Ni4xNDhsNTAuMjUxLDUwLjI0OGMzLjYxNCwzLjYxNyw3Ljg5OCw1LjQyNiwxMi44NDcsNS40MjZzOS4yMzMtMS44MDksMTIuODUxLTUuNDI2YzMuNjE3LTMuNjE2LDUuNDI0LTcuODk4LDUuNDI0LTEyLjg0N1Y1NC44MThDNTExLjYyNiw0OS44NjYsNTA5LjgxMyw0NS41ODYsNTA2LjE5OSw0MS45NzF6Ii8+PC9nPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48L3N2Zz4=);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.selectify .download {
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMiI+PHBhdGggZD0iTTAgMTAuNTc4aDEwVjEySDB2LTEuNDIyem0xMC02LjM0N0w1IDkuMTU3IDAgNC4yM2gyLjg1MlYwaDQuMjk2djQuMjMxSDEweiIgZmlsbD0iIzAwN0JDNiIgZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsLW9wYWNpdHk9Ii41Ii8+PC9zdmc+);
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}


.contact-banner {
  background-image: url(https://www.kla.com/images/banners/submit-inquiry.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.contact-banner h1 {
  margin: 1.25rem 0;
}

#formDump {
  display: none;
}

#form, #form_inquiry-form,
#form, #form_inquiry-form2,
#form, #form_inquiry-form3 {
  width: 100%;
  margin: 0 auto;
}

#formValidationMessage {
  display: none;
}

#formValidationMessage.active {
  display: block;
}

#reasonForContactingBlock {
  width: 100%;
}

#messageBlock p, .message-block p {
  font-style: italic;
  color: #41007f;
  margin: 0;
}

#messageBlock div, .message-block div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#uploadFilesBlock input {
  border: none !important; /* No border on validation errors */
}

.stylus-checkboxes-block .styled-checkbox-wrapper,
.compound-checkboxes-block .styled-checkbox-wrapper {
  display: flex;
  margin: 0.25rem 0;
}

.prod-checkboxes-block {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-right: 1.5rem;
}

[lang="en"] .instruments-block .styled-checkbox-wrapper {
  padding-bottom: 1rem;
  margin: 0;
}

[lang="en"] .instruments-block .frm_primary_label {
  display: none
}

[lang="en"] .stylus-checkboxes-block { 
  display: inline-flex !important;
  width: 100% !important;
}

/* TODO: Add JS do add/remove [disabled] from the <option> as well */
html:not([lang="en"]) #field_product_interest_inquiry_item_1,
html:not([lang="en"]) #field_product_interest_inquiry_item_2,
html:not([lang="en"]) #field_product_interest_inquiry_item_3,
html:not([lang="en"]) #field_product_interest_inquiry_item_6,
html:not([lang="en"]) #frm_field_101_container .styled-checkbox-wrapper:first-of-type {
  /*display: none;*/
}

/* Orbotech Neos */
html:not([lang="en"]) #frm_checkbox_708-703-2 { display: none; }

/* Since Formidable doesn't toggle classes,
   we have to select via inline style attribute */
.other-categories-checkboxes-block:not([style*="none"]) {
  display: inline-flex !important;
}

.other-categories-checkboxes-block .form-block {
  padding-bottom: 1rem;
  margin-left: 2rem;
}

.other-categories-checkboxes-block > label {
  color: #41007F;
  font-family: 'OpenSans-SemiBold', sans-serif;
  font-style: italic;
  margin-bottom: 1.15rem;
}

[lang="ko"] .other-categories-checkboxes-block > label {
  font-family: 'NotoSans-Bold', sans-serif;
}



.stylus-checkboxes-block > div,
.compound-checkboxes-block > div {
  margin-bottom: 1rem;
  margin-right: 1rem;
}

.compound-checkboxes-block > * {
    flex-basis: 100%;
}

.part-repeater .frm_remove_form_row {
  display: none !important;
}




input:focus,
textarea:focus,
button:focus {
  outline: none;
}

.input-checkbox {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-block;
  border: 0.1rem solid rgba(61, 80, 90, 0.5);
  cursor: pointer;
  vertical-align: sub;
  min-width: 1.7rem;
  margin-right: 1rem;
  margin-top: 0.4rem;
}
.input-checkbox:before {
  display: block;
  content: '';
  width: 1rem;
  height: 1.2rem;
  transform: scale(0);
  border: solid white;
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
  width: 0.7rem;
  left: 0.5rem;
  top: 0.5rem;
  position: absolute;
}

input[type="checkbox"]:checked + .input-checkbox:before {
  border: solid #009ada;
  border-width: 0 0.3rem 0.3rem 0;
}


.input-radio {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: inline-block;
  border: 0.1rem solid rgba(61, 80, 90, 0.5);
  cursor: pointer;
  vertical-align: sub;
  margin-right: 0.5rem;
}
.input-radio:before {
  display: block;
  content: '';
  background-color: rgba(0, 154, 218, 0);
  border-radius: inherit;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.3rem 0 0 0.3rem;
  transform: scale(0);
  transition: background-color 200ms, transform 200ms;
}

input[type="radio"]:checked + .input-radio:before {
  background-color: #009ada;
  transform: scale(1);
}

.input-radio-wrapper {
  flex-direction: row;
}
/* .input-radio-wrapper label {
  margin: 0 1.5rem 0 0.5rem;
} */

.frm_required {
  color: red;
}

.form-block {
  padding: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  color: #484D50;
}

.styled-checkbox-wrapper {
  flex-direction: row;
  position: relative;
}
.styled-checkbox-wrapper input {
  width: auto;
  margin-right: 1.3rem;
  margin-top: 0.5rem;
  margin: 0.5rem 1.3rem 0 0;
}
.styled-checkbox-wrapper label {
  font-size: 1.4rem;
  margin-top: 0.3rem;
  display: inline-block;
  padding-left: 3rem;
  text-indent: -3rem;
  margin-top: 0;
  line-height: 21px;
}
.styled-input-wrapper input,
.styled-text-area-wrapper input {
  padding: 0.7rem 1.5rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  height: 4.4rem;
  border: solid 0.0625rem rgba(72, 77, 80, 0.3);
  transition: border 200ms ease-out;
}

.styled-input-wrapper input[type="radio"] {
  display: none;
}
.styled-input-wrapper input[type="file"] {
  line-height: 1;
  padding: 0;
}

.styled-checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.styled-text-area-wrapper textarea {
  max-width: 100%;
  width: 100%;
  margin-top: 0.5rem;
  overflow: auto;
  font-family: Arial, Helvetica, sans-serif;
  height: 7.75rem;
  border: solid 0.0625rem rgba(72, 77, 80, 0.3);
}

/* The select wrapper is this */
.styled-select {
  width: 100%;
}

select.styled-select {
  -webkit-appearance: none;
}

.styled-select-wrapper {
  position: relative;
  width: 100%;
}
.styled-select-wrapper svg {
  position: absolute;
  right: 0.5rem;
  top: calc(50% - 0.1ch);
  pointer-events: none;
  right: 1.5rem;
}

.not-valid label, .frm_blank_field label {
  color: red;
}

.not-valid input, .frm_blank_field input, 
.not-valid textarea, .frm_blank_field textarea, 
.not-valid .input-checkbox, .frm_blank_field .input-checkbox, 
.not-valid select, .frm_blank_field select {
  border: 0.1rem solid red;
}
.not-valid select, .frm_blank_field select {
  color: red;
}
/* SVG Arrow for select dropdown */
.not-valid .select-arrow, .frm_blank_field .select-arrow {
  fill: red;
}

.frm_error {
  display: none;
}

.frm_error_style {
  color: red;
  margin-bottom: 2.5rem;
}

.frm_blank_field + .frm_conf_field label {
  color: red;
}
.frm_blank_field + .frm_conf_field input {
  border: 0.1rem solid red;
}

.frm_button_submit {
  margin-top: 2rem;
}

#dataTransferLabelWrap {
  flex-basis: 95%;
}


#pardotHiddenFieldsBlock,
#pardotStylusCheckboxBlock,
#pardotOpticalCheckboxBlock {
  position: absolute;
  width: 0; height: 0;
  overflow: hidden;
}



/* For Parts Block */
.part-add-another-block {
  opacity: 0.5;
  cursor: pointer;
}
.part-add-another-block:hover {
  opacity: 1;
}
.additional-part-blocks,
.part-add-another-block {
  display: none;
}
.additional-part-blocks.show,
.part-add-another-block.show {
  display: block;
}


/* Form Sneaky Sneak - for bots filling the form in */

.form-sneaky-sneak {
  overflow: hidden;
  position: relative;
}
.form-sneaky-sneak input {
  position: absolute;
  left: -99999px;
}


/* Form Validation Messages */

.validation-message {
  display: none;
  padding: 0 0 1rem 0;
  color: red;
}

.validation-message.validation-message-show {
  display: block;
}



/*
 * Selectify Styling
 *
 */
 .selectify {
  position: relative;
  /*margin-top: 0.5rem;*/
}
 .selectify-clicker {
  display: block;
  padding: 1.15rem 3ch 1.15rem 1ch;
  border: solid 0.0625rem rgba(72, 77, 80, 0.3);
}
.not-valid .selectify-clicker, .frm_blank_field  .selectify-clicker {
  color: red;
  border-color: red;
}
.selectify .options-list {
  display: none;
  position: absolute;
  top: 5.5rem;
  background: #fff;
  width: 100%;
  border: 0.1rem solid #ccc;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
}
.selectify .options-list-inner {
  height: auto;
  max-height: 20rem;
  overflow-y: auto;
}
.selectify .options-list .option {
  padding: 0.8rem 1rem;
  margin: 0 0 0.1rem 0;
}
.selectify .options-list .option:hover,
.selectify .options-list .option:focus {
  background: #0089C4;
  color: #fff;
}
.selectify-icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.6;
  margin-left: 0.8rem;
}

.frm_radio {
  margin-right: 1.5rem;
}
.frm_dropzone .frm_upload_icon:before {
  font-size: 20px !important;
}
.frm_dropzone .frm_upload_text {
  font-size: 16px;
}
.frm_dropzone .frm_small_text {
  color:#484D50;
}
.frm_dropzone.dz-clickable.frm_single_upload, .frm_dropzone.frm_single_upload.dz-started {
  max-width: none !important;
}
.frm_dropzone .dz-message {
  max-width: 200px;
}
.frm_dropzone .dz-preview {
  max-width: 400px;
  margin-left: auto;
}


.priority-select .selectify .options-list {
  height: auto;
}

.referrer-wrapper {
  display: none;
}

/* Override default <sup> styling to fix line spacing and ::before positioning */
label .sup {
  vertical-align: middle;
  position: relative;
  top: -1ex;
}

/*
 * Media Query
 * Portrait Tablet
 * 768px
 *
 *
 */
@media screen and (min-width: 768px) {
  #form, #form_inquiry-form,
  #form, #form_inquiry-form2,
  #form, #form_inquiry-form3 {
    width: 70%;
    margin: 0 auto;
  }
  .styled-select-wrapper select {
    left: 0;
  }
  [lang="en"] .stylus-checkboxes-block { 
    /*max-width: calc(50% - 1.5rem);*/
  }
  .other-categories-checkboxes-block {
    /*max-width: 50%;*/
  }
}



/*
 * Media Query
 * Portrait Tablet +
 * 769px
 *
 *
 */
@media screen and (min-width: 769px) {
  .contact-banner { background-size: contain; }
  .country-block .selectify .options-list {
    height: 20rem;
  }
}



/*
 * Media Query
 * Desktop +
 * 1024px
 *
 *
 */
@media screen and (min-width: 1048px) {
  #form, #form_inquiry-form,
  #form, #form_inquiry-form2,
  #form, #form_inquiry-form3 {
    width: 50%;
  }
}

@media screen and (min-width: 1480px) {
  .frm_button_submit {
    margin-top: 3rem;
  }
}

.frm_button_submit[disabled] {
  cursor: wait;
  opacity: 0.5;
}
