/* Classic Cut Lawn Care â€” shared lead-capture form styles.
   Used by: (1) the standalone form on /contact, and (2) the floating
   "Request a Free Estimate" widget injected on every other page.
   Loaded on every page so there is exactly one visual design for lead
   capture across the whole site. */

.cc-lf-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.cc-lf-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1c;
}

.cc-lf-input,
.cc-lf-textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #c9cdd2;
  border-radius: 6px;
  color: #1c1c1c;
  background: #fff;
}

.cc-lf-textarea {
  resize: vertical;
  min-height: 84px;
}

.cc-lf-input:focus,
.cc-lf-textarea:focus {
  outline: 2px solid #087d59;
  outline-offset: 1px;
}

.cc-lf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cc-lf-submit {
  margin-top: 4px;
  background: #087d59;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.cc-lf-submit:hover {
  background: #066647;
}

.cc-lf-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.cc-lf-status {
  font-size: 14px;
  min-height: 18px;
  color: #1c1c1c;
}

/* ---- Standalone card used on the /contact page ---- */
.cc-lf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  max-width: 480px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ---- Floating widget (every page except /contact) ----
   Always visible in the upper-right corner as a form, not a button.
   A close (x) hides it for the rest of the browsing session. */
.cc-lf-float {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
  width: 320px;
  max-width: calc(100vw - 40px);
}

.cc-lf-float-toggle {
  display: none !important;
  width: max-content !important;
  margin-left: auto !important;
  background: #087d59 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif !important;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22) !important;
}

/* Once the sheet is open, the submit action inside the sheet is the only
   action that should remain visible. Keeping the launcher underneath creates
   a duplicate CTA and can obscure the bottom of short mobile viewports. */
.cc-lf-float.is-open .cc-lf-float-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cc-lf-float-toggle:hover,
.cc-lf-float-toggle:focus-visible {
  background: #066647;
}

.cc-lf-float-toggle:focus-visible,
.cc-lf-float-close:focus-visible,
.cc-lf-submit:focus-visible {
  outline: 2px solid #087d59;
  outline-offset: 2px;
}

.cc-lf-float-panel {
  margin-top: 8px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  padding: 20px;
}

.cc-lf-float-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cc-lf-float-title {
  font-size: 17px;
  font-weight: 700;
  color: #1c1c1c;
  margin: 0;
}

.cc-lf-float-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 2px 6px;
  display: none;
}

@media (max-width: 480px), (max-height: 480px) and (orientation: landscape) {
  .cc-lf-float {
    top: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
  }

  .cc-lf-float-toggle {
    display: block !important;
    width: max-content !important;
    margin-left: auto !important;
    background: #087d59 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    padding: 9px 14px !important;
  }

  .cc-lf-float-panel {
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100vh - 64px);
    padding: 16px;
  }

  .cc-lf-float-close {
    display: block;
  }
}

/* Mobile uses a bottom sheet so the page remains readable and the form has
   a stable, keyboard-friendly surface instead of covering the viewport. */
.cc-lf-float-backdrop {
  display: none;
}

.cc-lf-modal-open {
  overflow: hidden;
}

@media (max-width: 480px), (max-height: 480px) and (orientation: landscape) {
  .cc-lf-float {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    pointer-events: none;
  }

  .cc-lf-float-toggle {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 3;
    pointer-events: auto;
  }

  .cc-lf-float-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, .48);
    pointer-events: auto;
  }

  .cc-lf-float-panel:not([hidden]) {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    max-height: min(86dvh, 720px);
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px 18px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(15, 23, 42, .24);
    pointer-events: auto;
  }
}

