/* Trial Form Styles */
/* Global scroll fix for trial form page */
body.trial-form-page,
html {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.trial-form .form-page {
  /* background-color: #001E4A; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* padding: 2rem 1rem 4rem 1rem; */
  font-family: "Kanit", sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.trial-form .form-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 25, 255, 0.3);
  position: relative;
  margin: 0 auto;
}

.trial-form .form-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(142.95deg, #00e0ff 15.31%, #bd00ff 88.32%);
  border-radius: 22px;
  z-index: -1;
}

.trial-form .form-logo {
  text-align: center;
  margin-bottom: 2rem;
  /* margin-top: 2rem; */
  position: relative;
  z-index: 2;
}

.trial-form .form-logo img {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.trial-form .form-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #001E4A;
  margin-bottom: 2rem;
}

.trial-form .form-group {
  margin-bottom: 1.5rem;
}

.trial-form .form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.trial-form .form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Kanit", sans-serif;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.trial-form .form-input:focus {
  outline: none;
  border-color: #0019FF;
  box-shadow: 0 0 0 3px rgba(0, 25, 255, 0.1);
}

.trial-form .form-input::placeholder {
  color: #999;
  font-weight: 300;
}

.trial-form .form-input.error {
  border-color: #ff4444;
  background-color: #fff5f5;
}

.trial-form .form-input.error:focus {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.trial-form label.error {
  color: #ff4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.trial-form .error {
  border-color: #ff4444 !important;
  background-color: #fff5f5 !important;
}

.trial-form .error:focus {
  border-color: #ff4444 !important;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1) !important;
}

.trial-form .required {
  color: #ff4444;
  font-weight: bold;
}

/* Tilda button styles to match index.php */
.trial-form .t-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-top: 1rem;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  min-height: 50px;
  line-height: 1.2;
}

.trial-form .t-btn_md {
  font-size: 1rem;
  padding: 1rem 2rem;
}

.trial-form .t-btn:not(.t-animate_no-hover):hover {
  background-color: #ffffff !important; 
  color: #0084ff !important;
}

.trial-form .t-btn:active {
  transform: translateY(0);
}

.trial-form .t-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.trial-form .t-btn table {
  margin: 0;
  border-collapse: collapse;
}

.trial-form .t-btn td {
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
}

.trial-form .form-error {
  color: #ff4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.trial-form .form-success {
  background: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}

.trial-form .loading {
  display: none;
  text-align: center;
  margin-top: 1rem;
}

.trial-form .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0019FF;
  border-radius: 50%;
  animation: trial-form-spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes trial-form-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design for trial form */
@media (max-width: 768px) {
  .trial-form .form-page {
    /* padding: 1rem 0.5rem 3rem 0.5rem; */
    justify-content: flex-start;
    min-height: 100vh;
  }
  
  .trial-form .form-container {
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 700px;
  }

  .trial-form .form-title {
    font-size: 1.5rem;
  }
  
  .trial-form .form-logo {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
  }
  
  .trial-form .form-logo img {
    max-width: 250px;
  }
}