:root {
    --primary-color: #39AA53;
    --primary-black: #212121;
    --secondary-color: #056EA6;
    --secondary-teal: #174A66;
    --background-light: #f9fafb;
    --light-green: #dfebde;
    --badge-color: #d7e3d5;
    --text-bg: #dfebdd;
    --color-text: #212121;
    --primary-gradient: linear-gradient(135deg, #212121 0%, #39AA53 100%);
    --gradient-hover: linear-gradient(135deg, #39AA53 100%, #212121 20%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #f8fafc 100%);
}

body {
    background: #f5f6fa;
}

.card {
    border-radius: 20px;
    border: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cards-header{
  background: var(--primary-gradient);
  color: white;
  padding: 35px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}


.form-floating > label {
    color: #333;
    font-weight: 500;
}

/* .form-control {
    border-radius: 0;
}

.form-control:focus, .form-select:focus {
    border-color: #1976d2;
    border-width: 1px;
    box-shadow: none;
} */


.dropzone {
    border: 2px dashed #1976d2;
    border-radius: 12px;
    background: #f9fcff;
}

.vehicle-registration h2 {
    /* color: var(--primary-color); */
    font-weight: 600;
}

/* Stepper styles */
/* .stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stepper .step {
    text-align: center;
    flex: 1;
    position: relative;
}

.stepper .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 4px;
    background: #ccc;
    z-index: -1;
}

.stepper .circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-weight: bold;
    color: #fff;
}

.step.active .circle {
    background: var(--primary-gradient);
}

.step.completed .circle {
    background: #28a745;
} */


.stepper {
    display: flex;
    margin: 20px 0;
    gap: 10px;
}

/* Arrow effect */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -19px;
    width: 0;
    height: 0;
    border-top: 29px solid transparent;
    border-bottom: 29px solid transparent;
    border-left: 20px solid #cad9ce;
    z-index: 2;
}

.step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    width: 0;
    height: 0;
    border-top: 29px solid transparent;
    border-bottom: 29px solid transparent;
    border-left: 20px solid #fff; /* background color */
    z-index: 1;
}


.step {
  position: relative;
  flex: 1;
  padding: 15px 20px;
  text-align: center;
  color: #333;
  font-weight: bold;
  background: #cad9ce;
  transition: all 0.3s ease;
  min-height: 56px;                 /* fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.step.completed {
    background: #39AA53;
    color: #fff;
}

.step.completed:not(:last-child)::after {
    border-left-color: #39AA53;
}

/* Add ✔ without changing height */
.step.completed p {
  position: relative;
  padding-left: 20px; /* room for checkmark */
}


.step.completed {
  background: #39AA53;
  color: #fff;
}

.step.completed p::before {
    content: "✔";
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.step.active {
    background: #000;
    color: #fff;
}

.step.active:not(:last-child)::after {
    border-left-color: #000;
}

.step.active {
    background: linear-gradient(135deg, #212121 0%, #39AA53 100%);
    color: #fff;
}

.step.active::after {
    content: "";
    position: absolute;
    top: 0;
    right: -19px; /* arrow width */
    width: 20px;
    height: 100%;
    border: 0 !important;
    background: linear-gradient(to bottom, #2c8d41 0%, #38b154 100%);
    /* background: linear-gradient(to bottom, #428250 0%, #39AA53 100%); */
    /* background: linear-gradient(to bottom, #15882F 0%, #39AA53 100%); */
    /*background: linear-gradient(to bottom, #317C42 0%, #39AA53 100%);*/
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}


.step p {
    margin: 0;
}


.step:first-child {
    border-radius: 10px 0 0 10px;
}

.step:last-child {
    border-radius: 0 10px 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .stepper {
        flex-direction: column;
        border-radius: 0;
    }

    .step {
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .step::after,
    .step::before {
        display: none;
    }
}


.clear-storage {
    position: absolute;
    top: 20px;
    right: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* background-color: var(--background-light); */
    background-color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
   border-color: var(--primary-color);
   border: none;
   /* box-shadow: none; */
   box-shadow: 0 0 0 .25rem rgba(0, 128, 0, 0.26);
    /* background-color: var(--background-light); */
    background-color: #fff;
}

.input-icon i {
    color: #666;
}

/* Decorative border under each section title */
.step-content h5 {
  position: relative;
  padding-bottom: 8px; 
  margin-bottom: 35px !important;
  font-size: 1.25rem; 
}

/* Thick gradient underline */
.step-content h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px; 
  background: linear-gradient(135deg, #212121 0%, #39AA53 100%);
  border-radius: 2px; 
}






