.tdg-floating-sample-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999999;
  display: block;
  animation: gentle-bounce 3s ease-in-out infinite;
  /* position: relative; */
  max-width: 140px;
}

.tdg-floating-btn-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-green);
  color: var(--blue-gray);
  padding: 15px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  /* white-space: nowrap; */
  position: relative;
  line-height: 1.4em;
}

.tdg-floating-btn-close {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--blue-gray, #0d1d27);
  border: 2px solid var(--accent-green, #28a745);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green, #28a745);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.tdg-floating-btn-close:hover {
  background: var(--accent-green, #28a745);
  color: var(--blue-gray, #0d1d27);
  transform: scale(1.1);
}

.tdg-floating-btn-link:hover {
  background: var(--blue-gray, #0d1d27);
  color: var(--accent-green, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
  text-decoration: none;
}

.tdg-floating-btn-icon {
  font-size: 18px;
  animation: pulse-icon 2s ease-in-out infinite;
  display: none;
}

.tdg-floating-btn-text {
  font-weight: 800;
  letter-spacing: 0.3px;
}

@keyframes gentle-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@keyframes pulse-icon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .tdg-floating-sample-btn {
    bottom: 20px;
    left: 20px;
  }

  .tdg-floating-btn-link {
    padding: 12px 16px;
    font-size: 13px;
    gap: 10px;
  }

  .tdg-floating-btn-text {
    display: none;
  }

  .tdg-floating-btn-link::after {
    content: "Free Sample";
    font-weight: 600;
  }
}

.tdg-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tdg-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.tdg-popup-container {
  position: relative;
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(50px);
  transition: transform 0.3s ease;
}

.tdg-popup-overlay.show .tdg-popup-container {
  transform: scale(1) translateY(0);
}

.tdg-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: #fff;
}

.tdg-popup-close:hover {
  background: #fff;
}

/* Two Column Layout */
.tdg-popup-columns {
  display: flex;
  min-height: 600px;
  background: linear-gradient(45deg, #ffffff 40%, #bbc8e7 100%);
}

.tdg-popup-left {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 500px;
}

.tdg-popup-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%); */
}

.tdg-popup-right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* background: #fff; */
  /* background-color: rgba(255,255,255,0.8); */
  /* background-blend-mode: lighten; */
  /* background-position: center left; */
}

/* Header */
.tdg-popup-header {
  margin-bottom: 32px;
  text-align: center;
}

.tdg-popup-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--blue-gray);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.tdg-popup-subtitle {
  font-size: 20px;
  color: var(--blue-gray);
  margin: 0;
  line-height: 1.4;
}

/* Form Section */
.tdg-popup-form {
  margin-bottom: 32px;
}

.tdg-popup-form-placeholder {
  text-align: center;
}

.tdg-popup-form-placeholder p {
  color: #999;
  font-style: italic;
  margin-bottom: 20px;
}

.tdg-popup-email-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.tdg-popup-email-input:focus {
  outline: none;
  border-color: #007cba;
}

.tdg-popup-submit-btn {
  width: 100%;
  padding: 16px;
  background: #007cba;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tdg-popup-submit-btn:hover {
  background: #005a87;
}

.tdg-popup-footer {
  text-align: center;
}

.tdg-popup-disclaimer {
  font-size: 13px;
  color: var(--blue-gray);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.tdg-popup-privacy {
  font-size: 12px;
  color: var(--blue-gray);
  margin: 0;
  line-height: 1.4;
}
form#gform_3 input#input_3_1,
form#gform_3 input#input_3_3 {
  border-color: var(--blue-gray);
  max-width: 80%;
  margin: auto;
  display: block;
  border-radius: 14px;
  color: #000 !important;
  font-weight: 600;
  font-size: 16px;
}
form#gform_3 input#input_3_1::placeholder,
form#gform_3 input#input_3_3::placeholder {
  color: var(--blue-gray);
}

input#gform_next_button_3_2,
input#gform_submit_button_3 {
  border-radius: 12px;
  background: var(--accent-green);
  font-size: 16px;
  font-weight: 600;
  border: 0;
  padding: 18px 35px !important;
  cursor: pointer;
  transition: all ease 0.3s;
  margin: auto;
  display: block;
}
input#gform_next_button_3_2:hover,
input#gform_submit_button_3:hover {
  background-color: var(--blue-gray);
  color: #fff;
}
div#gf_progressbar_wrapper_3 {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

input#input_3_3 {
  border-color: var(--blue-gray);
  max-width: 80%;
  margin: auto;
  display: block;
  border-radius: 14px;
  color: #000;
}

p.gf_progressbar_title {
  font-size: 14px;
}
div#validation_message_3_1,
div#validation_message_3_3 {
  text-align: center;
}
form#gform_3 input#gform_submit_button_3 {
  margin: auto;

  border-radius: 12px;
}
form#gform_3 .gform_wrapper .gfield_error .validation_message {
  text-align: center;
}
.gform-page-footer.gform_page_footer.top_label {
  position: relative;
}
.gfield.gfield--type-honeypot {
  display: none !important;
}
@media (max-width: 980px) {
  .tdg-popup-container {
    width: 95%;
    max-width: none;
  }
  .tdg-popup-header {
    margin-bottom: 20px;
  }
  .tdg-popup-columns {
    flex-direction: column;
    flex-direction: column-reverse;
    min-height: auto;
  }

  .tdg-popup-left {
    min-height: 200px;
    flex: none;
  }

  .tdg-popup-right {
    padding: 32px 24px;
  }

  .tdg-popup-title {
    font-size: 28px;
  }

  .tdg-popup-subtitle {
    font-size: 16px;
  }

  .tdg-popup-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  div#gform_wrapper_3 {
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .tdg-popup-right {
    padding: 24px 20px;
  }

  .tdg-popup-title {
    font-size: 24px;
  }

  .tdg-popup-header {
    margin-bottom: 24px;
  }

  .tdg-popup-form {
    margin-bottom: 24px;
  }
}

.tdg-popup-close svg line {
  color: var(--blue-gray);
}

.tdg-popup-close svg {
  width: 40px;
  height: 40px;
}
