/* ===== MS O365 – Main Calculator (dark theme) =====
   Fluid layout; type uses the site's design-system variables.
   Dark is the default: no opt-in class needed for the calculator itself.
   The section background is the one exception, see "Section background". */

/* Dark-theme black. Change this one value to update the whole calculator. */
:root {
  --os-dark: #0a0a0a;
}

/* --- Section background (edge to edge) ---
   Add the class  os-calc-dark  to the Elementor container that wraps the
   calculator. The box-shadow + clip-path pair extends the black past the boxed
   container to the full viewport width, clipped to the container's own top and
   bottom. */
.os-calc-dark {
  background: var(--os-dark) !important;
  color: #fff; /* white text for everything inside, so it doesn't depend on an Elementor class */
  box-shadow: 0 0 0 100vmax var(--os-dark);
  clip-path: inset(0 -100vmax);
}
/* Headings often carry their own theme color: keep them white on black */
.os-calc-dark :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

/* --- Top row: region + features (left), price box (right) --- */
#top-header-div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding-bottom: 30px;
}
#first-top-div {
  flex: 1 1 auto;
  text-align: left;
}
.topdiv {
  padding: 10px 0;
  margin: 35px 0 0;
}
.divwborder {
  flex: 0 0 320px;
  text-align: center;
  background-color: var(--light-grey);
  color: var(--os-dark);
  padding: 30px 0px;
}
.calcul li {
  padding: 5px;
}

/* --- Region dropdown ---
   Stays white (like the price box) with dark text, so it reads on black. */
.custom-select {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--os-dark);
  background-color: var(--white);
  color: var(--os-dark);
  outline: none;
  margin: 15px 0 25px !important; /* space before "What's included" */
}
.custom-select:focus {
  box-shadow: 0 0 0 3px #A855F7; /* visible keyboard focus on black */
}

/* --- Price box contents --- */
#showCustomAnnual {
  margin: 0 auto !important;
}
.pricing-totals {
  font-size: 1.5em;
}
.pricing-output {
  display: inline-block;
  color: var(--os-dark) !important;
}
#annual_user_output {
  font-weight: 500;
  padding-bottom: 25px;
}
#annual-price-output {
  height: 90px !important;
}
.contactus {
  padding-bottom: 10px;
}
.quote_btn {
  margin: 10px auto;
}
.quote_btn > span {
  display: block;
  margin: 12px 0 0 !important;
}
.btnwcolor {
  background-color: var(--os-dark);
}
.calcbutton {
  border: 1px solid var(--os-dark);
  min-width: 160px;
  white-space: nowrap;
  color: var(--white);
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  font-size: var(--p-small);
  line-height: 22px;
  transition: all 0.3s ease-out;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.calcbutton:hover,
.calcbutton:focus {
  color: var(--os-dark);
  background-color: var(--white);
}

/* Price box text lock: black throughout (no navy), white on the Request a
   Quote button, flipping to black on white when hovered. */
.divwborder,
.divwborder * {
  color: var(--os-dark) !important;
}
.divwborder .calcbutton,
.divwborder .calcbutton * {
  color: #fff !important;
}
.divwborder .calcbutton:hover,
.divwborder .calcbutton:hover *,
.divwborder .calcbutton:focus,
.divwborder .calcbutton:focus * {
  color: var(--os-dark) !important;
}

/* --- Sliders --- */
.divforsliders {
  width: 100%;
  /* Slider track gradient: brighter purple start so it reads on black */
  --track-start: #A855F7; /* purple */
  --track-end:   #5EE7E2; /* teal */
}
div.inner-left {
  font-size: var(--p-large);
  margin: 11px 0;
  text-align: left;
}
div.inner-right {
  margin-top: 18px;
}
.bottomtitle {
  padding-top: 25px !important;
}
.range-wrap,
.termrange-wrap {
  width: 100%;
  position: relative;
}
.range-wrap p {
  margin: 0 !important;
  padding: 0 !important;
}

input[type="range"] {
  -webkit-appearance: none;
  margin: 0 !important;
  width: 100%;
  padding: 0 !important;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--track-start), var(--track-end));
  border-radius: 25px;
}
input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--track-start), var(--track-end));
  border-radius: 25px;
}
/* Thumb: white with a purple ring so it shows on black */
input[type="range"]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #A855F7;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
}
input[type="range"]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #A855F7;
  cursor: pointer;
}
.rangeinput {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Value bubble above the users slider (positioned by calcPrice):
   white bubble, dark text */
.range-value {
  position: absolute;
  top: -50%;
}
.range-value span {
  width: 36px; /* up to 4 digits */
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: #fff;
  color: var(--os-dark);
  font-size: 12px;
  font-weight: 700;
  display: block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 6px;
}
.range-value span:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 10px solid #fff;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  margin-top: -1px;
}

/* Tick labels: evenly spaced by default (term slider: 12 / 24 / 36) */
.bottomticks {
  display: flex;
  justify-content: space-between;
  margin: 0 !important;
  padding: 0 !important;
}
.bottomticks span {
  font-size: var(--p-small);
}

#rangeticks {
  display: block;
  position: relative;
  height: 20px;
}
#rangeticks span {
  position: absolute;
  top: 0;
}
#rangeticks span:nth-child(1) { left: 0; }                                   /* 25 */
#rangeticks span:nth-child(2) { left: calc(10px + (100% - 20px) * 0.0769);  /* 100 */
                                transform: translateX(-50%); }
#rangeticks span:nth-child(3) { left: calc(10px + (100% - 20px) * 0.4872);  /* 500 */
                                transform: translateX(-50%); }
#rangeticks span:nth-child(4) { right: 0; }                                  /* 1000+ */

/* --- Mobile: stack the left column above the price box --- */
@media (max-width: 768px) {
  #top-header-div {
    flex-direction: column;
    gap: 0;
  }
  .divwborder {
    flex-basis: auto;
    width: 100%;
    box-sizing: border-box;
  }
}