/* Capabilities Redesign - Target Exact Match */

.capabilities-premium-layout {
  font-family: Arial, sans-serif;
  color: #444;
  line-height: 1.6;
}

/* Hide default Drupal page titles so we can use our custom hero title overlay */
.region-header h1.page-header,
.region-content h1.page-header,
h1.page-title,
.page-title-block,
h1#page-title {
  display: none !important;
}

/* Fix Drupal's field wrappers breaking grid flow */
.why-choose-us-grid .field,
.why-choose-us-grid .field__items,
.why-choose-us-grid .field__item {
  display: contents !important; 
}
.cap-sections-wrapper > .field__items {
  display: contents;
}

/* Brutally hide labels inside capability fields if display isn't managed */
.capabilities-premium-layout .field__label {
  display: none !important;
}

/* Page Title Fallback */
.page-main-title {
  color: #213C60;
  font-weight: 700;
  font-size: 2.2rem;
  padding-bottom: 10px;
}

/* Page Title Overlay in Hero */
.title-overlay {
  color: #ffffff !important;
  font-size: 3.5rem;
  text-shadow: 0 3px 15px rgba(0,0,0,0.6);
  margin: 0;
}

/* Hero Section Full Width */
.cap-full-hero {
  position: relative;
  overflow: hidden;
  background-color: #111;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-top: -20px; Optional pull up for strict header spacing */
}

.hero-bg-wrapper {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  z-index: 1;
}

/* Aggressively target the drupal image output inside the hero field */
.hero-bg-wrapper img, 
.hero-bg-wrapper picture,
.hero-bg-wrapper picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  filter: blur(6px) brightness(0.5) !important;
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 80px 15px;
}

/* Capability Intro Block (Body + Image) */
.cap-top-intro {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
}
.cap-intro-col-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Why Choose Us */
.cap-why-choose {
  background-color: #f7f9fa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-top: 30px;
  padding-top: 30px;
  margin-bottom: 15px !important;
}
.cap-why-choose h2.text-center.mb-5 {
    padding-bottom: 30px;
}
.jump-to-section-wrapper.bg-light.py-4.mb-5.text-center.px-3 {
    margin: 30px 0 !important;
}
html {
    scroll-behavior: smooth !important;
}
section#why-choose-plasticparts h2.text-center.mb-5 {
    padding-bottom: 30px;
}
[id^="section-"] {
    scroll-margin-top: 180px !important;
}
.why-choose-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 40px;
}
@media (min-width: 768px) {
  .why-choose-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
.layout-content img {
    display: inline !important;
}
}
.why-choose-card {
  display: flex !important;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 20px;
}
.why-choose-card .card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-choose-card .card-icon img {
  max-width: 100%;
  height: auto;
}
.why-choose-card .card-content {
  flex-grow: 1;
}
.why-choose-card .card-title {
  font-size: 1.15rem;
  color: #000;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 0;
}
.why-choose-card .card-description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0;
}

/* Sections - Border Box layout */
.capability-section-row {
  display: flex !important;
  flex-wrap: wrap;
  border: 1px solid #d8d8d8; /* Card border */
  border-radius: 8px;
  background-color: #ffffff;
  padding: 40px 30px;
  margin-bottom: 50px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.capability-title {
  color: #213C60; 
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 0;
}
.capability-description {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}
.ideal-use-heading {
  font-weight: bold;
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 15px;
}
.ideal-use-list .field__item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #555;
  list-style: none;
}
.ideal-use-list .field__item:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #00877a; 
  font-weight: bold;
  font-size: 1.2rem;
}

.capability-image-wrapper img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
}
/* Contact section - Webform styling (scoped) */
.section.contact .block-webform.container {
  padding-left: 0;
  padding-right: 0; /* neutralize nested .container padding */
}

.section.contact .webform-submission-form .form-control,
.section.contact .webform-submission-form input[type="text"],
.section.contact .webform-submission-form input[type="email"],
.section.contact .webform-submission-form input[type="tel"],
.section.contact .webform-submission-form textarea,
.section.contact .webform-submission-form select {
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  padding: 10px 12px;
  box-shadow: none;
}

.section.contact .webform-submission-form textarea {
  min-height: 120px;
}

.section.contact .webform-submission-form label {
  color: #213C60;
  font-weight: 600;
  margin-bottom: 6px;
}

.section.contact .webform-submission-form .form-item,
.section.contact .webform-submission-form .js-form-item {
  margin-bottom: 16px;
}

/* Button color (orange variant like your mock). Change to green by swapping colors. */
.section.contact .webform-actions .btn-primary,
.section.contact .webform-actions .button--primary {
  background-color: #e85c3b;
  border-color: #e85c3b;
}
.section.contact .webform-actions .btn-primary:hover,
.section.contact .webform-actions .button--primary:hover {
  background-color: #cf5336;
  border-color: #cf5336;
}

/* Intl tel input full width */
.section.contact .iti { width: 100%; }
div#edit-processed-text-disclaimer {
color: #196469;

}
.webform-submission-webform-on-capabilities-page-form .webform-actions .btn-primary,
.webform-submission-webform-on-capabilities-page-form .webform-actions .button--primary {
    background: #196469;
}

.webform-submission-webform-on-capabilities-page-form #edit-actions--2 {
    display: flex;
    justify-content: flex-end;
}