

/* --- Webform styling for Hero sections using CSS variable --- */

/* Labels and form element text inherit the color from the wrapper's inline style */
.paragraph--type--webform label,
.paragraph--type--webform .webform-element-description,
.paragraph--type--webform .form-item--description {
  color: inherit;
}

.paragraph--type--webform input[type="text"],
.paragraph--type--webform input[type="email"],
.paragraph--type--webform input[type="tel"],
.paragraph--type--webform input[type="number"],
.paragraph--type--webform textarea,
.paragraph--type--webform select {
  background-color: var(--paragraph-text-color, #ffffff)1A !important;
  border: 1px solid var(--paragraph-text-color, #ffffff) !important;
  color: inherit !important; /* Inherit text color */
}

.paragraph--type--webform input::placeholder,
.paragraph--type--webform textarea::placeholder {
  /* Append alpha value: 99 for ~60% */
  color: var(--paragraph-text-color, #ffffff)99 !important;
}

.paragraph--type--webform input[type="text"]:focus,
.paragraph--type--webform input[type="email"]:focus,
/* ... other focus selectors ... */
.paragraph--type--webform textarea:focus,
.paragraph--type--webform select:focus {
  border-color: var(--paragraph-text-color, #ffffff) !important; /* Use solid color for focus border */
  /* Append alpha value: 40 for ~25% */
  box-shadow: 0 0 0 0.25rem var(--paragraph-text-color, #ffffff)40 !important;
  outline: none;
}

/* Button styles remain the same, using theme variables */
.paragraph--type--webform .webform-button--submit { /* ... */ }
.paragraph--type--webform .webform-button--submit:hover,
.paragraph--type--webform .webform-button--submit:focus { /* ... */ }
.paragraph--type--webform .webform-submission-information { display: none; }

.hero-webform-wrapper .form-item, .form-actions {
    margin: 0 0 0px 0;
}






.view-commercial-services .views-row h2 {
    font-size: 16px;
}

.hero-title {
  margin-bottom: 1rem; /* Add a little space below the title */
}

.footer-top__container {
    padding: 20px 20px 20px !important;
	background-color: transparent !important;
}

/* Nuke rogue quote marks */
.testimonial-item blockquote::before,
.testimonial-item blockquote::after {
  content: none !important;
}

.testimonial-item blockquote svg {
	display: none;
}

/* Keep our inline quote icon tidy */
.testimonial-item blockquote {
  position: relative;
  max-width: 820px;
  margin: 0 auto 1rem auto;
  text-align: center;
}

.testimonial-item blockquote span {
  display: inline-block;
  font-style: italic;
  color: #fff;
}


@media (max-width: 576px) {
  .testimonial-item .card-body {
    padding: 1.5rem;
  }
  .testimonial-item blockquote span {
    font-size: 1rem;
    line-height: 1.5;
  }
  .testimonial-item .fa-quote-left {
    font-size: 1rem;
  }
}

.testimonial-item blockquote {
  max-width: 820px;
  margin: 0 auto 1rem auto;
  text-align: center;
}
.testimonial-item blockquote p::before,
.testimonial-item blockquote p::after {
  content: none !important; /* suppress theme quotes */
}
.testimonial-item .fa-quote-left {
  font-size: 1.25rem;
  vertical-align: text-top;
}


.align-items-center {
    justify-content: center !important;
}

.block-mt-logo-links .logo-container .field--name-field-mt-il-image img {
    -webkit-filter: none !important;
    filter: none !important;
    opacity: inherit !important;
}

/* Make Smart Columns A section go full width edge-to-edge */
.smart-columns-a,
.smart-columns-a .container-fluid,
.smart-columns-a .row,
.smart-columns-a .col-lg-12 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

#sub-featured,
#sub-featured .container-fluid,
#sub-featured .row,
#sub-featured .col-12 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================================
   Flexible CTA Block Styles
   ========================================================================== */
/* Add consistent padding to the flexible block columns */
.flexible-cta-block .cta-media-column,
.flexible-cta-block .cta-text-column {
  padding: 1rem 1.5rem;
}
/* 1. Text Colour Control */
.flexible-cta-block.light-text {
  color: #ffffff;
}
.flexible-cta-block.light-text h1,
.flexible-cta-block.light-text h2,
.flexible-cta-block.light-text h3,
.flexible-cta-block.light-text h4,
.flexible-cta-block.light-text h5 {
  color: #ffffff;
}

.flexible-cta-block.dark-text {
  color: #212529; /* A standard dark text color */
}
.flexible-cta-block.dark-text h1,
.flexible-cta-block.dark-text h2,
.flexible-cta-block.dark-text h3,
.flexible-cta-block.dark-text h4,
.flexible-cta-block.dark-text h5 {
  color: #212529;
}

/* 2. Background Image Styling */
.flexible-cta-block.has-bg-image {
  background-size: cover;
  background-position: center center;
}

/* 3. Button Layout and Styling */
.flexible-cta-block .cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allows buttons to stack on small screens */
  gap: 1rem; /* Creates space between buttons */
}

/* If block is centered, center the buttons too */
.flexible-cta-block .text-center .cta-buttons {
  justify-content: center;
}

/* --- MOBILE FIX --- */
@media (max-width: 767.98px) {
  .flexible-cta-block .cta-buttons {
    flex-direction: column;
    align-items: stretch; /* ensures full-width buttons */
	gap: 0rem;
  }

  .flexible-cta-block .cta-buttons .mt-button,
  .flexible-cta-block .cta-buttons .mt-button--outline,
  .flexible-cta-block .cta-buttons a {
    width: 100%;
    text-align: center;
  }
}


#block-teamplus-footersocialmediaiconslinks .icons-list a:hover i {
  color: #fff;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

#block-teamplus-footersocialmediaiconslinks .icons-list a:hover span {
  color: #e5007d;
}



.view-areas-i-cover .views-row h2 {
	font-size: 18px;
}

#featured .view-content h2 {
	font-size: 16px;
}

#featured .title {
	margin: 0px 0 0px;
}

#block-teamplus-accreditations .content .field--name-field-mt-il-image img {
	filter: grayscale(0%);
    opacity: 1;
}

#footer .col-lg-3 {
	text-align: center;
}

.view-testimonials article {
	margin-bottom: 0px;
}

#block-teamplus-homepageelectricalservicessection .content .paragraph--type--mt-highlight {
	text-align: center;
}

#highlighted {
	background: linear-gradient(to bottom, var(--mt-color-bright) 50%, var(--mt-color-default-light) 50%);
}

#block-teamplus-calltoaction-2 .content .field--name-body {
	border-radius: var(--mt-oval-radius);
    background-color: #ededed;
    color: #000000;
    padding: 30px;
}


/* ==========================================================================
   Renewable Service Card Icons
   ========================================================================== */
/* ==========================================================================
   Renewable Service "Cardless" Icons
   ========================================================================== */

.feature-icon-alt {
  font-size: 3rem;  /* Controls the size of the icon */
  color: #ffffff;   /* Makes the icon white */
  line-height: 1;
}

.feature-icon-big {
  width: 4rem;
  height: 4rem;
  border-radius: 50%; /* Makes the background a circle */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-primary); /* Uses your theme's primary color */
  color: #ffffff; /* White icon */
  font-size: 2rem; /* Size of the icon itself */
}

/* Make videos fully responsive */
video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Optional: rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Optional: soft shadow */
}

/* Optional: Add some breathing room around it */
.video-wrapper {
  max-width: 800px; /* Set a comfortable max width */
  margin: 0 auto; /* Center it horizontally */
  padding: 10px;
}


@media (max-width: 991px) {
    .header-first {
        margin-right: 0px !important;
    }
}

.smart-columns-c .content img {
	height: 80px;
    width: auto;
}

.taxonomy-term--services {
  background-color: #1c1f26; /* Dark theme background */
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.taxonomy-term--services:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.taxonomy-term--services .taxonomy-image img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid var(--bs-primary);
}

.taxonomy-term--services .taxonomy-title {
  color: #fff;
  margin-bottom: 0.5rem;
}

.taxonomy-term--services .taxonomy-description {
  color: #dcdcdc;
  font-size: 0.95rem;
}

.taxonomy-term--services .taxonomy-phone .btn {
  font-weight: bold;
  font-size: 0.95rem;
}


.view-services .views-row h2 {
	font-size: 16px;
}

.smart-columns-b .content img:hover {
	transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 15px #646cff50;
    transition: all 0.4s ease-in-out 0s, visibility 0s;
}

.smart-columns-b .content img {
	height: 150px;
    width: auto;
}

@media (max-width: 768px) {
.mt-button + .mt-button {
    margin-left: 0px;
	margin-top: 20px;
}
}

@media (max-width: 768px) {
.homepagemtbutton {
	text-align: center;
}
}

.path-frontpage #main-content {
	
}

#block-teamplus-webform fieldset {
	border: none;
	padding: 0.5em 1.5em 0.5em;
	margin-bottom: 0;
}

#block-teamplus-webform {
	max-width: 100%;
}

.logo {
	float: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#block-teamplus-headersecondphonenumberblock .content .fw-bold {
	color: var(--mt-color-primary);
}

#block-teamplus-headersecondphonenumberblock .content h6 {
	margin-top: 0;
}

#block-teamplus-homepageherofirstservicesicons .content .col-md-4 {
	
}

#block-teamplus-homepageherofirstservicesicons .content img:hover {
	    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 15px #646cff50;
	transition: all 0.4s ease-in-out 0s, visibility 0s;
}

.orange-text-color {
	color: var(--mt-color-primary);
}

@media (min-width: 992px) {
  .field__item:nth-child(odd) .mt-highlight-image-wrapper {
    padding-left: 3rem;
  }
  .field__item:nth-child(odd) .mt-highlight-image-wrapper + .col-md-6 {
    padding-right: 3rem;
  }
  .field__item:nth-child(even) .mt-highlight-image-wrapper {
    padding-right: 3rem;
  }
  .field__item:nth-child(even) .mt-highlight-image-wrapper + .col-md-6 {
    padding-left: 3rem;
  }
}


#block-teamplus-homepagebannertopsecond .content {
	padding-bottom: 150px; 
}

@media (min-width: 992px) {
#block-teamplus-homepagebannertopfirst .content {
	padding-bottom: 150px; 
}
}

#block-teamplus-homepageherofirstservicesicons .content {
	 margin-top: -120px; 
	position: relative;
  z-index: 10;
}

/* ==========================================================================
   Homepage Service Tiles
   ========================================================================== */

.service-tile {
  background-color: #313131; /* A dark charcoal background */
  color: #ffffff; /* White text */
  height: 100%; /* Ensures all tiles are the same height */
}

.service-tile-content {
  position: relative;
  padding: 3rem 1.5rem 1.5rem; /* 3rem top padding to make space for the icon */
}

.service-icon {
  /* Positioning the icon */
  position: absolute;
  top: -35px; /* Pulls the icon up to overlap the image */
  left: 50%;
  transform: translateX(-50%);

  /* Styling the orange box */
  background-color: #f58426; /* Your brand's orange color */
  height: 70px;
  width: 70px;
  border-radius: 0.25rem; /* Optional: slightly rounded corners */
  
  /* Centering the icon *inside* the orange box */
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 40px; /* Controls the size of the icon itself */
  height: auto;
}




.path-frontpage .internal-banner-container {
	display: none;
}

/* My Custom Styles for the Team+ Theme */
/* Default Padding for Smart Column Sections */
.smart-columns-wrapper {
  padding-top: 30px;
  padding-bottom: 25px;
}

/* This stronger rule removes the padding when the checkbox is ticked */
.smart-columns-wrapper.region--no-paddings {
  padding-top: 0;
}

.internal-banner {
    min-height: 100px !important;
}

.header-top-highlighted .row {
	margin-right: 0;
    margin-left: 0;
}

.internal-banner-container {
    min-height: 10px !important;
}

.hero-top {
    min-height: 80px;
}

.hero-top__container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.responsive-map-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.responsive-map-container iframe,   
.responsive-map-container object,  
.responsive-map-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.googlemapblock iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
}

.googlemapblock {
    position: relative;
    padding-bottom: 350px;
    padding-bottom: auto;
    height: 0;
    overflow: hidden;
    max-height: 350px;
}

.highlighted-top__section {
    padding: 0px 0 !important;
}

#highlighted-top .highlighted-top__container .col-12 {
    padding-right: 0px;
    padding-left: 0px;
}

#highlighted-top .row {
    margin-right: 0px;
    margin-left: 0px;
}

#highlighted-top .container-fluid {
    width: 100%;
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
#highlighted-top .container-fluid {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}
}

/*ELECTRIC HEATING CALCULATOR CSS*/
.heatlosscalc .calc-totals {
    padding: 20px;
    color: #FFFFFF;
    background: var(--mt-color-secondary);
    overflow: hidden;
}

.heatlosscalc label {
    color: #ffffff;
}

.heatlosscalc .calc-input {
    padding: 20px;
    background: var(--mt-color-primary);
    color: #ffffff;
    overflow: hidden;
}

.heatlosscalc [class*='col-'] {
    padding: 15px;
}
/*ELECTRIC HEATING CALCULATOR CSS*/







.service-page-hero {
  /* Use the variables you defined in Twig */
  background-image: var(--hero-bg-image);
  background-size: var(--hero-bg-size);
  background-repeat: var(--hero-bg-repeat);
  background-attachment: var(--hero-bg-attachment);
  
  /* These are needed for the overlay to work */
  position: relative;
  z-index: 1;
}

/* * This creates the pseudo-element for the overlay, 
 * which sits *behind* the content.
*/
.service-page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Use the overlay variables */
  background-color: var(--hero-overlay-color);
  opacity: var(--hero-overlay-opacity);
  
  /* Sits behind the .hero-content but on top of the background image */
  z-index: -1; 
}

/* Add these rules to use the new text-align and padding variables */
.hero-content.container {
  text-align: var(--hero-text-align);
  padding-top: var(--hero-padding-top);
  padding-bottom: var(--hero-padding-bottom);
	color: var(--hero-text-color);
}

/*
 * Styles for the flexible content rows (paragraphs)
 */

.flexible-content-row {
	
  position: relative;
  /* For the background color */
  background-color: var(--cs-bg-color); 
  
  /* For the background image */
  background-image: var(--cs-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* For the padding */
  padding-top: var(--cs-padding-top);
  padding-bottom: var(--cs-padding-bottom);
}

.flexible-content-text {
  /* For the text styles */
  color: var(--cs-text-color);
  text-align: var(--cs-text-align);
}



/* This creates the overlay pseudo-element */
.flexible-content-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* Use the overlay variables */
  background-color: var(--cs-overlay-color);
  opacity: var(--cs-overlay-opacity);
  
  /* Sits behind the content */
  z-index: 0; 
}

/* This "lifts" your actual content on top of the overlay */
.flexible-content-row > .container {
  position: relative;
  z-index: 1;
}







.flexible-content-text .form-text {
    color: var(--cs-text-color);
}
/*
 * Targets all webform placeholders inside your flexible content
 * and applies your chosen text color.
 */
.flexible-content-text input::placeholder,
.flexible-content-text textarea::placeholder {
  color: var(--cs-text-color);
  opacity: 0.7; /* Placeholders are often slightly faded */
}

/* --- Browser compatibility versions --- */

.flexible-content-text input::-webkit-input-placeholder,
.flexible-content-text textarea::-webkit-input-placeholder {
  color: var(--cs-text-color);
  opacity: 0.7;
}

.flexible-content-text input::-moz-placeholder,
.flexible-content-text textarea::-moz-placeholder {
  color: var(--cs-text-color);
  opacity: 0.7;
}

.flexible-content-text input:-ms-input-placeholder,
.flexible-content-text textarea:-ms-input-placeholder {
  color: var(--cs-text-color);
  opacity: 0.7;
}

.flexible-content-text input:-moz-placeholder,
.flexible-content-text textarea:-moz-placeholder {
  color: var(--cs-text-color);
  opacity: 0.7;
}

/*
 * Sets the border color for webform inputs, textareas, and selects
 */
.flexible-content-text input,
.flexible-content-text textarea,
.flexible-content-text select {
  border-color: var(--cs-text-color);
}