/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

header {
    background-color: #34acdb4b;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* ------------------------------------------------------ Info-Icon Styles ----------------------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    color: #000;
    overflow-x: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Universelles Info-Icon */
.info-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #3498db;
  color: white;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  cursor: help;
  margin-left: 5px;
  position: relative;
}
/* Tooltip einblenden bei Hover */
.info-icon::after {
  content: attr(data-info);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.info-icon:hover::after {
  visibility: visible;
  opacity: 1;
}

/* ------------------------------------------------------ Refuel Profile Styles (V7) ------------------------------------------------------ */

.refueling-options-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.radio-options {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.refuel-slider-container {
  margin-top: 0px;
  margin-left: 0px;
  background: transparent;
  border-radius: 0px;
  padding: 0px;
  max-width: 300px;
  width: 100%;
  flex-shrink: 0;
}

.refuel-slider-title {
  font-weight: bold;
  margin-bottom: 0px;
  color: #444;
  text-align: center;
}

.distribution-range-refuel-wrapper {
  position: relative;
  height: 40px;
  margin-bottom: 0px;
}

.distribution-refuel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 8px;
  background-color: #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.distribution-segment {
  position: absolute;
  height: 100%;
  top: 0;
}

.depot-distribution {
  background-color: #afafb1;
  width: 50%;
  left: 0;
}

.public-distribution {
  background-color: #767776;
  width: 50%;
  right: 0;
}

.distribution-handle-refuel {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid #333;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.distribution-info {
  display: flex;
  justify-content: center;
  font-size: 14px;
  color: #555;
  gap: 10px;
}

/* ------------------------------------------------------ TCO-Yearly Slider (V7) ------------------------------------------------------ */

#tcoYearSliderLabel {
  width: 50%;
  margin: 0 auto;
  text-align: left;
  font-weight: 500;
  margin-bottom: 5px;
}


#tcoYearSlider {
  width: 50%;
  display: block;
  margin: 0 auto;
}


/* #tcoYearSlider {
  width: 50%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0e0;
  outline: none;
  border-radius: 5px;
  cursor: pointer;
} */

#tcoYearSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

#tcoYearSlider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

#tcoYearSlider:hover::-webkit-slider-thumb,
#tcoYearSlider:hover::-moz-range-thumb {
  background: #2980b9;
}




/* ------------------------------------------------------ Usage Profile ------------------------------------------------------ */
  .slider-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
  }
  
  h1, h2 {
    color: #3498db;
    margin-bottom: 25px;
    text-align: center;
  }
  
  /* Selection Buttons */
  .selection-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
  }
  
  .selection-button {
    background-color: #e0e0e0;
    color: #333;
    padding: 10px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    user-select: none;
  }
  
  .selection-button:hover {
    background-color: #d0d0d0;
  }
  
  .selection-button.active {
    background-color: #4CAF50;
    color: white;
  }
  
  /* Sliders Common Styling */
  .profile-slider-container {
    margin-bottom: 30px;
  }
  
  .profile-slider-title {
    font-weight: bold;
    margin-bottom: 12px;
    color: #444;
  }
  
  /* Distribution Slider */
  .distribution-range-wrapper,
  .payload-range-wrapper {
    position: relative;
    height: 40px;
    margin-bottom: 10px;
  }
  
  .distribution-track,
  .payload-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .distribution-segment,
  .payload-segment {
    position: absolute;
    height: 100%;
    top: 0;
  }
  
  .highway-distribution {
    background-color: #4CAF50;
    width: 90%;
    left: 0;
  }
  
  .regional-distribution {
    background-color: #2196F3;
    width: 10%;
    right: 0;
  }
  
  .distribution-handle,
  .payload-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }
  
  .distribution-info,
  .payload-info {
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: #555;
  }
  
  /* Payload Multi-Range Slider */
  .highway-full {
    background-color: #4CAF50;
    width: 63%;
    left: 0;
  }
  
  .highway-empty {
    background-color: #8BC34A;
    width: 27%;
    left: 63%;
  }
  
  .regional-full {
    background-color: #2196F3;
    width: 7%;
    left: 90%;
  }
  
  .regional-empty {
    background-color: #03A9F4;
    width: 3%;
    left: 97%;
  }
  
  /* Textbox Section */
  .textbox-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
  }
  
  .textbox {
    display: flex;
    flex-direction: column;
  }
  
  .textbox label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
  }
  
  .textbox input,
  .textbox select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .textbox input:disabled,
  .textbox select:disabled {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
  }
  
  .textbox input:focus,
  .textbox select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.5);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .textbox-section {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .textbox-section {
      grid-template-columns: 1fr;
    }
    
    .selection-container {
      flex-direction: column;
      align-items: center;
    }
    
    .selection-button {
      width: 100%;
      text-align: center;
    }
  }

/* Main content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Chart styles */
.chart-container {
    flex: 2;
    min-width: 500px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* height: 100%; */
    height: 400px;
}

/* Configuration panel */
.controls {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.controls h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.control-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.control-group h3 {
    margin-bottom: 0.8rem;
    color: #3498db;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.input-group label {
    width: 30px;
    font-weight: bold;
}

.input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #2980b9;
}

/*------------------------------------------------------------ Energy Costs ----------------------------------------------------------*/
h1, h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #3498db;
  }
  
  h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }
  
  /* Panel Styling */
  .panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
  }
  
  .panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Slider Grid */
  .slider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  
  .slider-item {
    display: flex;
    flex-direction: column;
  }
  
  /* Slider Styling */
  label {
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  input[type="range"]:hover::-webkit-slider-thumb {
    background: #2980b9;
  }
  
  input[type="range"]:hover::-moz-range-thumb {
    background: #2980b9;
  }
  
  /* Checkbox and Radio Button Styling */
  .checkbox-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }
  .radio-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
  }
  
  .options-group {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
  }
  
  input[type="checkbox"],
  input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
  }
  
  /* Style for the selected radio option */
  input[type="radio"]:checked + span {
    font-weight: 600;
    color: #2980b9;
  }
  
  /* Value Spans */
  [id$="Value"] {
    font-weight: 600;
    color: #2980b9;
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    body {
      padding: 1rem;
    }
    
    .slider-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    
    .panel {
      padding: 1.25rem;
      margin-bottom: 1rem;
    }
  }

  /* Renewable Options: horizontal & zentriert */
  .options-group.renewable-options .checkbox-group {
    display: flex;             /* Flex-Container */
    flex-direction: row;       /* horizontal anordnen */
    flex-wrap: wrap;           /* bei Platzmangel umbrechen */
    justify-content: center;   /* zentrieren */
    margin-top: 2rem;
    gap: 1.5rem;               /* Abstand zwischen den Elementen */
  }

  /* Renewable Options Titel zentrieren */
  .options-group.renewable-options h3 {
    text-align: center;
    width: 100%;
  }
  
/* ----------------------------------------------------------- checkbox Ingolstadt - Barcelona ---------------------------------------------------- */
/* Ingolstadt - Barcelona Checkbox Styles */
.checkbox-group-ingolstadtBarcelona {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;    /* align checkboxes to the right */
  align-items: flex-end;
  margin-top: 12px;
  margin-bottom: 16px;
  padding-right: 0px;          /* 10px distance from the right */
  gap: 0px;                    /* space between checkboxes */
}
.checkbox-group-ingolstadtBarcelona {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}
.checkbox-group-ingolstadtBarcelona label {
  display: flex;
  flex-direction: column-reverse; /* label text above checkbox */
  align-items: center; /* right alignment */
  font-weight: 500;
  color: #333;
  font-size: 0.7rem;
  gap: 0px; /* minimal space, but not overlapping */
}

.checkbox-group-ingolstadtBarcelona label input[type="checkbox"] {
  margin: 0;
  margin-top: 0;
  width: 11px;   /* 50% of 22px */
  height: 11px;  /* 50% of 22px */
  accent-color: #3498db;
  cursor: pointer;
}

@media (max-width: 768px) {
  .checkbox-group-ingolstadtBarcelona {
    margin-top: 10px;
    margin-bottom: 12px;
    align-items: flex-end; /* keep right alignment on mobile */
    padding-right: 0px;  /* maintain 10px distance on mobile */
  }
}
/* ----------------------------------------------------------- Responsive adjustments --------------------------------------------------------------*/
@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .chart-container,
    .controls {
        min-width: 100%;
    }
    
    .configuration-profile-wrapper {
        flex-direction: column;
    }
    
    .configuration-profile-wrapper .form-section,
    .configuration-profile-wrapper .slider-section {
        width: 100%;
    }
}
/* ----------------------------------------------------------- Configuration --------------------------------------------------------------*/


/* Configuration and Usage Profile Wrapper */
.configuration-profile-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.configuration-profile-wrapper .form-section,
.configuration-profile-wrapper .slider-section {
  flex: 1;
  min-width: 300px;
}

.form-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-top: 20px;
  width: 100%;
}

h1 {
  color: #3498db;
  margin-bottom: 20px;
  text-align: center;
}

.form-item {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

.custom-dropdown {
  position: relative;
}

.dropdown-options {
  display: none;
  position: absolute;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  list-style: none;
}

.dropdown-options li {
  padding: 10px;
  cursor: pointer;
}

.dropdown-options li:hover {
  background-color: #f0f0f0;
}

.form-full-width {
  grid-column: 1 / -1;
}

.vehicle-image-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

#vehicleImage {
  max-width: 300px;
  height: auto;
  display: block;
}

/* Responsive design */
@media (max-width: 768px) {
  .form-item {
      padding: 0;
  }
  
  .container {
      padding: 10px;
  }
  
  .form-section {
      padding: 15px;
  }
}

/* ----------------------------------------------------------- Energy Costs Panels ----------------------------------------------------------*/
.panel {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  margin-top: 20px;
  width: 100%;
}

.energy-costs,
.depot-costs,
.transport-params,
.depot-options {
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------- CAPEX Panel---------------------------------------------------------*/

.charts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.opex_container {
  width: 100%;
  margin: 0;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.opex_container h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.opex_chart-container {
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.opex_chart-wrapper {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 10px 20px 10px;
  min-height: 300px;
  position: relative;
}

.opex_radio-group {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 5px;
  background-color: #f8f8f8;
  border: 1px solid #eee;
}

.opex_radio-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.opex_radio-group label {
  display: inline-block;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.opex_radio-group label:hover {
  background-color: #e0e0e0;
}

.opex_radio-group input {
  margin-right: 5px;
}

/* Canvas styling
canvas#opex_costChart {
  width: 100% !important; 
  height: 100% !important;
} */


/* ----------------------------------------------------------- TCO Panel ----------------------------------------------------------*/
.tco_container {
  width: 32%;
  margin: 0;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tco_container h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

#tcoYearDisplay, #capexYearDisplay {
  display: inline-block;
  margin-right: 8px;
  font-weight: 600;
  color: #2c5aa0;
  transition: color 0.3s ease;
}

.tco_chart-container {
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.tco_chart-wrapper {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 10px 20px 10px;
  min-height: 300px;
  position: relative;
}

.tco_radio-group {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 5px;
  background-color: #f8f8f8;
  border: 1px solid #eee;
}

.tco_radio-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tco_radio-group label {
  display: inline-block;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.tco_radio-group label:hover {
  background-color: #e0e0e0;
}

.tco_radio-group input {
  margin-right: 5px;
}

/* Canvas styling */
canvas#tco_costChart {
  width: 100% !important; 
  height: 100% !important;
}

/* Update responsive adjustments for both charts */
@media (max-width: 992px) {
  .capex_container,
  .tco_container {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .charts-row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .tco_container h2,
  .capex_container h2 {
    font-size: 1.2rem;
  }
  
  #tcoYearDisplay, #capexYearDisplay {
    margin-right: 6px;
  }
}

@media (max-width: 480px) {
  .tco_container h2,
  .capex_container h2 {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  #tcoYearDisplay, #capexYearDisplay {
    display: block;
    margin-right: 0;
    margin-bottom: 4px;
  }
}
/* ----------------------------------------------------------- TCO Panel END----------------------------------------------------------*/

/* Container for the TCO data section */
.tco-data {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 400px;
}

/* Chart canvas */
#tcoChart {
  width: 100%;
  height: 100%;
  margin-top: 20px;
}

/* Group of checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

/* Transport options */
.transport-options {
  margin-bottom: 10px;
}

/* Savings options */
.savings-options {
  margin-bottom: 10px;
}

/* Renewable status indicator */
#renewableStatusTCO {
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.renewable-status.all-renewable {
  background-color: #a8f0c6;
  color: #2c7c44;
  border-color: #7fd0a4;
}

.renewable-status.partial-renewable {
  background-color: #fff8c4;
  color: #856404;
  border-color: #ffeeba;
}

.renewable-status.no-renewable {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Checkbox styling container */
.tco-data .checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  user-select: none;
  font-size: 14px;
  color: #333;
}

/* Custom styling for .tco-data headings */
.tco-data h2 {
  color: #3498db;
  margin-bottom: 20px;
  text-align: center;
}

.tco-data .info-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #3498db;
  color: white;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 5px;
}

/* Hide native checkbox */
.tco-data .checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom checkbox visual */
.tco-data .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #333;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

/* Hover effect */
.tco-data .checkbox-container:hover input ~ .checkmark {
  background-color: #444;
}

/* Checked state */
.tco-data .checkbox-container input:checked ~ .checkmark {
  background-color: #215F9A;
}

/* Checkmark appearance */
.tco-data .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.tco-data .checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Checkmark style */
.tco-data .checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Vehicle Data Panel Styles */
.vehicle-data {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.vehicle-data-main-title {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.vehicle-data-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 15px;
}

.vehicle-data-section {
  /* Each section takes up one column */
  display: flex;
  flex-direction: column;
}

.vehicle-data-section h3 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.vehicle-data h2 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.data-grid-single {
  /* Not used in new row-based layout */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-item {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 6px;
  border-left: 4px solid #3498db;
  transition: all 0.3s ease;
}

/* Technology-specific border colors matching TCO/CAPEX chart colors */
.data-item.diesel-truck {
  border-left-color: rgba(94, 94, 95, 1); /* Diesel dark gray */
}

.data-item.h2-truck {
  border-left-color: rgba(57, 92, 168, 1); /* H2 blue */
}

.data-item.gpc-truck {
  border-left-color: rgba(17, 151, 17, 1); /* GPC green */
}

.data-item.bev-truck {
  border-left-color: rgba(255, 225, 106, 1); /* BEV yellow */
}

/* Common Range row with all technology colors */
.vehicle-data-section.range-row {
  grid-column: 1 / -1;
}

.data-item.all-technologies {
  border-left: 4px solid #3498db;
  padding-left: 10px;
}

.data-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.data-item label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  color: #2c3e50;
  font-size: 0.9rem;
}

.data-item span {
  display: block;
  font-size: 1.1rem;
  color: #3498db;
  font-weight: bold;
}

/* Benefits Panel Styles */
.benefits {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.benefits h2 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.benefit-box {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.benefit-box:nth-child(1) {
  border-top: 4px solid #27ae60; /* Green for CO2 */
}

.benefit-box:nth-child(2) {
  border-top: 4px solid #f39c12; /* Orange for Loading */
}

.benefit-box:nth-child(3) {
  border-top: 4px solid #e74c3c; /* Red for Savings */
}

.benefit-box h3 {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.benefit-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-item {
  padding: 8px;
}

.benefit-item label {
  display: block;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #2c3e50;
}

.benefit-item span {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  color: #3498db;
}

/* Media query for responsive design */
@media (max-width: 1200px) {
  .vehicle-data-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vehicle-data-container {
    grid-template-columns: 1fr;
  }
  
  .vehicle-data-section h3 {
    font-size: 1rem;
  }
  
  .data-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-container {
    grid-template-columns: 1fr;
  }
}


/* ----------------------------------------------------------- CAPEX Panel ----------------------------------------------------------*/
.charts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.capex_container {
  width: 32%;
  margin: 0;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.capex_container h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.capex_chart-container {
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.capex_chart-wrapper {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 10px 20px 10px;
  min-height: 300px;
  position: relative;
}

.capex_radio-group {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 5px;
  background-color: #f8f8f8;
  border: 1px solid #eee;
}

.capex_radio-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.capex_radio-group label {
  display: inline-block;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.capex_radio-group label:hover {
  background-color: #e0e0e0;
}

.capex_radio-group input {
  margin-right: 5px;
}

/* Canvas styling */
canvas#capex_costChart {
  width: 100% !important; 
  height: 100% !important;
}

/* Placeholder for future chart */
.placeholder-container {
  width: 48%;
  height: 400px;
  background-color: #f8f8f8;
  border-radius: 8px;
  border: 1px dashed #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .capex_container,
  .tco_container {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .charts-row {
    flex-direction: column;
  }
}
/* ----------------------------------------------------------- CAPEX Panel END----------------------------------------------------------*/

/* Options Row */
.options-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.options-container {
  width: 100%;
  max-width: 1200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
}

.options-container h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.capex_radio-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.capex_radio-options label {
  display: inline-block;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.capex_radio-options label:hover {
  background-color: #e0e0e0;
}

.capex_radio-options input {
  margin-right: 5px;
}

@media (max-width: 768px) {
  .capex_radio-options {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .capex_radio-options label {
    width: 80%;
  }
}

/* ----------------------------------------------------------- OPEX Container Styles ----------------------------------------------------------*/
.savings-options-box {
  width: 90%;
  margin: 1px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.opex_container {
  width: 100%;
  max-width: 1200px;
  margin: 2px auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.savings-options-box h2 {
  font-size: 1.2rem;
  margin-bottom: 2px;
  text-align: center;
  color: #3498db;
}

.savings-options-box .checkbox-group_additional-savings {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.savings-options-box label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
}

.savings-options-box input[type="checkbox"] {
  margin-right: 2px;
}

.opex_chart-container {
  width: 100%;
  height: 400px;
  position: relative;
}

.opex_chart-wrapper {
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px;
}

@media (max-width: 768px) {
  .opex-savings-container {
    flex-direction: column;
  }
  
  .opex_container {
    width: 100%;
    order: 2;
    
  }
  
  .savings-options-box {
    width: 100%;
    order: 1;
    margin-bottom: 5px;
  }
}

/* ----------------------------------------------------------- Infrastructure Panel ----------------------------------------------------------*/
.charts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.infrastructure_container {
  width: 32%;
  margin: 0;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.infrastructure_container h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.infrastructure_chart-container {
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.infrastructure_chart-wrapper {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 10px 20px 10px;
  min-height: 300px;
  position: relative;
}

.infrastructure_radio-group {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 5px;
  background-color: #f8f8f8;
  border: 1px solid #eee;
}

.infrastructure_radio-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.infrastructure_radio-group label {
  display: inline-block;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.infrastructure_radio-group label:hover {
  background-color: #e0e0e0;
}

.infrastructure_radio-group input {
  margin-right: 5px;
}

/* Canvas styling */
canvas#infrastructure_costChart {
  width: 100% !important; 
  height: 100% !important;
}

/* Placeholder for future chart */
.placeholder-container {
  width: 48%;
  height: 400px;
  background-color: #f8f8f8;
  border-radius: 8px;
  border: 1px dashed #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .infrastructure_container,
  .tco_container {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .charts-row {
    flex-direction: column;
  }
}
/* ----------------------------------------------------------- Infrastructure Panel END----------------------------------------------------------*/

/* ----------------------------------------------------------- Calculation Matrix Panel ----------------------------------------------------------*/
.infrastructure_calculation_matrix_container {
  width: 100%;
  margin: 0;
  margin-top: 20px;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.infrastructure_calculation_matrix_container h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.calculation_matrix_container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.calculation_values {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 5px;
  border: 1px solid #eee;
}

.matrix-value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matrix-label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
}

.matrix-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3498db;
}

.calculation_table_container {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px;
  background-color: white;
}

.calculation-matrix-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calculation-matrix-table th,
.calculation-matrix-table td {
  padding: 8px 4px;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.calculation-matrix-table th {
  background-color: #f2f2f2;
  font-weight: 600;
  color: #333;
}

.calculation-matrix-table th[rowspan="2"] {
  width: 18%;
}

.calculation-matrix-table th[colspan="2"] {
  background-color: #e6e6e6;
}

.calculation-matrix-table .row-label {
  text-align: left;
  font-weight: 600;
  background-color: #f8f8f8;
  padding-left: 8px;
}

/* Alternating colors for different technology columns */
.calculation-matrix-table th:nth-child(2),
.calculation-matrix-table th:nth-child(3),
.calculation-matrix-table td:nth-child(2),
.calculation-matrix-table td:nth-child(3) {
  background-color: rgba(220, 220, 220, 0.3);
}

.calculation-matrix-table th:nth-child(6),
.calculation-matrix-table th:nth-child(7),
.calculation-matrix-table td:nth-child(6),
.calculation-matrix-table td:nth-child(7) {
  background-color: rgba(220, 220, 220, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .infrastructure_calculation_matrix_container {
    width: 100%;
    margin-bottom: 20px;
  }
}
/* ----------------------------------------------------------- Calculation Matrix Panel END ----------------------------------------------------------*/

/* ----------------------------------------------------------- CAPEX Radio Options ----------------------------------------------------------*/
.capex_radio-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.capex_radio-options label {
  display: inline-block;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.capex_radio-options label:hover {
  background-color: #e0e0e0;
}

.capex_radio-options input {
  margin-right: 5px;
}

@media (max-width: 768px) {
  .capex_radio-options {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .capex_radio-options label {
    width: 80%;
  }
}

/* ----------------------------------------------------------- Infrastructure Panel ----------------------------------------------------------*/
.infrastructure_container {
  width: 32%;
  margin: 0;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.infrastructure_container h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.infrastructure_chart-container {
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.infrastructure_chart-wrapper {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 10px 10px 20px 10px;
  min-height: 300px;
  position: relative;
}

.infrastructure_radio-group {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  padding: 8px;
  border-radius: 5px;
  background-color: #f8f8f8;
  border: 1px solid #eee;
}

.infrastructure_radio-options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.infrastructure_radio-group label {
  display: inline-block;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.infrastructure_radio-group label:hover {
  background-color: #e0e0e0;
}

.infrastructure_radio-group input {
  margin-right: 5px;
}

/* Canvas styling */
canvas#infrastructure_costChart {
  width: 100% !important; 
  height: 100% !important;
}

/* Responsive adjustments for infrastructure panel */
@media (max-width: 992px) {
  .infrastructure_container {
    width: 100%;
    margin-bottom: 20px;
  }
}
/* ----------------------------------------------------------- Infrastructure Panel END----------------------------------------------------------*/

/* =============================================
   CONTACT FORM POPUP STYLES
   ============================================= */

/* Floating Contact Button - Minimal Design */
.contact-popup-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0984d6;
    /*background: #2A302F;*/
    color: white;
    border: none;
    border-radius: 25px;
    width: auto;
    height: 50px;
    padding: 0 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    z-index: 999;
}

.contact-popup-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #3d4543;
}

.contact-popup-button:active {
    transform: scale(1.02);
}

.contact-popup-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-popup-button span {
    display: inline;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.contact-modal-header h2 {
    margin: 0;
    /*color: #2A302F;*/
    color: #0984d6;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.contact-close {
    color: #666;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.contact-close:hover {
    color: #2A302F;
}

.contact-modal-subtitle {
    padding: 15px 30px 0 30px;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.contact-modal-subtitle a {
    color: #0984d6;
    text-decoration: none;
    font-weight: 600;
}

.contact-modal-subtitle a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2A302F;
    font-weight: 600;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2A302F;
    box-shadow: 0 0 0 3px rgba(42, 48, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.word-count {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.word-count.warning {
    color: #e67e22;
    font-weight: 600;
}

.word-count.error {
    color: #e74c3c;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.btn-cancel {
    background-color: #f0f0f0;
    color: #666;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
    color: #333;
}

.btn-submit {
    background: linear-gradient(135deg, #2A302F 0%, #3d4543 100%);
    color: white;
    position: relative;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #3d4543 0%, #2A302F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
}

/* Form Messages */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-popup-button {
        bottom: 15px;
        right: 15px;
        padding: 0 15px;
        height: 45px;
        font-size: 13px;
    }
    
    .contact-popup-button svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-popup-button span {
        font-size: 12px;
    }
    
    .contact-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .contact-modal-header {
        padding: 20px;
    }
    
    .contact-modal-header h2 {
        font-size: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

/* Scrollbar Styling for Modal */
.contact-modal-content::-webkit-scrollbar {
    width: 8px;
}

.contact-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.contact-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.contact-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
