/* Main Container */
.admission-form {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.admission-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 20px 20px 0 0;
}

/* Header */
.admission-form h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admission-form > p {
  color: #718096;
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Steps Container */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.step-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  border: 3px solid #e2e8f0;
  background: white;
  color: #a0aec0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.step:not(.active):hover {
  border-color: #667eea;
  color: #667eea;
  transform: scale(1.05);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dotted-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, #e2e8f0 50%, transparent 50%);
  background-size: 10px 2px;
  margin: 0 10px;
}

/* Step Content */
.step-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.step-content.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Headers */
.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 30px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.step-content h3::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Form Elements */
.form-grid input,
.form-grid select,
.year-select select,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
  color: #2d3748;
}

.form-grid input:focus,
.form-grid select:focus,
.year-select select:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-grid input::placeholder {
  color: #a0aec0;
  font-style: italic;
}

/* File Upload Styling */
.form-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid label {
  font-weight: 600;
  color: #4a5568;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="file"] {
  padding: 10px;
  border: 2px dashed #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

/* Year and Form Group Styling */
.year-select,
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.year-select label,
.form-group label {
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
}

/* Fee List */
.fee-list {
  background: #f8fafc;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin: 20px 0;
}

.fee-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fee-list label:hover {
  color: #667eea;
  transform: translateX(5px);
}

.fee-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
  cursor: pointer;
}

/* Bulk Button */
.bulk-btn {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bulk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.submit-btn,
.cancel-btn {
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 140px;
}

.submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.cancel-btn {
  background: transparent;
  color: #718096;
  border: 2px solid #e2e8f0;
}

.cancel-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

/* Bulk Modal Styles */
.bulk-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: modalFadeIn 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bulk-box {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bulk-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 25px;
  text-align: center;
  padding-right: 40px;
}

.bulk-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bulk-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bulk-input-group label {
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
}

.bulk-input-group select {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.bulk-input-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Upload Box */
.upload-box {
  margin: 20px 0;
}

.upload-placeholder {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.upload-placeholder:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.upload-placeholder span {
  display: block;
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 8px;
}

.upload-placeholder p {
  color: #718096;
  font-size: 14px;
  margin: 0;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Close Button for Popup */
.bulk-box .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.bulk-box .close-btn:hover {
  color: #764ba2;
  transform: scale(1.2);
  background: rgba(102, 126, 234, 0.1);
}

/* FIXED: Popup Actions - Properly centered for all screen sizes */
.popup-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 25px;
  gap: 15px;
  /* REMOVED: margin-left: 140px; - this was causing the centering issue */
}

.popup-actions .submit-btn {
  min-width: 140px;
  text-align: center;
}

/* Tablet Responsive Design */
@media (max-width: 1024px) {
  .admission-form {
    padding: 30px;
    margin: 15px;
  }
  
  .bulk-box {
    padding: 25px;
    max-width: 450px;
  }
  
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .admission-form {
    padding: 25px;
    margin: 10px;
  }
  
  .admission-form h2 {
    font-size: 2rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .steps {
    gap: 15px;
  }
  
  .step {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .dotted-line {
    width: 40px;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .submit-btn,
  .cancel-btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Mobile Popup Styles */
  .bulk-modal {
    padding: 15px;
  }
  
  .bulk-box {
    margin: 0;
    padding: 20px;
    max-width: none;
    width: 100%;
  }
  
  .bulk-box h3 {
    font-size: 1.3rem;
    padding-right: 35px;
  }
  
  .bulk-box .close-btn {
    top: 10px;
    right: 10px;
    font-size: 22px;
    width: 28px;
    height: 28px;
  }
  
  /* Mobile Popup Actions */
  .popup-actions {
    margin-top: 20px;
    flex-direction: column;
    gap: 10px;
  }
  
  .popup-actions .submit-btn {
    width: 100%;
    min-width: auto;
    padding: 12px 20px;
  }
  
  .upload-placeholder {
    padding: 30px 15px;
  }
  
  .upload-placeholder span {
    font-size: 14px;
  }
  
  .upload-placeholder p {
    font-size: 12px;
  }
}

/* Small Mobile Design */
@media (max-width: 480px) {
  .admission-form {
    padding: 20px;
    margin: 5px;
  }
  
  .admission-form h2 {
    font-size: 1.8rem;
  }
  
  .steps {
    flex-direction: column;
    gap: 20px;
  }
  
  .dotted-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #e2e8f0 50%, transparent 50%);
    background-size: 2px 10px;
    margin: 0;
  }
  
  .step-group {
    flex-direction: row;
    gap: 15px;
  }
  
  .fee-list {
    padding: 20px;
  }
  
  /* Small Mobile Popup */
  .bulk-modal {
    padding: 10px;
  }
  
  .bulk-box {
    padding: 15px;
    border-radius: 12px;
  }
  
  .bulk-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-right: 30px;
  }
  
  .bulk-body {
    gap: 15px;
  }
  
  .bulk-input-group select {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .upload-placeholder {
    padding: 25px 10px;
  }
  
  .popup-actions {
    margin-top: 15px;
  }
  
  .popup-actions .submit-btn {
    padding: 10px 15px;
    font-size: 13px;
  }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
  .admission-form {
    padding: 15px;
  }
  
  .bulk-box {
    padding: 12px;
  }
  
  .bulk-box h3 {
    font-size: 1.1rem;
    padding-right: 25px;
  }
  
  .bulk-box .close-btn {
    font-size: 20px;
    width: 26px;
    height: 26px;
  }
  
  .popup-actions .submit-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 70px;
  }
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus States */
*:focus {
  outline: none;
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Custom Scrollbar */
.admission-form::-webkit-scrollbar,
.bulk-box::-webkit-scrollbar {
  width: 6px;
}

.admission-form::-webkit-scrollbar-track,
.bulk-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.admission-form::-webkit-scrollbar-thumb,
.bulk-box::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.admission-form::-webkit-scrollbar-thumb:hover,
.bulk-box::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ensure proper box-sizing for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}