/* ============================================
   HUBSPOT CMS OVERRIDES
   Neutralize HubSpot default styles that
   interfere with custom theme layout
   ============================================ */

/* Reset HubSpot body containers */
.body-container-wrapper {
  padding: 0;
  margin: 0;
}
.body-container {
  padding: 0;
  margin: 0;
  max-width: none;
}

/* Ensure body-wrapper doesn't add unwanted styles */
.body-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.body-wrapper > main {
  flex: 1;
}

/* ============================================
   DND AREA WRAPPER NEUTRALIZATION
   HubSpot generates a lot of wrapper divs in
   DND areas. Make them transparent to layout.
   ============================================ */

.dnd-section,
.dnd-column,
.dnd-row,
.dnd-module {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

.dnd-section > .row-fluid-wrapper,
.dnd-section .row-fluid-wrapper,
.dnd-section .row-fluid,
.dnd-column .row-fluid,
.dnd-row .row-fluid {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* HubSpot 12-col grid compatibility (span12 = full width) */
.span12.widget-span,
.span12.dnd-column,
.span12.dnd-module {
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
}

/* HubSpot module wrapper - must be block-level and full-width */
.hs_cos_wrapper_type_module,
.hs_cos_wrapper_type_custom_widget,
.hs_cos_wrapper {
  display: block;
  width: 100%;
}

/* Remove spacing between DND modules when they are full-width sections */
.dnd-module + .dnd-module,
.dnd-row + .dnd-row {
  margin-top: 0;
}

/* Fix rich_text wrapper padding (from legacy DND usage) */
.hs_cos_wrapper_type_rich_text > :first-child {
  margin-top: 0;
}
.hs_cos_wrapper_type_rich_text > :last-child {
  margin-bottom: 0;
}

/* ============================================
   HUBSPOT FORM OVERRIDES
   ============================================ */
.hs-form .hs-input {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  background: var(--bg-card);
  color: var(--text);
}
.hs-form .hs-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
.hs-form .hs-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-8);
  cursor: pointer;
  transition: all var(--dur-norm) var(--ease-out);
}
.hs-form .hs-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.hs-form .hs-error-msg,
.hs-form .hs-error-msgs {
  color: var(--error);
  font-size: 0.75rem;
  list-style: none;
  padding: 0;
}
.hs-form label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-bottom: var(--space-2);
  display: block;
}
.hs-form fieldset {
  max-width: none;
}
.hs-form .field {
  margin-bottom: var(--space-4);
}
