@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-thin.eot');
  src: url('/static/font/raleway-thin.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-thin.woff') format('woff'), url('/static/font/raleway-thin.ttf') format('truetype'), url('/static/font/raleway-thin.svg#ralewaythin') format('svg');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-extralight.eot');
  src: url('/static/font/raleway-extralight.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-extralight.woff') format('woff'), url('/static/font/raleway-extralight.ttf') format('truetype'), url('/static/font/raleway-extralight.svg#ralewayextralight') format('svg');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-light.eot');
  src: url('/static/font/raleway-light.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-light.woff') format('woff'), url('/static/font/raleway-light.ttf') format('truetype'), url('/static/font/raleway-light.svg#ralewaylight') format('svg');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-regular.eot');
  src: url('/static/font/raleway-regular.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-regular.woff') format('woff'), url('/static/font/raleway-regular.ttf') format('truetype'), url('/static/font/raleway-regular.svg#ralewayregular') format('svg');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-medium.eot');
  src: url('/static/font/raleway-medium.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-medium.woff') format('woff'), url('/static/font/raleway-medium.ttf') format('truetype'), url('/static/font/raleway-medium.svg#ralewaymedium') format('svg');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-semibold.eot');
  src: url('/static/font/raleway-semibold.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-semibold.woff') format('woff'), url('/static/font/raleway-semibold.ttf') format('truetype'), url('/static/font/raleway-semibold.svg#ralewaysemibold') format('svg');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-bold.eot');
  src: url('/static/font/raleway-bold.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-bold.woff') format('woff'), url('/static/font/raleway-bold.ttf') format('truetype'), url('/static/font/raleway-bold.svg#ralewaybold') format('svg');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-extrabold.eot');
  src: url('/static/font/raleway-extrabold.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-extrabold.woff') format('woff'), url('/static/font/raleway-extrabold.ttf') format('truetype'), url('/static/font/raleway-extrabold.svg#ralewayextrabold') format('svg');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Raleway Webfont";
  src: url('/static/font/raleway-heavy.eot');
  src: url('/static/font/raleway-heavy.eot?#iefix') format('embedded-opentype'), url('/static/font/raleway-heavy.woff') format('woff'), url('/static/font/raleway-heavy.ttf') format('truetype'), url('/static/font/raleway-heavy.svg#ralewayheavy') format('svg');
  font-weight: 900;
  font-style: normal;
}



:root {
  --tblr-primary: #4A0036;
  --tblr-primary-rgb: 43, 07, 34; /* Must match the RGB equivalent for transparency effects */

    --plum: #5C0F3F;
    --plum-light: #7a1855;
    --plum-dark: #3d0929;
    --coral: #FF6666;
    --coral-light: #FF6666DD;

    --border: #e8d5de;

}


body {
    //font-size: 1.2rem;
    //color: #4A0036;

    font-family: 'Raleway', sans-serif, arial;

}


.text-large {
    font-size: 1.2rem;
}

.text-small {
    font-size: 0.8rem;
    line-height: 1;
}

.caramel-heading-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--tblr-primary);
    line-height: 1.6;

    color: #4A0036;
}

.caramel-color {
    color: #4A0036;
}

.caramel-bck-color {
    color: #ffffff;
    background-color: #4A0036;
}


// FORM

.label {
    font-size: 14px;
    color: var(--text-mid);
    margin-top: 4px;
}

.field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.field-group.single {
    grid-template-columns: 1fr;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-mid);
}

.slider-val {
    font-size: 28px;
    font-weight: 600;
    color: var(--plum);
    font-variant-numeric: tabular-nums;
}

.slider-val span { font-size: 14px; font-weight: 400; color: var(--text-mid); }


/* PROGRESS */
.progress-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 36px;
    margin-bottom: 36px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--plum), var(--coral));
    border-radius: 2px;
    transition: width 0.5s ease;
}


  /* STEP INDICATOR */
  .steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    padding-left: 0px;
    padding-right: 30px;
  }

  .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    opacity: 0.45;
    transition: opacity 0.3s;
  }

  .step.active { opacity: 1; color: var(--plum); }
  .step.done { opacity: 0.7; color: var(--coral); }

  .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
  }

  .step.active .step-num {
    background: var(--plum);
    border-color: var(--plum);
    color: white;
  }

  .step.done .step-num {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
  }

  .step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
  }


/* RISK */

  .risk-gauge {
    margin: 28px 0;
    position: relative;
  }

  .gauge-bar {
    height: 18px;
    border-radius: 100px;
    background: linear-gradient(to right, #43a047, #fdd835, #e53935);
    position: relative;
    overflow: visible;
  }

  .gauge-needle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 32px;
    background: var(--plum);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: left 1s cubic-bezier(.34,1.56,.64,1);
  }

  .gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-mid);
    font-weight: 500;
  }

  .risk-score-big {
    text-align: center;
    margin: 20px 0;
  }

  .risk-score-big .num {
    font-family: 'DM Serif Display', serif;
    font-size: 72px;
    color: var(--plum);
    line-height: 1;
  }

  .risk-score-big .pct { font-size: 32px; }

  .risk-score-big .label {
    font-size: 14px;
    color: var(--text-mid);
    margin-top: 4px;
  }

  .risk-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 4px 0 20px;
  }

  .risk-low { background: #e8f5e9; color: #2e7d32; }
  .risk-moderate { background: #fff8e1; color: #f57f17; }
  .risk-high { background: #ffebee; color: #c62828; }
  .risk-very-high { background: #f3e5f5; color: #6a1b9a; }



/*
body {
  font-family: var(--tblr-font-sans-serif);
}*/


/* Map Container */
#map {
    height: 600px; /* Adjust height as needed */
    width: 100%;
    /* Apply rounded corners (as requested previously) */
    border-radius: 8px;
    border: 1px solid var(--tblr-border-color);
}

/* Map custom Legend control */
.info {
    padding: 10px 14px;
    background: white;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    font-size: 0.9rem;
}

.legend {
    line-height: 10px;
    color: #555;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.9;
}


/* Hide dark version by default */
.img-dark-mode {
  display: none;
}

/* When Tabler switches to dark mode, swap visibility */
[data-bs-theme='dark'] .img-light-mode {
  display: none;
}

[data-bs-theme='dark'] .img-dark-mode {
  display: block;
}
