.qfm-form-wrapper .column:has(select[name="select-515"]),
.qfm-form-wrapper .wpcf7-form-control-wrap.select-515 {
  display: none !important;
}

html.qfm-modal-open,
body.qfm-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.qfm-modal-open {
  position: fixed !important;
  width: 100% !important;
  left: 0;
  right: 0;
  touch-action: none;
}

.qfm-pay-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 25, 15, 0.4);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.qfm-pay-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.qfm-pay-modal__dialog {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  touch-action: pan-y;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
}

.qfm-pay-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.qfm-pay-modal__close:hover,
.qfm-pay-modal__close:focus {
  background: #e5e7eb;
  color: #1f2937;
  outline: none;
}

.qfm-pay-modal__close:focus-visible {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2e7d32;
}

.qfm-pay-modal.is-open .qfm-pay-modal__dialog {
  transform: translateY(0);
}

.qfm-pay-modal__handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: -15px auto 20px auto;
}

.qfm-pay-modal__logo {
  width: 110px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.qfm-pay-modal__title {
  color: #1b3b22;
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 600;
}

.qfm-pay-modal__subtitle {
  color: #556b2f;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.4;
}

.qfm-pay-modal__timer {
  background: #eef9f1;
  border: 1px solid #c2e7cc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qfm-pay-modal__timer-icon {
  font-size: 16px;
}

.qfm-pay-modal__timer-text {
  color: #1e4620;
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.qfm-pay-modal__timer.is-ending .qfm-pay-modal__timer-text {
  color: #b91c1c;
}

.qfm-pay-modal__summary {
  background: #f4f9f5;
  border: 1px solid #e1eee5;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
}

.qfm-pay-modal__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #3b4d3e;
}

.qfm-pay-modal__row:last-child {
  margin-bottom: 0;
}

.qfm-pay-modal__row--total {
  border-top: 1px dashed #c2e7cc;
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 700;
  color: #1b3b22;
  font-size: 16px;
}

.qfm-pay-modal__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.qfm-pay-modal__cta:hover,
.qfm-pay-modal__cta:focus {
  background-color: #1b5e20;
}

.qfm-pay-modal__cta-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: qfm-pay-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.qfm-pay-modal__cta.is-loading .qfm-pay-modal__cta-loader,
.qfm-pay-modal__cta:disabled .qfm-pay-modal__cta-loader {
  display: inline-block;
}

.qfm-pay-modal__cta.is-loading,
.qfm-pay-modal__cta:disabled {
  opacity: 0.85;
  cursor: wait;
  pointer-events: none;
}

.qfm-pay-modal__status {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #4b5563;
}

@keyframes qfm-pay-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 576px) {
  .qfm-pay-modal {
    align-items: center;
  }

  .qfm-pay-modal__dialog {
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  }
}

/* Thank-you: Complete Payment CTA ([qfm_complete_payment]) */
.qfm-complete-payment {
  width: 100%;
  max-width: 40.0417vw;
  margin: 0 auto 2.8646vw;
  padding: 1.8vw 1.5vw;
  text-align: center;
  background: #fff;
  border: 0.0521vw solid #e5eaf0;
  border-top: 0.2604vw solid #dc2626;
  border-radius: 0.7292vw;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.qfm-complete-payment__text {
  margin: 0 0 0.8vw;
  color: #3b302d;
  font-size: 1.5vw;
  font-weight: 600;
  line-height: 1.4;
}

.qfm-complete-payment__amount {
  margin: 0 0 1.2vw;
  color: #111827;
  font-size: 1.8vw;
  font-weight: 800;
  line-height: 1.2;
}

.qfm-complete-payment__btn {
  display: inline-block;
  min-width: 60%;
  padding: 0.9vw 1.6vw;
  color: #fff !important;
  background: #dc2626;
  border-radius: 0.5vw;
  font-size: 1.4vw;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.qfm-complete-payment__btn:hover,
.qfm-complete-payment__btn:focus {
  color: #fff !important;
  background: #b91c1c;
}

@media only screen and (max-width: 999px) {
  .qfm-complete-payment {
    max-width: 100%;
    margin-bottom: 30px;
    padding: 22px 18px;
    border-top-width: 4px;
    border-radius: 12px;
  }

  .qfm-complete-payment__text {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .qfm-complete-payment__amount {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .qfm-complete-payment__btn {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
  }
}