/* General Body and HTML Reset */
@import 'scss/variables';
@import 'scss/main';
@import 'scss/header';
@import 'scss/footer';

header#masthead {
    display: none;
}
/* Main Container for the Form Page */
.custom-form-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px); /* Adjust based on header/footer height */

  box-sizing: border-box;
}

/* Wrapper for the 40/60 layout */
.form-layout-wrapper {
  display: flex;
  width: 100%;
  /* max-width: 1200px;  Max width for the entire form container */
  min-height: auto; /* Minimum height for the form container */
  overflow: hidden; /* Ensures rounded corners are applied correctly */
      height: calc(100vh - 88px);
}

/* Left Sidebar (40% width) */
.form-sidebar {
  flex: 0 0 40%; /* Flex-grow, flex-shrink, flex-basis */
  background: linear-gradient(180deg, #0033ab 0%, #1b5fff 100%);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* Frosted glass effect for the sidebar content */
.form-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05); /* Light overlay */
  backdrop-filter: blur(5px); /* Frosted glass effect */
  z-index: 1; /* Ensure it's above background but below content */
}

.form-sidebar > * {
  /* Ensure content is above the pseudo-element */
  position: relative;
  z-index: 2;
}

.sidebar-header {
  margin-bottom: 40px;
}

.sidebar-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px; /* Rounded corners for logo */
}

.form-sidebar h1 {
  font-size: 26px;
  margin-bottom: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.form-sidebar p {
  font-size: 1em;
  line-height: 1.6;
  opacity: 0.8;
}

/* Sidebar Progress Steps */
.progress-steps-sidebar {
    list-style: none;
    margin: 0;
    width: 100%;
    box-shadow: 0px 4px 20px 0px #ffffff inset;
    border-radius: 10px;
    padding: 39px 30px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: non
}

.step-sidebar {
  display: flex;
  align-items: center;
  margin-bottom: 15px; /* Space between steps */
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative; /* Needed for ::before line positioning */
  margin-bottom: 3.5rem;
}

span.step-description {
  display: none;
}
/* Line connecting the steps */
.progress-steps-sidebar .step-sidebar:not(:first-child)::before {
  content: "";
  position: absolute;
  /* Calculate position to connect to the center of the previous icon */
  left: 15px;
  top: -35px;
  height: 35px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.4); /* Default line color */
  transform: translateX(-50%);
  z-index: 0;
}

/* Active line: current step is active, or previous step was active */
.progress-steps-sidebar .step-sidebar.active:not(:first-child)::before,
.progress-steps-sidebar .step-sidebar.active + .step-sidebar::before {
  background-color: #fff; /* Active line color */
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-right: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 1;
  position: relative;
  border: 1px solid #fff;
      flex-shrink: 0;
    flex-grow: 0;
}

.step-sidebar.active .step-icon {
  background-color: #16a34a;
}

.step-content {
  display: flex;
  flex-direction: column;
}
.step-sidebar.active .step-content .step-name {
      font-family: 'Montserrat-medium';
}
.step-name {   
   font-family: 'Montserrat';   
   font-weight: 400;
   font-size: 1.8rem;
   line-height: 100%;
   letter-spacing: 0%;  
  
}

.step-description {
  font-size: 0.85em;
  opacity: 0.7;
}

/* Right Content Area (60% width) */
.form-main-content {
  flex: 0 0 60%; 
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Progress Bar at the top of the right section */
.progress-bar-top-container {
    width: 100%;
    height: 1.6rem;
    background-color: #d9d9d9;
    overflow: hidden;
}

.progress-bar-top {
    height: 100%;
    width: 0%;   
    border-top-right-radius: 0.8rem;
    transition: width 0.4s ease-in-out;
    border-bottom-right-radius: 0.8rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: linear-gradient(266.64deg, #1A5DFA 2.77%, #0134AD 102.87%);
}

/* Form Styling */
#customMultiStepForm {
    /* flex-grow: 1; */
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow: scroll;
    overflow-x: hidden;
}

.form-step {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  justify-content: center; /* Center content within each step */
  flex-grow: 1;
}

.form-step.active {
  display: flex; /* Use flex to center content */
}

.form-step h2 {
    font-family: 'Poppins-medium';
    font-weight: 500;    
    font-size:2.4rem;    
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 6rem;
}

/* Gender Selection Specific Styles */
.gender-selection {
    display: flex;
    justify-content: center;
    gap: 11.4rem;
    margin-bottom: 20px;
}

.gender-option {
     display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-option input[type="radio"]:checked + .gender-icon {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.gender-icon {
  margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #579FFF;
    transition: all 0.3s ease;
    padding: 2.7rem;
    border-radius: 2.4rem;
}

/* General Form Fields */

#customMultiStepForm input[type="text"],
#customMultiStepForm input[type="email"],
#customMultiStepForm input[type="tel"],
#customMultiStepForm input[type="number"], /* Added for number input */
#customMultiStepForm select, /* Added for select input */
#customMultiStepForm textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 25px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#customMultiStepForm input[type="text"]:focus,
#customMultiStepForm input[type="email"]:focus,
#customMultiStepForm input[type="tel"]:focus,
#customMultiStepForm input[type="number"]:focus,
#customMultiStepForm select:focus,
#customMultiStepForm textarea:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
  outline: none;
}

#customMultiStepForm textarea {
  min-height: 100px;
  resize: vertical;
}

/* Form Buttons */

.form-buttons {
    display: flex;
    gap: 5rem;
    justify-content: flex-end;
    margin-top: 5rem;
    margin-bottom: 2rem;
}
.step-btn{
  padding: 1rem 6.5rem;
    font-size: 16px;    
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins';
    font-weight: 400;   
    font-size: 1.8rem;
    line-height: 100%;
    letter-spacing: 0%;
    border:0;
}
#customMultiStepForm button {  
  transition: background-color 0.3s ease, transform 0.2s ease; 
}

.next-step-btn{
  background-color: #0033AB;
  color:#fff;
}
#customMultiStepForm .prev-step-btn {
  background-color: #ECECEC;
  gap:1rem;
  display:flex;
}

#back-to-start-btn {
  background-color: #28a745; /* Green for "Back to Start" */
  margin-top: 20px;
  display: block; /* Ensure it takes full width if needed */
  width: auto; /* Adjust width */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#back-to-start-btn:hover {
  background-color: #218838;
}

/* Form Messages */
#form-messages {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  margin-top: 30px;
}
#form-messages.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
#form-messages.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Review Summary */
#review-summary {
  background-color: #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  color: #333;
}
#review-summary p {
  margin-bottom: 10px;
  font-size: 1.1em;
}
#review-summary p:last-child {
  margin-bottom: 0;
}
#review-summary strong {
  color: #1a237e;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .form-layout-wrapper {
    flex-direction: column; /* Stack columns on smaller screens */
    min-height: auto;
  }

  .form-sidebar,
  .form-main-content {
    flex: 0 0 100%; /* Take full width */
    padding: 30px;
  }

  .form-sidebar {
    border-radius: 15px 15px 0 0; /* Adjust border radius for stacked layout */
  }

  .form-main-content {
    border-radius: 0 0 15px 15px;
  }

  .form-sidebar h1 {
    font-size: 1.8em;
  }

  .progress-steps-sidebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .step-sidebar {
    flex-basis: calc(50% - 10px); /* Two columns for steps on smaller screens */
    padding: 10px 15px;
   
  }

  .step-content {
    flex-grow: 1;
  }

  .gender-selection {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .form-layout-wrapper {
    box-shadow: none; /* Remove shadow on very small screens */
  }

  .form-sidebar,
  .form-main-content {
    padding: 20px;
  }

  .form-sidebar h1 {
    font-size: 1.5em;
  }

  .step-sidebar {
    flex-basis: 100%; /* One column for steps on very small screens */
  }

  #customMultiStepForm button {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
}



  .gender-container {
      display: flex;
      justify-content: center;
      gap: 40px;
    }

    .gender-option {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
    }

    .gender-box {
      width: 100px;
      height: 100px;
      background-color: #4da3ff;
      border-radius: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 10px;
    }

    .gender-box img {
      width: 50px;
      height: 50px;
    }

    input[type="radio"] {
      accent-color: #007bff;
      margin-right: 5px;
    }

    label {
      display: flex;
      align-items: center;
      font-size: 16px;
    }

    
    .gender-option span.radio-circle {
    margin-left: -50px;
}
.gender-option .name { 
    margin-left: 30px;
}
.gender-option.female span.radio-circle {
    margin-left: -80px;
}
.navbar .container-fluid {
    padding: 0 50px;
}
.post, .page {
    margin: 0;
}
.questions-container .questions{
  margin-bottom: 5rem;
}
.questions:not(:last-child) {
    margin-bottom: 5rem;
}