/**
 * BPO Calculator Styles
 * Simplified dumbbell chart version
 */
@import url(https://fonts.googleapis.com/css?family=Rajdhani%3A300%2Cregular%2C500%2C600%2C700%7CRubik%3A300%2C300italic%2Cregular%2Citalic%2C500%2C500italic%2C700%2C700italic%2C900%2C900italic%7COpen+Sans%3A300%2C300italic%2Cregular%2Citalic%2C600%2C600italic%2C700%2C700italic%2C800%2C800italic&subset=latin%2Clatin-ext&display=swap&ver=6.1.1);

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  padding: 1rem;
}

div#mc_calc_chart {
  background-color: #035084;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  div#mc_calc_chart {
    max-width: 50%;
  }
}

@media (min-width: 1920px) {
  div#mc_calc_chart {
    max-width: 960px;
  }
}

/* Selectors container - 3 row layout for desktop */
.salaries {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "country country"
    "industry role"
    "seniority english";
}

.salaries > div.country { grid-area: country; max-width: calc(50% - 0.5rem); }
.salaries > div.industry { grid-area: industry; }
.salaries > div.role { grid-area: role; }
.salaries > div.seniority { grid-area: seniority; }
.salaries > div.english { grid-area: english; }

.salaries label {
  color: #fff;
  text-transform: uppercase;
  font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 400;
  line-height: 1.5em;
  font-size: 14px;
  display: block;
  margin-bottom: 0.25rem;
}

/* Dropdown styling */
select#role,
select#country,
select#industry,
select#seniority,
select#english {
  display: block;
  margin: 0;
  height: 2.5rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  background: hsla(0, 0%, 100%, .2);
  color: #fff;
  padding: 0 1.5rem 0 10px;
  outline: none;
  border: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

select#role option,
select#country option,
select#industry option,
select#seniority option,
select#english option {
  background: hsl(204deg 96% 26%);
  color: #fff;
}

/* Chart wrapper */
.chart-wrapper {
  width: 100%;
  margin: 1rem auto 0.5rem;
}

#chart-container {
  width: 100%;
}

#chart-container svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Dumbbell chart styles */
.dumbbell-chart .chart-title {
  fill: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
}

.dumbbell-chart .range-line {
  stroke: #8aa8bd;
  stroke-width: 3;
  stroke-linecap: round;
}

/* Dot markers - Blue (min), Green (avg), Red (max) */
.dumbbell-chart .dot-min {
  fill: #3498db;
}

.dumbbell-chart .dot-avg {
  fill: #2ecc71;
}

.dumbbell-chart .dot-max {
  fill: #e74c3c;
}

/* Value labels above dots */
.dumbbell-chart .label-min,
.dumbbell-chart .label-avg,
.dumbbell-chart .label-max {
  fill: #fff;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
}

/* X-axis styling */
.dumbbell-chart .axis-line {
  stroke: hsla(0, 0%, 100%, .3);
  stroke-width: 1;
}

.dumbbell-chart .axis-tick {
  stroke: hsla(0, 0%, 100%, .5);
  stroke-width: 1;
}

.dumbbell-chart .axis-label {
  fill: hsla(0, 0%, 100%, .7);
  font-size: 10px;
  font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
}

/* Build team button */
button#buildTeam {
  border: 2px solid transparent;
  font-size: 16px;
  background-color: #1cd86a;
  border-width: 4px;
  border-color: #1cd86a;
  font-weight: normal;
  font-style: normal;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 300ms ease 0ms;
  color: #fff;
  border-radius: 3px;
  font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
  text-align: center;
  padding: .6em 1em;
  box-shadow: none;
  outline: none;
  cursor: pointer;
}

button#buildTeam:hover {
  color: #ffffff;
  background-color: #41e685;
  border-color: #1cd86a;
}

.btn-wraper {
  text-align: center;
  margin: 0;
}

/* Modal styles (kept for "Build your team" functionality) */
div#calcForm {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  z-index: 999999;
  display: none;
  transition: .5s;
}

body.modalOpened div#calcForm {
  display: flex;
}

body.modalOpened {
  overflow: hidden;
}

.closeForm {
  text-align: right;
  margin-bottom: 30px;
}

.closeForm span {
  font-size: 42px;
  transform: rotate(45deg);
  display: inline-block;
  cursor: pointer;
  line-height: 28px;
  user-select: none;
  padding: 5px;
  text-align: center;
  width: 42px;
  height: 42px;
  z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .salaries {
    gap: 0.75rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "country"
      "industry"
      "role"
      "seniority"
      "english";
  }

  .salaries > div.country { max-width: 100%; }

  .dumbbell-chart .chart-title {
    font-size: 12px;
  }

  .dumbbell-chart .label-min,
  .dumbbell-chart .label-avg,
  .dumbbell-chart .label-max {
    font-size: 10px;
  }

  .dumbbell-chart .axis-label {
    font-size: 9px;
  }
}

@media (max-width: 650px) {
  .dumbbell-chart .chart-title {
    font-size: 12px;
  }

  .dumbbell-chart .label-min,
  .dumbbell-chart .label-avg,
  .dumbbell-chart .label-max {
    font-size: 11px;
    font-weight: 600;
  }

  .dumbbell-chart .axis-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  div#mc_calc_chart {
    padding: 1rem 0.75rem;
  }

  .salaries label {
    font-size: 12px;
  }

  select#role,
  select#country,
  select#industry,
  select#seniority,
  select#english {
    height: 2rem;
    font-size: 0.9rem;
  }

  button#buildTeam {
    font-size: 14px;
    padding: 0.5em 0.8em;
  }

  .dumbbell-chart .chart-title {
    font-size: 11px;
  }

  .dumbbell-chart .label-min,
  .dumbbell-chart .label-avg,
  .dumbbell-chart .label-max {
    font-size: 10px;
    font-weight: 700;
  }
}
