/* ==========================================================
   GT Golf Supply Co – EmailMeForm theme
   Colors and fonts taken from the ggolf.com theme source:
     Navy        #203945   (header, buttons, headings)
     Light blue  #DCE5EB   (header background)
     Green       #84C880   (logo / "new" badges)
     Field fill  #EDEDED   (site input background)
     Border      #E5E5E5
     Subtext     #666666
     Red         #C4301C   (required marks)
   Headings: Instrument Sans 700   Body: Arial
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@600;700&display=swap');

/* ---------- Page ---------- */

/* Hides the stray "APPLICATION FOR CREDIT TERMS..." text that sits
   loose in the page body (it has no tag CSS can target directly). */
body#emf-container-wrap {
  font-size: 0 !important;
  background: #DCE5EB !important;
  margin: 0 !important;
  padding: 40px 16px !important;
}

#emf-container-outer {
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: #000;
  max-width: 760px;
  margin: 0 auto;
}

#emf-container,
#emf-container-outer #emf-form-shadows {
  width: 760px !important;
  max-width: 100% !important;
}

#emf-container {
  box-sizing: border-box !important;
  background: #FFFFFF !important;
  border: 0 !important;
  border-top: 6px solid #203945 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 30px rgba(32, 57, 69, 0.12) !important;
  padding: 40px 48px 32px !important;
  margin: 0 auto !important;
}

#emf-form-shadows {
  display: none !important;
}

#emf-logo {
  text-align: center;
  margin-bottom: 16px !important;
}

/* ---------- Form header ---------- */

#emf-form-instruction {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid #E5E5E5 !important;
  padding: 0 0 24px !important;
  margin: 0 0 28px !important;
}

/* EmailMeForm draws its own divider somewhere in the header; this removes
   every other candidate so only the one line above is left. */
#emf-form,
#emf-form > ul,
#emf-form-title,
#emf-form-description {
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

#emf-form-instruction::before,
#emf-form-instruction::after,
#emf-form > ul::before {
  display: none !important;
}

#emf-form-title {
  font-family: 'Instrument Sans', Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #203945 !important;
}

#emf-form-description {
  font-size: 15px !important;
  color: #666666 !important;
  margin-top: 6px !important;
}

/* ---------- Layout: two-column grid ---------- */

#emf-form > ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  column-gap: 24px !important;
}

#emf-form > ul > li {
  flex: 0 0 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  background: transparent !important;  /* stops the yellow focus highlight */
  border: 0 !important;
}

#emf-form > ul > li.emf-li-half-width {
  flex: 0 0 calc(50% - 12px) !important;
}

/* ---------- Labels ---------- */

#emf-form .emf-label-desc {
  display: block !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #203945 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
}

#emf-form .emf-label-desc span {
  color: #C4301C !important;
}

#emf-form .emf-bottom-label {
  display: block !important;
  font-size: 12px !important;
  color: #666666 !important;
  margin: 5px 0 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}

#emf-form .emf-div-instruction {
  font-size: 13px !important;
  color: #666666 !important;
  margin-top: 6px !important;
  padding-left: 0 !important;
}

#emf-form .emf-div-field {
  float: none !important;
  width: auto !important;
}

/* ---------- Inputs ---------- */

#emf-form input[type="text"],
#emf-form select,
#emf-form textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 46px !important;
  padding: 0 18px !important;
  background-color: #EDEDED !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  color: #000000 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

#emf-form input[type="text"]:focus,
#emf-form select:focus,
#emf-form textarea:focus {
  background-color: #FFFFFF !important;
  border-color: #203945 !important;
  box-shadow: 0 0 0 3px rgba(32, 57, 69, 0.15) !important;
}

#emf-form select {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 44px !important;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M16.25 7.5L10 13.75L3.75 7.5' stroke='%23203945' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 16px !important;
}

#emf-form textarea {
  height: 46px !important;
  min-height: 0 !important;
  padding: 12px 18px !important;
  border-radius: 4px !important;
  line-height: 20px !important;
  resize: none !important;
  overflow: hidden !important;
}

/* ---------- Address blocks ---------- */

#emf-form .emf-field-new_address .emf-div-field > div {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px 12px !important;
}

#emf-form .emf-field-new_address .emf-div-field > div > span {
  float: none !important;
  margin: 0 !important;
}

#emf-form .emf-field-new_address .emf-full {
  flex: 0 0 100% !important;
}

#emf-form .emf-field-new_address .emf-half {
  flex: 0 0 calc(50% - 6px) !important;
  width: auto !important;
}

#emf-form .emf-field-new_address .emf-div-field > div > .emf-clear {
  display: none !important;
}

/* ---------- Name (First / Last) ---------- */

#emf-form .emf-field-new_name .emf-div-field {
  display: flex !important;
  gap: 12px !important;
}

#emf-form .emf-field-new_name .emf-div-field > span {
  flex: 1 1 0 !important;
  width: auto !important;   /* overrides the inline 60px / 100px widths */
  display: block !important;
}

/* ---------- Phone ---------- */

#emf-form .emf-field-phone .emf-div-field {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

#emf-form .emf-field-phone .emf-div-field > span {
  display: block !important;
  flex: 0 0 64px !important;
  width: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#emf-form .emf-field-phone .emf-div-field > span:last-child {
  flex: 0 0 76px !important;
  width: 76px !important;
}

#emf-form .emf-field-phone .emf-div-field > span.emf-sep {
  flex: 0 0 16px !important;
  width: 16px !important;
  text-align: center !important;
  line-height: 46px !important;
  color: #666666 !important;
}

#emf-form .emf-field-phone input[type="text"] {
  padding: 0 10px !important;
  text-align: center !important;
}

/* ---------- Checkboxes & radios ---------- */

#emf-form input[type="checkbox"],
#emf-form input[type="radio"] {
  accent-color: #203945;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
}

#emf-form .side_by_side {
  display: inline-flex !important;
  align-items: center !important;
  margin: 4px 28px 4px 0 !important;
}

#emf-form .emf-field-radio .one_column > div {
  display: flex !important;
  align-items: center !important;
  padding: 5px 0 !important;
}

#emf-form label.padleft-w5 {
  padding-left: 10px !important;
  font-size: 15px !important;
  color: #000000 !important;
  cursor: pointer;
}

/* ---------- Section break ("Credit References") ---------- */

#emf-form .emf-field-section_break {
  padding-top: 8px !important;
}

#emf-form .emf-section-separator {
  border: 0 !important;
  border-top: 1px solid #E5E5E5 !important;
  height: 0 !important;
  margin: 0 0 24px !important;
}

#emf-form .emf-div-field-section h3 {
  font-family: 'Instrument Sans', Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  color: #203945 !important;
  margin: 0 !important;
}

/* ---------- Terms paragraph (the long textarea label) ---------- */

#emf-form .emf-field-textarea .emf-label-desc {
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #203945 !important;
  background: #DCE5EB !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin-bottom: 12px !important;
}

/* ---------- Captcha ---------- */

#emf-li-captcha {
  background: #F4F7F9 !important;
  border-radius: 12px !important;
  padding: 20px 22px !important;
  margin-bottom: 24px !important;
}

#emf-captcha-top-settings {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #203945 !important;
  margin-bottom: 12px !important;
}

#emf-captcha-image-settings img {
  border-radius: 8px !important;
  display: block;
  margin-bottom: 12px;
}

#emf-captcha-input-settings {
  font-size: 14px !important;
  color: #000000 !important;
}

#emf-form #captcha_code {
  width: 200px !important;
  margin: 8px 12px 8px 0 !important;
}

#emf-captcha-input-settings a {
  color: #203945 !important;
  text-decoration: underline !important;
}

/* ---------- Buttons ---------- */

#emf-li-post-button {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 16px !important;
  padding-top: 8px !important;
}

#emf-li-post-button br {
  display: none !important;
}

/* The platform's submit button is an orange image. This hides the image
   and draws a navy pill with "Submit application" in its place. */
#emf-li-post-button input[type="image"] {
  order: -1;
  box-sizing: content-box !important;
  width: 0 !important;
  height: 0 !important;
  padding: 24px 110px !important;
  border: 0 !important;
  border-radius: 999px !important;
  cursor: pointer;
  background-color: #203945 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='48'%3E%3Ctext x='110' y='24' dominant-baseline='central' text-anchor='middle' font-family='Arial, Helvetica, sans-serif' font-weight='700' font-size='16' fill='white'%3ESubmit application%3C/text%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  transition: background-color 0.15s;
}

#emf-li-post-button input[type="image"]:hover {
  background-color: #152A33 !important;
}

#emf-li-post-button input[type="image"]:focus-visible,
#emf-li-post-button .btn-save-resume:focus-visible {
  outline: 3px solid #84C880 !important;
  outline-offset: 2px !important;
}

#emf-li-post-button .btn-save-resume {
  height: 48px !important;
  padding: 0 28px !important;
  background: #DCE5EB !important;
  color: #203945 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s;
}

#emf-li-post-button .btn-save-resume:hover {
  background: #C9D6DF !important;
}

/* ---------- Error banner ---------- */

#emf-container .emf-error-message {
  background: #FBEAE7 !important;
  color: #C4301C !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
}

/* ---------- Mobile ---------- */

@media screen and (max-width: 656px) {
  body#emf-container-wrap {
    padding: 16px 10px !important;
  }

  #emf-container {
    padding: 28px 20px 24px !important;
  }

  #emf-form-title {
    font-size: 23px !important;
  }

  #emf-form > ul > li.emf-li-half-width,
  #emf-form .emf-field-new_address .emf-half {
    flex: 0 0 100% !important;
  }
}
