/*
--------------------------------------------------------------------------
| Gillingham Storage Direct Debit Page CSS
--------------------------------------------------------------------------
| Candidate: v1.0.2
| Scope: /set-up-a-direct-debit/ only
| Notes:
| - Keeps the dark-blue page shell and right-image treatment.
| - Broadens the left-column selectors so the live heading, supporting copy,
|   and CTA inherit the same styling without depending on fragile wrapper IDs.
--------------------------------------------------------------------------
*/

/* 1. Page shell */
.site,
.site-content,
.content-area,
.site-main,
.inside-article,
.entry-content,
.entry-content > .elementor {
  background: #123e6d !important;
}

.inside-article {
  box-shadow: none !important;
  padding: 0 !important;
}

.entry-header,
.entry-title {
  display: none !important;
}

.site-content {
  padding-top: clamp(40px, 5vw, 72px) !important;
  padding-bottom: clamp(56px, 6vw, 88px) !important;
}

/* 2. Main layout */
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container {
  max-width: 1560px !important;
  margin: 0 auto !important;
  align-items: stretch !important;
  gap: clamp(44px, 4vw, 72px) !important;
}

/* 3. Left column structure */
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:first-child,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:first-child {
  width: min(100%, 640px) !important;
  max-width: 640px !important;
  flex: 0 0 640px !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:first-child > .elementor-element,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:first-child .elementor-widget {
  width: 100% !important;
}

/* 4. Left column typography */
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-heading,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-heading {
  margin: 0 0 26px !important;
}

.entry-content > .elementor > .elementor-element:first-child .elementor-widget-heading .elementor-heading-title,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-heading .elementor-heading-title,
.entry-content > .elementor > .elementor-element:first-child h1,
.entry-content > .elementor > .elementor-element:first-child h2,
.entry-content > .elementor > .elementor-element:first-child h3,
.entry-content > .elementor > .elementor-section:first-child h1,
.entry-content > .elementor > .elementor-section:first-child h2,
.entry-content > .elementor > .elementor-section:first-child h3 {
  color: #0ea5e9 !important;
  font-family: "Nunito", sans-serif !important;
  font-size: clamp(44px, 4.2vw, 58px) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  margin: 0 !important;
}

.entry-content > .elementor > .elementor-element:first-child .elementor-widget-text-editor,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-text-editor,
.entry-content > .elementor > .elementor-element:first-child .elementor-text-editor,
.entry-content > .elementor > .elementor-section:first-child .elementor-text-editor {
  margin-bottom: 18px !important;
}

.entry-content > .elementor > .elementor-element:first-child .elementor-widget-text-editor,
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-text-editor p,
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-text-editor div,
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-text-editor span,
.entry-content > .elementor > .elementor-element:first-child .elementor-text-editor,
.entry-content > .elementor > .elementor-element:first-child .elementor-text-editor p,
.entry-content > .elementor > .elementor-element:first-child .elementor-text-editor div,
.entry-content > .elementor > .elementor-element:first-child .elementor-text-editor span,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-text-editor,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-text-editor p,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-text-editor div,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-text-editor span,
.entry-content > .elementor > .elementor-section:first-child .elementor-text-editor,
.entry-content > .elementor > .elementor-section:first-child .elementor-text-editor p,
.entry-content > .elementor > .elementor-section:first-child .elementor-text-editor div,
.entry-content > .elementor > .elementor-section:first-child .elementor-text-editor span {
  color: #ffffff !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  text-align: center !important;
}

/* 5. QR / image block in left column */
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-image,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-image,
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-shortcode,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-shortcode {
  width: 100% !important;
  margin-bottom: 18px !important;
  text-align: center !important;
}

.entry-content > .elementor > .elementor-element:first-child .elementor-widget-image img,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-image img,
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-shortcode img,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-shortcode img {
  display: block !important;
  width: min(100%, 280px) !important;
  max-width: 280px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* 6. GoCardless / CTA button */
.entry-content > .elementor > .elementor-element:first-child .elementor-widget-button,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-button {
  width: 100% !important;
  margin-top: 8px !important;
}

.entry-content > .elementor > .elementor-element:first-child .elementor-widget-button .elementor-button,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-button .elementor-button,
.entry-content > .elementor > .elementor-element:first-child a.elementor-button,
.entry-content > .elementor > .elementor-section:first-child a.elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 280px !important;
  height: 64px !important;
  padding: 0 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ff8a3d !important;
  color: #ffffff !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 16px 36px rgba(255, 138, 61, 0.34) !important;
}

.entry-content > .elementor > .elementor-element:first-child .elementor-widget-button .elementor-button:hover,
.entry-content > .elementor > .elementor-section:first-child .elementor-widget-button .elementor-button:hover,
.entry-content > .elementor > .elementor-element:first-child a.elementor-button:hover,
.entry-content > .elementor > .elementor-section:first-child a.elementor-button:hover {
  background: #ff8a3d !important;
  color: #ffffff !important;
  transform: none !important;
}

/* 7. Right image column */
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 36px !important;
  min-height: 540px !important;
  align-self: stretch !important;
  background-position: center center !important;
  background-size: cover !important;
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.43) !important;
}

.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child::before,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.43);
  z-index: 1;
  pointer-events: none;
}

.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child > *,
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-widget-wrap,
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-widget-container,
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-text-editor,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child > *,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-widget-wrap,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-widget-container,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-text-editor {
  position: relative !important;
  z-index: 2 !important;
}

.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-widget-text-editor,
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-text-editor,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-widget-text-editor,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-text-editor {
  width: 100% !important;
  max-width: none !important;
  padding: 56px 60px !important;
}

.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-text-editor,
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-text-editor p,
.entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-text-editor div,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-text-editor,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-text-editor p,
.entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-text-editor div {
  color: #123e6d !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.75 !important;
  text-align: center !important;
}

/* 8. Tablet / mobile */
@media (max-width: 1024px) {
  .entry-content > .elementor > .elementor-element:first-child > .e-con-inner,
  .entry-content > .elementor > .elementor-section:first-child > .elementor-container {
    gap: 32px !important;
  }

  .entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:first-child,
  .entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:first-child {
    width: 100% !important;
    max-width: none !important;
    flex-basis: auto !important;
    padding: 0 24px !important;
  }

  .entry-content > .elementor > .elementor-element:first-child .elementor-widget-heading .elementor-heading-title,
  .entry-content > .elementor > .elementor-section:first-child .elementor-widget-heading .elementor-heading-title,
  .entry-content > .elementor > .elementor-element:first-child h1,
  .entry-content > .elementor > .elementor-section:first-child h1 {
    font-size: clamp(34px, 8vw, 46px) !important;
  }

  .entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child,
  .entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child {
    min-height: auto !important;
  }

  .entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-widget-text-editor,
  .entry-content > .elementor > .elementor-element:first-child > .e-con-inner > .e-child:last-child .elementor-text-editor,
  .entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-widget-text-editor,
  .entry-content > .elementor > .elementor-section:first-child > .elementor-container > .elementor-column:last-child .elementor-text-editor {
    padding: 28px 24px !important;
  }
}
