.ffe-estimate-widget,
.ffe-estimate-widget * { box-sizing: border-box; }

.ffe-estimate-widget {
  --ffe-red: #a5342b;
  --ffe-red-dark: #842820;
  --ffe-ink: #1c1c1e;
  --ffe-gray: #5a5d63;
  --ffe-border: #dedede;
  --ffe-bg-soft: #f7f5f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ffe-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
  overflow: hidden;
  color: var(--ffe-ink);
  line-height: 1.45;
}

.ffe-estimate-widget .ffe-header {
  background: var(--ffe-ink);
  color: #fff;
  padding: 24px;
  text-align: center;
}
.ffe-estimate-widget .ffe-header h2 {
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 23px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
}
.ffe-estimate-widget .ffe-header p {
  margin: 0 !important;
  color: #dedede !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.ffe-estimate-widget .ffe-body { padding: 24px; }
.ffe-estimate-widget .ffe-step-label {
  color: var(--ffe-red) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 6px !important;
}
.ffe-estimate-widget .ffe-step-title {
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  margin: 0 0 14px !important;
  color: var(--ffe-ink) !important;
}
.ffe-estimate-widget .ffe-col-headers {
  display: grid;
  grid-template-columns: minmax(120px,1fr) 90px 90px 90px 34px;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ffe-gray);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .45px;
}
.ffe-estimate-widget .ffe-room-row {
  display: grid;
  grid-template-columns: minmax(120px,1fr) 90px 90px 90px 34px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.ffe-estimate-widget input,
.ffe-estimate-widget select,
.ffe-estimate-widget textarea,
.ffe-estimate-widget button {
  font-family: inherit !important;
}
.ffe-estimate-widget .ffe-room-row input,
.ffe-estimate-widget select,
.ffe-estimate-widget textarea,
.ffe-estimate-widget input[type="text"],
.ffe-estimate-widget input[type="email"],
.ffe-estimate-widget input[type="tel"] {
  width: 100% !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 11px !important;
  border: 1px solid var(--ffe-border) !important;
  border-radius: 7px !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: var(--ffe-ink) !important;
  background: #fff !important;
}
.ffe-estimate-widget textarea { min-height: 90px; resize: vertical; }
.ffe-estimate-widget .ffe-room-row input:focus,
.ffe-estimate-widget input:focus,
.ffe-estimate-widget select:focus,
.ffe-estimate-widget textarea:focus {
  border-color: var(--ffe-red) !important;
  box-shadow: 0 0 0 3px rgba(165,52,43,.12) !important;
}
.ffe-estimate-widget .ffe-room-sqft {
  color: var(--ffe-gray);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
.ffe-estimate-widget .ffe-remove-room {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #888 !important;
  box-shadow: none !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer;
}
.ffe-estimate-widget .ffe-remove-room:hover,
.ffe-estimate-widget .ffe-remove-room:focus {
  background: rgba(165,52,43,.08) !important;
  color: var(--ffe-red) !important;
}
.ffe-estimate-widget .ffe-add-room {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px !important;
  margin: 4px 0 0 !important;
  padding: 8px 14px !important;
  background: #fff !important;
  border: 1.5px dashed var(--ffe-red) !important;
  border-radius: 7px !important;
  color: var(--ffe-red) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer;
}
.ffe-estimate-widget .ffe-add-room:hover,
.ffe-estimate-widget .ffe-add-room:focus {
  background: rgba(165,52,43,.07) !important;
  border-color: var(--ffe-red-dark) !important;
  color: var(--ffe-red-dark) !important;
}
.ffe-estimate-widget .ffe-divider {
  height: 1px;
  background: var(--ffe-border);
  margin: 22px 0;
}
.ffe-estimate-widget label.ffe-field-label {
  display: block;
  margin: 0 0 6px !important;
  color: var(--ffe-ink) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}
.ffe-estimate-widget .ffe-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ffe-estimate-widget .ffe-field { margin-bottom: 14px; }
.ffe-estimate-widget .ffe-calc-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 48px !important;
  margin: 6px 0 0 !important;
  padding: 13px 16px !important;
  background: var(--ffe-red) !important;
  border: 1px solid var(--ffe-red) !important;
  border-radius: 7px !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.ffe-estimate-widget .ffe-calc-btn:hover,
.ffe-estimate-widget .ffe-calc-btn:focus,
.ffe-estimate-widget .ffe-calc-btn:active {
  background: var(--ffe-red-dark) !important;
  border-color: var(--ffe-red-dark) !important;
  color: #fff !important;
  text-decoration: none !important;
}
.ffe-estimate-widget .ffe-calc-btn:hover { transform: translateY(-1px); }
.ffe-estimate-widget .ffe-calc-btn:disabled {
  opacity: .62 !important;
  cursor: wait !important;
  transform: none !important;
}
.ffe-estimate-widget .ffe-results {
  display: none;
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--ffe-bg-soft);
  border: 1px solid var(--ffe-border);
  border-radius: 8px;
}
.ffe-estimate-widget .ffe-results.ffe-visible { display: block; }
.ffe-estimate-widget .ffe-results-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 6px 0;
}
.ffe-estimate-widget .ffe-results-row + .ffe-results-row { border-top: 1px dashed #d7d3d1; }
.ffe-estimate-widget .ffe-results-label { color: var(--ffe-gray); font-size: 13px; }
.ffe-estimate-widget .ffe-results-value { color: var(--ffe-ink); font-size: 15px; font-weight: 700; }
.ffe-estimate-widget .ffe-results-value.ffe-big { color: var(--ffe-red); font-size: 22px; }
.ffe-estimate-widget .ffe-disclaimer {
  margin: 12px 0 0 !important;
  color: var(--ffe-gray) !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
}
.ffe-estimate-widget .ffe-quote-required {
  margin: 0 !important;
  padding: 13px 14px;
  border-left: 3px solid var(--ffe-red);
  background: #fff;
  color: var(--ffe-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.ffe-estimate-widget .ffe-lead-section { display: none; margin-top: 20px; }
.ffe-estimate-widget .ffe-lead-section.ffe-visible { display: block; }
.ffe-estimate-widget .ffe-error {
  display: none;
  margin: 0 0 12px !important;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff1f0;
  color: #9d241c !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}
.ffe-estimate-widget .ffe-error.ffe-visible { display: block; }
.ffe-estimate-widget .ffe-success { display: none; text-align: center; padding: 34px 20px; }
.ffe-estimate-widget .ffe-success.ffe-visible { display: block; }
.ffe-estimate-widget .ffe-success .ffe-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ffe-red);
  color: #fff;
  font-size: 27px;
}
.ffe-estimate-widget .ffe-success h3 {
  margin: 0 0 8px !important;
  color: var(--ffe-ink) !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
}
.ffe-estimate-widget .ffe-success p {
  margin: 0 !important;
  color: var(--ffe-gray) !important;
  font-size: 14px !important;
}
.ffe-estimate-widget .ffe-footer-contact {
  padding: 14px 24px 22px;
  text-align: center;
  color: var(--ffe-gray);
  font-size: 13px;
}
.ffe-estimate-widget .ffe-footer-contact a,
.ffe-estimate-widget .ffe-footer-contact a:hover,
.ffe-estimate-widget .ffe-footer-contact a:focus {
  color: var(--ffe-red) !important;
  font-weight: 700;
  text-decoration: none !important;
}

/* Floating CTA */
.ffe-fab {
  position: fixed !important;
  bottom: 24px !important;
  z-index: 999980 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 13px 20px !important;
  background: var(--ffe-fab-color, #a5342b) !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.24) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: filter .15s ease, transform .15s ease !important;
}
.ffe-fab.ffe-fab-right { right: 24px !important; }
.ffe-fab.ffe-fab-left { left: 24px !important; }
.ffe-fab:hover,
.ffe-fab:focus,
.ffe-fab:active {
  background: var(--ffe-fab-color, #a5342b) !important;
  color: #fff !important;
  filter: brightness(.88);
  text-decoration: none !important;
}
.ffe-fab:hover { transform: translateY(-1px); }

/* Modal */
.ffe-modal-overlay {
  display: none;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 20px !important;
  z-index: 2147483000 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: rgba(18,18,20,.72) !important;
  box-sizing: border-box !important;
  transform: none !important;
}

.ffe-modal-overlay.ffe-visible {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.ffe-modal-shell {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: min(680px, calc(100vw - 40px)) !important;
  max-width: 680px !important;
  min-width: 0 !important;
  margin: 20px auto !important;
  padding: 0 !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.ffe-modal-shell .ffe-estimate-widget {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.ffe-modal-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 50% !important;
  color: #111 !important;
  box-shadow: 0 3px 12px rgba(0,0,0,.20) !important;
  font-family: Arial, sans-serif !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ffe-modal-close:hover,
.ffe-modal-close:focus,
.ffe-modal-close:active {
  background: #f2f2f2 !important;
  border-color: #c5c5c5 !important;
  color: #000 !important;
  box-shadow: 0 3px 12px rgba(0,0,0,.20) !important;
  outline: none !important;
  transform: none !important;
}

.ffe-modal-shell .ffe-estimate-widget .ffe-header {
  padding-right: 76px !important;
  padding-left: 35px !important;
}

body.ffe-modal-open {
  overflow: hidden !important;
}

/* Prevent Elementor/theme wrappers from shifting or clipping the modal */
#ffe-fab-overlay,
#ffe-fab-overlay *,
.ffe-modal-overlay,
.ffe-modal-overlay * {
  box-sizing: border-box !important;
}

#ffe-fab-overlay {
  transform: none !important;
}


@media (max-width: 680px) {
  .ffe-estimate-widget .ffe-col-headers { display: none; }
  .ffe-estimate-widget .ffe-room-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "name name" "len wid" "sqft remove";
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
  }
  .ffe-estimate-widget .ffe-room-row [data-ffe-room-name] { grid-area: name; }
  .ffe-estimate-widget .ffe-room-row [data-ffe-room-len] { grid-area: len; }
  .ffe-estimate-widget .ffe-room-row [data-ffe-room-wid] { grid-area: wid; }
  .ffe-estimate-widget .ffe-room-sqft { grid-area: sqft; text-align: left; padding-top: 5px; }
  .ffe-estimate-widget .ffe-remove-room { grid-area: remove; justify-self: end; }
}

@media (max-width: 480px) {
  .ffe-estimate-widget { border-radius: 9px; }
  .ffe-estimate-widget .ffe-header { padding: 21px 54px 21px 18px; text-align: left; }
  .ffe-estimate-widget .ffe-header h2 { font-size: 20px !important; }
  .ffe-estimate-widget .ffe-body { padding: 18px; }
  .ffe-estimate-widget .ffe-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .ffe-estimate-widget .ffe-results-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .ffe-estimate-widget .ffe-results-value.ffe-big { font-size: 20px; }
  .ffe-modal-overlay { padding: 8px !important; }
  .ffe-modal-shell {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 8px auto !important;
  }
  .ffe-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 100 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer !important;
    outline: none !important;
  }
  .ffe-modal-shell .ffe-estimate-widget .ffe-header {
    padding: 20px 58px 20px 18px !important;
  }
  .ffe-fab { bottom: 16px !important; padding: 12px 16px !important; }
  .ffe-fab.ffe-fab-right { right: 16px !important; }
  .ffe-fab.ffe-fab-left { left: 16px !important; }
}

/* Strong button state protection against Elementor/theme overrides */
.ffe-estimate-widget .ffe-calc-btn,
.ffe-estimate-widget .ffe-calc-btn *,
.ffe-fab,
.ffe-fab * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.ffe-estimate-widget .ffe-calc-btn:hover,
.ffe-estimate-widget .ffe-calc-btn:focus,
.ffe-estimate-widget .ffe-calc-btn:active,
.ffe-estimate-widget .ffe-calc-btn:hover *,
.ffe-estimate-widget .ffe-calc-btn:focus *,
.ffe-estimate-widget .ffe-calc-btn:active *,
.ffe-fab:hover,
.ffe-fab:focus,
.ffe-fab:active,
.ffe-fab:hover *,
.ffe-fab:focus *,
.ffe-fab:active * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.ffe-estimate-widget button,
.ffe-fab,
.ffe-modal-close {
  -webkit-tap-highlight-color: transparent;
}
/* FINAL CLOSE X FIX */
button.ffe-modal-close,
button.ffe-modal-close:hover,
button.ffe-modal-close:focus,
button.ffe-modal-close:active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    outline: none !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    padding: 0 !important;
    margin: 0 !important;

    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    opacity: 1 !important;
    transform: none !important;
}

button.ffe-modal-close {
    top: 12px !important;
    right: 12px !important;

    font-size: 30px !important;
    font-weight: 300 !important;
    line-height: 32px !important;

    text-align: center !important;
    cursor: pointer !important;
}

button.ffe-modal-close::before,
button.ffe-modal-close::after {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}