.wpcf7-response-output {
  border: none !important;
  padding: 0 !important;
  margin: 20px 0 0 0 !important;
  font-size: 14px !important;
  width: 100% !important;
  text-align: center;
  color: #fff;
}
.wpcf7-submit {
  cursor: pointer;
}
.wpcf7-not-valid-tip {
  display: none !important;
}
.wpcf7-not-valid {
  border: 1px solid red !important;
}
.form > .wpcf7 {
  width: 100%;
}
form.wpcf7-form > p {
  width: 100%;
  text-align: center;
  position: relative;
}
.wpcf7-spinner {
  position: absolute;
  bottom: 20px;
}

/* ── Early bird section – CF7 wrapper ── */
.early_bottom .wpcf7 {
  width: 704px;
  flex-shrink: 0;
}
.early_bottom .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.early_bottom .wpcf7-response-output {
  color: #282828 !important;
  margin: 0 !important;
}

@media (max-width: 1919px) and (min-width: 801px) {
  .early_bottom .wpcf7 {
    width: 50%;
  }
}

@media (max-width: 800px) {
  .early_bottom .wpcf7 {
    width: 100%;
  }
  .early_bottom .wpcf7-form {
    gap: 40px;
  }
}

/* ── CF7 success overlay & modal ── */
.cf7-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 243, 236, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cf7-success-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}
.cf7-success-modal {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  border-radius: 20px;
  padding: 60px;
  width: min(800px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.cf7-success-overlay.is-visible .cf7-success-modal {
  transform: translateY(0);
}
.cf7-success-header {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.cf7-success-title {
  flex: 1;
  font-family: "Montserrat-Medium", sans-serif;
  font-size: 50px;
  font-weight: 500;
  color: #282828;
  line-height: normal;
}
.cf7-success-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.cf7-success-close svg {
  width: 44px;
  height: 44px;
}
.cf7-success-message {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #282828;
  line-height: normal;
  width: 100%;
}

@media (max-width: 800px) {
  .cf7-success-modal {
    padding: 40px 30px;
  }
  .cf7-success-title {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .cf7-success-modal {
    padding: 30px 20px;
  }
  .cf7-success-title {
    font-size: 28px;
  }
  .cf7-success-message {
    font-size: 15px;
  }
}

/* ── Form modal (opened by .form_button) ── */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 243, 236, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.form-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}
.form-modal {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  border-radius: 20px;
  padding: 30px 60px 60px;
  width: min(800px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.form-modal-overlay.is-visible .form-modal {
  transform: translateY(0);
}

/* Header: close btn + title, centered column */
.form-modal-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.form-modal-close {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-modal-close svg {
  width: 44px;
  height: 44px;
}
.form-modal-title {
  font-family: "Montserrat-Medium", sans-serif;
  font-size: 50px;
  font-weight: 500;
  color: #282828;
  text-align: center;
  line-height: normal;
  margin: 0;
  width: 100%;
}

/* CF7 form inside modal — full width, inherit existing styles */
.form-modal .wpcf7 {
  width: 100%;
}
.form-modal .wpcf7-form {
  width: 100%;
  gap: 40px;
}

@media (max-width: 800px) {
  .form-modal {
    padding: 30px 30px 40px;
  }
  .form-modal-title {
    font-size: 36px;
  }
  .form-modal-top {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .form-modal-close {
    width: fit-content;
    height: fit-content;
  }
  .form-modal-close svg {
    width: 34px;
    height: 34px;
  }
  .form-modal {
    padding: 17px 20px 40px;
  }
  .form-modal-title {
    font-size: 28px;
  }
}

@media (max-width: 375px) {
  .form-modal {
    padding: 20px;
  }
  .form-modal-top {
    gap: 20px;
  }
  .form-modal-close svg {
    width: 30px;
    height: 30px;
  }
  .form-modal-title {
    font-size: 24px;
  }
}
