
/* -------- Switch styles -------- */
.switch{
  position: relative;
  display: inline-block;
  width: 45px;
  height: 20px;
  flex: 0 0 auto; /* don’t stretch */
}

/* Hide native checkbox */
.switch input{
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
.slider{
  position: absolute;
  inset: 0;
  background: #e5e7eb;                 /* off */
  border-radius: 999px;
  transition: background .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}

/* Knob */
.slider:before{
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 0px;
  top: -1px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform .25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Checked state */
.switch input:checked + .slider{
  background: #03bbb3;                 
}
.switch input:checked + .slider:before{
  transform: translateX(24px);
}
/* Keyboard accessibility */
.switch input:focus + .slider{
  box-shadow: 0 0 0 3px rgba(177, 191, 25, 0.25);
}


/*  radio input  css  */

  /* Hide default radio */
.form-check-input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Label styling */
.form-check-label {
    position: relative;
    padding-left: 36px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

/* Custom diamond shape */
.form-check-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 22px;
    height: 22px;
    border: 2px solid #03bbb3;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(3,187,179,0.3);
}

/* Hover effect */
.form-check-input[type="radio"] + .form-check-label:hover::before {
    border-color: #a2bf33;
    box-shadow: 0 0 12px rgba(162,191,51,0.7);
    transform: translateY(-50%) rotate(15deg) scale(1.15);
}

/* Checked state (gradient diamond) */
.form-check-input[type="radio"]:checked + .form-check-label::before {
    border-color: transparent;
    background: linear-gradient(135deg, #03bbb3, #a2bf33);
    box-shadow: 0 0 14px rgba(162,191,51,0.8), 0 0 20px rgba(3,187,179,0.6);
}

/* Inner small diamond */
.form-check-input[type="radio"]:checked + .form-check-label::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    transition: all 0.3s ease;
}
