/* =========================
   INSURANCE FORM - PREMIUM UI
========================= */

.insurance_form_section {
  padding: 80px 0;
  background: #f6f9fc;
}

.insurance_form_section h2 {
  font-size: 34px;
  text-align: center;
  background: linear-gradient(90deg, #111, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.insurance_form_section p {
  color: #666;
}

/* FORM BOX */
#multiStepForm {
  background: #ffffff;
  max-width: 650px;
  margin: 30px auto;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  transition: 0.3s;
}

/* STEP CONTAINER */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
  display: block;
}

/* INPUTS */
#multiStepForm input,
#multiStepForm select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
  background: #fafafa;
}

#multiStepForm input:focus,
#multiStepForm select:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

/* HEADINGS INSIDE FORM */
.form-step h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

/* BUTTONS */
#prevBtn,
#nextBtn,
#submitBtn {
  padding: 12px 25px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  transition: 0.3s;
  margin: 5px;
}

/* BACK BUTTON */
#prevBtn {
  background: #e5e7eb;
  color: #333;
}

#prevBtn:hover {
  background: #d1d5db;
}

/* NEXT BUTTON */
#nextBtn {
  background: #2563eb;
  color: #fff;
}

#nextBtn:hover {
  background: #1d4ed8;
}

/* SUBMIT BUTTON */
#submitBtn {
  background: #16a34a;
  color: #fff;
}

#submitBtn:hover {
  background: #15803d;
}

/* STEP INDICATOR */
#stepNumber {
  font-weight: 700;
  color: #2563eb;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #multiStepForm {
    padding: 25px;
    margin: 20px;
  }
}

.progress_bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  max-width: 650px;
  margin: auto;
}

.progress_fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: 0.4s ease;
}

#multiStepForm {
  transform: translateY(0);
}

#multiStepForm:hover {
  transform: translateY(-3px);
}

/* Styling for the Short Headings (Labels) */
.form-step h5 {
    font-size: 14px;            /* Professional label size */
    font-weight: 600;           /* Semi-bold for readability */
    color: #333;                /* Dark gray, easier on eyes than pure black */
    margin-bottom: 8px;         /* Space between heading and its input */
    margin-top: 15px;           /* Space away from the previous input */
    text-transform: uppercase;  /* Optional: gives it a clean, "form-label" look */
    letter-spacing: 0.5px;      /* Slight spacing for elegance */
    display: block;
}

/* Specific adjustment for the very first heading in a step */
.form-step h4 + h5 {
    margin-top: 20px;
}

/* Making the input fields match the professional vibe */
.form-step .form-control {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

/* Highlight the input when the user clicks it */
.form-step .form-control:focus {
    border-color: #0046af;      /* Match your Ensurx theme color */
    box-shadow: 0 0 0 0.2rem rgba(0, 70, 175, 0.15);
}

/* Styling the Radio Selection to look like the image */
/* --- 1. Container & Label Setup --- */
.custom-radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: Arial, sans-serif; /* Matching font style from image */
    font-size: 16px;
    color: #333;
    user-select: none;
    padding-left: 35px; /* Creates space for the custom checkmark */
    position: relative;
    margin-bottom: 0; /* Bootstrap reset */
}

/* --- 2. Hide Default Browser Radio Button --- */
.custom-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* --- 3. The Custom Outer Ring (The "Bullet") --- */
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%); /* Perfectly center vertically */
    height: 24px; /* Adjust size to match image */
    width: 24px;
    background-color: transparent;
    border: 2px solid #0081C4; /* Specific blue color from reference image */
    border-radius: 50%; /* Makes it circular */
    transition: all 0.2s ease;
}

/* --- 4. Special Border for Selected State --- */
.custom-radio-container input:checked ~ .checkmark {
    border-width: 1.5px; /* Image ring looks slightly thinner when active */
}

/* --- 5. The Inner Solid Circle (The "Dot") --- */
.checkmark:after {
    content: "";
    position: absolute;
    display: none; /* Hidden by default */
    
    /* Position and Size of the inner solid circle */
    top: 4px;
    left: 4px;
    width: 16px; 
    height: 16px;
    
    border-radius: 50%;
    background: #0081C4; /* Matching solid blue from image */
}

/* --- 6. Show the Dot when Checked --- */
.custom-radio-container input:checked ~ .checkmark:after {
    display: block;
}

/* Optional Hover effect for better UX */
.custom-radio-container:hover input ~ .checkmark {
    background-color: rgba(0, 129, 196, 0.05);
}