/* - - - - - - - - - - - - - - - - - - - - -
 Title  : Tropical YYC · Private Events
 Base   : EMF Theme Manager Kit (custom.css)
 Colors : olive #5F6140 · deep olive #3D3F28 · beige #F1E1C4
 Note   : Only changes the LOOK. Fields, names and order are untouched.
 v7     : Name found by structure; 1 line computer / 2 lines phone (480px), both 100%
          transparent page, translucent green card, single column
- - - - - - - - - - - - - - - - - - - - - */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

/* -- Page: no background at all (the website shows through) -- */
html,
body,
body#emf-container-wrap,
#emf-container-outer {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
body,
body#emf-container-wrap {
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif !important;
}

/* -- Hide EMF logo header and old bottom shadow image -- */
#emf-container #emf-logo,
#emf-container-outer #emf-form-shadows { display: none !important; }

/* -- Form card: translucent olive, one column -- */
#emf-container {
  padding: 0 !important;
  background: rgba(95, 97, 64, .82) !important;
  border: 1px solid rgba(241, 225, 196, .14) !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55) !important;
}
#emf-container #emf-form {
  display: block !important;
  margin: 0 !important;
  padding: 0 0 36px !important;
}
#emf-container #emf-form > ul { padding: 32px 36px 0 !important; margin: 0 !important; }

/* -- Top panel (form title + description) -- */
#emf-container #emf-form-instruction {
  margin: 0 !important;
  padding: 36px 36px 32px !important;
  border: 0 !important;
  background-color: rgba(52, 54, 34, .7) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' fill='none' stroke='%23F1E1C4' stroke-opacity='.16' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M100 235C100 170 96 100 100 10'/%3E%3Cpath d='M100 10C60 30 30 70 22 120c30-10 55-20 78-45'/%3E%3Cpath d='M100 10c40 20 70 60 78 110-30-10-55-20-78-45'/%3E%3Cpath d='M99 80C70 95 42 125 30 170c30-6 52-22 70-45'/%3E%3Cpath d='M101 80c29 15 57 45 69 90-30-6-52-22-70-45'/%3E%3Cpath d='M99 145c-22 12-42 35-50 70 22-4 38-16 51-34'/%3E%3Cpath d='M101 145c22 12 42 35 50 70-22-4-38-16-51-34'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right -40px top -20px !important;
  background-size: 200px auto !important;
}
/* hide the panel completely if it has no title and no description */
#emf-container #emf-form-instruction:not(:has(#emf-form-title:not(:empty))):not(:has(#emf-form-description:not(:empty))) { display: none !important; }
#emf-container #emf-form-title:empty,
#emf-container #emf-form-description:empty { display: none !important; }

#emf-container #emf-form-title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  font-size: 42px !important;
  line-height: 1 !important;
  color: #FFFFFF !important;
  margin: 0 0 12px !important;
}
#emf-container #emf-form-description {
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-style: normal !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, .82) !important;
  max-width: 44ch;
}
#emf-container .emf-head-widget { border: 0 !important; }

/* -- Field rows -- */
#emf-container #emf-form ul { list-style: none !important; }
#emf-container #emf-form ul li,
#emf-container #emf-form ul li.highlight-field {
  background: transparent !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
}

/* -- Field titles -- */
#emf-container label.emf-label-desc {
  margin-bottom: 8px !important;
  padding: 0 !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #FFFFFF !important;
}
/* required asterisk: soft instead of bright red */
#emf-container label.emf-label-desc span { color: #FFC2B0 !important; }


/* -- Inputs (size comes from EMF settings; we only restyle) -- */
#emf-container #emf-form div.emf-div-field input[type="text"],
#emf-container #emf-form div.emf-div-field input[type="email"],
#emf-container #emf-form div.emf-div-field input[type="number"],
#emf-container #emf-form div.emf-div-field input[type="tel"],
#emf-container #emf-form div.emf-div-field textarea,
#emf-container #emf-form div.emf-div-field select {
  box-sizing: border-box !important;
  height: auto !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-style: normal !important;
  font-size: 16px !important;
  color: #23241A !important;
  background-color: #F1E1C4 !important;
  border: 2px solid transparent !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
#emf-container #emf-form div.emf-div-field input:hover,
#emf-container #emf-form div.emf-div-field textarea:hover { background-color: #FBF4E6 !important; }
#emf-container #emf-form div.emf-div-field input:focus,
#emf-container #emf-form div.emf-div-field textarea:focus,
#emf-container #emf-form div.emf-div-field select:focus {
  background-color: #FBF4E6 !important;
  border-color: #FBF4E6 !important;
  box-shadow: 0 0 0 4px rgba(241, 225, 196, .28) !important;
}
#emf-container #emf-form div.emf-div-field textarea { min-height: 150px !important; line-height: 1.55 !important; resize: vertical; }
#emf-container #emf-form div.emf-div-field select { cursor: pointer; }

/* -- Split fields (Name, Date, Phone): EMF keeps the layout, we only tidy separators -- */
#emf-container div.emf-div-field span.emf-sep { color: rgba(255, 255, 255, .6) !important; }
#emf-container .ui-datepicker-trigger { cursor: pointer; opacity: .9; }

/* -- Small split boxes (MM / DD / YYYY, ### - ### - ####, cents):
      less side padding + a comfortable minimum width so the text is visible -- */
#emf-container #emf-form div.emf-div-field input.emf-input-w20,
#emf-container #emf-form li.emf-field-datetime div.emf-div-field input[type="text"] {
  min-width: 58px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  text-align: center !important;
}
#emf-container #emf-form div.emf-div-field input.emf-input-w30,
#emf-container #emf-form li.emf-field-phone div.emf-div-field input[type="text"] {
  min-width: 70px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  text-align: center !important;
}
#emf-container #emf-form div.emf-div-field input.emf-input-w40,
#emf-container #emf-form li.emf-field-datetime div.emf-div-field input[name$="_year"],
#emf-container #emf-form li.emf-field-phone div.emf-div-field input[maxlength="4"] {
  min-width: 84px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  text-align: center !important;
}
#emf-container li.emf-field-datetime div.emf-div-field label,
#emf-container li.emf-field-phone div.emf-div-field label { text-align: center !important; }

/* -- Small labels under inputs (First, Last, MM, DD...) and instructions -- */
#emf-container li .emf-div-field label,
#emf-container li .emf-div-instruction {
  background: none !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-style: normal !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, .72) !important;
  margin-top: 6px !important;
}

/* -- Separator line + section text -- */
#emf-container li.emf-field-section_break { margin-bottom: 18px !important; }
#emf-container li .emf-section-separator {
  border: 0 !important;
  border-bottom: 1px solid rgba(241, 225, 196, .2) !important;
  margin: 4px 0 18px !important;
  height: 0 !important;
}
#emf-container li.emf-field-section_break h3:empty { display: none !important; }
#emf-container li.emf-field-section_break h3 {
  color: #FFFFFF !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  margin: 0 0 8px !important;
}
#emf-container li.emf-field-section_break .emf-section-text {
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-style: normal !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #FFFFFF !important;
  background-color: rgba(241, 225, 196, .16) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1E1C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px 15px !important;
  background-size: 18px 18px !important;
  border-radius: 14px !important;
  padding: 14px 16px 14px 44px !important;
  margin: 0 !important;
}
#emf-container li.emf-field-section_break .emf-section-text:empty { display: none !important; }

/* -- Buttons -- */
#emf-container #submit_form,
#emf-container .emf-action-next,
#emf-container .emf-action-previous {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 190px !important;
  height: 60px !important;
  margin-top: 8px !important;
  padding: 0 70px 0 26px !important;
  text-align: left !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: .3px !important;
  text-transform: none !important;
  color: #3D3F28 !important;
  background-color: #F1E1C4 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Ccircle cx='23' cy='23' r='23' fill='%233D3F28'/%3E%3Cpath d='M15 23h16M25 17l6 6-6 6' fill='none' stroke='%23F1E1C4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 7px center !important;
  background-size: 46px 46px !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .5) !important;
  cursor: pointer !important;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
#emf-container #submit_form:hover,
#emf-container .emf-action-next:hover,
#emf-container .emf-action-previous:hover {
  background-color: #FBF4E6 !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(0, 0, 0, .55) !important;
}
#emf-container #submit_form:active { transform: translateY(0); }
#emf-container #submit_form:focus-visible { outline: 3px solid #FBF4E6 !important; outline-offset: 3px; }
/* if the submit button sits outside the list */
#emf-container #emf-form > div:has(#submit_form),
#emf-container #emf-form > p:has(#submit_form) { padding: 0 36px !important; }

/* -- CAPTCHA (if enabled) -- */
#emf-container li#emf-li-captcha #emf-captcha-top-settings { background-color: #3D3F28 !important; color: #FFFFFF !important; border-radius: 14px 14px 0 0; }
#emf-container li#emf-li-captcha #emf-captcha-bottom-settings { background-color: #F1E1C4 !important; border-radius: 0 0 14px 14px; }
#emf-container li#emf-li-captcha #emf-captcha-input-settings,
#emf-container li#emf-li-captcha #emf-captcha-input-settings a { color: #23241A !important; }

/* -- Error messages -- */
#emf-container .emf-error-message {
  margin: 20px 36px 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: rgba(255, 194, 176, .18) !important;
  color: #FFC2B0 !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
}
.formError .formErrorContent {
  background: #3D3F28 !important;
  color: #FFFFFF !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5) !important;
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
}
.formError .formErrorArrow div { background: #3D3F28 !important; }

/* -- Small screens -- */
@media (max-width: 520px) {
  #emf-container { border-radius: 22px !important; }
  #emf-container #emf-form-instruction { padding: 28px 22px 24px !important; }
  #emf-container #emf-form > ul { padding: 26px 22px 0 !important; }
  #emf-container #emf-form > div:has(#submit_form) { padding: 0 22px !important; }
  #emf-container #emf-form-title { font-size: 36px !important; }
}
/* -- Name (First / Last): one field --
      Found by structure (two boxes, no "/" or "-" separators), so it works
      even if EMF gives the row a different class name.
      Computer: one line, both boxes together fill 100% of the width
      Phone:    two lines, each box at 100% of the width */
#emf-container #emf-form div.emf-div-field:has(> span input[type="text"]):not(:has(.emf-sep)):not(:has(.emf-full)):not(:has(input[type="hidden"])),
#emf-container li.emf-field-name div.emf-div-field {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
#emf-container #emf-form div.emf-div-field:has(> span input[type="text"]):not(:has(.emf-sep)):not(:has(.emf-full)):not(:has(input[type="hidden"])) > span,
#emf-container li.emf-field-name div.emf-div-field > span {
  display: block !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}
#emf-container #emf-form div.emf-div-field:has(> span input[type="text"]):not(:has(.emf-sep)):not(:has(.emf-full)):not(:has(input[type="hidden"])) > span input[type="text"],
#emf-container #emf-form li.emf-field-name div.emf-div-field input[type="text"] {
  width: 100% !important;
  max-width: 100% !important;
}
#emf-container #emf-form div.emf-div-field:has(> span input[type="text"]):not(:has(.emf-sep)):not(:has(.emf-full)):not(:has(input[type="hidden"])) > span label,
#emf-container li.emf-field-name div.emf-div-field label { text-align: center !important; }

/* The form lives inside an iframe, so this width is the iframe's width,
   not the screen's. 480px = phones only. */
@media (max-width: 480px) {
  #emf-container #emf-form div.emf-div-field:has(> span input[type="text"]):not(:has(.emf-sep)):not(:has(.emf-full)):not(:has(input[type="hidden"])),
  #emf-container li.emf-field-name div.emf-div-field {
    flex-direction: column !important;
  }
  #emf-container #emf-form div.emf-div-field:has(> span input[type="text"]):not(:has(.emf-sep)):not(:has(.emf-full)):not(:has(input[type="hidden"])) > span,
  #emf-container li.emf-field-name div.emf-div-field > span {
    flex: none !important;
    width: 100% !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #emf-container * { transition: none !important; }
}
