/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.academic_details,.Essays_and_Questions,.Upload_Documents{
  padding-left: 60px;
  padding-right: 60px;
}
/* Common Sidebar Styles */
.sidebar, .sidebar2, .sidebar3 {
  width: 220px;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 30px;
}

.sidebar .step, 
.sidebar2 .step, 
.sidebar3 .step {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.sidebar .step::before, 
.sidebar2 .step::before, 
.sidebar3 .step::before {
  content: '';
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

/* Connector Lines */
.sidebar .step:not(:last-child)::after,
.sidebar2 .step:not(:last-child)::after,
.sidebar3 .step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50px;
  top: 45px;
  width: 6px;
  height: 70px;
  border-left: 2px dashed #999;
  z-index: 0;
}

/* Active State */
.sidebar .step.active,
.sidebar2 .step.active,
.sidebar3 .step.active {
  font-weight: bold;
  color: #990033;
}

/* Sidebar 1 Specific Icons */
.sidebar .step:nth-child(1)::before { background-image: url('/assetsNews/images/jam_write.png'); }
.sidebar .step:nth-child(2)::before { background-image: url('/assetsNews/images/clarity_list-line.png'); }
.sidebar .step:nth-child(3)::before { background-image: url('/assetsNews/images/Vector1.png'); }
.sidebar .step:nth-child(4)::before { background-image: url('/assetsNews/images/Vector_new.png'); }

/* Sidebar 2 Specific Icons */
.sidebar2 .step:nth-child(1)::before { background-image: url('/assetsNews/images/Frame 1707480051.png'); }
.sidebar2 .step:nth-child(2)::before { background-image: url('/assetsNews/images/clarity_list-line2.png'); }
.sidebar2 .step:nth-child(3)::before { background-image: url('/assetsNews/images/Vector1.png'); }
.sidebar2 .step:nth-child(4)::before { background-image: url('/assetsNews/images/Vector_new.png'); }

/* Sidebar 3 Specific Icons */
.sidebar3 .step:nth-child(1)::before { background-image: url('/assetsNews/images/Frame 1707480051.png'); }
.sidebar3 .step:nth-child(2)::before { background-image: url('/assetsNews/images/Frame 1707480051.png'); }
.sidebar3 .step:nth-child(3)::before { background-image: url('/assetsNews/images/download_icon.png'); }
.sidebar3 .step:nth-child(4)::before { background-image: url('/assetsNews/images/Vector_new.png'); }

/* Color Variations */
.sidebar .step { color: #990033; }
.sidebar2 .step:nth-child(1) { color: #990033; }
.sidebar2 .step:nth-child(2),
.sidebar2 .step:nth-child(3) { color: #4a4a4a; }
.sidebar3 .step { color: #990033; }

/* Form Section */
.form-section {
  background-color: #f4f7eb;
  padding: 40px;
  border-radius: 8px;
  min-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  color: #333;
}

label {
  display: block;
  margin: 25px 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 15px 10px;
  border: 1px solid #ccc;
  border-radius: 0;
  margin-bottom: 20px;
  font-size: 14px;
  background-color: #fff;
  outline: none;
}
input[type="text"]:focus,
textarea:focus {
  border-color: #ccc;
  box-shadow: none;
}
textarea {
  min-height: 100px;
  resize: vertical;
}

.upload-box {
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 30px;
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
  position: relative;
  transition: all 0.3s;
  background-color: white;
}

.upload-box:hover {
  background-color: #eef1e9;
  border-color: #990033;
  cursor: pointer;
}

.upload-box input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.mandatory {
  color: #FF2F2F;
  font-size: 14px;
}

.form-footer {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

button {
  background-color: #a6102b;
    color: white;
    border: 1px solid #a6102b;
    padding: 10px 30px;
    font-size: 18px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
button.save-exit{
  background-color: #fff;
  color: #a6102b;
  padding: 10px 30px;
  border: 1px solid #a6102b;
}
button.save-exit:hover{
  background-color: #a6102b;
  color: #ffffff;
  border: 1px solid #a6102b;
}
button:hover {
  background-color: #ffffff;
  color: #a6102b;
  border: 1px solid #a6102b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .academic_details,.Essays_and_Questions,.Upload_Documents{
    padding-left: 40px;
    padding-right: 40px;
  }
  .sidebar, .sidebar2, .sidebar3 {
      width: 100%;
      max-width: 220px;
      margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .academic_details,.Essays_and_Questions,.Upload_Documents{
    padding-left: 20px;
    padding-right: 20px;
  }
  .sidebar, .sidebar2, .sidebar3 {
      width: 100%;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
      border-bottom: 1px solid #e0e0e0;
      padding: 20px;
      gap: 15px;
      max-width: none;
  }

  .sidebar .step, 
  .sidebar2 .step, 
  .sidebar3 .step {
      width: max-content;
      margin-bottom: 0;
      font-size: 13px;
  }

  .sidebar .step::after,
  .sidebar2 .step::after,
  .sidebar3 .step::after {
      display: none;
  }

  .form-section {
      padding: 20px;
  }

  .mandatory {
      position: static;
      margin: 10px 0;
      text-align: right;
  }

}