/* HubSpot Form Styles for Lumio Theme */
.hbspt-form {
  width: 100%;
}

.hbspt-form .hs-form,
.hbspt-form form.hs-form-private {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hbspt-form .hs-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hbspt-form label:not(.hs-form-checkbox-display):not(.hs-form-booleancheckbox-display) {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff !important;
}

/* Input field styling - aggressive selectors to override HubSpot defaults */
.hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]),
.hbspt-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.hbspt-form select,
.hbspt-form textarea,
.hbspt-form .hs-form-field input[type="text"],
.hbspt-form .hs-form-field input[type="email"],
.hbspt-form .hs-form-field input[type="tel"],
.hbspt-form .hs-form-field input[type="number"],
.hbspt-form .hs-form-field textarea,
.hbspt-form .hs-form-field select,
.hbspt-form form input.hs-input,
.hbspt-form form textarea.hs-input,
.hbspt-form form select.hs-input,
form.hs-form input.hs-input,
form.hs-form textarea.hs-input,
form.hs-form-private input.hs-input,
form.hs-form-private textarea.hs-input,
.hs-form input.hs-input,
.hs-form textarea.hs-input,
.hs-form-private input.hs-input,
.hs-form-private textarea.hs-input {
  width: 100% !important;
  border: 1px solid #204D4E !important;
  background-color: rgba(0, 0, 0, 0.16) !important;
  background: rgba(0, 0, 0, 0.16) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 300 !important;
  color: #f5f5f4 !important;
  height: 3.5rem !important;
  border-radius: 0 !important;
  transition: all 200ms ease-in-out !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

.hbspt-form .hs-input:not([type="checkbox"]):not([type="radio"]):focus,
.hbspt-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.hbspt-form select:focus,
.hbspt-form textarea:focus,
form.hs-form input.hs-input:focus,
form.hs-form-private input.hs-input:focus,
.hs-form input.hs-input:focus,
.hs-form-private input.hs-input:focus {
  border-color: #204D4E !important;
  outline: 1px solid rgba(111, 245, 144, 0.65) !important;
  box-shadow: none !important;
}

.hbspt-form textarea.hs-input,
.hbspt-form textarea {
  height: 8rem !important;
  resize: none !important;
}

.hbspt-form .hs-button,
.hbspt-form input[type="submit"] {
  background-color: #6FF590 !important;
  border: none !important;
  color: #15393A !important;
  border-radius: 9999px !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 200ms ease-in-out;
  width: auto !important;
  max-width: max-content !important;
}

.hbspt-form .hs-button:hover,
.hbspt-form input[type="submit"]:hover {
  background-color: #9EFBB5 !important;
}

.hbspt-form .hs-form-required {
  color: inherit;
  margin-left: 0.125rem;
}

/* HubSpot Checkbox Styles */
.hbspt-form .hs-form-checkbox-display,
.hbspt-form .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.hbspt-form .hs-form-checkbox-display span,
.hbspt-form .hs-form-booleancheckbox-display span {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.625;
}

.hbspt-form .hs-form-checkbox-display a,
.hbspt-form .hs-form-booleancheckbox-display a {
  color: #6FF590;
}

.hbspt-form .hs-form-checkbox-display a:hover,
.hbspt-form .hs-form-booleancheckbox-display a:hover {
  color: #9EFBB5;
}

.hbspt-form input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 1px solid #204D4E;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.125rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hbspt-form input[type="checkbox"]:checked {
  background-color: #6FF590;
  border-color: #6FF590;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23163939'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* HubSpot Error Styles */
.hbspt-form .hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 0.25rem;
}

.hbspt-form .hs-error-msgs label,
.hbspt-form .hs-error-msg {
  color: #f87171;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.hbspt-form .hs-form-field.error .hs-input {
  border-color: #f87171;
}

/* HubSpot Legal/GDPR Text */
.hbspt-form .legal-consent-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hbspt-form .legal-consent-container .hs-richtext {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.625;
}

.hbspt-form .legal-consent-container .hs-richtext a {
  color: #6FF590;
}

.hbspt-form .legal-consent-container .hs-richtext a:hover {
  color: #9EFBB5;
}

/* Submit button container */
.hbspt-form .hs-submit {
  margin-top: 0.5rem;
}

/* Submitted message styling */
.hbspt-form .submitted-message {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #f5f5f4;
}

/* Hide HubSpot branding link */
.hbspt-form .hs-form + a[href*="hubspot"] {
  display: none !important;
}

/* Ensure iframe form displays properly */
.hbspt-form iframe {
  width: 100% !important;
  min-height: 500px !important;
}
