/* 3-column container on desktop, 1 column on mobile */
.sc-three-col {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.sc-col {
    flex: 1 1 0;
    min-width: 280px;
}

/* Chart column styling */
.sc-chart-column .sc-chart-container {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

/* Controls column styling */
.sc-controls-container fieldset {
 /*   border: 1px solid #ccc; */
    padding: 10px;
    margin-bottom: 15px;
}
.sc-controls-container legend {
    font-weight: bold;
}
.sc-salary-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.sc-salary-group input[type="number"] {
    width: 120px;
}

/* Data column styling */
.sc-data-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
}

/* Mobile fallback: single column below 768px */
@media (max-width: 768px) {
    .sc-three-col {
        display: block;
    }
    .sc-col {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Generic toggle styling */
.sc-toggle {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 40px;
    background: #e6e6e6;
    border-radius: 50px;
    overflow: hidden;
}

.sc-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sc-toggle-option {
    position: relative;
    width: 50%;
    height: 100%;
    float: left;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 2;
    color: #666;
    font-weight: bold;
    transition: color 0.25s;
}

.sc-toggle-switch {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    border-radius: 50px;
    z-index: 1;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: left 0.25s;
}

.sc-toggle-option::after {
    content: attr(data-label);
}

/* The left radio is checked => slider stays left */
.sc-toggle input[type="radio"]:first-of-type:checked ~ .sc-toggle-switch {
    left: 0;
}
.sc-toggle input[type="radio"]:first-of-type:checked ~ label.sc-toggle-option:nth-of-type(2) {
    color: #222;
}

/* The right radio is checked => slider moves right */
.sc-toggle input[type="radio"]:last-of-type:checked ~ .sc-toggle-switch {
    left: 50%;
}
.sc-toggle input[type="radio"]:last-of-type:checked ~ label.sc-toggle-option:nth-of-type(4) {
    color: #222;
}


/* Container for the slider */
.sc-slider-section {
  width: 100%;
  margin-bottom: 1em;
}

/* Make the slider fill the entire width */
.sc-slider-section input[type="range"] {
  width: 100%;
  height: 20px;     /* slider track height */
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none; /* remove default styles */
  outline: none;
}
fieldset {
    border: 0;
}

/* The slider track (WebKit) */
.sc-slider-section input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;           /* track thickness */
  background: #ccc;      /* track color */
  border-radius: 4px;
}
.sc-slider-section input[type="range"]::-webkit-slider-thumb {
  width: 24px;           /* thumb diameter */
  height: 24px;
  background: #fff;      /* thumb color */
  border: 2px solid #888;
  border-radius: 50%;
  margin-top: -10px;     /* center thumb vertically on the track */
  -webkit-appearance: none;
  cursor: pointer;
}

/* Firefox track */
.sc-slider-section input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #ccc;
  border-radius: 4px;
}
.sc-slider-section input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #888;
  border-radius: 50%;
  cursor: pointer;
}

/* The input + currency container below the slider */
.sc-salary-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.5em;
}
.sc-salary-input-group input[type="number"] {
  width: 120px;
}

/* Modal overlay covers the entire screen */
.sc-modal-overlay {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* semi-transparent background */
}

/* Center the modal content */
.sc-modal-content {
    background: #fff;
    margin: 10% auto; /* roughly center vertically */
    padding: 20px;
    max-width: 400px;
    border-radius: 5px;
    position: relative; /* so the close icon can be absolutely positioned if desired */
}

/* Close icon in top-right corner */
.sc-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

.sc-breakdown-group {
  background: #04474b2e;           /* svag blå baggrund */
  border: 1px solid #b0d4f1;    /* blålig kant */
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.sc-breakdown-group h3 {
  margin-top: 0;
  color: #0056a2; /* Mørkere blå til overskrift */
}

.get-quote-btn {
  display: block;
  width: 100%;
  background-color: #04474b;  /* WordPress-blå eller vælg en anden blå farve */
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px; /* afstand til elementet ovenfor */
}

.get-quote-btn:hover {
  background-color: #91a4a2; /* Mørkere blå ved hover */
}

button.getquote.button.button-primary {
    width: 80%;
    padding: 10px 10px 10px 10px;
    margin-left: 10%;
}

