/*
Theme Name: Mycustom theme
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mycustomtheme
*/
/* Global reset and full height for html and body */
html, body {

  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.page-template-Accounts .accounts-wrapper{
    width: min(60vw, 900px);
}

/* ---------- Accounts page – 2-column login / register (2024-08-07) ---------- */
.page-id-9 .accounts-wrapper form{
    display:grid !important;
    grid-template-columns: 1fr 1fr;      /* two equal tracks */
    gap:22px 40px;                       /* row / column gap */
    max-width:900px;                     /* wider like Get-Quote */
    margin:0 auto;
}

/* ---------- Vertically-centre Accounts card (2024-08-07) ---------- */
.
page-id-9 .accounts-page-bg{          /* the purple gradient wrapper */
    display:flex !important;           /* enable flexbox */
    flex-direction:column;             /* keep natural order */
    justify-content:center !important; /* vertical centring */
    align-items:center;                /* horizontal centring fallback */
    min-height:calc(100vh - 100px);    /* full height minus header strip */
    padding:40px 0;                    /* breathing room on mobile */
}


/* ---------- Accounts form refinements (2024-08-07) ---------- */
.page-id-9 .accounts-wrapper{
    max-width:1000px !important;   /* wider on desktop */
    width:80% !important;
    margin:0 auto;
}

/* grid already set earlier — keep it */
@media (min-width:768px){
    .page-id-9 .accounts-wrapper form{gap:22px 40px;}
}

/* same input height everywhere */
.page-id-9 .accounts-wrapper input[type=text],
.page-id-9 .accounts-wrapper input[type=email],
.page-id-9 .accounts-wrapper input[type=password]{
    height:54px;                   /* match Get-Quote fields */
    line-height:54px;
}

.page-id-9 .accounts-wrapper form p.register-submit input[type=submit]{
    width:100% !important;             /* stretch edge-to-edge */
}


/* make every <p> behave as a grid cell */
.page-id-9 .accounts-wrapper form p{
    margin:0 !important;
}

/* elements that should span full width */
.page-id-9 .accounts-wrapper h2,
.page-id-9 .accounts-wrapper form p.login-submit,
.page-id-9 .accounts-wrapper form p.register-submit{
    grid-column:1 / -1 !important;       /* full row */
    text-align:center;
}

/* mobile – collapse to single column */
@media(max-width:768px){
    .page-id-9 .accounts-wrapper form{
        grid-template-columns:1fr;
    }
}


/* ------------ FORM-PAGE HARMONISATION (2024-08-06) ------------- */

/* --- two-column banner layout (purple left / off-white right) --- */
.page-id-15 .elementor-section,   /* Get Quote */
.page-id-9  .um,                  /* Accounts (UM / login wrapper) */
.page-id-15 .elementor-section{   /* duplicate selector for clarity */
    display:grid;
    grid-template-columns:minmax(0,650px) minmax(0,1fr);
}
.page-id-15 .elementor-section > .elementor-container{display:contents;}

.page-id-15 .elementor-column:first-child{
    background:#54004B !important;          /* brand purple */
    color:#fff;
    padding:80px 60px;
}
.page-id-15 .elementor-column:last-child,
.f
page-id-9  .um{                            /* Accounts box */
    background:#F5F7F3 !important;          /* off-white */
    padding:60px 40px;
}
.client-journey-buttons{
    display:flex !important;               /* switch grid → flex */
    justify-content:center !important;     /* centre the row */
    gap:2rem;                              /* space between buttons */
    flex-wrap:wrap;                        /* keeps it tidy on mobile */
}

/* --- headline & text sizes (match Book-a-Collection) --- */
.page-id-15 h1,
.
page-id-9  h1{
    font-size:3.5rem !important;            /* 56 px */
    line-height:1.1; font-weight:700;
}
@media(max-width:768px){
    .page-id-15 h1,
    .page-id-9  h1{font-size:2.2rem !important;}   /* ≈35 px */
}

/* --- universal form field look --- */
input[type=text], input[type=email],
input[type=tel],  input[type=password],
select, textarea{
    width:100%; max-width:100%;
    padding:12px 14px;
    border:1px solid #DDD;
    border-radius:4px;
}

/* --- brand-style CTA buttons --- */
input[type=submit], .elementor-button,
.wpforms-submit,    .nf-field-element input[type=submit],
.um input[type=submit]{                /* UM = Ultimate Member buttons */
    background:#620047;
    color:#fff;
    font-weight:700;
    padding:14px 32px;
    border:0;
    border-radius:4px;
}
input[type=submit]:hover,
.elementor-button:hover{filter:brightness(1.12);}

/* -------------- END FORM-PAGE HARMONISATION -------------------- */

.hero {
  background: #5f0f40;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-section h1,
.content-wrapper h1,
.hero-heading {               /* keep your earlier custom class */
    font-size: 4rem !important;   /* 56 px at 16 px root */
    line-height: 1.1 !important;
}

@media (max-width: 768px) {          /* tweak for tablet / mobile */
    .hero-section h1,
    .content-wrapper h1,
    .hero-heading {
        font-size: 2.5rem !important;  /* ≈35 px */
    }
}

/* Container for the entire hero section */
.hero-video-section {
  position: relative;
  width: 100vw;
  height: 40vh; /* Fixed height */
  overflow: hidden;
background-color: #5f0f40; /* Add this line */
padding-top: 100px;
}

/* Wrapper to hold the video element */
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none; /* allows clicks to pass through */
padding-top: 20px;
}

/* For YouTube iframe or <video> tag */
.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500vh; /* 100 / (9/16) = 500 */
  min-height: 100vh;
  opacity: 0.15; /* Adjust this value for more or less visibility */
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  border: none;
padding-top: 20px;
}

/* Optional overlay for color tint */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background: rgba(50, 0, 50, 0.5); /* #5f0f40 with 50% opacity */
  z-index: 2;
padding-top: 20px;
}

/* Content that sits above the video */
.content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 300px;
  align-items: center;
}

/* Home page banner first section - Your existing h1, p, and .buttons styles from the previous code should remain */
.content-wrapper h1 {
  font-style: league spartan; /* Make sure this font is loaded */
  font-size: 6rem; /* Changed from 20rem to make it bigger but not ridiculously huge on larger screens */
  color: #f5f5dc;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  line-height: 1.2;
}

.content-wrapper p {
  font-family: 'League Spartan', sans-serif;
  font-size: 2.8rem;
  color: #f5f5dc;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.buttons { /* Assuming .buttons is the class for your button container */
      margin-bottom: 0.5rem; /* Reduced this from 0 to 0.5rem to give a tiny bit of space, but still significantly less */
    padding-bottom: 0;
}

/* If there's an element directly below the buttons inside the content-wrapper */
.content-wrapper .next-element-after-buttons {
  margin-top: 0;
  padding-top: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Adds space between h1, p, and buttons */
  align-items: center;
}

.core-messaging {
  background-color: #0a544c;
  color: #ebaf37;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.core-messaging {
  background-color: #0d594d;
  color: #ebaf37;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.core-messaging h2 {
  color: #ebaf37;
  text-align: left;
  font-size: 45px;
  margin-bottom: 30px;
font-family: 'Segoe UI', sans-serif;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  align-items: start;
}

.core-item {
  text-align: left;
  padding: 0 10px;
}

.core-item img {
  width: 250px;
  height: auto;
  margin-bottom: 0px;
}

.core-item .divider {
  height: 2px;
  width: 100%;
  background-color: #ebaf37;
  margin: 10px 0;
}

.core-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #ebaf37;
}

/* General Body Styles (optional, but good practice) */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

/* --- ITAD Section Styling --- */
.itad-section {
    position: relative;
    padding: 60px 40px; /* Adjust padding as needed for spacing around the content */
    min-height: 500px; /* Ensure enough height for the section */

    /* Background Images & Overlay: Layering Order (first listed is on top) */
    background-image:
        linear-gradient(rgba(240, 180, 0, 0.85), rgba(240, 180, 0, 0.85)), /* TOPMOST: Orange/Yellow Overlay with 85% opacity*/
        url('https://xumitrecycling.com/wp-content/uploads/2025/07/1488997249440-1.jpg'), /* MIDDLE: This is your specified background image */
        url('path/to/your/shadow-background.jpg'); /* BOTTOM: The "fully background like shadow" image (Placeholder - Replace with actual path if you're using one) */

    background-repeat: no-repeat, no-repeat, no-repeat; /* Ensure all three background images do not repeat */
    background-size: cover, cover, cover; /* All three should cover the entire section */
    background-position: center center, center center, center center; /* All three centered */
    background-color: #ebaf37; /* Fallback */

    display: flex;
    justify-content: center; /* Center the content wrapper horizontally */
    align-items: center; /* Center the content wrapper vertically */
    color: white; /* Default text color for the section */
}

.itad-content-wrapper {
    display: flex; /* Use flexbox to arrange left-column-content and text-boxes-container side-by-side */
    gap: 60px; /* Space between the two main columns */
    max-width: 1200px; /* Max width of your content area */
    width: 100%; /* Take full width within max-width */
    align-items: flex-start; /* Align items to the top (important for varying heights of columns) */
}

.left-column-content {
    flex-shrink: 0; /* Prevent it from shrinking */
    width: 400px; /* Adjust this width to match the visual space the icon and text below it occupy in the image */
    display: flex;
    flex-direction: column; /* Stack the icon and text vertically */
    align-items: center; /* Center content horizontally within this column */
    gap: 15px; /* Space between the recycling icon and the "Our Promise" text */
    text-align: center; /* Center the text in the "Our Promise" section */
}

.recycling-icon {
    display: flex; /* To center the image if smaller than its parent */
    justify-content: center;
    align-items: center;
}

.recycling-icon img {
    /* This is the HTML <img> tag for the large recycling icon (Untitled_design_2_-removebg-preview-3.png) */
    width: 300px; /* Adjust this width to control the size of this specific icon */
    height: auto;
    display: block;
    opacity: 0.8; /* Adjust for desired transparency/blend, as seen in the image */
}

.our-promise-text {
    color: #5f0f40; /* Dark purple color for the text, as seen in the image */
}

.our-promise-text h2 {
    font-size: 2.2em; /* Adjust font size for the heading "Our Promise" */
    margin-top: 5; /* Ensures no default margin pushes it down from the icon */
    margin-bottom: 10px; /* Space below the heading */
    color: #5f0f40; /* Color for the heading */
font-family: Arial, sans-serif;
}

.our-promise-text p {
    font-size: 1.1em; /* Adjust font size for the paragraph */
    line-height: 1.5;
    font-weight: 500;
    margin-top: 5; /* Ensures no default margin pushes it down from the heading */

}

.text-boxes-container {
    display: grid; /* Use CSS Grid for the 2x2 layout of text boxes */
    grid-template-columns: 1fr 1fr; /* Two columns of equal width */
    grid-template-rows: auto auto; /* Rows will size automatically */
    gap: 30px; /* Space between the text boxes */
    flex-grow: 1; /* Allow text boxes to take up available space */
}

.text-box {
    background-color: transparent;
    border: 8px dashed #5f0f40; /* Dashed dark purple border, as seen in the image */
    padding: 33px;
    color: #5f0f40; /* Text color inside boxes, as seen in the image */
    font-size: 1.1em;
    line-height: 1.5;
    font-weight: 500;
    text-align: left;
    font-family: Arial, sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .itad-content-wrapper {
        flex-direction: column; /* Stack the columns vertically */
        text-align: center; /* Center content when stacked */
    }
    .left-column-content {
        width: 100%; /* Allow it to take full width */
        margin-bottom: 30px; /* Space between stacked columns */
    }
    .text-boxes-container {
        grid-template-columns: 1fr; /* One column on smaller screens */
    }
    .text-box {
        text-align: center; /* Center text in boxes when stacked */
    }
}

@media (max-width: 576px) {
    .itad-section {
        padding: 30px 20px;
    }
    .recycling-icon img {
        width: 200px; /* Further reduce icon size on very small screens */
    }
    .our-promise-text h2 {
        font-size: 1.8em;
    }
    .our-promise-text p {
        font-size: 1em;
    }
    .text-box {
        font-size: 1em;
        padding: 20px;
    }
}
/* --- XUM Call To Action Section Styling --- */
.xum-call-to-action-section {
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), /* 70% opaque black overlay */
        url('https://xumitrecycling.com/wp-content/uploads/2025/07/recycling-truck-isolated-white-background-vector-illustration-1.png'); /* <-- This is the UPDATED and confirmed working URL */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #0a544c; /* Fallback background color */
    min-height: 400px;
    padding: 80px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.xum-cta-content {
    max-width: 800px;
    width: 100%;
}

.xum-cta-content h2 {
    font-size: 3em;
    color: white;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.xum-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.xum-cta-buttons .btn {
    display: inline-block;
    padding: 18px 40px;
    background-color: #5f0f40;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.xum-cta-buttons .btn:hover {
    background-color: #7a47d2;
    transform: translateY(-2px);
}

/* Responsive Adjustments for the new section */
@media (max-width: 768px) {
    .xum-cta-content h2 {
        font-size: 2.2em;
        margin-bottom: 30px;
    }
    .xum-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .xum-cta-buttons .btn {
        width: 80%;
        max-width: 300px;
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .xum-cta-content h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
		color: #f5f5dc;
    }
    .xum-call-to-action-section {
        padding: 10px 15px;
		color: #f5f5dc;
    }
}
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #5f0f40;
  color: #f5f5dc;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease;
  margin-right: 96px;
  border: 2px solid transparent;
}

.btn:hover {
  background-color: #4a0c32;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    display: block;
    width: 90%;
    margin: 0 auto 1rem auto;
    text-align: center;
  }
}

.content-wrapper h1 {
    font-size: 3rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .content-wrapper p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
  }

  .content {
    padding: 1rem;
  }
}
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ✅ New Header Styling */

.site-header {
  width: 100%;
}

.site-header-inner {
  max-width: auto;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
}

.site-header-container {
  width: 100%;
  background-color: #ba4513;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Add spacing so page content doesn't hide under the fixed header */

body {
  margin: 0;
  overflow-x: hidden;
}

.site-header img {
  max-height: 50px;
  width: auto;
  height: auto;
}

.site-header nav ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  color: white;
  padding: 0 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  height: 100px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.site-header nav a:hover {
  color: #FFD700;
}


.mobile-nav-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .site-header-inner {
    justify-content: space-between;
  }

  .site-navigation {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ba4513;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .site-navigation.open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .site-navigation ul {
    flex-direction: column;
    width: 100%;
  }

  .site-navigation ul li {
    text-align: left;
    padding: 10px 20px;
  }

  .site-navigation ul li a {
    height: auto;
    line-height: normal;
  }
}



.site-footer {
  background: #ba4513;
  color: #f5f5dc;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer .certs img {
  max-height: 90px;
  margin: 10px 10px;
}


.social-links {
  margin-top: 30px;
}

.social-links a {
  color: #ddd; /* icon color */
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
  color: #fff; /* or any highlight color */
}


@media screen and (max-width: 768px) {
  .hero {
    padding: 40px 10px;
  }

  .content-wrapper h1 {
    font-size: 2.5rem; /* CHANGED: Slightly larger on mobile */
    margin-top: 1rem;  /* CHANGED: Adjusted margin */
    margin-bottom: 1.5rem; /* CHANGED: Adjusted margin */
  }

  .content-wrapper p {
    font-size: 1.1rem; /* CHANGED: Slightly larger on mobile */
    margin-bottom: 1.5rem; /* CHANGED: Adjusted margin */
    line-height: 1.4;
  }

  .content {
    height: auto;
    padding: 1rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .site-header nav a {
    display: block;
    margin: 10px 0;
    line-height: normal;
  }

  .section {
    padding: 40px 10px;
  }
}

/* --- XUMITAD Bottom Fullscreen Video Section --- */
.xumitad-video-section {
  position: relative;
  width: 100%;
  background-color: #5f0f40;
  overflow: hidden;
  z-index: 0;
  padding: 40px 0; /* Add vertical spacing */
}

.xumitad-wrapper {
  width: 80%;          /* or 100% if you want it full width */
  max-width: 960px;    /* optional max width */
  margin: 0 auto;      /* center horizontally */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.xumitad-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  display: block;
}


/* Mobile devices ke liye */
@media (max-width: 767px) {
  .container, .left-section, .right-section{
    width: 95% !important;
    padding: 10px !important;
  }
  
  .container {
    flex-direction: column !important;
  }
  

  
  .submit-button {
    width: 100% !important;
  }
}
/* === MOBILE FOOTER RESPONSIVE === */
@media (max-width: 768px) {
  .site-footer {
    padding: 30px 15px;
    font-size: 1.25rem;
  }

  .social-links {
    margin-top: 20px;
    gap: 15px;
  }

  .social-links a {
  font-size: 1.2rem;
  margin: 0 8px;
  width: 24px;       /* add width */
  height: 24px;      /* add height */
  display: inline-flex;    /* align icons properly */
  align-items: center;
  justify-content: center;

}
/* === Mobile Responsive: Hero Section (<=768px) === */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
    text-align: center;
  }

  .hero-video-section {
    height: auto; /* Let content determine height */
    padding-top: 80px;
  }

  .background-video {
    width: 300vw; /* Reduce width for smaller viewports */
    min-height: 100%;
    opacity: 0.1;
  }

  .overlay {
    height: 100%;
    padding-top: 0;
  }

  .content {
    height: auto;
    padding: 1.5rem 1rem 2rem;
  }

  .content-wrapper h1 {
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .content-wrapper p {
    font-size: 1.6rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
	color: #f5f5dc;
  }

  .buttons {
    margin-bottom: 1rem;
	padding: 0px 35px 0px 0px;
  }
}

/* === Extra-Small Mobile: Hero Section (<=480px) === */
@media (max-width: 480px) {
  .content-wrapper h1 {
    font-size: 2rem;
	margin-top: 3rem;
  }

  .content-wrapper p {
    font-size: 1.2rem;
	color: #f5f5dc;
  }
}

/* ==========================================================================
   Re-enable clicks on any YouTube iframe embeds
   Applies to front page AND What We Deliver page
   ========================================================================== */

body.home iframe,
body.page-template-What-We-Deliver iframe {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ==========================================================================
   Re-enable clicks on any YouTube iframe embeds
   Applies to front page AND What We Deliver page
   ========================================================================== */

body.home iframe,
body.page-template-What-We-Deliver iframe {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
}
.xumitad-video-section::before,
.xumitad-wrapper::before {
  display: none !important;
  pointer-events: none !important;
}

/* lift and re-enable the iframe itself */
.xumitad-video-section iframe,
.xumitad-wrapper iframe {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Centre inline form fields on the Create New Account form */
.reg-field {
  display: block;
  margin: 1em auto;
  max-width: 90%;
}

/* ————————————————————————————————————————————
   Page-specific tweaks for CO₂ Calculator page
———————————————————————————————————————————— */

body.page-template-page-co2-calculator .site-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.page-template-page-co2-calculator .co2-calculator-wrapper {
  min-height: calc(100vh - 160px) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2em 1em;
}

body.page-template-page-co2-calculator .co2-calculator-wrapper select,
body.page-template-page-co2-calculator .co2-calculator-wrapper input,
body.page-template-page-co2-calculator .co2-calculator-wrapper button {
  font-size: 1.125rem;
  padding: 0.75em 1em;
  width: 100%;
  max-width: 400px;
}

body.page-template-page-co2-calculator .site-footer {
  margin-top: 0 !important;
}

/* CO₂ Calculator page tweaks */
body.page-template-page-co2-calculator .calculator-container {
  /* give it breathing room but don’t push the footer offscreen */
  padding: 4em 1em;
  max-width: 800px;
  margin: 0 auto 2em auto;
}

body.page-template-page-co2-calculator .calculator {
  /* bump up the form controls */
  font-size: 1.125rem;
}

body.page-template-page-co2-calculator .calculator input,
body.page-template-page-co2-calculator .calculator select,
body.page-template-page-co2-calculator .calculator button {
  padding: 0.75em 1em;
  width: 100%;
  max-width: 400px;
}

body.page-template-page-co2-calculator .site-content-contain {
  /* leave the theme’s normal bottom margin so footer remains visible */
  margin-bottom: 2em;
}


/* ---------- ACCOUNT FORM HARMONISATION (2024-08-06) ---------- */

/* turn the entire page into the same two-column grid */
.page-id-9 > .elementor-section-wrap{
    display:grid;
    grid-template-columns:minmax(0,650px) minmax(0,1fr);
}

/* purple info panel (left) – reuse Book-a-Collection wording later if you like */
.page-id-9 > .elementor-section-wrap > .elementor-section:first-child{
    background:#54004B !important;
    color:#fff;
    padding:80px 60px;
}

/* Ultimate Member card (right column) */
.page-id-9 .um{
    background:#F5F7F3 !important;        /* off-white */
    padding:60px 40px !important;
    border-radius:8px;
    max-width:600px;
    margin:0 auto;
}

/* make UM inputs + buttons match other forms */
.page-id-9 .um input[type=text],
.page-id-9 .um input[type=email],
.page-id-9 .um input[type=password]{
    width:100%; padding:12px 14px;
    border:1px solid #DDD; border-radius:4px;
}
.page-id-9 .um input[type=submit]{
    background:#620047; color:#fff; font-weight:700;
    padding:14px 32px; border:0; border-radius:4px;
}
.page-id-9 .um input[type=submit]:hover{filter:brightness(1.12);}

@media(max-width:768px){
    .page-id-9 .um{width:100% !important; padding:30px 20px;}
    .page-id-9 .um form{grid-template-columns:1fr;}
}

/* full-width centred REGISTER button, Accounts page only */
.page-id-9 form:nth-of-type(2) input[type="submit"]{
    width:100% !important;          /* stretch edge-to-edge */
    display:block !important;       /* remove inline gap    */
    grid-column:1 / -1 !important;  /* span both grid cols  */
}
/* Register button = full grid width */
body.page-id-9 form:nth-of-type(2) p{
    grid-column:1 / -1 !important;    /* row spans both columns  */
    margin:0; width:100%;             /* parent can stretch      */
}
body.page-id-9 form:nth-of-type(2) input[type="submit"]{
    display:block !important;         /* not inline-block        */
    width:100%  !important;
    max-width:none !important;
    box-sizing:border-box;
}

/* ---- universal safe-area + flexible centring (2024-08-08) ---- */

/* === ACCOUNTS PAGE — centred card + footer that moves up (2024-08-08) === */

/* 1 ─ turn the whole Accounts page into a flex column */
body.page-id-9{
    display:flex;
    flex-direction:column;
    min-height:100vh;           /* full viewport height             */
    margin:0;                  /* avoid unexpected gaps            */
}

/* 2 ─ let the purple background fill remaining space and centre its contents */
body.page-id-9 .accounts-page-bg{
    flex:1 0 auto !important;   /* grows & can shrink               */
    display:flex !important;    /* enable flex-align                */
    align-items:center;         /* vertical centring                */
    justify-content:center;     /* horizontal centring              */

    /* breathing room + notch / bottom-bar padding */
    padding-top: max(env(safe-area-inset-top, 0px), 40px);
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 40px);
    padding-left:20px; padding-right:20px;
}

/* 3 ─ optional: cap card width so it doesn’t stretch too wide */
body.page-id-9 .accounts-wrapper{
    width:80%;
    max-width:900px;
}
/* --- NAV SHOULD SCALE + WRAP --- */
.site-header-inner{
  display:flex !important;
  align-items:center;
  gap:16px;
  padding:0 24px;                   /* was 0 80px */
  flex-wrap:wrap !important;        /* allow second row */
}

#site-navigation{ flex:1 1 480px; min-width:260px; max-width:100%; }

.site-header nav ul{
  display:flex !important;
  flex-wrap:wrap !important;        /* was nowrap */
  justify-content:flex-end;
  gap:10px 16px;                    /* tighter spacing */
  margin:0; padding:0; list-style:none;
}

.site-header nav a{
  display:flex;
  align-items:center;
  font-size:clamp(12px, 1vw + .2rem, 16px);
  padding:.5rem clamp(6px, .9vw, 14px);
  height:auto !important;           /* was 100px */
  white-space:nowrap;               /* keep each label on one line */
}


/* replace your current .site-header-container positioning */
.site-header-container{
  position: sticky;   /* was fixed */
  top: 0;
  z-index: 9999;
}

/* CO2 calculator page only */
/* === CO₂ Calculator page (ID 29) only === */

/* === CO₂ Calculator (page-id-29) — keep content below fixed header === */
body.page-id-29 { --co2-header: 140px; }  /* 1-row ≈100–120px, 2-row ≈140–160px */
@media (max-width: 1300px){
  body.page-id-29 { --co2-header: 160px; }  /* bump when menu wraps */
}

/* Create a spacer before the page content (works even with position:fixed header) */
body.page-id-29 main::before,
body.page-id-29 .site-content::before,
body.page-id-29 #primary::before {
  content: "";
  display: block;
  height: var(--co2-header);
}

/* Keep the grey card centred and never clipped on short screens */
body.page-id-29 .entry-content {
  min-height: calc(100svh - var(--co2-header));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

/* If your calculator wrapper has a class/id, this keeps it neat */
body.page-id-29 .calculator-section,
body.page-id-29 .calculator-container,
body.page-id-29 #sustainability-calculator {
  max-width: 960px;
  margin: 0 auto;
}
/* Show a real horizontal scrollbar for the nav when it overflows */
@media (max-width: 1350px){
  #site-navigation{
    overflow-x: scroll;          /* force a scrollbar */
    overflow-y: hidden;
    white-space: nowrap;         /* keep items on one row */
    scrollbar-gutter: stable;    /* reserve space for the bar (Chrome/FF) */
    -webkit-overflow-scrolling: auto;
  }
  #site-navigation > ul{
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    min-width: max-content;      /* ensure content can overflow */
  }
  #site-navigation > ul > li{ flex: 0 0 auto; }
  #site-navigation a{ white-space: nowrap; }
}

/* Make the scrollbar easy to see (Chrome/Edge/Safari) */
@media (max-width: 1350px){
  #site-navigation::-webkit-scrollbar{ height: 10px; }
  #site-navigation::-webkit-scrollbar-track{ background: rgba(0,0,0,.25); }
  #site-navigation::-webkit-scrollbar-thumb{
    background: #FFD700;         /* your yellow accent */
    border-radius: 8px;
  }
}

/* Firefox styling */
@media (max-width: 1350px){
  #site-navigation{ scrollbar-width: thin; scrollbar-color: #FFD700 rgba(0,0,0,.25); }
}
