.fee-content-custom-box {
  background-color: #fff5ea;
  padding: 8px;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  display: inline-block;
  margin: 1% 0;
  border: 2px solid #52609a;
  font-size: 16px;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.fee-heading {
  margin-bottom: 8px;
}

.fee-heading label {
  font-size: 15px;
  font-weight: bold;
  color: #333;
}

.fee-student-list {
  margin-bottom: 15px;
}

.fee-student-label {
  font-size: 14px;
  font-weight: bold;
  color: #52609a;
  cursor: pointer;
  margin-top: 0px !important;
}

.fee-form-group {
  margin-bottom: 15px;
}

.fee-form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.fee-input,
.fee-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #c5c5c5;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}

.fee-input:focus,
.fee-textarea:focus {
  border-color: #52609a;
  box-shadow: 0 0 5px rgba(82, 96, 154, 0.25);
}

.fee-upload-placeholder {
  border: 2px dashed #52609a;
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  color: #52609a;
  font-size: 14px;
  background: #fafafa;
}

.fee-row {
  display: flex;
  gap: 12px;
}

.fee-half {
  flex: 1;
}

.fee-form-group select option {
  text-align: left !important;
  text-align-last: left !important;
}

.fee-upload-container {
  width: 100%;
}

.fee-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 55px;
  border: 2px dashed #52609a;
  border-radius: 6px;
  background: #fafafa;
  color: #52609a;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
  padding: 7px;
}

.fee-upload-btn:hover {
  background: #eef2ff;
}

.fee-preview {
  margin-top: 12px;
  text-align: center;
}

.fee-preview-image {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
}

.fee-remove-btn {
  margin-top: 10px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 18px;
  cursor: pointer;
  width: 50% !important;
}

.fee-remove-btn:hover {
  background: #c0392b;
}

.fee-student-item {
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.fee-student-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.fee-pdf-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fafafa;
  font-size: 16px;
  color: #52609a;
  font-weight: 600;
}

@media (max-width: 768px) {
  .fee-content-custom-box {
    padding: 8px;
    margin: 2% 0;
    font-size: 14px;
  }

  .fee-heading label,
  .fee-form-group label {
    font-size: 13px;
  }

  .fee-student-item {
    gap: 8px;
    padding: 4px 0;
  }

  .fee-student-label {
    font-size: 13px;
    line-height: 1.4;
  }

  .fee-student-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* Month & Year */
  .fee-row {
    gap: 10px;
  }

  .fee-half {
    flex: 1;
  }

  .fee-input,
  .fee-textarea {
    font-size: 14px;
  }

  .fee-input {
    height: 42px;
    width: 100%;
  }

  .fee-textarea {
    min-height: 90px;
  }

  /* Upload */

  .fee-upload-btn {
    height: 48px;
    font-size: 14px;
    padding: 10px;
  }

  .fee-preview-image {
    max-height: 220px;
  }

  .fee-pdf-preview {
    min-height: 100px;
    font-size: 14px;
    padding: 12px;
    word-break: break-word;
  }

  .fee-remove-btn {
    width: auto !important;
    min-width: 120px;
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .fee-content-custom-box {
    padding: 6px;
  }

  /* Month & Year one below another */
  .fee-row {
    flex-direction: column;
    gap: 0;
  }

  .fee-half {
    width: 100%;
  }

  .fee-input {
    height: 40px;
    font-size: 13px;
  }

  .fee-textarea {
    font-size: 13px;
  }

  .fee-upload-btn {
    height: 45px;
    font-size: 13px;
  }

  .fee-preview-image {
    max-height: 180px;
  }

  .fee-remove-btn {
    width: 100% !important;
    margin-top: 8px;
  }
}
