/* Shared popup form (common/popups.php + common/popup-fields.php) */
.popup-form .popup-title {
  margin: 0 0 16px;
  padding: 0 24px;
  font-size: 24px;
  text-align: center;
}

.pf {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.pf-select,
.pf-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d6dce4;
  border-radius: 8px;
  outline: none;
  background-color: #fff;
  color: #303b4e;
  font-family: inherit;
  font-size: 15px;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

.pf-select {
  cursor: pointer;
  text-overflow: ellipsis;
}

.pf-input::placeholder {
  color: #9ca6b6;
  opacity: 1;
}

.pf-select:focus,
.pf-input:focus {
  border-color: #7EAE13;
  box-shadow: 0 0 0 3px rgba(126, 174, 19, .15);
}

.pf .field-invalid {
  border-color: #c0392b !important;
}

.popup-form .pf-heading {
  margin: 6px 0 0;
  color: #202a32;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.pf-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.pf-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #303b4e;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.pf-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #7EAE13;
  cursor: pointer;
}

/* Name + phone on one line */
.pf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

/* "No spam, no pressure." trust line */
.pf-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
}

.pf-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid #cfe3a3;
  border-radius: 999px;
  background: #f1f8e1;
  color: #44610a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.pf-trust-item svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #7EAE13;
}

/* =========================================
   HALLOWEEN DISCOUNT POPUP (single column, fits one screen)
========================================= */
#quoteModalFull .offer-dialog {
  width: calc(100% - 20px);
  max-width: 500px;
  margin: 10px auto;
}

#quoteModalFull .offer-modal {
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 25px 75px rgba(0, 0, 0, .35);
}

/* ---------- Offer header ---------- */
#quoteModalFull .offer-head {
  position: relative;
  padding: 20px 48px 18px 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 174, 19, .45), transparent 55%),
    linear-gradient(160deg, #35493c 0%, #26362d 45%, #1a261f 100%);
  color: #fff;
}

#quoteModalFull .offer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}

#quoteModalFull .offer-close:hover {
  background: rgba(255, 255, 255, .28);
}

#quoteModalFull .offer-close svg {
  width: 14px;
  height: 14px;
}

#quoteModalFull .offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #b9e04e;
  color: #1d2b24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

#quoteModalFull .offer-badge svg {
  width: 14px;
  height: 14px;
}

#quoteModalFull .offer-title {
  margin: 10px 0 4px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

#quoteModalFull .offer-title strong {
  color: #b9e04e;
  font-size: 1.25em;
  font-weight: 800;
  white-space: nowrap;
}

#quoteModalFull .offer-sub {
  margin: 0;
  color: #dfe6e1;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Form ---------- */
#quoteModalFull .offer-form {
  margin: 0;
  padding: 16px 26px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#quoteModalFull .pf {
  gap: 8px;
  margin-bottom: 12px;
}

#quoteModalFull .pf-select,
#quoteModalFull .pf-input {
  height: 40px;
  font-size: 14.5px;
}

#quoteModalFull .pf-heading {
  margin-top: 2px;
  font-size: 15px;
}

#quoteModalFull .pf-checks {
  gap: 6px 16px;
}

#quoteModalFull .pf-check {
  font-size: 14px;
}

#quoteModalFull .offer-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(126, 174, 19, .35);
  transition: background .2s, transform .2s, box-shadow .2s;
}

#quoteModalFull .offer-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(126, 174, 19, .45);
}

#quoteModalFull .offer-submit svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

#quoteModalFull .pf-trust {
  margin-top: 12px;
}

#quoteModalFull .pf-trust-item {
  padding: 6px 13px;
  font-size: 13px;
}

#quoteModalFull .offer-terms {
  margin: 10px 0 0;
  color: #8b95a3;
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}

/* Short or narrow screens: trim so the form still fits without scrolling */
@media (max-height: 680px), (max-width: 480px) {
  #quoteModalFull .offer-head { padding-top: 14px; padding-bottom: 12px; }
  #quoteModalFull .offer-title { font-size: 21px; margin-top: 8px; }
  #quoteModalFull .offer-sub,
  #quoteModalFull .offer-terms { display: none; }
  #quoteModalFull .offer-form { padding: 12px 18px 14px; }
  #quoteModalFull .offer-submit { height: 46px; font-size: 15px; }
}

@media (max-width: 480px) {
  #quoteModalFull .offer-head { padding-left: 18px; }
  #quoteModalFull .pf-checks { gap: 6px 12px; }
  #quoteModalFull .pf-check { font-size: 13.5px; }
}
