     .carbon-calculator {
      font-family: 'Segoe UI', sans-serif;
      background: #ffffff;
      line-height: 1.5;
      min-height: 100vh;
    }
    .carbon-calculator .container {
      max-width: 1100px;
      margin: auto;
      background: #fff;
      padding: .3rem;
      border-radius: 0px;
    }
    .carbon-calculator .logo {
      max-width: 100%;
      margin: 0 auto;
      align-items: center;
      background: #fff;
      padding: .5rem;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .carbon-calculator h2 {
      text-align: center;
      margin-bottom: 1.5rem;
    }
    .carbon-calculator label {
      display: block;
      margin-top: 1rem;
      font-weight: bold;
    }
    .carbon-calculator input[type="number"] {
      width: 100%;
      max-width: 300px;
      padding: 0.5em;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 6px;
      box-sizing: border-box;
    }

    .carbon-calculator input[type="number"]:focus {
      border-color: #007BFF;
      outline: none;
      box-shadow: 0 0 3px rgba(0,123,255,0.5);
    }
    .carbon-calculator select {
      width: 100%;
      min-height: 44px;
      padding: 0.75rem;
      font-size: 1rem;
    }
    
    .carbon-calculator select:focus, button:focus {
      outline: 3px solid #0056b3;
      outline-offset: 2px;
    }
  .carbon-calculator button {
      margin-top: 2rem;
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      font-weight: bold;
      background-color: #65BDFF;
      color: black;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      min-height: 44px;
    }

    .carbon-calculator button:hover {
      background-color: #0070C0;
        color: white;
    }
  
.carbon-calculator table {
  width: 100%;
  border-collapse: collapse;
  margin: .2rem 0;
}

.carbon-calculator .table-wrapper {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: .3rem 0;
}

.carbon-calculator .responsive-table {
  width: 100%;
  min-width: unset;
  border-collapse: collapse;
}

.carbon-calculator .responsive-table th, 
.carbon-calculator .responsive-table td {
 padding: 0.15rem 0.1rem;
  text-align: center;
  border: 1px solid #ddd;
  white-space: nowrap;
  font-size: 0.9rem;
  background-color: #f5f5f5;
  font-weight: bold;
  padding: 0.4rem 0.2rem;
}

/* For very small screens */
@media (max-width: 480px) {
  .carbon-calculator .responsive-table th, 
  .carbon-calculator .responsive-table td {
 padding: 0.15rem 0.1rem;
    font-size: 0.85rem;
  }
}
.carbon-calculator .responsive-table tr:nth-child(odd) {
  background-color: #f5f5f5;
}

.carbon-calculator .responsive-table tr:nth-child(even) {
  background-color: #ffffff;
}
    .carbon-calculator th {
      background-color: #f5f5f5;
    }
    .carbon-calculator button {
      margin-top: 2rem;
      padding: 0.75rem 1.5rem;
      background-color: #0070C0;
      color: white;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      width: 100%;
    }
       .carbon-calculator button:hover {
      background-color: #0070C0;
    }
         .carbon-calculator  .progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    height: 100px;
  }
    
   .carbon-calculator .footprint {
    width: 100px;
    height: 100px;
    background-image: url('https://climateconnected.ie/FootprintApp/feet.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .carbon-calculator .footprint.active {
    opacity: 1;

  }
    
   .carbon-calculator .progress-connector {
    flex-grow: 1;
    height: 3px;
    margin: 0 5px;
    position: relative;
    top: -5px;
  }
    
   .carbon-calculator .progress-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: bold;
        color: black;
        z-index: 2;
        text-shadow: 0 0 2px white;
    }
    .carbon-calculator .skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: #000;
      color: white;
      padding: 8px;
      z-index: 100;
      text-decoration: none;
    }

   .carbon-calculator .skip-link:focus {
      top: 0;
    }
    
    .carbon-calculator .error {
      color: red;
      margin-top: 1rem;
      display: none;
    }
    .carbon-calculator .loading {
      display: none;
      margin-top: 1rem;
      color: #28a745;
    }
    .carbon-calculator .car-section {
      margin-bottom: 1.5rem;
      padding: 1rem;
      border: 1px solid #eee;
      border-radius: 5px;
    }
.carbon-calculator .ferry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 500px) {
  .carbon-calculator .ferry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 500px) {
  .carbon-calculator .ferry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.carbon-calculator .ferry-section {
  display: none; /* Initially hidden */
}
@media (max-width: 480px) {
      body {
        padding: 1rem;
      }
      .container {
        padding: 1rem;
      }
    }
    /* Help toggle + box */
.carbon-calculator .field { margin-bottom: 1.25rem; }
.carbon-calculator .help-toggle {
  background: none;
  border: none;
  color: #66b2ff;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
  padding: 0;
}
.carbon-calculator .help-toggle:focus { outline: 3px solid rgba(0,123,255,0.25); outline-offset: 2px; }

.carbon-calculator .help-box {
  background: #000;
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
  max-height: 0;
  padding: 0 0.9rem;
  transition: max-height 280ms ease, padding 200ms ease;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.carbon-calculator .help-box img {
  max-width: 150px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}
.carbon-calculator .help-box.open {
  padding: 0.75rem 0.9rem;
  max-height: 999px;
}
@media (max-width: 600px) {
  .carbon-calculator .help-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .carbon-calculator .help-box img {
    max-width: 100%;
  }
}
.carbon-calculator .tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  color: red;
}

.carbon-calculator .tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.carbon-calculator .tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.carbon-calculator .tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
/* ===== New two-column layout ===== */
.carbon-calculator .form-layout {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap; /* keep them side-by-side on large screens */
}

.carbon-calculator .form-column-left {
  flex: 0 0 60%;
  min-width: 280px;
}

.carbon-calculator .form-column-right {
  flex: 0 0 35%;
  min-width: 200px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.carbon-calculator .form-column-right img {
  float: right;
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  max-width: 40%; /* Optional: control image width */
  border-radius: 6px;
}

@media (max-width: 768px) {
  .carbon-calculator .form-layout {
    flex-direction: column-reverse; /* right column on top */
  }
  .carbon-calculator .form-column-left, .form-column-right {
    flex: 0 0 100%;   /* full width */
    max-width: 100%;  /* important */
    min-width: auto;  /* reset */
  }
}