/*
|--------------------------------------------------------------------------
| Gillingham Storage Pay Invoice Page CSS
|--------------------------------------------------------------------------
| Candidate: pay invoice mobile structure fix v2
| Scope: /pay-invoice/ only
| Goal:
| - preserve the locked desktop styling
| - remove brittle :has() dependence from the core layout path
| - target the real Elementor page structure shown in inspector
| - move the image block below the form on mobile
| - increase the mobile image height
| - keep all form content inside the viewport
| - force Stripe labels to white on desktop and mobile
|--------------------------------------------------------------------------
*/

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

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

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

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

/* 2. Main page container */
body .entry-content > .elementor,
body .entry-content .elementor-container,
body .entry-content .elementor-element.elementor-element-c35d7dc,
body .entry-content .elementor-element.elementor-element-c35d7dc > .e-con-inner {
  width: 100% !important;
  max-width: 1560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

body .entry-content .elementor-element.elementor-element-c35d7dc > .e-con-inner {
  display: flex !important;
  align-items: stretch !important;
  gap: clamp(28px, 4vw, 56px) !important;
}

/* 3. Real left / right containers from the live page */
body .entry-content .elementor-element.elementor-element-b7814c7 {
  width: 100% !important;
  max-width: 640px !important;
  min-width: 0 !important;
  flex: 0 0 640px !important;
  align-self: flex-start !important;
  box-sizing: border-box !important;
}

body .entry-content .elementor-element.elementor-element-07f88ff {
  width: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  border-radius: 36px !important;
  overflow: hidden !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  position: relative !important;
}

body .entry-content .elementor-element.elementor-element-07f88ff::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.43);
  pointer-events: none;
}

/* 4. Left column widgets */
body .entry-content .elementor-element.elementor-element-c191893,
body .entry-content .elementor-element.elementor-element-a2b1bbb,
body .entry-content .elementor-element.elementor-element-a2b1bbb > .elementor-widget-container,
body .entry-content .elementor-element.elementor-element-a2b1bbb .wpforms-container,
body .entry-content .elementor-element.elementor-element-a2b1bbb .wpforms-form,
body .entry-content .elementor-element.elementor-element-a2b1bbb .wpforms-field-container {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* 5. Heading */
body .entry-content .elementor-element.elementor-element-c191893 {
  margin-bottom: 28px !important;
}

body .entry-content .elementor-element.elementor-element-c191893 .elementor-heading-title {
  margin: 0 !important;
  color: #0ea5e9 !important;
  font-family: "Nunito", sans-serif !important;
  font-size: clamp(44px, 4vw, 60px) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

/* 6. WPForms shell */
body .entry-content .elementor-widget-wpforms .wpforms-container {
  margin: 0 !important;
}

body .entry-content .elementor-widget-wpforms .wpforms-field-container {
  display: block !important;
}

body .entry-content .elementor-widget-wpforms .wpforms-field {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* 7. Standard fields */
body .entry-content .elementor-widget-wpforms .wpforms-field input,
body .entry-content .elementor-widget-wpforms .wpforms-field select,
body .entry-content .elementor-widget-wpforms .wpforms-field textarea,
body .entry-content .elementor-widget-wpforms .iti,
body .entry-content .elementor-widget-wpforms .iti input {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #123e6d !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body .entry-content .elementor-widget-wpforms .wpforms-field textarea {
  min-height: 140px !important;
  height: auto !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

body .entry-content .elementor-widget-wpforms .wpforms-field input::placeholder,
body .entry-content .elementor-widget-wpforms .wpforms-field textarea::placeholder,
body .entry-content .elementor-widget-wpforms .wpforms-field select {
  color: rgba(18, 62, 109, 0.58) !important;
}

body .entry-content .elementor-widget-wpforms .iti {
  display: block !important;
}

body .entry-content .elementor-widget-wpforms .iti__flag-container {
  display: flex !important;
  align-items: center !important;
  height: 64px !important;
}

body .entry-content .elementor-widget-wpforms .iti__selected-country {
  height: 64px !important;
  padding-left: 14px !important;
  padding-right: 10px !important;
}

/* 8. Labels / helper copy */
body .entry-content .elementor-widget-wpforms label,
body .entry-content .elementor-widget-wpforms legend,
body .entry-content .elementor-widget-wpforms .wpforms-field-label,
body .entry-content .elementor-widget-wpforms .wpforms-field-label-inline,
body .entry-content .elementor-widget-wpforms .wpforms-description,
body .entry-content .elementor-widget-wpforms .wpforms-field-description,
body .entry-content .elementor-widget-wpforms .wpforms-payment-price,
body .entry-content .elementor-widget-wpforms .wpforms-payment-total,
body .entry-content .elementor-widget-wpforms small {
  color: #ffffff !important;
  font-family: "Nunito", sans-serif !important;
}

/* 9. Stripe / payment containment */
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card,
body .entry-content .elementor-widget-wpforms .wpforms-field-payment-single,
body .entry-content .elementor-widget-wpforms .wpforms-field-payment-select,
body .entry-content .elementor-widget-wpforms .wpforms-field-payment-total,
body .entry-content .elementor-widget-wpforms .wpforms-field .StripeElement,
body .entry-content .elementor-widget-wpforms .wpforms-field [class*="p-Field"],
body .entry-content .elementor-widget-wpforms .wpforms-field [class*="p-Grid"],
body .entry-content .elementor-widget-wpforms .wpforms-field [class*="p-Input"],
body .entry-content .elementor-widget-wpforms .wpforms-field [class*="p-Fieldset"],
body .entry-content .elementor-widget-wpforms .wpforms-field iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card,
body .entry-content .elementor-widget-wpforms .wpforms-field-payment-single,
body .entry-content .elementor-widget-wpforms .wpforms-field-payment-select,
body .entry-content .elementor-widget-wpforms .wpforms-field-payment-total {
  overflow: visible !important;
}

/* 10. Stripe label colour fix */
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card > label,
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card > legend,
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card .wpforms-field-label,
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card .wpforms-field-label-inline,
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card [class*="p-Label"],
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card [class*="FieldLabel"],
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card [class*="TextLabel"],
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card [class*="TabLabel"],
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card [class*="Label"],
body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card [class*="label"],
body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-field-stripe-credit-card label,
body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-field-stripe-credit-card legend,
body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-field-stripe-credit-card span:not([class*="Input"]):not([class*="Icon"]):not([class*="Brand"]):not([class*="Placeholder"]),
body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-field-stripe-credit-card div[class*="Label"],
body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-field-stripe-credit-card div[class*="label"] {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* 11. Submit row */
body .entry-content .elementor-widget-wpforms .wpforms-submit-container {
  clear: both !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: 100% !important;
  float: none !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 32px 0 0 !important;
  padding: 0 !important;
}

body .entry-content .elementor-widget-wpforms .wpforms-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 240px !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;
  box-shadow: 0 16px 36px rgba(255, 138, 61, 0.34) !important;
  float: none !important;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
}

body .entry-content .elementor-widget-wpforms .wpforms-submit:hover {
  transform: none !important;
  background: #ff8a3d !important;
}

/* 12. Tablet */
@media (max-width: 1024px) {
  body .entry-content .elementor-element.elementor-element-b7814c7 {
    max-width: none !important;
    flex: 1 1 100% !important;
  }

  body .entry-content .elementor-element.elementor-element-c191893 .elementor-heading-title {
    font-size: clamp(34px, 8vw, 46px) !important;
  }
}

/* 13. Mobile only */
@media (max-width: 767px) {
  body .site-content {
    padding-top: 22px !important;
    padding-bottom: 40px !important;
  }

  body .entry-content .elementor-element.elementor-element-c35d7dc,
  body .entry-content .elementor-element.elementor-element-c35d7dc > .e-con-inner,
  body .entry-content .elementor-element.elementor-element-b7814c7,
  body .entry-content .elementor-element.elementor-element-07f88ff {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body .entry-content .elementor-element.elementor-element-c35d7dc > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body .entry-content .elementor-element.elementor-element-b7814c7 {
    order: 1 !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
  }

  body .entry-content .elementor-element.elementor-element-07f88ff {
    order: 2 !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    min-height: 220px !important;
    border-radius: 24px !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  body .entry-content .elementor-element.elementor-element-c191893 {
    margin-bottom: 18px !important;
  }

  body .entry-content .elementor-element.elementor-element-c191893 .elementor-heading-title {
    font-size: 35px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.01em !important;
    white-space: normal !important;
    max-width: 12ch !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  body .entry-content .elementor-widget-wpforms .wpforms-field,
  body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-one-half,
  body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-one-third,
  body .entry-content .elementor-widget-wpforms .wpforms-field.wpforms-two-thirds,
  body .entry-content .elementor-widget-wpforms .wpforms-first,
  body .entry-content .elementor-widget-wpforms .wpforms-layout-column,
  body .entry-content .elementor-widget-wpforms .wpforms-field-row,
  body .entry-content .elementor-widget-wpforms .wpforms-layout-row,
  body .entry-content .elementor-widget-wpforms .wpforms-field-stripe-credit-card,
  body .entry-content .elementor-widget-wpforms .wpforms-field-payment-single,
  body .entry-content .elementor-widget-wpforms .wpforms-field-payment-select,
  body .entry-content .elementor-widget-wpforms .wpforms-field-payment-total {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: both !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body .entry-content .elementor-widget-wpforms .wpforms-field {
    margin-bottom: 12px !important;
  }

  body .entry-content .elementor-widget-wpforms .wpforms-field input,
  body .entry-content .elementor-widget-wpforms .wpforms-field select,
  body .entry-content .elementor-widget-wpforms .wpforms-field textarea,
  body .entry-content .elementor-widget-wpforms .iti,
  body .entry-content .elementor-widget-wpforms .iti input {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-size: 16px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  body .entry-content .elementor-widget-wpforms .wpforms-field textarea {
    min-height: 128px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  body .entry-content .elementor-widget-wpforms .iti__flag-container,
  body .entry-content .elementor-widget-wpforms .iti__selected-country {
    height: 56px !important;
  }

  body .entry-content .elementor-widget-wpforms .wpforms-submit-container {
    margin-top: 24px !important;
  }

  body .entry-content .elementor-widget-wpforms .wpforms-submit {
    width: 100% !important;
    min-width: 0 !important;
    height: 60px !important;
  }
}
/* Pay Invoice — force Stripe Payment Element labels white */
body.page-id-17886 .entry-content .elementor-widget-wpforms .wpforms-container label.p-FieldLabel.Label,
body.page-id-17886 .entry-content .elementor-widget-wpforms .wpforms-container .Label,
body.page-id-17886 .entry-content .elementor-widget-wpforms .wpforms-container label[for^="payment-"],
body.page-id-17886 .entry-content .elementor-widget-wpforms .wpforms-container .p-TabLabelText {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}