/* Custom styles for AI Consultancy Landing Page */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* HubSpot Form Styling */
.hs-form-frame,
.hs-form-frame iframe {
  color-scheme: dark;
}

/* Override HubSpot form styles for dark theme */
.hs-form,
.hs-form-private {
  color: #fff !important;
}

.hs-form label,
.hs-form .hs-form-field > label {
  color: #cbd5e1 !important;
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form input[type="number"],
.hs-form textarea,
.hs-form select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.hs-form input::placeholder,
.hs-form textarea::placeholder {
  color: #64748b !important;
}

.hs-form .hs-button,
.hs-form input[type="submit"] {
  background: linear-gradient(to right, #3b82f6, #2563eb) !important;
  border: none !important;
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.hs-form .hs-button:hover,
.hs-form input[type="submit"]:hover {
  background: linear-gradient(to right, #2563eb, #1d4ed8) !important;
}

.hs-form .hs-error-msgs,
.hs-form .hs-error-msg {
  color: #f87171 !important;
}

.hs-form .hs-richtext,
.hs-form .hs-richtext p {
  color: #94a3b8 !important;
}

/* Legal consent / GDPR text */
.hs-form .legal-consent-container,
.hs-form .hs-form-booleancheckbox-display span {
  color: #94a3b8 !important;
}

.hs-form .hs-form-booleancheckbox-display input {
  accent-color: #3b82f6;
}

/* Custom focus styles for better accessibility */
input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Button press effect */
button:active {
  transform: scale(0.98);
}

/* Form field autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Loading state animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Success checkmark animation */
@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#success-message svg {
  animation: checkmark 0.5s ease-out forwards;
}

/* Fade in animation for messages */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#success-message:not(.hidden),
#error-message:not(.hidden) {
  animation: fadeIn 0.3s ease-out forwards;
}
