/* Try it Free Form Overlay */
.tryitfree-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px 0;
  display: none;
   display: flex;
  align-items: center; 
  justify-content: center; 
}

.tryitfree-overlay .contact-section-bg {
  min-height: auto;
  padding: 20px 0;
}

/* Try it Free Form Card */
.tryitfree-card {
  max-width: 600px;
  margin: 40px auto;
  overflow: visible;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.tryitfree-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: white;
  border: 2px solid #e0e0e0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  font-weight: 600;
}

.tryitfree-close-btn:hover {
  background: white;
  color: #333;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Try it Free Form Heading */
.tryitfree-card h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

/* Form Styles */
.tryitfree-form .form_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.tryitfree-form .field {
  margin-bottom: 0;
}

.tryitfree-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.tryitfree-form .star {
  color: red;
  font-size: 16px;
  padding-left: 2px;
}

.tryitfree-form input,
.tryitfree-form select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1.5px solid #b5b7bb;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.tryitfree-form input:focus,
.tryitfree-form select:focus {
  outline: none;
  border-color: #f25521;
}

.tryitfree-form .error {
  color: red;
  font-size: 12px;
  padding-top: 5px;
  min-height: 20px;
  display: block;
}

.tryitfree-form .success {
  display: none;
  color: green;
  text-align: center;
  margin-top: 15px;
  font-weight: 500;
}

/* Phone Number Field */
.tryitfree-form .phone-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #b5b7bb;
  border-radius: 6px;
  height: 46px;
  padding: 0 10px;
}

.tryitfree-form .country-code {
  font-weight: 600;
  margin-right: 8px;
  color: #333;
}

.tryitfree-form .phone-wrapper input {
  border: none;
  outline: none;
  flex: 1;
  height: 100%;
  font-size: 14px;
  padding: 0;
}

/* Submit Button Position */
.tryitfree-form .text_end {
  text-align: right;
  margin-top: 10px;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .tryitfree-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tryitfree-card {
    margin: auto;
    max-width: 500px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tryitfree-overlay {
    padding: 10px;
  }

  .tryitfree-card {
    margin: 15px;
    width: calc(100% - 30px);
    padding: 25px 15px;
  }

  .tryitfree-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .tryitfree-form .form_row {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
  }

  .tryitfree-form input,
  .tryitfree-form select {
    padding: 10px;
    font-size: 14px;
  }

  .tryitfree-close-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
    top: 0px;
    right: 0px;
  }
}
