/* Charmeline Custom Form Rescue 1.1.2
   ONE select per field: style existing Selectric, never create a parallel dropdown.
   Scoped to the Custom Series six-step form only. */
html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:24px 26px !important;
  align-items:start !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:11px !important;
  min-width:0 !important;
  width:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
  color:#947b58 !important;
  font:500 11px/1.4 'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:.13em !important;
  text-transform:uppercase !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label.wide {
  grid-column:1/-1 !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label > input,
html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label > textarea {
  display:block !important;
  min-width:0 !important;
  width:100% !important;
  margin:0 !important;
  padding:17px 18px !important;
  border:1px solid #d5cec4 !important;
  border-radius:0 !important;
  background:#fff !important;
  color:#292724 !important;
  font:400 15px/1.45 'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}
/* Defensive: hide stale dropdowns if an old cached script injected one. */
html body #cl-custom-request #cl-custom-form .chcr-select-wrap {display:none !important;}
/* Existing jQuery Selectric control: one full-width visual selector. */
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper {
  display:block !important;
  position:relative !important;
  float:none !important;
  clear:both !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper.selectric-open {z-index:1000 !important;}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric {
  display:block !important;
  position:relative !important;
  width:100% !important;
  height:60px !important;
  min-height:60px !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid #cbbda9 !important;
  border-radius:0 !important;
  background:#fff !important;
  color:#292724 !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper:hover .selectric,
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper.selectric-open .selectric,
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper.selectric-focus .selectric {
  border-color:#967a54 !important;
  background:#fbfaf7 !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric .label {
  display:block !important;
  float:none !important;
  width:auto !important;
  height:58px !important;
  min-height:0 !important;
  margin:0 48px 0 18px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#292724 !important;
  font:400 15px/58px 'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  text-align:left !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric .button,
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric .selectric-button {
  display:block !important;
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  left:auto !important;
  width:45px !important;
  height:58px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#947b58 !important;
  font-size:0 !important;
  box-shadow:none !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric .button:after,
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric .selectric-button:after {
  content:'' !important;
  display:block !important;
  position:absolute !important;
  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  width:8px !important;
  height:8px !important;
  margin:-6px 0 0 -4px !important;
  padding:0 !important;
  border:0 !important;
  border-right:1.5px solid #947b58 !important;
  border-bottom:1.5px solid #947b58 !important;
  transform:rotate(45deg) !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper.selectric-open .selectric .button:after {
  transform:rotate(225deg) !important;
  margin-top:-2px !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items {
  position:absolute !important;
  z-index:2000 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid #d3c7b8 !important;
  border-radius:0 !important;
  background:#f8f6f1 !important;
  box-shadow:0 16px 38px rgba(35,27,18,.14) !important;
  box-sizing:border-box !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items .selectric-scroll,
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items ul {
  background:#f8f6f1 !important;
  margin:0 !important;
  padding:0 !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items li {
  display:block !important;
  width:100% !important;
  min-height:42px !important;
  margin:0 !important;
  padding:12px 17px !important;
  border:0 !important;
  border-bottom:1px solid #e8e2d8 !important;
  border-radius:0 !important;
  background:#f8f6f1 !important;
  color:#2a2926 !important;
  font:400 14px/1.4 Georgia,'Times New Roman',serif !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  text-align:left !important;
  box-sizing:border-box !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items li:hover,
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items li.highlighted {
  background:#eae1d4 !important;
  color:#342b20 !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items li.selected {
  background:#eee8df !important;
  color:#8a6b40 !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items li:before,
html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric-items li:after {display:none !important;}
/* Fallback for environments where the theme does not initialize Selectric. */
html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label > select {
  display:block;
  width:100%;
  min-height:60px;
  margin:0;
  padding:0 18px;
  border:1px solid #cbbda9;
  border-radius:0;
  background:#fff;
  color:#292724;
  font:400 15px/1.4 'Helvetica Neue',Arial,sans-serif;
  letter-spacing:normal;
  text-transform:none;
  box-sizing:border-box;
}
html body #cl-custom-request #cl-custom-form .cl-custom-privacy {
  display:flex !important;
  align-items:flex-start !important;
  gap:12px !important;
  margin:24px 0 0 !important;
  color:#49423a !important;
  font:400 14px/1.65 'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  white-space:normal !important;
  text-align:left !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-privacy input[type='checkbox'] {
  position:static !important;
  display:inline-block !important;
  float:none !important;
  flex:0 0 18px !important;
  width:18px !important;
  height:18px !important;
  margin:2px 0 0 !important;
  padding:0 !important;
  accent-color:#a58b61 !important;
}
html body #cl-custom-request #cl-custom-form .cl-custom-privacy a {
  display:inline !important;
  color:#957347 !important;
  font:inherit !important;
  text-decoration:underline !important;
  text-underline-offset:3px !important;
  letter-spacing:inherit !important;
  text-transform:inherit !important;
}
@media(max-width:800px) {
  html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields {
    grid-template-columns:minmax(0,1fr) !important;
    gap:20px !important;
  }
  html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric-wrapper .selectric {height:56px !important;min-height:56px !important;}
  html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric .label {height:54px !important;font-size:16px !important;line-height:54px !important;}
  html body #cl-custom-request #cl-custom-form .cl-custom-fields .selectric .button {height:54px !important;}
  html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label > select {min-height:56px;font-size:16px;}
}

/* 1.1.2 — Separate the Additional Notes heading from the budget/timeline row.
   The theme's Selectric boxes may visually overrun their grid track.
   Add space INSIDE the full-width notes label so the caption and textarea
   move together, on desktop and mobile, without touching select behaviour. */
html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label.wide:has(textarea) {
  padding-top:24px !important;
}
/* Fallback for older browsers without :has(); the notes field is the only
   full-width label in this final contact-details grid. */
@supports not selector(:has(*)) {
  html body #cl-custom-request #cl-custom-form .cl-custom-step[data-step="6"] .cl-custom-fields > label.wide {
    padding-top:24px !important;
  }
}

/* v1.2.0 — In-page submission status and success dialog. Scoped to this plugin. */
#cl-custom-request #chcr-submit-status {
  margin:12px 0 16px !important;
  color:#ad564c !important;
  font:400 14px/1.5 'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:normal !important;
  text-transform:none !important;
}
#cl-custom-request #chcr-submit-status:empty {display:none !important;}
#chcr-confirmation-overlay {
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  background:rgba(9,11,10,.88) !important;
  overflow:auto !important;
}
#chcr-confirmation-overlay .chcr-confirmation-card {
  width:min(100%,720px) !important;
  max-height:calc(100dvh - 48px) !important;
  overflow:auto !important;
  box-sizing:border-box !important;
  background:#f8f6f2 !important;
  padding:clamp(30px,6vw,68px) !important;
  border:1px solid #cdbfa8 !important;
  color:#1d1d1b !important;
  text-align:left !important;
}
#chcr-confirmation-overlay .chcr-confirmation-mark {
  font:400 32px/1 Georgia,serif !important;
  color:#8f754c !important;
  margin:0 0 22px !important;
}
#chcr-confirmation-overlay .chcr-confirmation-eyebrow {
  color:#9c7d4e !important;
  font:600 12px/1.5 'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:.19em !important;
  margin:0 0 24px !important;
}
#chcr-confirmation-overlay h2 {
  color:#1b1b19 !important;
  font:400 clamp(32px,4.6vw,54px)/1.15 Georgia,'Times New Roman',serif !important;
  letter-spacing:-.025em !important;
  margin:0 0 22px !important;
}
#chcr-confirmation-overlay .chcr-confirmation-card > p:not(.chcr-confirmation-eyebrow) {
  color:#6d675f !important;
  font:400 17px/1.7 Georgia,'Times New Roman',serif !important;
  margin:0 0 32px !important;
}
#chcr-confirmation-overlay .chcr-confirmation-return {
  appearance:none !important;
  border:1px solid #a48b65 !important;
  border-radius:0 !important;
  background:#a48b65 !important;
  color:#fff !important;
  min-height:54px !important;
  padding:16px 24px !important;
  cursor:pointer !important;
  font:600 12px/1.4 'Helvetica Neue',Arial,sans-serif !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
}
#chcr-confirmation-overlay .chcr-confirmation-return:hover,
#chcr-confirmation-overlay .chcr-confirmation-return:focus-visible {
  background:#806a48 !important;
  outline:2px solid #9c7d4e !important;
  outline-offset:3px !important;
}
@media(max-width:600px){
  #chcr-confirmation-overlay{padding:12px !important;}
  #chcr-confirmation-overlay .chcr-confirmation-card{max-height:calc(100dvh - 24px) !important;padding:32px 24px !important;}
  #chcr-confirmation-overlay .chcr-confirmation-return{width:100% !important;}
}
