/* ============================================
   BASE WRAPPER + GRID
   ============================================ */
.jcs-wrap {
  font-family: "Inter", sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  color: #1b1b1b;
}

.jcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
}

/* ============================================
   CARDS (desktop)
   ============================================ */
.jcs-card {
  background: none;
  border-radius: 14px;
  padding: 26px 30px;
  border: none;
}

.jcs-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #222;
}

/* Extra alignment padding for desktop left card */
.jcs-card-left h4 {
  margin-bottom: 32px;
}

/* ============================================
   SLIDER GROUPS (desktop)
   ============================================ */
.jcs-row {
  margin-bottom: 22px;
}

.jcs-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.jcs-rate {
  font-weight: 400;
  color: #777;
  font-size: .9rem;
}

.jcs-val {
  font-size: .9rem;
  margin-top: 4px;
  color: #333;
}

/* Slider visual style */
.jcs-hours {
  width: 100%;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg,#D97A3E 0%,#F2B266 100%);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.jcs-hours::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #D97A3E;
  box-shadow: 0 0 6px rgba(217,122,62,0.4);
}

/* ============================================
   CHART AREA
   ============================================ */
.jcs-chart-area {
  position: relative;
  height: 230px;
  margin-bottom: 16px;
}

.jcs-label {
  position: absolute;
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Chart bubble styles */
.jcs-label-today {
  background:#e0e0e0; color:#111; border-radius:10px; font-weight:700;
}
.jcs-label-current {
  background:#D97A3E; color:#fff; border-radius:10px;
}
.jcs-label-future {
  background:#555; color:#fff; border-radius:10px;
}

/* ============================================
   SAVINGS BLOCK
   ============================================ */
.jcs-savings-block {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 20px;
}

.jcs-savings-block .label {
  display: block;
  font-size: .9rem;
  color: #777;
  margin-bottom: 2px;
}

.jcs-disclaimer {
  font-size: .8rem;
  color: #999;
  margin: 0 0 8px;
}

.jcs-savings-block .value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #D97A3E;
}

/* ============================================
   MOBILE CONTROLS (hidden on desktop)
   ============================================ */
.jcs-mobile-controls {
  display: none;
}

@media (max-width: 767px) {
    .jcs-card-right h4 {
        display: none;
    }
}

@media (max-width: 767px) {
    .jcs-mobile-controls {
        margin-bottom: 16px;
    }
}

@media (max-width: 767px) {

  /* Stack cards */
  .jcs-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  /* Hide desktop left-side sliders entirely */
  .jcs-card-left {
    display: none;
  }

  /* Show mobile dropdown + slider */
  .jcs-mobile-controls {
    display: block;
    margin-top: 24px;
  }

  .jcs-mobile-aircraft-select {
    width: 100%;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid #D3D3D3;
    font-size: 14px;
    background-color: #fff;
  }

  .jcs-mobile-slider-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .jcs-mobile-slider {
    flex: 1;
  }

  .jcs-mobile-hours-label {
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
  }

  /* Buttons full-width on mobile */
  .jcs-card-right .jcs-btn {
    width: 100%;
    display: block;
  }

  .jcs-card-right .jcs-btn + .jcs-btn {
    margin-top: 12px;
  }
  
  /* Remove left padding that pushes everything right */
  .jcs-wrap {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }

  /* Center-align key blocks */
  .jcs-card-right {
      text-align: center;
  }

  /* Ensure chart + savings block is centered */
  .jcs-chart-area,
  .jcs-savings-block {
      margin-left: auto;
      margin-right: auto;
  }
  
  @media (max-width: 767px) {

  /* More space below dropdown */
  .jcs-mobile-aircraft {
    margin-bottom: 24px !important;
  }

  /* More space below slider */
  .jcs-mobile-slider-row {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }

  /* More space above the Submit button */
  .jcs-open-jetcard-modal {
    margin-top: 40px !important;
  }
}