/* ============================================
   HubSpot Form - Single Line Styling
   Matches the custom single-line form design
   ============================================ */

/* Hero Banner HubSpot Form Styles */
.hero-cta-hubspot .hubspot-form-container form,
.home-hero-cta-hubspot .hubspot-form-container form {
  max-width: 100% !important;
}

.hero-cta-hubspot .hubspot-form-container .hs-form,
.home-hero-cta-hubspot .hubspot-form-container .hs-form {
  position: relative;
  display: flex !important;
  align-items: center !important;
  background-color: #ffffff;
  border-radius: 9999px !important;
  padding: 6px !important;
  transition: all 0.3s ease;
}

.hero-cta-hubspot .hubspot-form-container .hs-form-field,
.home-hero-cta-hubspot .hubspot-form-container .hs-form-field {
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-cta-hubspot .hubspot-form-container .hs-input,
.home-hero-cta-hubspot .hubspot-form-container .hs-input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 12px 24px !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (min-width: 768px) {
  .hero-cta-hubspot .hubspot-form-container .hs-input,
  .home-hero-cta-hubspot .hubspot-form-container .hs-input {
    padding: 16px 24px !important;
    font-size: 1.125rem !important;
  }
}

.hero-cta-hubspot .hubspot-form-container .hs-input::placeholder,
.home-hero-cta-hubspot .hubspot-form-container .hs-input::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

.hero-cta-hubspot .hubspot-form-container .hs-input:focus,
.home-hero-cta-hubspot .hubspot-form-container .hs-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Submit Button Styling */
.hero-cta-hubspot .hubspot-form-container .hs-submit,
.home-hero-cta-hubspot .hubspot-form-container .hs-submit {
  margin: 0 !important;
  padding: 0 !important;
}

.hero-cta-hubspot .hubspot-form-container .hs-button,
.home-hero-cta-hubspot .hubspot-form-container .hs-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 6px !important;
  border-radius: 9999px !important;
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  transition: all 0.3s ease !important;
  border: none !important;
  cursor: pointer !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

@media (min-width: 768px) {
  .hero-cta-hubspot .hubspot-form-container .hs-button,
  .home-hero-cta-hubspot .hubspot-form-container .hs-button {
    width: auto !important;
    height: auto !important;
    padding: 12px 24px !important;
  }
}

/* Button content */
.hero-cta-hubspot .hubspot-form-container .hubspot-arrow-icon,
.home-hero-cta-hubspot .hubspot-form-container .hubspot-arrow-icon {
  display: block;
}

@media (min-width: 768px) {
  .hero-cta-hubspot .hubspot-form-container .hubspot-arrow-icon,
  .home-hero-cta-hubspot .hubspot-form-container .hubspot-arrow-icon {
    display: none !important;
  }
  
  .hero-cta-hubspot .hubspot-form-container .hubspot-button-text,
  .home-hero-cta-hubspot .hubspot-form-container .hubspot-button-text {
    display: inline !important;
  }
}

/* Hide labels */
.hero-cta-hubspot .hubspot-form-container .hs-form-field label,
.home-hero-cta-hubspot .hubspot-form-container .hs-form-field label {
  display: none !important;
}

/* Error messages */
.hero-cta-hubspot .hubspot-form-container .hs-error-msgs,
.home-hero-cta-hubspot .hubspot-form-container .hs-error-msgs {
  margin-top: 8px !important;
  padding-left: 24px !important;
}

.hero-cta-hubspot .hubspot-form-container .hs-error-msg,
.home-hero-cta-hubspot .hubspot-form-container .hs-error-msg {
  color: #ef4444 !important;
  font-size: 0.875rem !important;
}

/* Remove default HubSpot styling */
.hero-cta-hubspot .hubspot-form-container .hs-form fieldset,
.home-hero-cta-hubspot .hubspot-form-container .hs-form fieldset {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-cta-hubspot .hubspot-form-container .hs-form .hs-form-field ul,
.home-hero-cta-hubspot .hubspot-form-container .hs-form .hs-form-field ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Success message */
.hero-cta-hubspot .hubspot-form-container .submitted-message,
.home-hero-cta-hubspot .hubspot-form-container .submitted-message {
  padding: 16px 24px !important;
  text-align: center !important;
  color: #059669 !important;
  font-weight: 600 !important;
}

/* ============================================
   Image Button Overlay — HubSpot pill form
   ============================================ */

.ibo-hubspot-form .hubspot-form-container form,
.ibo-hubspot-form .hubspot-form-container .hs-form {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Outer pill container */
.ibo-hubspot-form .hubspot-form-container .hs-form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  background-color: #ebebeb !important;
  border-radius: 9999px !important;
  padding: 5px !important;
}

/* Fieldset (input side) stretches */
.ibo-hubspot-form .hubspot-form-container .hs-form fieldset {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Strip all intermediate wrappers */
.ibo-hubspot-form .hubspot-form-container .hs-form-field,
.ibo-hubspot-form .hubspot-form-container .hs-form-field .input {
  margin: 0 !important;
  padding: 0 !important;
}

/* Email input */
.ibo-hubspot-form .hubspot-form-container .hs-input {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 12px 20px !important;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.ibo-hubspot-form .hubspot-form-container .hs-input::placeholder {
  color: #9ca3af !important;
  opacity: 1 !important;
}

.ibo-hubspot-form .hubspot-form-container .hs-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Submit side — shrinks to button */
.ibo-hubspot-form .hubspot-form-container .hs-submit {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ibo-hubspot-form .hubspot-form-container .hs-submit .actions {
  margin: 0 !important;
  padding: 0 !important;
}

/* Submit button */
.ibo-hubspot-form .hubspot-form-container .hs-button {
  display: inline-block !important;
  border-radius: 9999px !important;
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  white-space: nowrap !important;
  border: none !important;
  cursor: pointer !important;
  background-color: #D7E024 !important;
  color: #222225 !important;
  padding: 12px 24px !important;
  line-height: 1 !important;
  transition: background-color 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.ibo-hubspot-form .hubspot-form-container .hs-button:hover {
  background-color: #c4ce0f !important;
}

/* Hide field labels */
.ibo-hubspot-form .hubspot-form-container .hs-form-field > label {
  display: none !important;
}

/* Error messages */
.ibo-hubspot-form .hubspot-form-container .hs-error-msgs {
  list-style: none !important;
  margin: 6px 0 0 20px !important;
  padding: 0 !important;
  text-align: left !important;
}

.ibo-hubspot-form .hubspot-form-container .hs-error-msg {
  color: #ef4444 !important;
  font-family: 'Work Sans', sans-serif !important;
  font-size: 0.8rem !important;
}

.ibo-hubspot-form .hubspot-form-container .hs-form .hs-form-field ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Success message */
.ibo-hubspot-form .hubspot-form-container .submitted-message {
  padding: 12px 20px !important;
  text-align: center !important;
  color: #059669 !important;
  font-family: 'Work Sans', sans-serif !important;
  font-weight: 600 !important;
}

/* Mobile — stack vertically */
@media (max-width: 480px) {
  .ibo-hubspot-form .hubspot-form-container .hs-form {
    flex-direction: column !important;
    border-radius: 14px !important;
    padding: 8px !important;
    align-items: stretch !important;
  }

  .ibo-hubspot-form .hubspot-form-container .hs-form fieldset,
  .ibo-hubspot-form .hubspot-form-container .hs-submit,
  .ibo-hubspot-form .hubspot-form-container .hs-submit .actions,
  .ibo-hubspot-form .hubspot-form-container .hs-button {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
  }
}

/* ============================================
   Single webinar sidebar — full HubSpot embed
   (matches gated eBook / playbook card styling)
   ============================================ */

.single-webinar .webinar-hubspot-card .hs-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-webinar .webinar-hubspot-card fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.single-webinar .webinar-hubspot-card fieldset legend {
  display: none !important;
}

.single-webinar .webinar-hubspot-card fieldset.form-columns-2 .hs-form-field {
  width: calc(50% - 6px) !important;
  display: inline-block !important;
  vertical-align: top !important;
}

.single-webinar .webinar-hubspot-card fieldset.form-columns-2 .hs-form-field:first-child {
  margin-right: 12px !important;
}

.single-webinar .webinar-hubspot-card fieldset.form-columns-1 .hs-form-field {
  width: 100% !important;
}

.single-webinar .webinar-hubspot-card .hs-form-field {
  margin-bottom: 12px !important;
}

.single-webinar .webinar-hubspot-card .hs-form-field .input {
  margin: 0 !important;
}

.single-webinar .webinar-hubspot-card .hs-form-field > label {
  display: none !important;
}

.single-webinar .webinar-hubspot-card .hs-input:not([type="checkbox"]):not([type="radio"]),
.single-webinar .webinar-hubspot-card textarea.hs-input {
  background-color: #F1F3F7 !important;
  border: 0px solid #e5e7eb !important;
  border-radius: 0px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #111827 !important;
  width: 100% !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.single-webinar .webinar-hubspot-card .hs-input:not([type="checkbox"]):not([type="radio"]):focus,
.single-webinar .webinar-hubspot-card textarea.hs-input:focus {
  border-color: #0066cc !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.15) !important;
}

.single-webinar .webinar-hubspot-card select.hs-input {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 40px !important;
}

.single-webinar .webinar-hubspot-card .hs-input::placeholder,
.single-webinar .webinar-hubspot-card textarea.hs-input::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.single-webinar .webinar-hubspot-card .inputs-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 0 !important;
}

.single-webinar .webinar-hubspot-card .inputs-list li {
  margin-bottom: 8px !important;
}

.single-webinar .webinar-hubspot-card .hs-form-booleancheckbox-display {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #111827 !important;
  line-height: 1.4 !important;
  user-select: none !important;
}

.single-webinar .webinar-hubspot-card input[type="checkbox"].hs-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  border-radius: 3px !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  position: static !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.single-webinar .webinar-hubspot-card input[type="checkbox"].hs-input:checked {
  background-color: #00d9d9 !important;
  border-color: #00d9d9 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 11px !important;
}

.single-webinar .webinar-hubspot-card .hs-submit {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  align-self: flex-start !important;
}

.single-webinar .webinar-hubspot-card .hs-submit .actions {
  margin: 0 !important;
  padding: 0 !important;
}

.single-webinar .webinar-hubspot-card .hs-button {
  display: inline-block !important;
  width: auto !important;
  min-width: 12rem !important;
  border-radius: 9999px !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border: none !important;
  cursor: pointer !important;
  background-color: #d7e024 !important;
  color: #111827 !important;
  padding: 14px 28px !important;
  line-height: 1.2 !important;
  transition: background-color 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.single-webinar .webinar-hubspot-card .hs-button:hover {
  background-color: #c4cc20 !important;
}

.single-webinar .webinar-hubspot-card .hs-error-msgs {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 0 !important;
}

.single-webinar .webinar-hubspot-card .hs-error-msgs li label {
  color: #dc2626 !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
}

.single-webinar .webinar-hubspot-card .submitted-message {
  padding: 12px 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #059669 !important;
  line-height: 1.4 !important;
}

@media (max-width: 520px) {
  .single-webinar .webinar-hubspot-card fieldset.form-columns-2 .hs-form-field {
    width: 100% !important;
    display: block !important;
    margin-right: 0 !important;
  }

  .single-webinar .webinar-hubspot-card .hs-submit,
  .single-webinar .webinar-hubspot-card .hs-button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .single-webinar .webinar-hubspot-card .hs-submit {
    align-self: stretch !important;
  }
}
